[libav-tools] ffmpeg/avconv: negative bitrate

Luca Barbato lu_zero at gentoo.org
Thu Dec 27 16:43:43 CET 2012


On 12/27/12 01:46, Daniel Franke wrote:
> Hi all.
> 
> I hope this is the right place for my problem.
> 
> Generally I have no trouble backing my DVDs up to a NAS using ffmpeg/avconv 
> through k9copy, but one set of DVDs gives me a headache due to a reported 
> duration of 1 sec and a negative bitrate. During the copy process everything 
> seems fine, but when copy is complete, the problem becomes obvious:
> 
> $ avconv -i unknown.mpg 
> avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the 
> Libav developers
>   built on Nov  6 2012 16:50:25 with gcc 4.6.3
> [mpeg @ 0x99e7240] max_analyze_duration reached
> Input #0, mpeg, from 'unknown.mpg':
>   Duration: 00:00:46.72, start: 0.287267, bitrate: 6461 kb/s
> [...]
>   Duration: 00:16:02.68, start: 0.287267, bitrate: 5158 kb/s
> [...]
>   Duration: 00:39:47.36, start: 0.287267, bitrate: 5439 kb/s
> [...]
>   Duration: 00:00:01.05, start: 0.287267, bitrate: -2147483 kb/s
>     Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 
> DAR 16:9], 8500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
>     Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
>     Stream #0.2[0x22]: Subtitle: dvdsub
>     Stream #0.3[0x21]: Subtitle: dvdsub
> 
> $ ls -lh unknown.mpg 
> -rw-r--r-- 1 daniel users 1.6G Dec 27 01:24 unknown.mpg
> 
> Interestingly, XINE gives a total duration of ~22 minutes when showing the 
> .mpg (actual runtime is ~41 minutes), but other players, in particular the 
> Plex Media Server and client which I use for everything else with that NAS, 
> are picky about this and refuse to handle the files in any usable way.
> 
> Is this a known problem? Any suggestions how to work aorund or fix this issue? 

Using vlc to streamcopy them works? I'm not 100% sure the problem lies
on our side (muxing) or the other (decipher and demux) since for the
other DVD apparently works fine for you. (and the muxing part should be
the same nonetheless).

lu



More information about the libav-tools mailing list