Skip to contentSkip to conversation

EPG (Electronic Program Guide) Tools

linux-dvb Chris Capon 4 participants 8 messages May 26, 2009 – May 27, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi:
I've installed an HVR-1600 card in a Debian system to receive ATSC digital broadcasts here in Canada. Everything works great.

scan /usr/share/dvb/atsc/us-ATSC-center-frequencies-8VSB > channels.conf

finds a complete list of broadcasters.

azap -c channels.conf -r "channel-name"

tunes in the stations and displays signal strength info.

cp /dev/dvb/adapter0/dvr0 xx.mpg

captures the output stream which can be played by mplayer.

What I'm missing is information about the Electronic Program Guide (EPG). There doesn't seem to be much info on linuxtv.org on how to read it.

Where does the EPG come from?

Is it incorporated into the output stream through PID's some how or is it read from one of the other devices under adapter0?

Are there simple command line tools to read it or do you have to write a custom program to interpret it somehow?

Could someone please point me in the right direction to get started? If no tools exist, perhaps links to either api or lib docs/samples?

Much appreciated.
Chris.

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw
Quoted 29 lines · Chris Capon

Hi:
I've installed an HVR-1600 card in a Debian system to receive ATSC digital broadcasts here in Canada.  Everything works great.

scan /usr/share/dvb/atsc/us-ATSC-center-frequencies-8VSB > channels.conf

       finds a complete list of broadcasters.

azap -c channels.conf -r "channel-name"

       tunes in the stations and displays signal strength info.

cp /dev/dvb/adapter0/dvr0 xx.mpg

       captures the output stream which can be played by mplayer.

What I'm missing is information about the Electronic Program Guide (EPG).  There doesn't seem to be much info on linuxtv.org on how to read it.

Where does the EPG come from?

Is it incorporated into the output stream through PID's some how or is it read from one of the other devices under adapter0?

Are there simple command line tools to read it or do you have to write a custom program to interpret it somehow?

Quoted 6 lines

Could someone please point me in the right direction to get started?  If no tools exist, perhaps links to either api or lib docs/samples?

Much appreciated.
Chris.

Hello Chris,

The ATSC EPG is sent via the ATSC PSIP protocol. I do not know of any tools currently available to extract the information. MeTV has a working implementation (with some bugs I have seen), and I was looking at getting it to work in Kaffeine at some point.

The spec is freely available here:

http://www.atsc.org/standards/a_65cr1_with_amend_1.pdf

If you have any questions, feel free to drop me a line.

Cheers,

Devin

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
#2 lore raw
Quoted 37 lines · Devin Heitmueller
Quoted 29 lines · Chris Capon

Hi:
I've installed an HVR-1600 card in a Debian system to receive ATSC digital broadcasts here in Canada.  Everything works great.

scan /usr/share/dvb/atsc/us-ATSC-center-frequencies-8VSB > channels.conf

       finds a complete list of broadcasters.

azap -c channels.conf -r "channel-name"

       tunes in the stations and displays signal strength info.

cp /dev/dvb/adapter0/dvr0 xx.mpg

       captures the output stream which can be played by mplayer.

What I'm missing is information about the Electronic Program Guide (EPG).  There doesn't seem to be much info on linuxtv.org on how to read it.

Where does the EPG come from?

Is it incorporated into the output stream through PID's some how or is it read from one of the other devices under adapter0?

Are there simple command line tools to read it or do you have to write a custom program to interpret it somehow?

Quoted 6 lines

Could someone please point me in the right direction to get started?  If no tools exist, perhaps links to either api or lib docs/samples?

Much appreciated.
Chris.

Quoted 7 lines

Hello Chris,

The ATSC EPG is sent via the ATSC PSIP protocol.  I do not know of any tools currently available to extract the information.  MeTV has a working implementation (with some bugs I have seen), and I was looking at getting it to work in Kaffeine at some point.

Dvbstreamer supports atsc epg. That is what i use

Quoted 20 lines

The spec is freely available here:

http://www.atsc.org/standards/a_65cr1_with_amend_1.pdf

