public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Roger <rogerx.oss@gmail.com>
To: linux-media@vger.kernel.org
Subject: dvbscan output Channel Number into final stdout?
Date: Thu, 29 Sep 2011 14:44:18 -0800	[thread overview]
Message-ID: <20110929224418.GD2824@localhost2.local> (raw)

Can we get dvbscan to output the Channel Number into the final stdout somehow?

A likely format would be something such as the following.

Current output:

KATN-DT:497028615:8VSB:49:52:3
KWFA-DT:497028615:8VSB:65:68:4
...


Suggested output:
2.1:497028615:8VSB:49:52:3
2.2:497028615:8VSB:65:68:4
...

The reason for this, the local ATSC broadcast over the air channels are not
assigning unique channel names.  However, channel numbers seem to be consistent
between the published TV Guide/TV Listings and are unique!  This seems to be
the norm for the past several years now.

There have been some minor changes with channel numbers within the past years,
but if channel numbers are used such as in the above example, mplayer should be
able to recognize mplayer dvb://2.1 or mplayer dvb://2.2, etc?

One should also be able to do something like 'dvbscan | sort' instead of trying
to test each channel to see which channel is really 2.1 or 2.2!


Currently, dvbscan outputs the channel number only when the channel is first
found and with a colon. (ie. 2:1, 2:2, ...)

1) Get/Keep Channel Number found
2) Convert/reassign the colon to a period (ie. 2:1 == 2.1, 2:2 == 2.2)
3) Print Channel Number instead of Channel Name on final stdout.


In the meantime, I should test whether mplayer has any issues with using
"mplayer dvb://2.1" instead of the channel name.  It would be really nice to be
able to schedule a cron job here with "dvbscan > .mplayer/channels.conf" to
keep channels updated and have a decent channels.conf I can use within
mplayer/mencoder scripts for playback/recording.  Currently, I have to go
through and manually run mplayer on each station frequency to figure out which
is 2.1 and which is 2.2, and so on.  Or am I barking up the wrong tree?


-- 
Roger
http://rogerx.freeshell.org/

             reply	other threads:[~2011-09-29 22:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-29 22:44 Roger [this message]
2011-09-30  7:17 ` dvbscan output Channel Number into final stdout? tvboxspy
2011-09-30  8:06   ` Roger
2011-09-30 17:34     ` david.hagood
2011-09-30 20:53       ` Roger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110929224418.GD2824@localhost2.local \
    --to=rogerx.oss@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox