Zitat von Torquil Macdonald Sørensen <[EMAIL PROTECTED]>:

> On Tuesday 22 January 2008, Oliver Bandel wrote:
> > Zitat von Torquil Macdonald Sørensen <[EMAIL PROTECTED]>:
> > > Hello, sorry to ask so many questions... I am trying to get
> plplot to
> > > rewrite
> > > the plot to the same file several times (part of my quest to
> write to
> > > a pipe
> > > into ffmpeg). In between plots (plbop().....pleop()) I delete the
> > > file
> >
> > [...]
> >
> >
> > When you give the outputfile the name "-"
> > plplot-lib will write to stdout!!!
> >
> > You can make your executable that writes
> > a stream to stdout and then redirect the output of
> > your file into the fifo!
> >
> > $ my-stream-generator > my_fifo
> >
> >
> > But at the other end of the fifo,
> > then you maybe have to cut the stream into seperated files...
> > ...depends on your reading process / program, if it can read
> > plplot-lib's output directly.
>
> Hello Oliver, thanks for your suggestion and explanation about how
> plbop()
> works with the JPG-driver. I had already tried using the STDOUT
> instead of an
> ordinary file in plplot, but it didn't work to use the data that
> plplot wrote
> to stdout as input to ffmpeg. From what I could understand it was not
> equivalent to "cat *.jpg | ffmpeg_command". I ended ut with only one
> frame in
> the ffmpeg-generated video.
>
> But I have managed to find a workaround for now (it works but is a
> bit
> inefficient). I start and stop plplot between each plot page with
> plinit()
> and plend(). Between each plot I then send the newly created
> "file.jpg" into
> an ofstream that is really a FIFO-file "fifo.mjpeg" (which is
> equivalent to
> STDOUT, but nicer, I think).
[...]


Yes, sending the data directly to the FIFO makes sense.
I think that is the best way to do it.

I should have had that idea, and earlier also. ;-)

Ciao,
   Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to