<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Your suggestion may be helpful, <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But I expect a solution needn’t care about demux/mux, because
all these data are passed through souphttpsrc, save the data from souphttpsrc
shouldn’t care about mux/demux.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Marco Ballesio
[mailto:gibrovacco@gmail.com] <br>
<b>Sent:</b> Sunday, September 19, 2010 12:53 AM<br>
<b>To:</b> Discussion of the development of GStreamer<br>
<b>Subject:</b> Re: [gst-devel] some issues when trying to save content to disk
during http progressive downloaded<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Hi,<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span lang=EN-US>2010/9/13 Zhao, Halley <<a
href="mailto:halley.zhao@intel.com">halley.zhao@intel.com</a>><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>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.<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span lang=EN-US><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>
<o:p></o:p></span></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<p class=MsoNormal><span lang=EN-US style='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</span><span
lang=EN-US><o:p></o:p></span></p>
<div>
<p class=MsoNormal><span lang=EN-US><br>
-----Original Message-----<br>
From: Stefan Kost [mailto:<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>]<br>
Sent: 2010</span>年<span lang=EN-US>9</span>月<span lang=EN-US>11</span>日<span
lang=EN-US> 1:27<br>
To: Discussion of the development of GStreamer<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Cc: Zhao,
Halley<br>
Subject: Re: [gst-devel] some issues when trying to save content to disk during
http progressive downloaded<o:p></o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>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><o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US><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><o:p></o:p></span></p>
</blockquote>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>