Stream to flash video

About encoding, codec settings, muxers and filter usage
toejam
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2007 01:00

Stream to flash video

Postby toejam » 29 Mar 2007 01:13

How to stream with VLC player to output *.flv Flash Video?


I have searched the forum and someone said it works. But for me it doesn't.

I use VLC player version 0.8.6a

Code: Select all

:sout=#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:1234/stream.flv}
I get an error in console like:

[00000619] main private: creating httpd
[00000623] ffmpeg private error: could not write header

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 30 Mar 2007 00:28

This needs 0.9.0 VLC or later built with a fairly recent version of ffmpeg. (unless someone backported my changes before 0.8.6a was released ... but i doubt it)

Btw, the mime isn't needed in the sout chain anymore.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

toejam
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2007 01:00

Postby toejam » 02 Apr 2007 16:50

I have downloaded vlc 0.9.0

But can you explain step-by-step how to stream *.flv Flash Video output on vlc?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 02 Apr 2007 23:49

Using your command line it should work fine. (If you're using windows, i'm not sure that we're building with the appropriate ffmpeg version yet ... but it's worth a try)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

toejam
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2007 01:00

Postby toejam » 03 Apr 2007 17:39

Thank you it works now but I have a new problem about the audio.
It works fine with no audio.

I get audio-input: mpeg_audio decoder debug: MPGA channels:2 sample rate:48000 bitrate:64 and ffmpeg flv want to have sample rate 44100.

How to force sample rate from 48000Hz to 44100Hz?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 03 Apr 2007 22:12

you can add samplerate=44.1 or 44100 in transcode (I never know if what unit we use)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

JoeShmo
New Cone
New Cone
Posts: 7
Joined: 07 Apr 2007 15:37
Location: New York

live FLV stream...

Postby JoeShmo » 07 Apr 2007 15:52

I dont mean to hijack a thread, but I too am trying to do the flv encoding, and it appears to work on the vlc side, but being somewhat new to flash, I'm wondering how to embed the player in a brower to point to VLC's stream. All the examples I can find on google are using just flv files, which I can get to work just fine in a browser...

I do realize that flash embedding in an html page is not within the scope of VLC stuff, but it would be helpful if someone could at least point me to a howto for live stuff if not posting some example code.. thanks

(vlc 0.9.0 4-4-07 snapshot, ffmpeg 3-27-2007)
the source is an rtsp stream from an axis 214 camera. I am able to stream to Windows media using asf, or quicktime as mov. so my next task is to try for flash...

(edit: although it looked like it worked in 0.8.6a, I was compiling 0.9.0 with the same configure options when I posted, and of course 0.9.0 comes up with all sorts of stuff in red when I try to create that broadcast, one of which is complaing about using ffmpeg as a mux.. and scouring the internet (and videolan.org) for a nice ./configure line proved fruitless, so I'll post somewhere else asking for a good configure line).


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests