Live Streaming Analog Channels from TV Tuner
Posted: 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:
Streaming out using the following transcode:
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.
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>
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
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.