frame loss using avdec_flac

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

frame loss using avdec_flac

Weipeng He
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.

Thanks in advance.

Best,
Weipeng

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

sample.flac (119K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: frame loss using avdec_flac

Weipeng He
On 22/03/17 12:26, Weipeng HE wrote:

> 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:
                ^^^^^^^
Sorry I mean flacdec

>   Execution ended after 0:00:07.932173391
>
> which means that there is 1.5 second missing if using avdec_flac.
>
> Thanks in advance.
>
> Best,
> Weipeng

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: frame loss using avdec_flac

Nicolas Dufresne-5
In reply to this post by Weipeng He
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: frame loss using avdec_flac

Weipeng He
Hi Nicolas,

I've tried with 1.10.4, and it works correctly.
Thanks a lot.

Best,
Weipeng

On 22/03/17 15:29, Nicolas Dufresne wrote:

> 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
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel