[FFmpeg-user] Concatenated H.264 or H.265 might not play correctly.drop=#

Luke Davis l1 at newanswertech.com
Tue Jul 22 05:26:53 CEST 2014


Hello

I am taking streamed data from QuickTime Broadcaster.  It streams audio on one 
port, and H264 video on another port.
I am receiving that data with FFMpeg, and creating an HLS of MPEGTS segments from it.

The stream works fine most of the time, but I receive the following, 
continuously:

[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=0
 	... After about five minutes ...
[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4
[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4
[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4
[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=4
[mpegts @ 0x21e21a0] Using AVStream.codec.time_base as a timebase hint to the 
muxer is deprecated. Set AVStream.time_base instead.
     Last message repeated 1 times
[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=5
[sdp @ 0x1fcc0a0] Concatenated H.264 or H.265 might not play correctly.drop=5

The drop number increases over time.

The source is sending 15 FPS, with a keyframe every 5.

So my questions are:

1.  What damage is actually happening to my outgoing stream here, and is this a 
problem that can eventually disrupt the stream?  I assume it is frames being 
dropped?

2.  Is there any way to solve this, other than not using H264?  I can use MPEG 
video, but the quality is less (looks noticeably worse).

3.  If it is not solvable, is there any way to suppress the warning without 
losing other potentially helpful warnings?

4.  What about this timebase warning?  What am I doing wrong to cause that?

Command line:

ffmpeg  -i /home/streamer/origin.sdp \
-acodec libfdk_aac -ac 2 -b:a 128k -vcodec libx264 -vpre libx264-ipod640 -b:v 
500k -threads 0 -g 75 -level 3.1 \
-map 0 -vbsf h264_mp4toannexb \
-flags -global_header -f segment \
-segment_time 10 \
-segment_list stream.m3u8 -segment_list_flags +live -segment_list_size 9  \
-segment_list_entry_prefix "$url" -segment_format mpegts stream%05d.ts

Full console output before errors:

ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
   built on Jul 18 2014 04:01:59 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
   configuration: --prefix=/usr/local/ffmpeg_build 
--extra-cflags=-I/usr/local/ffmpeg_build/include 
--extra-ldflags=-L/usr/local/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. 92.101 / 52. 92.101
   libavcodec     55. 69.100 / 55. 69.100
   libavformat    55. 48.101 / 55. 48.101
   libavdevice    55. 13.102 / 55. 13.102
   libavfilter     4. 11.102 /  4. 11.102
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
[sdp @ 0x30410a0] Concatenated H.264 or H.265 might not play correctly.
Input #0, sdp, from '/home/streamer/origin.sdp':
   Metadata:
     title           : QuickTime
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp
     Stream #0:1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 
720x480, 14.99 tbr, 90k tbn, 180k tbc
     Metadata:
       encoder         : H.264
[libx264 @ 0x314a9e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x314a9e0] profile Constrained Baseline, level 3.0
[segment @ 0x3133340] Codec for stream 0 does not use global headers but 
container format requires global headers
[segment @ 0x3133340] Codec for stream 1 does not use global headers but 
container format requires global headers
[mpegts @ 0x3235120] 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, segment, to 'stream%05d.ts':
   Metadata:
     title           : QuickTime
     encoder         : Lavf55.48.101
     Stream #0:0: Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 128 kb/s
     Metadata:
       encoder         : Lavc55.69.100 libfdk_aac
     Stream #0:1: Video: h264 (libx264), yuv420p, 720x480, q=-1--1, 500 kb/s, 
14.99 fps, 14.99 tbn, 14.99 tbc
     Metadata:
       encoder         : Lavc55.69.100 libx264
Stream mapping:
   Stream #0:0 -> #0:0 (aac (native) -> aac (libfdk_aac))
   Stream #0:1 -> #0:1 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[sdp @ 0x30410a0] Concatenated H.264 or H.265 might not play correctly.rop=0
frame=   42 fps= 41 q=0.0 size=N/A time=00:00:03.02 bitrate=N/A dup=2 drop=0

Note, in the above run, it kept running with drop=0.  It eventually did start 
increasing, however.

[sdp @ 0x30410a0] Concatenated H.264 or H.265 might not play correctly.drop=3
frame= 5974 fps= 15 q=26.0 size=N/A time=00:06:39.00 bitrate=N/A dup=6 drop=3

Thanks for any help

Luke



More information about the ffmpeg-user mailing list