Encode H.264 with VLC
Oct 9, 2011
This guide will explain the basic steps to stream live TV over the internet or your local network using Video Lan Client(VLC).
Capture card with TV-in/Video-in.
VLC, We recommend use VLC 1.1.4 to encode live H.264 streams.
You can download a copy of VLC from http://download.videolan.org/pub/videolan/vlc/1.1.4/
First, you should check whether your TV Card is correctly installed and work with VLC properly.
Open VLC and select "Open Capture Device..." in the "Media" menu.
Select proper video and audio device in the "Capture device" tab, and click "Play" button. Now if VLC show picture and audio properly, that means your TV card is OK and you can go ahead to publish live stream.
Open a VLC and select "Streaming" in the "Media" menu.
Select proper video and audio devices. In the "Advanced options...", you can set up some advanced configurations. Now click "Stream" button.
Click "Next" the in popped up window.
In the "Destinations" group, select "HTTP" and click "Add".
Select a available port like "8080".
In the "Transcoding options" group, click the "New Profile" button.
Input a meaningful name in the "Profile Name". In the "Encapsulation" tab, you can choose "MPEG-TS", "MPEG-PS" or "FLV" depends on you favorite. We recommend "MPEG-PS" to publish your live stream. "FLV" is supported by SopCast 3.4.5 and later.
In the "Video code" tab, check the "Video" checkbox and select H-264 codec. Select a proper "Bitrate". Bitrate can be from 400kbps to 2000kbps. It depends on how much is your upload bandwidth. If your upload bandwidth less than 1Mbps, we recommend the bitrate can be 400~500kbps. If your upload bandwidth is more than 10Mbps, you can select a higher bitrate such as 1500kbps.
In the "Audio codec" tab, check the "Audio" checkbox and use MP3 as audio codec. Click "Save" after all parameters are proper configured.
Now in the "Transcoding options" group, you can select the profile you created just now. After clicking "Stream", your stream is published. Now you can watch the stream by VLC or broadcast it over P2P by SopCast client.
Before broadcasting the stream by SopCast client, we recommend you check the stream whether it is working properly.
Open another instance of VLC, and select "Open Network Stream...".
In the "Network protocol" group, input the stream url address and click "Play" button. If the stream can be played by VLC properly, then you can broadcast it by SopCast client.
1. Open SopPlayer, and log in with the user you registered in SopCast.
2. Click "MyServer" tab.
3. Select "Stream" as the Source, and fill your stream URL in the text box right.
4. Select proper encapsulation in according to your encoding.
5. Fill out other necessary fields, such as channel ID, Program name (optional), usename and password.
6. Click "Start", your channel will be listed on SopCast after 5 minutes.