2018-03-20 0:49 GMT+11:00 Sebastian Guttenberg <[email protected]>:
> I'm looking for a streaming format so that one program can write to a file > while another program can read/play it at same time. > > > Seems webm can do it. but when play it with ffplay seems the newly written > data are not read out. I googled and see people saying the amount of data > can be read is determined when the read file handler is opened, that means > there's no way in 2nd process to keep up with 1st process. Does anyone have > experience on this? > > > I have no experience with ffplay, but it is definitely possible to > transcode a file with ffmpeg and at the same time read it with another > program, like with your own c- or java- or whatever code. I’m doing that > and it works. I’m not sure if ffplay or other players can be persuaded to > do so. > > Hi Sebastina, do you mean as long as write speed is fast enough, the reading side, after file opened, can read out data that are written after the file is opened? > Secondly, whatelse streaming formats do we have? I originally thought avi > should be but seems ffplay can't play it when it's beeing written so I > guess it's not. > > > As far as I know, the '.ts‘ - container was designed explicitly for > streaming ( MPEG-TS ), in particular for continous live streaming. > Webm also works but is relatively slow in transcoding. mp4 is also > possible, but in order to use mp4 for streaming, you have to set a couple > of parameters while transcoding and switch the moov-atom off completely > (via „-movflags isml+empty_moov“), because the information necessary for > the moov atom is complete only when the transcoding-process is finished. > About avi I don’t know if it’s suitable. > > Thanks for the MP4 part, I'll have a look at it. > > > > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
