#5750: ffmpeg generates rarerly PCR for mpegts with multiple video streams copy and muxrate specified. -------------------------------------+------------------------------------- Reporter: xzerth | Owner: Type: defect | Status: new Priority: normal | Component: Version: unspecified | undetermined Keywords: mpegts | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+-------------------------------------
Comment (by tmaxwell): I hit a very similar issue by demuxing a TS file which has multiple video and audio streams. (Different resolutions and different compressions) My command line was: ffmpeg -i big.ts -map 0:0 -vcodec copy video01.ts The output file had PCR entries sporadically, ~23ms - ~8s intervals random. I executed ffmpeg on Windows and tried 2 versions: ffmpeg-20180319-e4eaaf7-win64-static --> issue can be reproduced ffmpeg-20140525-git-f276bf3-win64-static --> output has PCR every 67ms I checked out the 2014 version from GIT (f276bf303cbb7a8fed3c388135007bc29f45f8d5) and run it on Linux. It worked fine. Something had to happen between 2014 and 2016 which broke the functionality. As soon as I will have some time I will try to find out which commit broke the code. Output PCR differences using the 20180319 version: (seconds) 1.735, 1.969, 3.303, 2.035, 4.771, 1.201, 1.134, 0.968, 1.001, 1.001, 1.502, 1.502, 1.201, 8.308, 1.168, 2.069 and using the 20140525 version: (seconds) 0.067, 0.067, 0.067, 0.067, 0.067, 0.067, 0.067 Original file has PCR values in every 0.067 seconds (sometimes 0.033 seconds) Output of the 2014 version: {{{ ffmpeg version N-63418-gf276bf3 Copyright (c) 2000-2014 the FFmpeg developers built on May 24 2014 22:09:02 with gcc 4.8.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable- libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable- libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable- libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable- libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable- decklink --enable-zlib libavutil 52. 86.100 / 52. 86.100 libavcodec 55. 65.100 / 55. 65.100 libavformat 55. 40.100 / 55. 40.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 5.100 / 4. 5.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 00000000054e8c40] mmco: unref short failure Last message repeated 1 times [h264 @ 00000000054e8c40] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one Input #0, mpegts, from 'big.ts': Duration: 00:10:00.14, start: 1.400000, bitrate: 21551 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:2[0x102]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:3[0x103]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:4[0x104]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:5[0x105]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:6[0x106]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:7[0x107]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:8[0x108]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:9[0x109](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:10[0x10a](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 96 kb/s Stream #0:11[0x10b](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 63 kb/s Stream #0:12[0x10c](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 50 kb/s Stream #0:13[0x10d](eng): Audio: eac3 ([135][0][0][0] / 0x0087), 48000 Hz, 5.1(side), fltp, 256 kb/s Output #0, mpegts, to 'video01.ts': Metadata: encoder : Lavf55.40.100 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 480x270 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame=17953 fps=7835 q=-1.0 Lsize= 9524kB time=00:09:59.03 bitrate= 130.2kbits/s video:6840kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 39.238743% }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/5750#comment:15> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac