Can I display a TV channel from TV tuner card using NodeJS for an Electron APP

0 votes
In essence, a TV tuner card is attached to the PC, and I must display the TV station in an electronic app.

Is there a node.js module that will assist me in doing this task

 
If not in node.js, I'll have to utilise CDirectX #'s capture class in a node.js electron project. Is this conceivable?
Jun 9 in Node-js by Vaani
• 7,020 points
44 views

1 answer to this question.

0 votes

Tvheadend is a streaming server for live TV broadcasts. It can handle streaming and recording over-the-air terrestrial DVB-T/T2 broadcast TV, like Freeview in the UK. It can also handle other forms of TV streaming, including cable (DVB-C), satellite (DVB-S and DVB-S2), ATSC, and IPTV.

o set up a Tvheadend DVR, you'll need the following:

  • Raspberry Pi 2, 3, or 3B+ with Case
  • MicroSD card with Raspbian installed
  • A high-quality power supply (5V @ 2.5A)
  • A USB DVB-T/T2 tuner for OTA TV reception or a Raspberry Pi TV HAT
  • A DVB-T/T2 antenna
  • Another PC, for SSH connections, with an SSH client installed

The Raspberry Pi Foundation released a Pi TV HAT which uses the Raspberry Pi's GPIO pins to become a DVB-T2 receiver. If you don't have one of these, you can use a typical USB DVB-T/T2 tuner instead.

You'll need to install an operating system onto your Raspberry Pi first; this guide will assume you've flashed the latest version of Raspbian Lite onto a microSD card and your Pi has internet connectivity. It's also a good idea to run the usual commands on first boot to update your Pi and change the default password:

sudo apt update
sudo apt upgrade
passwd

If you haven't already, after you've flashed your microSD card, add a file named ssh without a file extension to your boot partition. This will enable you to connect via SSH. You'll have to check your Pi's IP address, which you can do using a network monitoring app on your smartphone.

Once your Pi boots, plug your DVB-T/T2 tuner into your Pi (or attach to the GPIO pins, if you're using the HAT) and connect via SSH. Confirm that your USB tuner is working:

lsusb

Assuming that it is, check that the firmware for your tuner exists and loads:

dmesg | tail | grep dvb

If the command returns nothing (or there are no errors), your DVB-T/T2 tuner should be ready. If the command returns log snippets that suggest your firmware can't load, or the firmware files you need are missing, you'll need to download them.

A Git repository from the developers of OpenELEC, a Linux media center distro, contains a large number of firmware files for various tuner chipsets. To install these onto your Pi, run the following commands on your terminal and reboot:

sudo apt install git
git clone https://github.com/OpenELEC/dvb-firmware.git
cd dvb-firmware
./install
sudo reboot

Step 2: Installing Tvheadend

To install Tvheadend and any additional packages, type:

sudo apt install tvheadend

Type Y and hit enter to agree to installation. As it begins, you'll need to provide a username for Tvheadend for administrative access once it's installed. Type a suitable username in, then hit enter.

You'll need to provide a password, so type one in and hit enter. A final menu provides information on what to do once Tvheadend has installed to access the web interface on port 9981; just hit enter to continue installation.

answered Jun 10 by Neha
• 8,740 points

Related Questions In Node-js

0 votes
1 answer

How to extract request http headers from a request using NodeJS connect?

Hello @kartik, To see a list of HTTP ...READ MORE

answered Jul 15, 2020 in Node-js by Niroj
• 82,740 points
14,519 views
0 votes
1 answer

How can I format a date coming from MongoDB?

Hello @kartik, JavaScript has built-in support for dates. ...READ MORE

answered Nov 30, 2020 in Node-js by Niroj
• 82,740 points
4,482 views
0 votes
0 answers

Remove double quotes from a Table Name using SEQUELIZE Nodejs

used Nodejs' SEQUELIZE to construct an Account ...READ MORE

Jun 27 in Node-js by Vaani
• 7,020 points
58 views
0 votes
1 answer

How do I “include” functions from my other files in nodejs?

Hello @kartik, You require any js file,so you just ...READ MORE

answered Jul 9, 2020 in Node-js by Niroj
• 82,740 points
1,639 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,009 views
0 votes
1 answer
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
650 views
0 votes
1 answer

Is there a way to download videos from YouTube Studio using NodeJS

Try this project in the github repository ...READ MORE

answered May 27 in Node-js by Neha
• 8,740 points
128 views
0 votes
1 answer

Download a file from NodeJS Server using Express

Because the file's name is just 'download' ...READ MORE

answered Jun 13 in Node-js by Neha
• 8,740 points
105 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP