frame loss using avdec_flac

Nicolas Dufresne nicolas at ndufresne.ca
Wed Mar 22 14:29:54 UTC 2017


Le mercredi 22 mars 2017 à 12:26 +0100, Weipeng HE a écrit :
> Hi all,
> 
> I found a strange problem when I play flac files using avdec_flac,
> where 
> there is always some part missing (frame loss). Does anyone have any 
> idea about this?
> 
> I've tried on two different machines (Ubuntu 14.04 and Debian). Both 
> have gstreamer 1.8.1 compiled from source. A sample file is in the 
> attachment. And I tried with:
> 
> $ gst-launch-1.0 -t filesrc location=sample.flac ! flacparse ! 
> avdec_flac ! audioconvert ! rgvolume ! autoaudiosink
> 
> It shows that:
>    Execution ended after 0:00:06.491973718
> 
> but if I use flacenc instead of avdec_flac, it shows:
>    Execution ended after 0:00:07.932173391
> 
> which means that there is 1.5 second missing if using avdec_flac.

I've tested both flacdec and avdec_flac here, on 1.10.4 and it plays
correctly. Maybe it's an ancient bug that has been fixed since.

gst-launch-1.0 filesrc location=sample.flac ! flacparse ! avdec_flac ! pulsesink
gst-launch-1.0 filesrc location=sample.flac ! flacparse ! flacdec ! pulsesink

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170322/802e1a23/attachment.sig>


More information about the gstreamer-devel mailing list