mkrufky / libdvbtee

dvbtee: a digital television streamer / parser / service information aggregator supporting various interfaces including telnet CLI & http control
GNU Lesser General Public License v2.1
79 stars 31 forks source link

Use with WinTV-QuadHD tuner card? #58

Open lonnietc opened 4 years ago

lonnietc commented 4 years ago

Hello,

I have just purchased a WinTV-QuadHD tuner card for use my Ubuntu 20.04 system and am just now learning more about this whole area of media.

I was looking for a small, fast, and easy to use C/C++ library that I can work with the WinTV-QuadHD card to get media streams, (MPEG-2) I think that it has to be, so that I can stream them to other applications from tuners.

Your library seems like it could do the job, but I am not sure and wanted to ask for advice and perhaps some guidance. Cheers

lonnietc commented 4 years ago

Hi All,

I have been able to compile the libdvtee code and tested it with a scan:

dvbtee -s -a0


It scanned 69 channels and found:

channel 28, 557000000,

62.1-MPT-HD:557000000:8VSB:49:52:1 62.2-MPT-2:557000000:8VSB:65:68:2 62.3-MPTKIDS:557000000:8VSB:81:84:3 62.4-NHK-WLD:557000000:8VSB:97:100:4

channel 31, 575000000,

26.1-WETA-HD:575000000:8VSB:49:52:1 26.2-WETA UK:575000000:8VSB:65:68:2 26.3-KIDS:575000000:8VSB:81:84:3 26.4-WORLD:575000000:8VSB:97:100:4

channel 35, 599000000,

66.1-ION:599000000:8VSB:49:52:3 66.2-qubo:599000000:8VSB:65:68:4 66.3-IONPlus:599000000:8VSB:81:84:5 66.4-Shop:599000000:8VSB:97:100:6 66.5-HSN:599000000:8VSB:113:116:7 66.6-QVC:599000000:8VSB:129:132:8 found 14 services

I was also able to compile the examples in that sub-directory but need to get more information on how I can use dvbtee?

Is there any more documentation available as I now want to stream a channel to a decoder application but need to learn more about how it all works together.

Any help would be greatly appreciated. Thanks in advance

mkrufky commented 4 years ago

For examples of what the command-line dvbtee utility can do, see https://github.com/mkrufky/libdvbtee#example-usage

lonnietc commented 4 years ago

Hello Michael,

Thanks for getting back to me and please forgive me in that I am a total newbie here on this topic. I was able to test the WinTV-quadHD card with an application called Kaffine and also tvheadend (feeding into Kodi) that I followed watching a Youtube video on the setup to test things.

Yea, I was looking at those and playing a bit but I am not sure what some of these commands actually do.

Also, at the bottom of that page it lists some "server" commands but they do not work with dvbtee from what I see.

At this initial stage, I seem to be able to scan my local area with the tuners and find out what channels are there and within these channels are services. (i.e. what most people call channels on their TV).

If I look at the first example for streaming and knowing that I have some physical channels with services, then I think that I can stream to the UDP port:

To tune to service id 1 of physical channel 33 and stream it to a udp port:

dvbtee -c33 -I1 -oudp://192.168.1.100:1234

But what is streaming? Is it an MPEG2 stream?

If I start a server with "dvbtee -a0 -S" then how do I access a channel.

I also see that your repositories has a project called "TV-Now". Can the stream from libdvtee be fed into it as a test?

I have a LOT to learn here and want to get a feel for how it all works together so anything that you could explain to me would be of great help.

On a side note, I actually started out with the idea of using the Stanford research project.Puffer (https://puffer.stanford.edu/) and then I wanted to get this WinTV-quadHD card so that I could stream my own channels into it. I can compile and run Puffer and have even build a Dockerfile that I contributed back to the project while discussing things with the developers.

Apparently, I can maybe use something like libdvbtee to get the MPEG2 data and stream it into the Puffer decoder as my next step in this effort.

Thanks again and have a great day