Log in

View Full Version : MP4 live streaming over http


prrt
18th April 2012, 15:04
Hi,
In mp4 file header there is an information about sizes of all the video frames in file and offsets of these frames ('moov' atom). But when I prepare live streams (not pseudo live streams!), I don't know sizes of all the frames beforehand. I found information how to prepare mp4 for rtp streaming, but is it possible to stream mp4 with h264 over http?
If it is possible, how I must specify each frame in mp4? In my case 1 frame = 1 NAL Unit. Is it possible to locate the whole h264 stream in 'mdat' atom including NAL Unit start codes (0x00000001) and not specify 'stsz' atom with frame sizes? That streams must be played by flash players.
And are there any simplest mp4 streams with h264 available - as an axample, for live streaming over http? Without scenes and other features - only h264 (and maybe AAC). I found some streams at http://gpac.wp.mines-telecom.fr/authoring/content-links/ but they are too complicated and consists too many additional information.

Thanks.

Serena-S
21st April 2012, 09:55
If you want to do live streaming to a flash player, you have to use rtmp. In future MPEG DASH/HTML5 could get interesting. But for now, if you want to use a flash player you have to use rtmp.
It seems Adobe will also support MPEG DASH http://blogs.adobe.com/ktowes/2012/02/adobe-announces-support-for-mpeg-dash-streaming-standard.html

CruNcher
21st April 2012, 11:49
It's more then that it has many goals 1 of them is to avoid advertising cancellation though the way they try to achieve that is pretty weak ;)

prrt
21st April 2012, 19:27
Thanks for information. I never heard nothing about MPEG DASH before. This really maybe interesting.