From: Siggi L. <si...@us...> - 2002-01-29 00:09:32
|
Hi, On Tue, 29 Jan 2002, Cameron Simpson wrote: [...] > Firstly, xine is seeing EOF from your FIFO because you haven't kept it open. > Secondly, I don't think you can just append two MPGs together: > > cat 1.mpg 2.mpg | mpeg_decoder # I don't think this works There is no problem at all with this, MPEG is a fully streamable format, so you can cut any parts out of such a stream and play them. The worst thing that could happen is that you get some garbage frames or a littlebit of noise between the files, but this can only happen if the first stream is cut in the middle of a data packet, which should not happen for complete files... > Regarding the first problem, firt try this: > > cat some.mpg other.mpg >/tmp/playlist > > for your _first_ xine run and see if it plays the second one. That should work fine. It should even work better, if you use the filename /tmp/playlist.mpg, so xine has a hint to the file format and doesn't have to do detection by content. > If it doesn't then you have to make xine reopen the fifo (just pressing > <enter> in the main window should do this, yes?) and then just issue > your cp again. > > If it _does_ play the second MPG (as though it were part of the one stream), > then you can do this: > > mkfifo /tmp/playlist > xine -pfh fifo://tmp/playlist & > exec 3>/tmp/playlist > cat some.mpg >&3 > [... and then later ...] > cat other.mpg >&3 > > because the shell has the FIFO open xine doesn't see EOF, because the > FIFO doesn't get closed. Right, that's the solution. Don't close the pipe ;-) But what do you need this feature for? Cheers, Siggi |