If you have any questions, feel free to drop me a line.

Cheers,

Devin

--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

Signature · 6 lines
ASUS m3a78 mothorboard
AMD Athlon64 X2 Dual Core Processor 6000+ 3.1Ghz
4 Gigabytes of memory
Gigabyte NVidia 9400gt  Graphics adapter
Kworld ATSC 110 TV Capture Card
Kworld ATSC 115 TV Capture Card
#3 lore raw
Quoted 1 line · Jonathan Isom

Dvbstreamer supports atsc epg. That is what i use

Well, learn something new every day. I didn't realize dvbstreamer had ATSC support.

Devin

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
#4 lore raw
Quoted 5 lines · Devin Heitmueller
Quoted 1 line · Jonathan Isom

Dvbstreamer supports atsc epg. That is what i use

Well, learn something new every day.  I didn't realize dvbstreamer had ATSC support.

Yep. Don't confuse with dvbstream. Separate apps. with dvbstreamer you have to cycle
the channels with a script to fill the data for each channel.

Later

Jonathan

Quoted 6 lines

Devin

--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

Signature · 6 lines
ASUS m3a78 mothorboard
AMD Athlon64 X2 Dual Core Processor 6000+ 3.1Ghz
4 Gigabytes of memory
Gigabyte NVidia 9400gt  Graphics adapter
Kworld ATSC 110 TV Capture Card
Kworld ATSC 115 TV Capture Card
#5 lore raw
Quoted 11 lines · Jonathan Isom
Quoted 7 lines · Devin Heitmueller
Quoted 2 lines · Jonathan Isom

Dvbstreamer supports atsc epg. That is what i use

Well, learn something new every day. I didn't realize dvbstreamer had ATSC support.

Quoted 18 lines

Yep. Don't confuse with dvbstream. Separate apps. with dvbstreamer you have to cycle
the channels with a script to fill the data for each channel.

Later

Jonathan

Quoted 7 lines

Devin

--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

dvbstreamer works. The FAQ contains a sample shell script for cycling through the services.

Thanks for all your help, guys.

Chris.

#6 lore raw
In reply to Devin Heitmueller
Quoted 17 lines
Quoted 8 lines

Where does the EPG come from?

Is it incorporated into the output stream through PID's some how or is it read from one of the other devices under adapter0?

Are there simple command line tools to read it or do you have to write a custom program to interpret it somehow?

Quoted 6 lines

Could someone please point me in the right direction to get started? If no tools exist, perhaps links to either api or lib docs/samples?

Much appreciated.
Chris.

Hello Chris,

Quoted 8 lines

The ATSC EPG is sent via the ATSC PSIP protocol. I do not know of any tools currently available to extract the information. MeTV has a working implementation (with some bugs I have seen), and I was looking at getting it to work in Kaffeine at some point.

The spec is freely available here:

http://www.atsc.org/standards/a_65cr1_with_amend_1.pdf

Chris,

You'd expect to be able to get 3-4 days of advanced data to populate a guide with, in reality you can often get as little a six hours and that's it. The mandatory side of the spec is weak in this area. six hours is fine for Now / Next but of little use for anything else.

Depending on your needs, your mileage may vary.

Regards,

- Steve

Signature · 2 lines
Steven Toth - Kernel Labs
http://www.kernellabs.com
#7 lore raw
Quoted 7 lines · Steven Toth

Chris,

You'd expect to be able to get 3-4 days of advanced data to populate a guide with, in reality you can often get as little a six hours and that's it. The mandatory side of the spec is weak in this area. six hours is fine for Now / Next but of little use for anything else.

Quoted 5 lines

Depending on your needs, your mileage may vary.

Regards,

- Steve

Steve,

The spec requires that at a minimum EIT-0 thorugh EIT-3 be sent (discussed on page 41 of A/65C). Of course, I don't know if broadcasters actually comply with the requirement (although I suspect they could be liable for FCC fines if they do not). I will get a better idea when I start working on EIT support for Kaffeine.

Devin

Signature · 2 lines
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com