Download http stream to local disk and play from downloading location

Ian Davidson id012c3076 at blueyonder.co.uk
Fri Jun 26 07:05:43 PDT 2015


My understanding is that the AVI format has important information 
written as a trailer at the end of the file.  In that case, playback 
cannot begin until the entire file has been downloaded.

Ian

On 26/06/2015 14:25, Bhavya wrote:
> Hi Guys,
>
> I am trying to download and play http stream simultaneously
>
> Download http stream
>
> gst-launch-0.10 souphttpsrc location=http://192.168.0.144/Test.avi ! queue2
> ! filesink location=Download.avi
>
> Meanwhile through other pipeline start playback from downloading location
>
> gst-launch-0.10 filesrc location=Download.avi ! avidemux name=demux demux. !
> queue ! ffdec_h264 ! autovideosink demux. ! queue ! ffdec_mp3 ! alsasink
>
> Now problem with above logic is, video doesn't play completely.
>
> Is this because filesrc caches entire file when pipeline set to play, so
> data downloaded until that is played?  OR
> Do we need to set some property of filesink to make sure it as written to
> actual location?
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Download-http-stream-to-local-disk-and-play-from-downloading-location-tp4672469.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