Wowza Community

Stream H264 / MP4 while recording

Hi all,

we are trying to achieve on a project the following workflow :

Long form videos (up to 4hours) are encoded by a third part encoder in H264, MP4 wrapped

We would like to be able to start a rtmp stream as soon as the file creation operation started, so our users wouldn’t wait the end of the encoding.

I’m actually trying to figure out whether that’s possible or not with the technology : MP4 + Flash streaming.

If in therory that could be ok, could you give me any tricks to follow to devellop my wowza modules, or any restriction I should take into account in my Encoder choice ?

Cheers,

Louis

The encoding process involves a raw video on disk? I don’t think you can do it.

Or it is a live encoder? You can use StreamType “live” to view the stream while the encoder is also saving it to disk. And/or you can use StreamType “live-record” and users will be able to view while Wowza also records the stream.

Richard

It is an MP4 issue. The file must be complete. It includes a header/tail that references all the items in the file (moov atom). So this header/tail cannot be written until the file is complete. There are ways to write fragmented files but we do not support these until the file writing is complete.

Charlie

I don’t think it will work, but I am assuming. You could try. There wouldn’t be any trick to it, just make the output be the content folder on Wowza, and try to play it while it is encoding.

Richard

You can use StreamType “rtp-live-record”

Richard

Is it possible to do live-record in a case where we have been using RTP-Live? We have a vlc config that works well for live Flash. But we would like to record it to the local disk while it is streaming live. Can we replace the rtp-live with live-record in the .

your first assumption was the right one : The encoder source is a file on a disk.

Do you by any chance know whether it’s a limitation of the Flash streaming technology or of the MP4 standard ?

Cheers,

Louis

Ok, thanks a lot Charlie for that answer.

Cheers