Live Streaming Analog Channels from TV Tuner

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
dexterjani
New Cone
New Cone
Posts: 2
Joined: 27 Mar 2015 10:59
VLC version: 2.1.5
Operating System: Windows

Live Streaming Analog Channels from TV Tuner

Postby dexterjani » 27 Mar 2015 11:55

Hello Everyone,

Am obliged to you for going through this.

Have successfully configured VLC, containing TV Tuner card, to stream various analogue TV Channels, contained in a playlist.
The sample playlist file is as follows:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> <playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1"> <title>Playlist</title> <trackList> <track> <location>dshow://</location> <title>Channel1</title> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>0</vlc:id> <vlc:option>dshow-vdev=WinFast TV2000 XP Global/TV Global WDM Video Capture.</vlc:option> <vlc:option>dshow-adev=Realtek HD Audio Input</vlc:option> <vlc:option>dshow-tuner-frequency=83250000</vlc:option> <vlc:option>live-caching=0</vlc:option> </extension> </track> <track> <location>dshow://</location> <title>Channel2</title> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>1</vlc:id> <vlc:option>dshow-vdev=WinFast TV2000 XP Global/TV Global WDM Video Capture.</vlc:option> <vlc:option>dshow-adev=Realtek HD Audio Input</vlc:option> <vlc:option>dshow-tuner-frequency=238250000</vlc:option> <vlc:option>live-caching=0</vlc:option> </extension> </track> <track> <location>dshow://</location> <title>Channel3</title> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>2</vlc:id> <vlc:option>dshow-vdev=WinFast TV2000 XP Global/TV Global WDM Video Capture.</vlc:option> <vlc:option>dshow-adev=Realtek HD Audio Input</vlc:option> <vlc:option>dshow-tuner-frequency=76250000</vlc:option> <vlc:option>live-caching=0</vlc:option> </extension> </track> </trackList> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:item tid="0"/> <vlc:item tid="1"/> <vlc:item tid="2"/> </extension> </playlist>
Streaming out using the following transcode:

Code: Select all

:sout=#transcode{vcodec=h264,vb=602,venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},width=640,height=360,acodec=mpga,ab=49,channels=2,samplerate=16000}:http{mux=ts,dst=:8081/iptv.3gp} :sout-keep
Have been using VLC web-interface or Android VLC-Remote App to change the channels easily. Its working successfully on Windows OS, IOS as well as on Android.

The problem is when the channel is changed, the streaming on Android stucks. On windows (using windows 7 64-bit having VLC 2.1.5) and on IOS(using latest VLC Player for IOS from its App Store), the stream continued to play even when the channel has been changed. But, this is not the case with Android. Have to re-execute the stream once the channel has been changed on the server.

Have tried MXPlayer Pro, VPlayer Pro as well as VLC Player for Android for this. Having the same problem in all of these. Have tried all possible options regarding buffer size and cache available within players settings, but all in vain till now.

Also have tried with file-caching=xxx and/or live-caching=xxx with various values as well on the server side, but no luck either.

Have also roughly tried the option gather within transcode on VLC at server end, but got VLC stuck as soon as the streaming is commenced. Is this can be used for live transmissions as well, as have only found examples of gather using locally present media.

Any suggestions regarding this. Have been trying to set this up for android platform since quite some time now and now, its stuck here at the very end.

Would be thankful for help and suggestions, not only for the resolution of the problem, but also to optimize the workflow in order to minimize overburden of resources at server end and optimistic usage of bandwidth as well.
Best Regards,
Dexter

dexterjani
New Cone
New Cone
Posts: 2
Joined: 27 Mar 2015 10:59
VLC version: 2.1.5
Operating System: Windows

Re: Live Streaming Analog Channels from TV Tuner

Postby dexterjani » 28 Mar 2015 07:25

Hello again,
Well, by searching and googling, have found various information and thus, am now successful in getting the desired output for Android, by usage of gather in a proper way.

The following is the transcode for your kind reference.

Code: Select all

:sout=#transcode{vcodec=h264,vb=602,venc=x264{profile=baseline,level=3,keyint=50,bframes=0,no-cabac,ref=1,no-interlaced,vbv-bufsize=256,aq-mode=0,no-mbtree,partitions=none,no-weightb,weightp=0,me=dia,subme=0,no-mixed-refs,no-8x8dct,trellis=0},width=640,height=360,acodec=mpga,ab=49,channels=2,samplerate=16000}:gather:http{mux=ts,dst=:8081/iptv.3gp} :sout-keep
Best Regards,
Dexter

joeusercz
Blank Cone
Blank Cone
Posts: 19
Joined: 11 Jan 2012 09:26

Re: Live Streaming Analog Channels from TV Tuner

Postby joeusercz » 20 May 2015 23:08

First of all, thanks for answering your own question, many people do not bother...

I am doing something similar - transcoding a playlist of streams from a satellite receiver and controlling via a web interface. I have been doing it via the command line on a Linux box and it is working fine. But recently I tried to do the same with Windows, and it fails. If I just open a playlist from the command line, it is expanded into the list of streams ok, but when I add the options for transcoding, it tries to open the playlist file directly as a media file, which of course fails.

So my question to you, is are you doing the above through the gui, or are you starting via the command line??

The command I use in Linux is:

Code: Select all

cvlc -vvv bouquet.m3u --network-caching=4000 --extraintf="http" --http-port 8080 --sout-transcode-threads=4 --sout '#transcode{vcodec=h264,vb=500,scale=0.4,acodec=mp4a,ab=64,channels=2,samplerate=48000}:http{mux=ts,dst=:8002/}'
I have tried various playlist options, but none seem to work if the transcoding options are added...


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 52 guests