gstreamer filesrc read file repeat

Stefan Sauer ensonic at hora-obscura.de
Thu Jul 5 04:24:43 PDT 2012


On 07/04/2012 12:13 PM, Aaron wrote:
> Hi,all!
>
>    I have the gst-launch as this command :" gst-launch -v filesrc
> location=/mnt/sdcard/test640x480.avi  ! avidemux name=demux  demux.video_00
> ! ffdec_h264 !  ffmpegcolorspace ! surfaceflingersink ". now I want to
> modify the filesrc source  and the filesrc element can repeat read one  file
> all the time . So i can test my pipeline when the camera is out. i have 
> modify the location of src,size and offset ,but it does not work.so what
> should i do for this goal?
You don't need to modify filesrc, you could query the duration and then
use a semented seek from start-to-end. Then instead of an EOS, you will
receive a segment-done event, where you will resend the seek to loop.

Stefan
>
>    Thank you very much!
>  
>    BR.
>
>    Aaron
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstreamer-filesrc-read-file-repeat-tp4655486.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list