[vlc-devel] I'm working on live mp4 muxed h264 stream that is playable in flash9 players

William King quentusrex at gmail.com
Thu Apr 17 22:20:07 CEST 2008


This may turn out to be a big chunk, but I know it is doable with vlc.

Here are the steps that I know we need to get working:
1. change the getMoovAtom() to accept a bool value to determine if it's
a the end of the stream. If not then set the duraction to some big
number. 

2. Add the getMoovAtom() to the addStream() 

3. Get Stream-out to accept mp4-mux as a stream

4.  write that moov-atom to sout and mark it so stream-out module can
give it as header

Easy enough?

1. 
change modules/mux/mp4.c line 1539 "static bo_t *GetMoovBox( sout_mux_t
*p_mux )" to "static bo_t *GetMoovBox( sout_mux_t *p_mux, bool
b_end_of_movie)"

Then after line 1562 so that the duration is something large so that
it'll work for a live stream.

2.
add after line 439 something like:
moov = GetMoovBox( p_mux ,false );
sout_AccessOutSeek( p_mux->p_access, i_moov_pos ); //but without the
seek and i_moov_pos
box_send( p_mux, moov );

3.
???

4.

Similiar to how it's done here:
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/codec/ffmpeg/mux.c;h=309b2e5420ee5afda239e41322e2d67fa8b19378;hb=HEAD#l400


Let me know if any of you are willing to help. I have a system setup
right now that can test any code changes. I have a live h264 stream, and
a website with a flashplayer setup and ready.

-William V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080417/160fadac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080417/160fadac/attachment.sig>


More information about the vlc-devel mailing list