[vlc-devel] ffmpeg VP8 encoder & pts weirdness

Francois Cartegnie fcvlcdev at free.fr
Sat Jan 11 03:15:45 CET 2014


Le 06/01/2014 16:28, Luca Barbato a écrit :
> On 05/01/14 23:15, Francois Cartegnie wrote:
>> But that last assert still -randomly- fails with the same input data,
>> negative values other than AV_NOPTS_VALUE. Likely a bug somewhere.
> 
> Negative timestamp can be expected for audio codecs mostly do you have a
> testcase I can play with?

I was expecting to send input file, but after more tests, it happens
with any input (just run it many times).

Chain:
./vlc --stop-time=5 --intf=dummy ~/Vidéos/anyvideo.avi  --sout
"#transcode{vcodec=VP80,vb=800,scale=1,deinterlace=0,acodec=vorbis,ab=128,channels=2,samplerate=44100}:std{access=file{overwrite},mux=ogg,dst='/tmp/test.ogv'}"
$@

With an assert somewhere in:
modules/codec/acvodec/encoder.c  from line 1022
#if (LIBAVCODEC_VERSION_MAJOR >= 54)
    AVPacket av_pkt;
    int is_data;

    av_init_packet( &av_pkt );
    av_pkt.data = p_block->p_buffer;
    av_pkt.size = p_block->i_buffer;
.
.
.

    if( unlikely( av_pkt.flags & AV_PKT_FLAG_CORRUPT ) )
    {
        p_block->i_flags |= BLOCK_FLAG_CORRUPTED;
    }

    assert( p_block->i_dts > 0 ); <-- My added failing assert
#else


Francois



More information about the vlc-devel mailing list