streaming x264 to flash

About encoding, codec settings, muxers and filter usage
revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

streaming x264 to flash

Postby revolunet » 02 Apr 2008 15:54

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 !
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

brotheris
New Cone
New Cone
Posts: 3
Joined: 07 Apr 2008 13:25

Re: streaming x264 to flash

Postby brotheris » 07 Apr 2008 13:51

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 ;)

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: streaming x264 to flash

Postby revolunet » 07 Apr 2008 13:53

I can stream to flash with FLV (0.9) but not with x264...
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

brotheris
New Cone
New Cone
Posts: 3
Joined: 07 Apr 2008 13:25

Re: streaming x264 to flash

Postby brotheris » 07 Apr 2008 14:13

you mean with the same command line as above except vcodec=flv you could stream to flash player ?

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: streaming x264 to flash

Postby revolunet » 07 Apr 2008 14:30

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 ;)
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

brotheris
New Cone
New Cone
Posts: 3
Joined: 07 Apr 2008 13:25

Re: streaming x264 to flash

Postby brotheris » 07 Apr 2008 15:05

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 :)

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: streaming x264 to flash

Postby revolunet » 07 Apr 2008 15:14

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 !
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

user411
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Mar 2008 22:47

Re: streaming x264 to flash

Postby user411 » 09 Apr 2008 20:13

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.

johansyd
Blank Cone
Blank Cone
Posts: 25
Joined: 27 Feb 2008 11:10

Re: streaming x264 to flash

Postby johansyd » 10 Apr 2008 00:38

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

williamHooligan
New Cone
New Cone
Posts: 2
Joined: 22 Aug 2008 14:24

Re: streaming x264 to flash

Postby williamHooligan » 22 Aug 2008 14:27

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.

johansyd
Blank Cone
Blank Cone
Posts: 25
Joined: 27 Feb 2008 11:10

Re: streaming x264 to flash

Postby johansyd » 23 Aug 2008 01:43

Ofcourse you can stream h.264, but you can't transcode it in realtime or can you?

williamHooligan
New Cone
New Cone
Posts: 2
Joined: 22 Aug 2008 14:24

Re: streaming x264 to flash

Postby williamHooligan » 27 Aug 2008 00:31

The stream is live.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests