AW: AW: Writing Video and reading in same time
Bernhard Graaf
bernhard.graaf at gmx.de
Sat Jun 25 11:40:51 PDT 2011
Hi Stafan,
thanks' a lot for helping. I'll try to use the fdsrc on client side and send
you the results of my test.
Bernhard
_____
Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
Im Auftrag von Stefan Kost
Gesendet: Samstag, 25. Juni 2011 20:32
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: AW: Writing Video and reading in same time
On 06/25/11 18:35, Bernhard Graaf wrote:
Hi Stefan,
Yes, no problem.
I'm using my own C-Program for that, but my pipe is looks like:
Server:
Dvbsrc ! mpegtsmux name=demux demux.video_xxxx ! queue ! mpegpsmux name=mux
! filesink location=xyz.mpg demux.audo_xxxx ! queue ! mux. (converting
Mpeg-TS to Mpeg-PS --> is running well)
Client:
1. playbin2 video-sink=xvimagesink uri=xyz.mpg
2. filesrc location=xyz.mpg ! mpegpsdemux name=demux ! queue ! mpeg2dec
! xvimagsink demux. ! queue ! mad ! alsasink
Both of them are running well with a closed file (have a given file length).
But also both of the have the same problem: running to the point of file,
where the file length was as opening time.
The problem is that at somepoint filesrc is checking the filesize and it is
not aware that it changes.
You could try using a pipe instead of files (fssink+fdsrc instead of
filesink,filesrc). Otherwise we might need a flag on filesrc to restat the
file for each read and if size changed send a duration change.
Stefan
Thanks
_____
Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
Im Auftrag von Stefan Kost
Gesendet: Samstag, 25. Juni 2011 18:09
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: Writing Video and reading in same time
On 06/25/11 17:56, Bernhard Graaf wrote:
Hi,
I have a problem with gstreamer.
I write a video stream in a file and try to read it with another process (a
few seconds later).
If I link the reading pipe using filesrc or playbin2 and could only see the
video as long as the file is in opening time.
For example:
If the file is only 4 seconds long in the time I link the reading pipe, I
could only see this 4 seconds, but the writing pipe is running and the file
is much longer in the meantime (sorry for my bad English).
I hope you can understand my problem.
Here my question:
Is there any solution to write a video file with one process and read it
with another pipe?
What format are you using. Could you explain the scenario better. Do you
wnat to relay a we-stream? Maybe you can stream the video without writing it
to a file buffer.
Stefan
Thanks' for your help!!!!
Bernhard
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110625/dc2a27cf/attachment.htm>
More information about the gstreamer-devel
mailing list