Wowza Community

how to stream videos directly from vlc to wowza media server

Hi im confused in how use wowza for video streaming, example i want to play a video en my local pc and broadcast that to wowza server so it can be seen by other people via flash jwplayer something like that. How i can do that? or if i can use another program to stream video like winamp i dont know.

thanks

pd: at the moment i can just stream localhost :frowning: i mean in vlc i put streaming to rtsp but when i put rtsp://myip:port etc in vlc doesnt work just if i put localhost, my wowza is not in the same pc is on a server i want to stream from my pc a video to my wowza live

thanks

This guide shows how to stream a video file from your computer to mpeg-ts URL:

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

Then you follow this guide to setup application to re-stream from mpeg-ts source

https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder

Then you can use Wowza example LiveVideoStreaming player, or JW Player or other player to playback the stream from Wowza

https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server

Richard

In the VLC commmand use the IP address of the server Wowza is intalled on, and for playback use the loop back address 127.0.0.1

Richard

Just change:

dst=127.0.0.1

To:

dst=[wowza-address]

Then re-stream from 127.0.0.1:10000 in Wowza.

Richard

What is the source? The first arg (β€œudp://localhost:1234”) should be the source.

Are you trying to stream from a file? The first examples in this post use a file source:

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

Or if the source is an IP camera use the rtsp url of the camera. If the source is an mpeg-ts stream you would use a udp url as in your last post.

Richard

Exactly what do you want to play in VLC and stream to Wowza? What is the source, is it a video file? An IP camera? A webcam?

Richard

Well, in my test with the lastest version of VLC (2.0.1) it crashes for me too. dang. This happens sometimes with VLC. It still works in 1.1.10 though. Old versions of VLC are located here:

http://download.videolan.org/pub/videolan/vlc/

Richard

No need for VLC really, in this case if there is no transcoding necessary, you can do that all in Wowza. Take a look at this example:

https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher

Richard

You’re welcome, glad I could help

Richard

This guide shows how to stream a video file from your computer to mpeg-ts URL:

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

Then you follow this guide to setup application to re-stream from mpeg-ts source

https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder

Then you can use Wowza example LiveVideoStreaming player, or JW Player or other player to playback the stream from Wowza

https://www.wowza.com/docs/how-to-use-longtail-jw-player-5-with-wowza-media-server

Richard

but that first tutorial says: To get started, install the VideoLAN VLC media player for your platform on the same machine running Wowza Media Server 2

i have vlc in my personal pc but my wowza server is on a linux server far away :frowning: how i can do

thanks

In the VLC commmand use the IP address of the server Wowza is intalled on, and for playback use the loop back address 127.0.0.1

Richard

sorry but how can be:

RTSP/RTP camera:

vlc -vvv rtsp://192.168.1.22/mycamera --sout β€œ#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}”

i need that i changed rtsp://192.168.1.22/mycamera for rtsp://my-pc-ip/video and dst=127.0.0.1 for dst=ip-of-wowza is it wrong? my goal is to stream from my vlc a test video to wowza to serve it via jwplayer

also when i put the command in command line i open in vlc a video but crashs :frowning:

sorry for many questions but rtsp://192.168.1.22/mycamera that line what should i put? then when i paste the command and open a video inside that same vlc to stream?

ok i think i understand i have to use:

MPEG-TS stream:

vlc -vvv udp://localhost:1234 --sout β€œ#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=127.0.0.1,port=10000,mux=ts}”

that method i change udp://localhost:1234 to udp://localhost:1935 then dst=127.0.0.1 to my wowza ip and then created a .stream file with udp://0.0.0.0:10000 but then in vlc how do i stream? i start vlc with that commando then whats next?

What is the source? The first arg (β€œudp://localhost:1234”) should be the source.

Are you trying to stream from a file? The first examples in this post use a file source:

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

Or if the source is an IP camera use the rtsp url of the camera. If the source is an mpeg-ts stream you would use a udp url as in your last post.

Richard

ok here is what im trying to do: i want to play something in vlc and send it to wowza then with wowza i can put it on jwplayer to stream it which method should i use for what im trying to do because when i use vlc gui for stream i set rtsp and i can do what i said but just localhost not external

i mean i want to stream live with my vlc like a playlist, not just a file

Exactly what do you want to play in VLC and stream to Wowza? What is the source, is it a video file? An IP camera? A webcam?

Richard

videos

i cant configure something so it streams a playlist of 10 videos for example

for example i tried a video .mkv

vlc -vvv β€œH:\Videos\Aldo_Ranks-Goza_Tu_Vida-DVDRip-x264-SP-2009-507ViDz\Aldo_Ranks-Goza_Tu_Vida-DVDRip-x264-SP-2009-507ViDz.mkv” --sout β€œ#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=wowza-ip-here,port=10000,mux=ts}”

but vlc crashes

im going to try with old version, another question so i cant do like streaming live with vlc with my videos i mean i put a list of videos like playlist to stream ? because when i use vlc gui rtsp server stream i do can stream live but i just can see it localhost not externally

thanks very much worked with old version of vlc thanks for your time and great support ill appreciate