[FFmpeg-trac] #3797(undetermined:new): Latest trunk is not syncing audio/video from RTSP

FFmpeg trac at avcodec.org
Wed Jul 23 18:43:21 CEST 2014


#3797: Latest trunk is not syncing audio/video from RTSP
-------------------------------------+-------------------------------------
             Reporter:  hackeron     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by hackeron):

 I will try to narrow down when the breaking change happened but it is
 between 2014/04/09 and 2014/07/18 (today's trunk is also broken
 2014/07/23).

 Here are the complete uncut console outputs from the working and non
 working versions of ffmpeg:

 2014/04/09 working version:

 {{{
 deployer at XanBox:~/test$ ffmpeg -use_wallclock_as_timestamps 1
 -rtsp_transport tcp -i rtsp://localhost:10103/proxyStream -dn -map 0
 -codec:a libfdk_aac -flags +qscale -global_quality 1 -afterburner 1 -ar
 44100 -codec:v copy -f segment -segment_time 60 -segment_wrap 10
 -segment_list_flags live -segment_list_size 10 -reset_timestamps 1
 -segment_list test.csv -y test_%02d.mkv
 ffmpeg version N-62296-g4484152 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Apr  9 2014 09:19:33 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --enable-pic --enable-shared --extra-ldflags=-ldl
 --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
 --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3
 --extra-cflags=-fPIC --extra-ldflags=-fPIC
   libavutil      52. 75.100 / 52. 75.100
   libavcodec     55. 58.103 / 55. 58.103
   libavformat    55. 36.102 / 55. 36.102
   libavdevice    55. 11.100 / 55. 11.100
   libavfilter     4.  3.100 /  4.  3.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [tcp @ 0x17c1500] Connection to tcp://localhost:10103?timeout=0 failed
 (Connection refused), trying next address
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, rtsp, from 'rtsp://localhost:10103/proxyStream':
   Metadata:
     title           : LIVE555 Streaming Media v2014.07.18
     comment         : LIVE555 Streaming Media v2014.07.18
   Duration: N/A, start: 1406133663.110367, bitrate: 64 kb/s
     Stream #0:0: Video: h264 (High), yuvj420p(pc), 1920x1080, 12.50 fps,
 12.50 tbr, 90k tbn, 25 tbc
     Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
 [libfdk_aac @ 0x18d4720] Note, the VBR setting is unsupported and only
 works with some parameter combinations
 Output #0, segment, to 'test_%02d.mkv':
   Metadata:
     title           : LIVE555 Streaming Media v2014.07.18
     comment         : LIVE555 Streaming Media v2014.07.18
     encoder         : Lavf55.36.102
     Stream #0:0: Video: h264, yuvj420p, 1920x1080, q=2-31, 12.50 fps, 90k
 tbn, 12.50 tbc
     Stream #0:1: Audio: aac (libfdk_aac), 44100 Hz, mono, s16
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (pcm_mulaw -> libfdk_aac)
 Press [q] to stop, [?] for help
 [libfdk_aac @ 0x18d4720] Queue input is backward in time
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 83051, current: 81429; changing to 83052. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x18d4720] Queue input is backward in time
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 163451, current: 162873; changing to 163452. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x18d4720] Queue input is backward in timerate=N/A
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 200406, current: 198233; changing to 200407. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 200407, current: 200322; changing to 200408. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x18d4720] Queue input is backward in time
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 231963, current: 229880; changing to 231964. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x18d4720] Queue input is backward in timerate=N/A
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 268761, current: 267173; changing to 268762. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x18d4720] Queue input is backward in timerate=N/A
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 370937, current: 367886; changing to 370938. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x17c6d00] Non-monotonous DTS in output stream 0:1; previous:
 370938, current: 369976; changing to 370939. This may result in incorrect
 timestamps in the output file.
 frame=   78 fps= 21 q=-1.0 Lsize=N/A time=00:00:05.30 bitrate=N/A
 }}}


 2014/07/18 broken version:


 {{{
 ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i
 rtsp://localhost:10103/proxyStream -dn -map 0 -codec:a libfdk_aac -flags
 +qscale -global_quality 1 -afterburner 1 -ar 44100 -codec:v copy -f
 segment -segment_time 60 -segment_wrap 10 -segment_list_flags live
 -segment_list_size 10 -reset_timestamps 1 -segment_list test.csv -y
 test_%02d.mkv
 ffmpeg version N-64763-gcb8cb85 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 18 2014 16:39:59 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
   configuration: --enable-pic --enable-shared --extra-ldflags=-ldl
 --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-
 amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis
 --enable-libx264 --enable-nonfree --enable-version3 --extra-cflags=-fPIC
 --extra-ldflags=-fPIC
   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
 [tcp @ 0x1c60760] Connection to tcp://localhost:10103?timeout=0 failed
 (Connection refused), trying next address
 Guessed Channel Layout for  Input Stream #0.1 : mono
 Input #0, rtsp, from 'rtsp://localhost:10103/proxyStream':
   Metadata:
     title           : LIVE555 Streaming Media v2014.07.18
     comment         : LIVE555 Streaming Media v2014.07.18
   Duration: N/A, start: 1406133752.034367, bitrate: 64 kb/s
     Stream #0:0: Video: h264 (High), yuvj420p(pc), 1920x1080, 12.50 fps,
 12.50 tbr, 90k tbn, 25 tbc
     Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
 [libfdk_aac @ 0x1d09d60] Note, the VBR setting is unsupported and only
 works with some parameter combinations
 [matroska @ 0x1c490c0] 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 'test_%02d.mkv':
   Metadata:
     title           : LIVE555 Streaming Media v2014.07.18
     comment         : LIVE555 Streaming Media v2014.07.18
     encoder         : Lavf55.48.101
     Stream #0:0: Video: h264, yuvj420p, 1920x1080, q=2-31, 12.50 fps,
 12.50 tbn, 12.50 tbc
     Stream #0:1: Audio: aac (libfdk_aac), 44100 Hz, mono, s16
     Metadata:
       encoder         : Lavc55.69.100 libfdk_aac
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (pcm_mulaw (native) -> aac (libfdk_aac))
 Press [q] to stop, [?] for help
 [libfdk_aac @ 0x1d09d60] Queue input is backward in time
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 15703, current: 15035; changing to 15704. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x1d09d60] Queue input is backward in time
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 20155, current: 19062; changing to 20156. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 20156, current: 20086; changing to 20157. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x1d09d60] Queue input is backward in time
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 30812, current: 29659; changing to 30813. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 30813, current: 30683; changing to 30814. This may result in incorrect
 timestamps in the output file.
 [libfdk_aac @ 0x1d09d60] Queue input is backward in time
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 59280, current: 59130; changing to 59281. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 17, current: 17; changing to 18. This may result in incorrect timestamps
 in the output file.
 [libfdk_aac @ 0x1d09d60] Queue input is backward in time
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 70136, current: 68999; changing to 70137. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 70137, current: 70023; changing to 70138. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 18, current: 18; changing to 19. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 19, current: 19; changing to 20. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 20, current: 20; changing to 21. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 21, current: 21; changing to 22. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 22, current: 22; changing to 23. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 24, current: 24; changing to 25. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 25, current: 25; changing to 26. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 26, current: 26; changing to 27. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 27, current: 26; changing to 28. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 28, current: 27; changing to 29. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 29, current: 28; changing to 30. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 30, current: 28; changing to 31. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 31, current: 29; changing to 32. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 32, current: 30; changing to 33. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 33, current: 31; changing to 34. This may result in incorrect timestamps
 in the output file.
 [libfdk_aac @ 0x1d09d60] Queue input is backward in time
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:1; previous:
 115859, current: 114860; changing to 115860. This may result in incorrect
 timestamps in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 34, current: 32; changing to 35. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 35, current: 33; changing to 36. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 36, current: 34; changing to 37. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 37, current: 35; changing to 38. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 38, current: 36; changing to 39. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 39, current: 37; changing to 40. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 40, current: 38; changing to 41. This may result in incorrect timestamps
 in the output file.
 [segment @ 0x1c663e0] Non-monotonous DTS in output stream 0:0; previous:
 41, current: 38; changing to 42. This may result in incorrect timestamps
 in the output file.
 frame=   27 fps= 17 q=-1.0 Lsize=N/A time=00:00:03.44 bitrate=N/A
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3797#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list