Page 1 of 1

streaming x264 to flash

Posted: 02 Apr 2008 15:54
by revolunet
Hello all

ive make multiple tests, read multiple posts, asked on irc, but i still cannot figure out if x264 streaming through http is possible or not with VLC

my goal is to stream a file to a flash 9 client (which now supports playing h264 files) with a player like JW FLV player (http://www.jeroenwijering.com/?item=JW_FLV_Player)

maybe the problem is that MP4 mux can only be used for file output, i dont know.

heres an example commandline i use :

Code: Select all

vlc.exe -vvv --sout="#transcode{vcodec=h264,vb=512,acodec=mp3,ab=32,samplerate=11025}:std{access=http,mux=ts,dst=':1234'}" d:\strip.mpeg
but of course this doesnt work in flash

any help would be greatly appreciated, THANX !

Re: streaming x264 to flash

Posted: 07 Apr 2008 13:51
by brotheris
I've been looking at this issue myself and my research shows that streams to flash players need to be done through RTMP protocol. Looking at this we can see that vlc 0.9 git has some support for it. Currently have no idea if it works, but looking at the source (I'm not a developer so I might be wrong), but there doesn't seems to be any support for H.264 encoded files there. Only SORENSEN_H263, SCREEN_VIDEO, ID_ON2_VP6, ID_ON2_VP6_ALPHA, ID_SCREEN_VIDEO_2 seems to be in the headers.

Can anyone shed more light on this ? It would be super to make VLC stream to flash based players ;)

Re: streaming x264 to flash

Posted: 07 Apr 2008 13:53
by revolunet
I can stream to flash with FLV (0.9) but not with x264...

Re: streaming x264 to flash

Posted: 07 Apr 2008 14:13
by brotheris
you mean with the same command line as above except vcodec=flv you could stream to flash player ?

Re: streaming x264 to flash

Posted: 07 Apr 2008 14:30
by revolunet
the command should be something like :

Code: Select all

vlc.exe --sout="#transcode{vcodec=FLV1,vb=512,acodec=mp3,ab=128,samplerate=22050}:std{access=http,dst=0.0.0.0:1234/stream.flv}" d:\strip.mpeg -vvvv
it works with svn-20070402 under win XP ;)

Re: streaming x264 to flash

Posted: 07 Apr 2008 15:05
by brotheris
Then I was wrong about the need for RTMP. So actualy it is possible to stream live video now with your mentioned flash player ?
Need to finish setup enviroment for testing :)

Re: streaming x264 to flash

Posted: 07 Apr 2008 15:14
by revolunet
its not very stable but it almost work

i make the test with this cmd line and JW FLV player with is very easy to setup ;)

but what im looking for is H264 streaming !

Re: streaming x264 to flash

Posted: 09 Apr 2008 20:13
by user411
I have been working on H264 live stream transcoding to Flash. Basically I want to do something like

vlc --sout "#transcode{vcodec=H264,acodec=mp3,samplerate=11025}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8080/stream.flv}" rtsp://127.0.0.1:554/sample_h264_100kbit.mp4 --sout-transcode-hurry-up --sout-transcode-high-priority --high-priority --repeat --color -I dummy -vvv

When I connect to the stream, I only get audio.

A "pseudo-transcode" works fine from a static H264 source file.

vlc --sout "#transcode{vcodec=FLV1,acodec=mp3,samplerate=11025}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8080/stream.flv}" C:\Media\Videos\AVCHD-stright-to-flash.MP4.flv --color -I dummy

Any ideas on getting the stream transcoding to work?

All of this testing is with the 3/22 nightly build for Windows.

Re: streaming x264 to flash

Posted: 10 Apr 2008 00:38
by johansyd
You can't transcode using h.264. I wrote an answear here and it is stated elsewhere. I have tried this for several months and we have found that VLC can't find a valid decoding timestamp when streaming h.264.

viewtopic.php?f=4&t=45727

sorry

cheers

Re: streaming x264 to flash

Posted: 22 Aug 2008 14:27
by williamHooligan
The following demo streams h.264 / AAC over HTTP :

http://slot3.com/demos/flash-live-stream-bochum-office/

It would be great to see this feature sorted in VLC, personally I am not a fan of RTMP.

Re: streaming x264 to flash

Posted: 23 Aug 2008 01:43
by johansyd
Ofcourse you can stream h.264, but you can't transcode it in realtime or can you?

Re: streaming x264 to flash

Posted: 27 Aug 2008 00:31
by williamHooligan
The stream is live.