[gstreamer-bugs] [Bug 640153] New: [souphttpsrc] enable save-to-disk while playing HTTP streaming
bugzilla at gnome.org
Fri Jan 21 01:27:33 PST 2011
GStreamer | gst-plugins-good | git
Summary: [souphttpsrc] enable save-to-disk while playing HTTP
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: jia-cheng.hu at intel.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Created an attachment (id=178916)
patch for souphttpsrc to enable save-to-disk
Users could save HTTP streaming content while watching it and they can watch it
again later by playing the file saved earlier.
Since souphttpsrc is the actual element doing HTTP download, and it knows the
offset when seek happens. So I modified this plugin to save content being
I added one property in souphttpsrc, save-to-path, and when this property is
set, the content will be saved to the path specified. If save-to-path is NOT
set, the streaming content will NOT be saved. for example:
gst-launch souphttpsrc location=http://some.address.com/meego-demo.mp4
save-to-path=/home/meego/ ! decodebin ! ffmpegcolorspace ! xvimagesink
by executing the command, not only is http://some.address.com/meego-demo.mp4
being played, but also a file, meego-demo.mp4, is saved locally to /home/meego/
in addtion, in some cases when souphttpsrc is not directly used and it is not
straightforward to set properties as the example above. for example,
souphttpsrc could be dynamically assembled by a playbin2 to form a pipeline.
pipeline = gst_element_factory_make("playbin2", "playbin");
apparently there is no appropriate property to set in playbin2 to pass along
the 'save-to-disk' property. to address this, I have an element message with
structure name, prepare-save-to-path, posted during gst_soup_http_src_start, so
that whoever catches this message can get a hold of souphttpsrc and set the
property, 'save-to-path', accordingly.
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs