Skip to content

Instantly share code, notes, and snippets.

@batasrki
Last active August 29, 2015 14:07
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 batasrki/6ac9858929ec08cff932 to your computer and use it in GitHub Desktop.
Save batasrki/6ac9858929ec08cff932 to your computer and use it in GitHub Desktop.
FFMPEG warnings
/usr/local/bin/ffmpeg -i rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9 \
-i rtmp://127.0.0.1:1935/yanked/buffer_stream-bdb507d9-db88-434f-b47c-9be95d21fc67 \
-i /usr/local/WowzaStreamingEngine/content/yanked_75_wide.png \
-filter_complex "[0:v] scale=640:360 [scaleMain];[1:v] scale=214:120 [scalePip];
[scaleMain][scalePip] overlay=W-w-10:H-h-10:eval=init [main];
[main][2:v] overlay=10:10:eval=init;[0:a][1:a] amix" \
-c:v libx264 -profile:v main -b:v 750k -minrate 400k -maxrate 1000k -bufsize 1000k \
-ar 44100 -c:a libfdk_aac -ac 2 \
-f flv -x264opts "keyint=30:min-keyint=30" rtmp://127.0.0.1:1935/yanked/mux-TgeYV
/usr/local/bin/ffmpeg \
-i rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9 \
-i rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9 \
-i /usr/local/WowzaStreamingEngine/content/yanked_75_wide.png \
-filter_complex " [0:v] setpts=PTS-STARTPTS; scale=640:360 [scaleMain];
[1:v] setpts=PTS-STARTPTS; scale=214:120 [scalePip];
[scaleMain][scalePip] overlay=W-w-10:H-h-10:eval=init [main];
[main][2:v] overlay=10:10:eval=init;[0:a][1:a] amix" \
-c:v libx264 -profile:v main -b:v 750k -minrate 400k -maxrate 1000k -bufsize 1000k \
-ar 44100 -c:a libfdk_aac -ac 2 \
-f flv -x264opts "keyint=30:min-keyint=30" \
rtmp://127.0.0.1:1935/yanked/mux-TgeYV
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 3 2014 14:11:04 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/home/streaming/ffmpeg_build --extra-cflags=-I/home/streaming/ffmpeg_build/include --extra-ldflags=-L/home/streaming/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 44.100 / 55. 44.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 10.100 / 4. 10.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[flv @ 0x30f42c0] Stream discovered after head already parsed
Last message repeated 1 times
Input #0, flv, from 'rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 30.33 fps, 30 tbr, 1k tbn, 60 tbc
Stream #0:1: Data: none
Stream #0:2: Audio: aac, 44100 Hz, stereo, fltp
[flv @ 0x325eae0] Stream discovered after head already parsed
[flv @ 0x325eae0] Negative cts, previous timestamps might be wrong.
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-695, dts=0, size=2318
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-629, dts=0, size=3326
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-529, dts=0, size=3507
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-462, dts=0, size=3730
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-362, dts=0, size=3550
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-262, dts=0, size=3660
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-195, dts=0, size=3623
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-95, dts=0, size=3649
[flv @ 0x325eae0] Invalid timestamps stream=0, pts=-29, dts=0, size=3718
[flv @ 0x325eae0] Stream discovered after head already parsed
Input #1, flv, from 'rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #1:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 30.33 fps, 30 tbr, 1k tbn, 60 tbc
Stream #1:1: Data: none
Stream #1:2: Audio: aac, 44100 Hz, stereo, fltp
Input #2, image2, from '/usr/local/WowzaStreamingEngine/content/yanked_75_wide.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #2:0: Video: png, rgba, 75x40, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x316ada0] using SAR=1/1
[libx264 @ 0x316ada0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x316ada0] profile Main, level 3.0
[libx264 @ 0x316ada0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=30 keyint_min=16 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[libx264 @ 0x366c740] using SAR=1/1
[libx264 @ 0x366c740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x366c740] profile Main, level 3.0
[libx264 @ 0x366c740] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=30 keyint_min=16 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[libx264 @ 0x366eb60] using SAR=1/1
[libx264 @ 0x366eb60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x366eb60] profile Main, level 3.0
[libx264 @ 0x366eb60] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=30 keyint_min=16 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[flv @ 0x316a120] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 3 times
[flv @ 0x316a120] at most one video stream is supported in flv
Output #0, flv, to 'rtmp://127.0.0.1:1935/yanked/mux-TgeYV':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 750 kb/s, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc55.68.100 libx264
Stream #0:1: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 750 kb/s, 30 fps, 30 tbn, 30 tbc
Metadata:
encoder : Lavc55.68.100 libx264
Stream #0:2: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 750 kb/s, 30 fps, 30 tbn, 30 tbc
Metadata:
encoder : Lavc55.68.100 libx264
Stream #0:3: Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 128 kb/s (default)
Metadata:
encoder : Lavc55.68.100 libfdk_aac
Stream mapping:
Stream #0:0 (h264) -> setpts
Stream #0:2 (aac) -> amix:input0
Stream #1:0 (h264) -> scale
Stream #1:0 (h264) -> setpts
Stream #1:2 (aac) -> amix:input1
Stream #2:0 (png) -> scale
Stream #2:0 (png) -> overlay:overlay
setpts -> Stream #0:0 (libx264)
setpts -> Stream #0:1 (libx264)
overlay -> Stream #0:2 (libx264)
amix -> Stream #0:3 (libfdk_aac)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
libpostproc 52. 3.100 / 52. 3.100
[flv @ 0x394b2c0] Stream discovered after head already parsed
[flv @ 0x394b2c0] Negative cts, previous timestamps might be wrong.
[flv @ 0x394b2c0] Invalid timestamps stream=0, pts=-11, dts=0, size=643
[flv @ 0x394b2c0] Stream discovered after head already parsed
Input #0, flv, from 'rtmp://127.0.0.1:1935/ourapp/stream-20ef79de-e8fc-4f1d-aaec-07cd1627e058':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 750 kb/s, 30.33 fps, 30 tbr, 1k tbn, 60 tbc
Stream #0:1: Data: none
Stream #0:2: Audio: aac, 44100 Hz, stereo, fltp
[flv @ 0x3ab2840] Stream discovered after head already parsed
[flv @ 0x3ab2840] Negative cts, previous timestamps might be wrong.
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-779, dts=0, size=5539
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-679, dts=0, size=5771
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-613, dts=0, size=5949
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-513, dts=0, size=5834
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-446, dts=0, size=5914
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-346, dts=0, size=5850
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-246, dts=0, size=5984
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-179, dts=0, size=5801
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-79, dts=0, size=5795
[flv @ 0x3ab2840] Invalid timestamps stream=0, pts=-13, dts=0, size=5909
[flv @ 0x3ab2840] Stream discovered after head already parsed
Input #1, flv, from 'rtmp://127.0.0.1:1935/ourapp/stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9':
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 3 2014 14:11:04 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/home/streaming/ffmpeg_build --extra-cflags=-I/home/streaming/ffmpeg_build/include --extra-ldflags=-L/home/streaming/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 44.100 / 55. 44.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 10.100 / 4. 10.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[flv @ 0x37362c0] Stream discovered after head already parsed
[flv @ 0x37362c0] Negative cts, previous timestamps might be wrong.
[flv @ 0x37362c0] Invalid timestamps stream=0, pts=-139, dts=0, size=2340
[flv @ 0x37362c0] Invalid timestamps stream=0, pts=-6, dts=0, size=3235
[flv @ 0x37362c0] Stream discovered after head already parsed
Input #0, flv, from 'rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 30.33 fps, 30 tbr, 1k tbn, 60 tbc
Stream #0:1: Data: none
Stream #0:2: Audio: aac, 44100 Hz, stereo, fltp
[flv @ 0x38e51a0] Stream discovered after head already parsed
Last message repeated 1 times
Input #1, flv, from 'rtmp://127.0.0.1:1935/yanked/buffer_stream-b5c915e3-b14c-4aff-8c93-b2d900ebfeb9':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #1:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 30.33 fps, 30 tbr, 1k tbn, 60 tbc
Stream #1:1: Data: none
Stream #1:2: Audio: aac, 44100 Hz, stereo, fltp
Input #2, image2, from '/usr/local/WowzaStreamingEngine/content/yanked_75_wide.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #2:0: Video: png, rgba, 75x40, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x385d000] using SAR=1/1
[libx264 @ 0x385d000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x385d000] profile Main, level 3.0
[libx264 @ 0x385d000] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=30 keyint_min=16 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[flv @ 0x385c0a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Last message repeated 1 times
Output #0, flv, to 'rtmp://127.0.0.1:1935/yanked/mux-TgeYV':
Metadata:
description : Streaming using built-from-scratch example.
encoder : Lavf55.44.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 750 kb/s, 30 fps, 1k tbn, 30 tbc (default)
Metadata:
encoder : Lavc55.68.100 libx264
Stream #0:1: Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, s16, 128 kb/s (default)
Metadata:
encoder : Lavc55.68.100 libfdk_aac
Stream mapping:
Stream #0:0 (h264) -> scale
Stream #0:2 (aac) -> amix:input0
Stream #1:0 (h264) -> scale
Stream #1:2 (aac) -> amix:input1
Stream #2:0 (png) -> overlay:overlay
overlay -> Stream #0:0 (libx264)
amix -> Stream #0:1 (libfdk_aac)
Press [q] to stop, [?] for help
frame= 845 fps= 13 q=23.0 size= 7076kB time=00:01:09.19 bitrate= 837.6kbits/s dup=0 drop=9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment