Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 7, 2012 18:42
Show Gist options
  • Save tj/c93c4f2838013540841e to your computer and use it in GitHub Desktop.
Save tj/c93c4f2838013540841e to your computer and use it in GitHub Desktop.
compiler exec: ffmpeg -r 24 -f image2 -i /tmp/videos/4f57ac03d67bdee03300005f/frame-%d.png -qscale 3 -bufsize 10000 /tmp/videos/4f57ac03d67bdee03300005f.mp4 && ffmpeg -i /usr/share/red5/dist/webapps/oflaDemo/streams/recording-CmToDSlY31oxy1gXVk05mzDhbLzRvZ.flv -acodec libmp3lame -ac 2 -bufsize 10000 -y /tmp/videos/4f57ac03d67bdee03300005f.mp3 && ffmpeg -i /tmp/videos/4f57ac03d67bdee03300005f.mp4 -i /tmp/videos/4f57ac03d67bdee03300005f.mp3 -y /tmp/videos/4f57ac03d67bdee03300005f-with-audio.mp4 && mv /tmp/videos/4f57ac03d67bdee03300005f{-with-audio,}.mp4 +0ms
compiler compiled /tmp/videos/4f57ac03d67bdee03300005f.mp4 +4s
Error: Command failed: ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 7 2012 18:10:37 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --enable-shared --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-nonfree --enable-postproc --enable-swscale
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, image2, from '/tmp/videos/4f57ac03d67bdee03300005f/frame-%d.png':
Duration: 00:00:02.87, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 940x528, 24 fps, 24 tbr, 24 tbn, 24 tbc
Please use -q:a or -q:v, -qscale is ambiguous
Incompatible pixel format 'rgb24' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x1a5a3a0] w:940 h:528 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x1a64d80] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x1a5ef20] w:940 h:528 fmt:rgb24 -> w:940 h:528 fmt:yuv420p flags:0x4
Output #0, mp4, to '/tmp/videos/4f57ac03d67bdee03300005f.mp4':
Metadata:
encoder : Lavf53.31.100
Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 940x528, q=2-31, 200 kb/s, 24 tbn, 24 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> mpeg4)
Press [q] to stop, [?] for help
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 10 times
rc buffer underflow q=31.0 size= 58kB time=00:00:00.45 bitrate=1033.6kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 8 times
rc buffer underflow q=31.0 size= 111kB time=00:00:00.87 bitrate=1040.5kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 6 times
rc buffer underflow q=31.0 size= 114kB time=00:00:01.20 bitrate= 773.7kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 6 times
rc buffer underflow q=31.0 size= 124kB time=00:00:01.54 bitrate= 657.6kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 6 times
rc buffer underflow q=31.0 size= 136kB time=00:00:01.87 bitrate= 595.5kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 6 times
rc buffer underflow q=31.0 size= 139kB time=00:00:02.20 bitrate= 516.1kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 6 times
rc buffer underflow q=31.0 size= 151kB time=00:00:02.54 bitrate= 485.5kbits/s
[mpeg4 @ 0x1a61b60] rc buffer underflow
Last message repeated 5 times
rc buffer underflow q=31.0 size= 152kB time=00:00:02.83 bitrate= 440.8kbits/s
frame= 69 fps= 16 q=31.0 Lsize= 163kB time=00:00:02.87 bitrate= 465.1kbits/s
video:162kB audio:0kB global headers:0kB muxing overhead 0.714621%
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 7 2012 18:10:37 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --enable-shared --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-nonfree --enable-postproc --enable-swscale
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from '/usr/share/red5/dist/webapps/oflaDemo/streams/recording-CmToDSlY31oxy1gXVk05mzDhbLzRvZ.flv':
Metadata:
novideocodec : 0
server : Red5 Server 1.0.0 RC2 Rev: 4315
creationdate : Wed Mar 07 18:42:06 UTC 2012
canSeekToEnd : true
Duration: 00:00:01.67, start: 0.000000, bitrate: 49 kb/s
Stream #0:0: Audio: nellymoser, 22050 Hz, mono, s16
[mp3 @ 0x10e3740] Unsupported sample rate.
Output #0, mp3, to '/tmp/videos/4f57ac03d67bdee03300005f.mp3':
Metadata:
novideocodec : 0
server : Red5 Server 1.0.0 RC2 Rev: 4315
creationdate : Wed Mar 07 18:42:06 UTC 2012
canSeekToEnd : true
TSSE : Lavf53.31.100
Stream #0:0: Audio: mp3, 22050 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (nellymoser -> libmp3lame)
Press [q] to stop, [?] for help
size= 28kB time=00:00:01.80 bitrate= 128.9kbits/s
video:0kB audio:28kB global headers:0kB muxing overhead 0.669233%
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 7 2012 18:10:37 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --enable-shared --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-nonfree --enable-postproc --enable-swscale
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/videos/4f57ac03d67bdee03300005f.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf53.31.100
Duration: 00:00:02.87, start: 0.000000, bitrate: 465 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 940x528 [SAR 1:1 DAR 235:132], 461 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
Metadata:
handler_name :
Truncating packet of size 1024 to 168
Truncating packet of size 1024 to 1
[mp3 @ 0x21bb460] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from '/tmp/videos/4f57ac03d67bdee03300005f.mp3':
Metadata:
novideocodec : 0
server : Red5 Server 1.0.0 RC2 Rev: 4315
creationdate : Wed Mar 07 18:42:06 UTC 2012
canSeekToEnd : true
encoder : Lavf53.31.100
Duration: 00:00:01.81, start: 0.000000, bitrate: 128 kb/s
Stream #1:0: Audio: mp3, 22050 Hz, stereo, s16, 128 kb/s
[buffer @ 0x21caf20] w:940 h:528 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Incompatible sample format 's16' for codec 'aac', auto-selecting format 'flt'
[NULL @ 0x21e09c0] Codec is experimental but experimental codecs are not enabled, see -strict -2
Output #0, mp4, to '/tmp/videos/4f57ac03d67bdee03300005f-with-audio.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf53.31.100
Stream #0:0(und): Video: mpeg4, yuv420p, 940x528 [SAR 1:1 DAR 235:132], q=2-31, 200 kb/s, 90k tbn, 24 tbc
Metadata:
handler_name :
Stream #0:1: Audio: none, 22050 Hz, stereo, flt, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> mpeg4)
Stream #1:0 -> #0:1 (mp3 -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment