Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 6, 2012 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tj/1988242 to your computer and use it in GitHub Desktop.
Save tj/1988242 to your computer and use it in GitHub Desktop.
ffmpeg -r 24 -f image2 -i /tmp/videos/4f565f7f2f7bacb708000053/frame-%d.png /tmp/videos/4f565f7f2f7bacb708000053.mp4 \
&& ffmpeg -i /usr/share/red5/webapps/oflaDemo/streams/recording-EiNHIKP4oOyM3QKmL4TA7ISy70FU9J.flv -acodec libmp3lame -ac 2 -y /tmp/videos/4f565f7f2f7bacb708000053.mp3 \
&& ffmpeg -i /tmp/videos/4f565f7f2f7bacb708000053.mp4 -vcodec copy -i /tmp/videos/4f565f7f2f7bacb708000053.mp3 -y /tmp/videos/4f565f7f2f7bacb708000053-with-audio.mp4 \
&& mv /tmp/videos/4f565f7f2f7bacb708000053{-with-audio,}.mp4
Kue started on port 8888
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
built on Feb 17 2012 12:13:24 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.8.5 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, image2, from '/tmp/videos/4f5660f42f7bacb70800005d/frame-%d.png':
Duration: 00:00:03.54, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, rgb24, 940x528, 24 fps, 24 tbr, 24 tbn, 24 tbc
Incompatible pixel format 'rgb24' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x7ffa73c03380] w:940 h:528 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x7ffa73c03600] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x7ffa73c03920] w:940 h:528 fmt:rgb24 -> w:940 h:528 fmt:yuv420p flags:0x4
Output #0, mp4, to '/tmp/videos/4f5660f42f7bacb70800005d.mp4':
Metadata:
encoder : Lavf53.4.0
Stream #0.0: Video: mpeg4, yuv420p, 940x528, q=2-31, 200 kb/s, 24 tbn, 24 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
frame= 85 fps= 0 q=1.6 Lsize= 141kB time=00:00:03.54 bitrate= 325.8kbits/s
video:139kB audio:0kB global headers:0kB muxing overhead 1.036179%
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
built on Feb 17 2012 12:13:24 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.8.5 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x7fe9e2007c00] Could not find codec parameters (Video: [0][0][0][0] / 0x0000)
[flv @ 0x7fe9e2007c00] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from '/usr/share/red5/webapps/oflaDemo/streams/recording-D07z3K1fk6U5ogz2Uwd2ZAk5HcHm82.flv':
Metadata:
audiocodecid : 6
server : Red5 Server 1.0.0 RC1 $Rev: 4193 $
duration : 3
canSeekToEnd : true
videocodecid : -1
Duration: 00:00:03.29, start: 0.000000, bitrate: N/A
Stream #0.0: Video: [0][0][0][0] / 0x0000, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: nellymoser, 22050 Hz, mono, s16
[mp3 @ 0x7fe9e201c200] Unsupported sample rate.
Output #0, mp3, to '/tmp/videos/4f5660f42f7bacb70800005d.mp3':
Metadata:
audiocodecid : 6
server : Red5 Server 1.0.0 RC1 $Rev: 4193 $
duration : 3
canSeekToEnd : true
videocodecid : -1
TSSE : Lavf53.4.0
Stream #0.0: Audio: libmp3lame, 22050 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop, [?] for help
size= 27kB time=00:00:03.39 bitrate= 64.4kbits/s
video:0kB audio:27kB global headers:0kB muxing overhead 0.695697%
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
built on Feb 17 2012 12:13:24 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.8.5 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/videos/4f5660f42f7bacb70800005d.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.4.0
Duration: 00:00:03.54, start: 0.000000, bitrate: 325 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 940x528 [PAR 1:1 DAR 235:132], 322 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
[mp3 @ 0x7ff120800c00] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from '/tmp/videos/4f5660f42f7bacb70800005d.mp3':
Metadata:
audiocodecid : 6
server : Red5 Server 1.0.0 RC1 $Rev: 4193 $
duration : 3
canSeekToEnd : true
videocodecid : -1
encoder : Lavf53.4.0
Duration: 00:00:03.41, start: 0.000000, bitrate: 64 kb/s
Stream #1.0: Audio: mp3, 22050 Hz, stereo, s16, 64 kb/s
Output #0, mp4, to '/tmp/videos/4f5660f42f7bacb70800005d-with-audio.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.4.0
Stream #0.0(und): Video: mpeg4, yuv420p, 940x528 [PAR 1:1 DAR 235:132], q=2-31, 322 kb/s, 24 tbn, 24 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1: Audio: libfaac, 22050 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop, [?] for help
frame= 85 fps= 0 q=-1.0 Lsize= 168kB time=00:00:03.48 bitrate= 394.5kbits/s
video:139kB audio:26kB global headers:0kB muxing overhead 1.516020%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment