How to stream FLV?

About encoding, codec settings, muxers and filter usage
OleJak
Blank Cone
Blank Cone
Posts: 32
Joined: 26 Apr 2010 01:52

How to stream FLV?

Postby OleJak » 27 May 2010 23:13

How to stream FLV?
Why something like this does not work?
{access=http{mime=video/x-flv},mux=flv,dst=:8080/stream.flv}}"

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: How to stream FLV?

Postby Greg » 30 May 2010 02:31

Take a look here

http://wiki.videolan.org/Stream_VLC_to_ ... _and_Flash

The VLC script will give you a an output string suitable for flv, but you might want to follow the whole wiki to get a working solution to deliver flash/flv to client

primts
New Cone
New Cone
Posts: 6
Joined: 21 Apr 2010 14:58

Re: How to stream FLV?

Postby primts » 31 May 2010 16:12

Hi, also want to stream to a flash page. I uesd the Flowplayer from your documentation, but i couldn´t understand how and where i set the URL of the stream and which format??

The Flowplayer needs a href with *.flv extension, how can i set the stream for this or is there another workaround??

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: How to stream FLV?

Postby Greg » 31 May 2010 19:12

An href something like this

Code: Select all

<a href="http://192.168.0.42/stream.flv" style="display: block; width: 384px; height: 288px;" id="player">
(with your IP)

should be OK

primts
New Cone
New Cone
Posts: 6
Joined: 21 Apr 2010 14:58

Re: How to stream FLV?

Postby primts » 01 Jun 2010 09:17

Hi, it works fine!
I used this, from the documentation:
href="http://127.0.0.1:8081/mediaplayer/stream.flv"

Another question, in the Method 2 H264 and Flash .flv from the documentation, are there 2 VLC streamer running (Box 1, Box 2)??
I couldn´t understand why the first VLC (box 1) streams out and the second (Box 2) takes the stream for the output as stream.flv right?
I tried this with one VLC, i uesd the RTSP stream from my camera, then i clicked next to the without setting the destination. In the “Generated stream output string” i paste the sout string and it works with one VLC Streamer!

Another problem, after a while there where no stream for the flowplayer, it shows me an old stream. I tried to refresh the page, but it shows the same content.
What´s the issue, why couldn´t i get the actual stream? Is there a wrong configuration in VLC or in the flowplayer, i need streaming.

My sout string:
:sout=#transcode{vcodec=h264,vb=200,deinterlace,ab=32,fps=25,width=256,height=192,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/mediaplayer/stream.flv},dst=display}
I found a RTMP plugin for flowplayer, this example shows how to stream live with Flowplayer:
http://blog.mydeo.com/2010/03/04/embedd ... lowplayer/ Does VLC support RTMP streaming??

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: How to stream FLV?

Postby Greg » 01 Jun 2010 13:31

Pleased you got things working.
You want to use your IP for href, not the loopback 127.0.0.1

There is no need, other than reasons suggested in the wiki, to use two boxes. perhaps a carefull re read

The reason you are seeing old/previous stream in Flowplayer is that the stream is being cached by the client. you probably clicked on the flowplayer and restarted the cached stream from the beginning.
Take care with Flowplayer Controls and how they are set on server and used by client.
Close and reopen page will usually clear the cache.

I have not used RTMP in this context, so no comment, You might like to post back your results if you get a working solution with Flowplayer

pkhadka
New Cone
New Cone
Posts: 1
Joined: 08 Jun 2015 08:10

Re: How to stream FLV?

Postby pkhadka » 08 Jun 2015 08:14

Here is what works for me

In server:
vlc -vvv /path/to/video/file/stream.flv --sout '#transcode{vcodec=FLV1,acodec=mp3}:standard{access=http,mux=ffmpeg{mux=flv},dst=server_ip:8080}'

in client:
in ubuntu:
vlc http://server_ip:8080

in windows:
stream with File->stream


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests