[FFmpeg-trac] #6686(undetermined:new): Transcoding dvb recording fails
FFmpeg
trac at avcodec.org
Sat Sep 23 14:56:49 EEST 2017
#6686: Transcoding dvb recording fails
-------------------------------------+-------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: new
Priority: important | Component:
Version: git- | undetermined
master | Keywords: h264 dts
Blocked By: | regression
Reproduced by developer: 0 | Blocking:
| Analyzed by developer: 0
-------------------------------------+-------------------------------------
I see an issue here with the sample from ticket #6647 that seems unrelated
to ''wrong frame rate'' mentioned there.
A 140 second dvb recording was uploaded that (most likely) has a reception
error approximately in the middle. MPlayer and FFplay show an issue at
that point (after 58 seconds) but recover A/V sync quickly.
Transcoding with FFmpeg produced playable output files in the past (with
apparently correct A/V sync a few seconds after the reception issue),
produces an unplayable output file now, massive A/V desync. Regression
since 1e5271a9fd6ddcceb083f2185a4bbd8d44c9a813, (possibly) related to
tickets #2143, #424, #1715, #1866, #2337, #2607, #3452, #3658, #4853 and
#6065.
{{{
$ ffmpeg -async 1 -i growing_pains.ts -strict -2 -qscale 2 out.mov
ffmpeg version N-87363-g2ad1768 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl
libavutil 55. 76.100 / 55. 76.100
libavcodec 57.106.101 / 57.106.101
libavformat 57. 82.101 / 57. 82.101
libavdevice 57. 8.101 / 57. 8.101
libavfilter 6.106.100 / 6.106.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mpegts, from 'growing_pains.ts':
Duration: 00:02:20.68, start: 1091.570889, bitrate: 3572 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448),
yuv420p(tv, bt709, progressive), 720x480 [SAR 32:27 DAR 16:9], 59.94 fps,
59.94 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
fltp, 384 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
-async is forwarded to lavfi similarly to -af
aresample=async=1:min_hard_comp=0.100000:first_pts=0.
Output #0, mov, to 'out.mov':
Metadata:
encoder : Lavf57.82.101
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 720x480 [SAR
32:27 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 60k tbn, 59.94 tbc
Metadata:
encoder : Lavc57.106.101 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 128 kb/s
Metadata:
encoder : Lavc57.106.101 aac
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=103536530,
dts=8580406372, size=25952=0 speed=11.4x
[h264 @ 0x27feba0] error while decoding MB 34 5, bytestream -12
[h264 @ 0x27feba0] concealing 1140 DC, 1140 AC, 1140 MV errors in P frame
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=103542536,
dts=8580407873, size=3910
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=103538032,
dts=8580409375, size=2482
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=103539533,
dts=8580410876, size=3451
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=103541035,
dts=8580412378, size=5876
[mpegts @ 0x3778e20] Invalid timestamps stream=0, pts=103548542,
dts=8580413879, size=12301
[mpegts @ 0x3778e20] Invalid timestamps stream=0, pts=103544038,
dts=8580415381, size=3667
[mpegts @ 0x3778e20] Invalid timestamps stream=0, pts=103545539,
dts=8580416882, size=2776
[mpegts @ 0x3778e20] Invalid timestamps stream=0, pts=103547041,
dts=8580418384, size=4202
[mpegts @ 0x3778e20] Invalid timestamps stream=0, pts=103554548,
dts=8580419885, size=8860
[mpegts @ 0x3778e20] Invalid timestamps stream=0, pts=103550044,
dts=8580421387, size=3739
More than 1000 frames duplicated
...
...
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=110901080,
dts=8587766417, size=9501
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=110896576,
dts=8587767919, size=3470
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=110898077,
dts=8587769420, size=3601
[mpegts @ 0x27a4e20] Invalid timestamps stream=0, pts=110899579,
dts=8587770922, size=4151
More than 10000 frames duplicated
frame=83723 fps=2054 q=2.0 Lsize= 267713kB time=00:23:16.76
bitrate=1570.1kbits/s dup=79843 drop=4516 speed=34.3x
video:265075kB audio:2211kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.159583%
[aac @ 0x27f5220] Qavg: 718.373
}}}
Sample in http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket6647/
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6686>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list