[libav-bugs] [Bug 490] New: Fails to remux mkv with h.264 video stream to mp4 container

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Wed Apr 10 15:37:13 CEST 2013


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

           Summary: Fails to remux mkv with h.264 video stream to mp4
                    container
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: libavformat
        AssignedTo: bugzilla at libav.org
        ReportedBy: kjtsanaktsidis at gmail.com


Hello,

I'm trying to use avconv to convert an mkv file with h264 video and ac3 audio
to a mp4 file with h264 video and aac audio, playable on a playstation 3. I did
this by running the following command:

>avconv -i small-sample-file.mkv -c:v copy -c:a libfaac -sn output.mp4

In both libav-9.4 and git HEAD, avconv immediately exits with the following
message: 

>[mp4 @ 0x9e55460] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 83 >= 42
>av_interleaved_write_frame(): Invalid argument

A small sample file that reproduces this behavior on my machine can be found
here: https://dl.dropbox.com/u/24050078/small-sample-file.mkv

The following is the verbose output from avconv:

>avconv version v9-973-g20429ba, Copyright (c) 2000-2013 the Libav developers
>  built on Apr 10 2013 23:20:50 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
>  configuration: --enable-libfaac --enable-nonfree --enable-libmp3lame --enable-libx264 --enable-libfreetype --cpu=atom --enable-static --enable-gpl
>  libavutil     52. 10. 0 / 52. 10. 0
>  libavcodec    55.  1. 0 / 55.  1. 0
>  libavformat   55.  0. 0 / 55.  0. 0
>  libavdevice   54.  0. 0 / 54.  0. 0
>  libavfilter    3.  7. 0 /  3.  7. 0
>  libavresample  1.  1. 0 /  1.  1. 0
>  libswscale     2.  1. 1 /  2.  1. 1
>Splitting the commandline.
>Reading option '-v' ... matched as option 'v' (set libav* logging level) with argument '9'.
>Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument '99'.
>Reading option '-i' ... matched as input file with argument 'small-sample-file.mkv'.
>Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
>Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libfaac'.
>Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'.
>Reading option 'output.mp4' ... matched as output file.
>Finished splitting the commandline.
>Parsing a group of options: global .
>Applying option v (set libav* logging level) with argument 9.
>Successfully parsed a group of options.
>Parsing a group of options: input file small-sample-file.mkv.
>Successfully parsed a group of options.
>Opening an input file: small-sample-file.mkv.
>[matroska,webm @ 0x9cad060] Probed with size=2048 and score=100
>st:0 removing common factor 1000000 from timebase
>st:1 removing common factor 1000000 from timebase
>st:2 removing common factor 1000000 from timebase
>[matroska,webm @ 0x9cad060] All info found
>Input #0, matroska,webm, from 'small-sample-file.mkv':
>  Duration: 00:57:05.44, start: 0.000000, bitrate: N/A
>    Stream #0.0(eng), 1, 1/1000: Video: h264 (High), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 0/1, 23.98 fps, 1k tbn (default)
>    Stream #0.1(eng), 1, 1/1000: Audio: ac3, 48000 Hz, 5.1, fltp, 384 kb/s (default)
>    Stream #0.2(eng), 0, 1/1000: Subtitle: [0][0][0][0] / 0x0000 (default)
>Successfully opened the file.
>Parsing a group of options: output file output.mp4.
>Applying option c:v (codec name) with argument copy.
>Applying option c:a (codec name) with argument libfaac.
>Applying option sn (disable subtitle) with argument 1.
>Successfully parsed a group of options.
>Opening an output file: output.mp4.
>File 'output.mp4' already exists. Overwrite ? [y/N] y
>Successfully opened the file.
>[abuffer @ 0x9cb0da0] tb:1/48000 samplefmt:fltp samplerate: 48000 ch layout:0x60f
>[aformat @ 0x9cb0ce0] This syntax is deprecated, use '|' to separate channel layout.
>[abuffersink @ 0x9caf3c0] auto-inserting filter 'auto-inserted fifo 0' between the filter 'audio format for output stream 0:1' and the filter 'output stream 0:1'
>[aformat @ 0x9cb0ce0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed filter 0 anull' and the filter 'audio format for output stream 0:1'
>[AVAudioResampleContext @ 0x9cb3380] Using fltp as internal sample format
>[AVAudioResampleContext @ 0x9cb3380] audio_convert: found function: fltp to s16  (C)
>[AVAudioResampleContext @ 0x9cb3380] audio_convert: found function: fltp to s16  (SSE)
>[AVAudioResampleContext @ 0x9cb3380] audio_convert: found function: fltp to s16  (SSE2)
>[AVAudioResampleContext @ 0x9cb3380] audio_mix: 5.1 to 5.1
>[AVAudioResampleContext @ 0x9cb3380] matrix size: 0 x 0
>[AVAudioResampleContext @ 0x9cb3380]   (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)
>[AVAudioResampleContext @ 0x9cb3380]   (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)
>[AVAudioResampleContext @ 0x9cb3380]   (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)
>[AVAudioResampleContext @ 0x9cb3380]   (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)
>[AVAudioResampleContext @ 0x9cb3380]   (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)
>[AVAudioResampleContext @ 0x9cb3380]   (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)  (SKIP)
>[resample @ 0x9cb3a20] fmt:fltp srate:48000 cl:5.1 -> fmt:s16 srate:48000 cl:5.1
>Output #0, mp4, to 'output.mp4':
>  Metadata:
>    encoder         : Lavf55.0.0
>    Stream #0.0(eng), 0, 1/1000: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 1/1000, q=2-31, 1k tbn, 1k tbc (default)
>    Stream #0.1(eng), 0, 1/48000: Audio: libfaac, 48000 Hz, 5.1, s16, 200 kb/s (default)
>Stream mapping:
>  Stream #0:0 -> #0:0 (copy)
>  Stream #0:1 -> #0:1 (ac3 -> libfaac)
>Press ctrl-c to stop encoding
>[mp4 @ 0x9caf480] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 83 >= 42
>av_interleaved_write_frame(): Invalid argument

Thanks for taking the time to look at this!

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list