[libav-bugs] [Bug 516] Streamcopy from mpeg to mkv does not work

bugzilla at libav.org bugzilla at libav.org
Mon Jun 15 23:25:07 CEST 2015


https://bugzilla.libav.org/show_bug.cgi?id=516

--- Comment #4 from Nikoli <nikoli at gmx.us> ---
Tried libav-11.3, it does not crash, but prints same error and remuxed file has
unknown for mediainfo, mpv and vlc duration:

$ time avconv -fflags genpts -i t/dvd.dump -codec copy t/remux3.mkv
avconv version 11.3, Copyright (c) 2000-2014 the Libav developers
  built on Apr 15 2015 17:07:58 with gcc 4.8.4 (Gentoo Hardened 4.8.4 p1.4,
pie-0.6.1)
[mpeg @ 0x3437305ae0] max_analyze_duration 5000000 reached
Input #0, mpeg, from 't/dvd.dump':
  Duration: 00:00:39.23, start: 0.280000, bitrate: 1328041 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15
DAR 4:3], 5000 kb/s, 25 fps, 90k tbn, 50 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Output #0, matroska, to 't/remux3.mkv':
  Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
q=2-31, 5000 kb/s, 1k tbn, 90k tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
Can't write packet with unknown timestamp09kB time=9333.12
bitrate=5415.3kbits/s    
av_interleaved_write_frame(): Invalid argument

real    0m17.838s
user    0m8.235s
sys     0m7.759s

$ du -sm t/dvd.dump t/remux3.mkv
6212    t/dvd.dump
6091    t/remux3.mkv

$ avprobe t/dvd.dump;avprobe t/remux3.mkv
avprobe version 11.3, Copyright (c) 2007-2014 the Libav developers
  built on Apr 15 2015 17:07:58 with gcc 4.8.4 (Gentoo Hardened 4.8.4 p1.4,
pie-0.6.1)
[mpeg @ 0x7c34c90d80] max_analyze_duration 5000000 reached
Input #0, mpeg, from 't/dvd.dump':
  Duration: 00:00:39.23, start: 0.280000, bitrate: 1328041 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15
DAR 4:3], 5000 kb/s, 25 fps, 90k tbn, 50 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
# avprobe output


avprobe version 11.3, Copyright (c) 2007-2014 the Libav developers
  built on Apr 15 2015 17:07:58 with gcc 4.8.4 (Gentoo Hardened 4.8.4 p1.4,
pie-0.6.1)
[matroska,webm @ 0x5b64b91740] Estimating duration from bitrate, this may be
inaccurate
Input #0, matroska,webm, from 't/remux3.mkv':
  Metadata:
    ENCODER         : Lavf56.1.0
  Duration: 02:44:00.84, start: 0.000000, bitrate: 5191 kb/s
    Stream #0.0: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR
4:3], 5000 kb/s, 25 fps, 1k tbn, 50 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
# avprobe output





'Duration: 02:44:00.84' is wrong: DVD is several mins shorter. After remuxing
again correct duration is visible:

$ time avconv -i t/remux3.mkv -c copy t/remux_remux3.mkv
avconv version 11.3, Copyright (c) 2000-2014 the Libav developers
  built on Apr 15 2015 17:07:58 with gcc 4.8.4 (Gentoo Hardened 4.8.4 p1.4,
pie-0.6.1)
[matroska,webm @ 0x59a6f12b80] Estimating duration from bitrate, this may be
inaccurate
Input #0, matroska,webm, from 't/remux3.mkv':
  Metadata:
    ENCODER         : Lavf56.1.0
  Duration: 02:44:00.84, start: 0.000000, bitrate: 5191 kb/s
    Stream #0.0: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR
4:3], 5000 kb/s, 25 fps, 1k tbn, 50 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Output #0, matroska, to 't/remux_remux3.mkv':
  Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
q=2-31, 5000 kb/s, 1k tbn, 1k tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
frame=235754 fps=18058 q=-1.0 Lsize= 6237301kB time=9430.12
bitrate=5418.4kbits/s    
video:6011893kB audio:221019kB other streams:0kB global headers:0kB muxing
overhead: 0.070420%

real    0m13.112s
user    0m4.684s
sys     0m7.916s

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150615/10af8eef/attachment.html>


More information about the libav-bugs mailing list