Duration recalculation

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

Duration recalculation

arnaud tonda
Hi everybody,

i'm facing a little annoying problem.

to give you the context, i get some satellite DVB streams from a DVB card. this stream is saved on a .ts file.

i must record the stream to be able to control this "pseudo-llive" stream.

the idea is to play this file with gstreamer.

the problem i have is that the duration of the stream is never updated.
So when i get the duration with a gst_element_query_duration(), the returned duration is the one calculated at gstreamer start time. but in my case it's not right the file is filled permanently and the duration evolves.


**********************************************
GST_MESSAGE_DURATION

Is posted by an element that detected a change in the stream duration. The default bin behaviour is to clear any cached duration values so that the next duration query will perform a full duration recalculation. The duration change is posted to the application so that it can refetch the new duration with a duration query. Note that these messages can be posted before the bin is prerolled, in which case the duration query might fail.
**********************************************

but i never receive this message.

is there any way to force the pipeline (or playbin, or some other element) to update this duration?
or a method to manually clear the cached duration?

i hope i was clear

Best regards

--
Arnaud Tonda


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

Re: Duration recalculation

pranshu24
Can any help me with the pipeline to play 720p .mp4 files on Gstreamer,
I am playing it on Beagleboard.


On Thu, Aug 11, 2011 at 7:22 PM, arnaud tonda <[hidden email]> wrote:
Hi everybody,

i'm facing a little annoying problem.

to give you the context, i get some satellite DVB streams from a DVB card. this stream is saved on a .ts file.

i must record the stream to be able to control this "pseudo-llive" stream.

the idea is to play this file with gstreamer.

the problem i have is that the duration of the stream is never updated.
So when i get the duration with a gst_element_query_duration(), the returned duration is the one calculated at gstreamer start time. but in my case it's not right the file is filled permanently and the duration evolves.


**********************************************
GST_MESSAGE_DURATION

Is posted by an element that detected a change in the stream duration. The default bin behaviour is to clear any cached duration values so that the next duration query will perform a full duration recalculation. The duration change is posted to the application so that it can refetch the new duration with a duration query. Note that these messages can be posted before the bin is prerolled, in which case the duration query might fail.
**********************************************

but i never receive this message.

is there any way to force the pipeline (or playbin, or some other element) to update this duration?
or a method to manually clear the cached duration?

i hope i was clear

Best regards

--
Arnaud Tonda


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




--
Pranshu Nahar
B.E(Hons)EEE,Msc(Hons)Mathematics 
Bits-Pilani


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