Is Command line DVB-T channel selection possible?

*nix specific usage questions
ITFactotum
New Cone
New Cone
Posts: 6
Joined: 29 Dec 2018 16:09

Is Command line DVB-T channel selection possible?

Postby ITFactotum » 30 Dec 2018 11:48

Short version - see subject above

Long version ...
I'm currently running VLC 3.04 on Ubuntu 18.04 plus various other linux & MS Windows versions, all running off a Winfast "Gold" USB tuner stick. It works fine & I have a useful working DVB-T system. BUT I'd really like to select and play a specific TV channel from the command line. Can this be done ?

I'm based in Melbourne, Australia and to play ABC TV (our national broadcaster, commonly known as Channel 2) I can do
> vlc dvb-t:// frequency=226500000:bandwidth=7
and vlc displays the ABC "News" channel. Now "frequency" above correctly sets the ABC transponder frequency but based on that there are several other ABC TV "channels", or programs. Each of these has its own program number in the range 560 - 565. Some info on the net suggests I should able to specify a particular program on the command line, for example

>vlc dvb-t:// frequency=226500000:bandwidth=7:program=563

Bad luck ! - as before I just get the first channel in the transponder set. So ...

1. Is that supposed to work ?
2. Have I made some silly syntax error in there ?
3. Is there some other command line method of doing this ?

I can get to the channel I want through the VLC GUI - (Right click in TV screen -> Playback -> Program -> choose from list) but that's not what I want to do.
On the net I've found some convoluted methods involving playlists but at the moment I can't make them work and in any case they don't really do what I want either.
One good article on all that is at https://davidzou.com/articles/streaming ... t-with-vlc

So, as I said, does anyone have a command line recipe for this task ?

- JohnC,

ITFactotum
New Cone
New Cone
Posts: 6
Joined: 29 Dec 2018 16:09

[SOLVED] Is Command line DVB-T channel selection possible?

Postby ITFactotum » 31 Dec 2018 05:52

SOLVED
Yes, silly syntax error as per 2 above. Correct syntax is

> vlc dvb-t:// frequency=226500000:bandwidth=7 :program=563

i.e :program= must be preceded by a space. OTOH, :bandwidth=7 must NOT

(How is a mere amateur supposed to know that ! ? )

Thanks to Rémi Denis-Courmont on the Videolan "Linux & Friends" forums for this info.

There is another solution bhy making a playlist file containing the Frequency & Program info

For example a file called Channel2.m3u with content:

#EXTM3U
#EXTINF:0,ABC Ch 2
#EXTVLCOPT:dvb-adapter=0
#EXTVLCOPT:live-caching=300
#EXTVLCOPT:program=561
dvb-t://frequency=226500000:bandwidth=7

invoked by

> vlc Channel2.m3u

will give the required result

ITFactotum
New Cone
New Cone
Posts: 6
Joined: 29 Dec 2018 16:09

[SOLVED] Re: Is Command line DVB-T channel selection possible?

Postby ITFactotum » 31 Dec 2018 06:15

Beware of extraneous spaces as well as the missing ones.
> vlc dvb-t://frequency=226500000:bandwidth=7 :program=563 is correct
> vlc dvb-t:// frequency=226500000:bandwidth=7 :program=563 is NOT

-J


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests