<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>Hi Daniel,</div><div>you can't actually read an avi file that is not finalized (not finished) at the time you open it. AVI muxer is not suited for timeshifting. You should consider other type of encoder+muxer, such as mpeg2 + mpegts (ts as transport stream). This will allow the file to be read as soon as you start writing in it, and it will continue playing as long as there is new data to fetch.</div><div>Regards,</div><div>Al</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Daniel <gstreamer@nögel.de><br><b><span style="font-weight: bold;">Ŕ :</span></b>
gstreamer-devel@lists.sourceforge.net<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Lun 22 mars 2010, 13 h 51 min 05 s<br><b><span style="font-weight: bold;">Objet :</span></b> [gst-devel] Problems playing an open file<br></font><br><br>Dear developers,<br><br>I have problems building a specific gstreamer-pipe for my needs and hope,<br>that someone here can help me with this.<br><br>I am coding a gstreamer-based tv-card-tool. Playing and recording<br>v4l2-streams is no problem thanks to gstreamer. Implementing a<br>timeshift-funktion seems to be a tougher problem, however.<br><br>I'll try to sum up the problem: Let's say, someone presses the pause-button<br>in my tv-tool. I'd then stop playback and start recording the stream with<br>this pipe:<br><br>gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! videorate !<br>video/x-raw-yuv,width=640,height=480,fps=25 ! queue ! xvidenc<br>bitrate=300000 !
queue ! muxout. osssrc device=/dev/dsp ! queue !<br>audio/x-raw-int,rate=44100,channels=1,width=16 ! queue ! audioconvert !<br>lame ! muxout. avimux name=muxout ! filesink location=video.avi<br><br>If one now wants to resume playback, not the actual stream would be shown,<br>but the file, that i am saving that stream to (a.k.a. timeshift).<br><br>And that is, where problems start for me:<br>I need to play this open file in a way, that's more like streaming: As I am<br>writing continuous to the file from v4l2-stream, also playback should be<br>continuous. In reality, gstreamer seems to index the open file at startup<br>and just plays that data, which has been written to the file at this point.<br>What I want gst to do is, to play even that data, which has been written to<br>that file, *after* gst started playing this file.<br><br>I hope, I made the point clear - my english isn't that good at all. I'd<br>really be grateful, if someone'd help
me with that. I didn't find anything<br>in the docs.<br><br>Sincerely,<br><br>Daniel<br><br>------------------------------------------------------------------------------<br>Download Intel® Parallel Studio Eval<br>Try the new software tools for yourself. Speed compiling, find bugs<br>proactively, and fine-tune applications for parallel performance.<br>See why Intel Parallel Studio got high marks during beta.<br><a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.sourceforge.net" 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></div></div><div style="position:fixed"></div>
</div><br>
</body></html>