Hi,<br><br><div class="gmail_quote">2010/9/13 Zhao, Halley <span dir="ltr"><<a href="mailto:halley.zhao@intel.com">halley.zhao@intel.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks Stefan.<br>
After add a 'queue' after 'souphttpsrc' and use 'decodebin2'; I still got same result.<br>
<br>
I think the possible solution is to enhance souphttpsrc to save content to disk after some refractor, because souphttpsrc does some seek following the command of parser.<br>
<br>
Attached mp4.log is the log of souphttpsrc, it seek to the end of the mp4 file at the beginning of playback. Finally, tail of the original mp4 file is missing in downloaded mp4 file.<br></blockquote><div><br>It looks like you're not re-muxing the content. Are you simply storing the raw mp4 data to a file or are you using a muxer before the filesink? What does mp4info tell about your output file?<br>
<br>You may try and recover the saved files with mp4mux using the option "moov-recovery-file". What happens if you transmux the files using it?<br><br>Regards<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888">halley@halley-lucid:~/swap/streaming/mp4$ ls -l<br>
total 5216<br>
-rwxr--r-- 1 halley halley 1776915 2010-09-08 23:08 download.mp4<br>
-rw-r--r-- 1 halley halley 1773281 2010-09-08 18:15 original.mp4<br>
</font><div class="im"><br>
-----Original Message-----<br>
From: Stefan Kost [mailto:<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>]<br>
Sent: 2010Äê9ÔÂ11ÈÕ 1:27<br>
To: Discussion of the development of GStreamer<br>
</div><div class="im">Cc: Zhao, Halley<br>
Subject: Re: [gst-devel] some issues when trying to save content to disk during http progressive downloaded<br>
<br>
</div><div><div></div><div class="h5">Am 08.09.2010 04:45, schrieb Zhao, Halley:<br>
> During playback of progressive content, I tried to save the content to disk as well.<br>
><br>
> But the result is strange:<br>
><br>
> Some contents are saved correctly, some contents are saved but can’t playback<br>
> again; some contents even can’t playback during progressive downloaded.<br>
><br>
><br>
><br>
> ## most ogg contents work well, the saved contents can playback again<br>
><br>
> gst-launch-0.10 souphttpsrc<br>
> location=<a href="http://10.238.37.11/share/media/video/test.ogv" target="_blank">http://10.238.37.11/share/media/video/test.ogv</a> ! tee name=t ! decodebin<br>
> ! ffmpegcolorspace ! xvimagesink t. ! queue ! filesink location=test.ogv<br>
><br>
><br>
><br>
> ## some mp4 saved contents can’t playback again, the saved contents differ from<br>
> the original one; even the following test.mp4 and test2.mp4 are different<br>
><br>
> gst-launch-0.10 souphttpsrc location=http://<br>
> <a href="http://10.238.37.11/share/media/video/test.mp4" target="_blank">10.238.37.11/share/media/video/test.mp4</a> ! tee name=t ! decodebin !<br>
> ffmpegcolorspace ! xvimagesink t. ! queue ! filesink location=test.mp4<br>
><br>
> gst-launch-0.10 souphttpsrc location=http://<br>
> <a href="http://10.238.37.11/share/media/video/test.mp4" target="_blank">10.238.37.11/share/media/video/test.mp4</a> ! filesink<br>
> location=/home/halley/swap/streaming/test2.mp4<br>
><br>
<br>
At first use decodebin2!<br>
<br>
If the http source is seekable, the muxer in decodebin will do pull. You could try:<br>
<br>
gst-launch-0.10 souphttpsrc<br>
location=<a href="http://10.238.37.11/share/media/video/test.mp4" target="_blank">http://10.238.37.11/share/media/video/test.mp4</a> ! queue ! tee name=t !<br>
decodebin2 ! ffmpegcolorspace ! xvimagesink t. ! queue ! filesink location=test.mp4<br>
<br>
Stefan<br>
<br>
><br>
><br>
> ## some wmv contents even can’t playback during progressive downloaded (though<br>
> some saved wmv contents can playback again)<br>
><br>
> gst-launch-0.10 -v -v souphttpsrc location=http://<br>
> <a href="http://10.238.37.11/share/media/test.wmv" target="_blank">10.238.37.11/share/media/test.wmv</a> ! tee name=t ! queue ! decodebin !<br>
> ffmpegcolorspace ! xvimagesink t. ! queue ! filesink location=test.wmv<br>
><br>
><br>
><br>
> thanks in advance for your help.<br>
><br>
><br>
><br>
><br>
><br>
> *ZHAO, Halley (Aihua)*<br>
><br>
> Email: <a href="mailto:halley.zhao@intel.com">halley.zhao@intel.com</a> <blocked::mailto:<a href="mailto:aihua.zhao@intel.com">aihua.zhao@intel.com</a>><br>
><br>
> Tel: +86(21)61166476 iNet: 8821-6476<br>
><br>
> SSG/OTC/Moblin 3W038 Pole: F4<br>
><br>
><br>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> This SF.net Dev2Dev email is sponsored by:<br>
><br>
> Show off your parallel programming skills.<br>
> Enter the Intel(R) Threading Challenge 2010.<br>
> <a href="http://p.sf.net/sfu/intel-thread-sfd" target="_blank">http://p.sf.net/sfu/intel-thread-sfd</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
</div></div><br>------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing<br>
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>