[Libav-user] Encoding to FLAC
Peter Belkner
pbelkner at snafu.de
Sun Dec 14 20:39:12 CET 2014
Resolved myself: The number of frames should be taken from the encoder.
On 12.12.2014 01:03, Peter Belkner wrote:
> Hello,
>
> I'm trying to encode to FLAC via avcodec/avformat. Unfortunately this
> gives invalid FLACs. I'm following "doc/examples/transcoding.c" which,
> of course, makes the problem reproducible.
>
> If I transcode a valid FLAC to FLAC with the example program
> "transcode" I get a FLAC which is not valid according to the FLAC
> reference encoder:
>
> > $ flac -t ./test/output/Track101.flac
> >
> > flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007
> Josh Coalson
> > flac comes with ABSOLUTELY NO WARRANTY. This is free software, and
> you are
> > welcome to redistribute it under certain conditions. Type `flac'
> for details.
> >
> > Track101.flac: ERROR, MD5 signature mismatch
>
> Such a FLAC can't be played with a typical FLAC decoder, but with FFmpeg.
>
> On the other hand, the command line "ffmpeg" program produces valid
> FLACs.
>
> What's the difference between "ffmpeg" and "transcode"? What's missing
> in "transcode"?
>
> Peter
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
More information about the Libav-user
mailing list