Project

General

Profile

Using Analog TV with tvheadend

Added by Patrick Sch over 9 years ago

Hi,
I bought a raspberry pi to set up a digital video Recorder. My USB TV Card is the 0ccd:0086 TerraTec Electronic GmbH Cinergy Hybrid XE. I have only the possibility to receive Analog TV. I’ve read that I have to change the configuration from DVB-T to Analog, but I didn’t found any tutorial. Can anybody help me please? I’m from Germany is there any different between NTSC and PAL for configuration?
Regards


Replies (7)

RE: Using Analog TV with tvheadend - Added by Mark Clarkstone over 9 years ago

The newer tvheadend builds no longer support Analogue Television (not sure when it will again), however the current stable (3.4.28) and the beta (I think) do.

RE: Using Analog TV with tvheadend - Added by Patrick Sch over 9 years ago

That's very bad :( I've installed Build: 3.4~wheezy.

Is there any possibility to get an old Version?

RE: Using Analog TV with tvheadend - Added by Mark Clarkstone over 9 years ago

Patrick Sch wrote:

Hi,
I bought a raspberry pi to set up a digital video Recorder. My USB TV Card is the 0ccd:0086 TerraTec Electronic GmbH Cinergy Hybrid XE. I have only the possibility to receive Analog TV. I’ve read that I have to change the configuration from DVB-T to Analog, but I didn’t found any tutorial. Can anybody help me please? I’m from Germany is there any different between NTSC and PAL for configuration?
Regards

That version does support analogue, you have the stable version.

RE: Using Analog TV with tvheadend - Added by Patrick Sch over 9 years ago

I didn't know what I'm doing wrong with my setting up :( I cant find any Sender and now I'm despairing :'(

RE: Using Analog TV with tvheadend - Added by Patrick Sch over 9 years ago

I've found an instruction for using an analog Tuner.

My first Problem ist: How can I edit and compile my Kernel in Step 1?


Well this should be fun.
1. First of all you will need to compile a new kernel. in .config change CONFIG_VIDEO_PVRUSB2_DVB=y to CONFIG_VIDEO_PVRUSB2_DVB=n
compile and install the kernel. (otherwise tvheadend will only recognize the dvb-t tuner)
2. extract the firmware from windows driver for HVR-1900 and copy the .fw files to /lib/firmware/. (there is a perl script for it, google is your friend)
3. apt-get install v4l-utils
v4l2-ctl -s pal-B
This will give you sound. since apparently someone thought it was a good idea to set the default state to ntsc on a pal card.
now you have the card working, But tvheadend will not pick it up since the mpeg2 decoder check is screwed. So you will need to compile it from git.
4. git clone https://github.com/tvheadend/tvheadend.git
Edit the src/v4l.c
change
int can_mpeg = 0;
to
int can_mpeg = 1;
save it
5. compile tvheadend. Make sure you replace the old install so you don't install it to another directory.
If it fails with some strange looking sysinfo error, edit /usr/include/linux/sysinfo.h and add:
#ifndef __kernel_long_t
typedef long __kernel_long_t;
typedef unsigned long __kernel_ulong_t;
#endif
ugly hack but works.
once installed you will need to use scantv to find the frequency of the channels and add them manually into tvheadend. After that it should work.
Have fun!

RE: Using Analog TV with tvheadend - Added by Anthony Thomas over 9 years ago

You might be able to get it to work by using the Pipe method and using FFMPEG to create an MPEG-TS stream from the analog tuner.

https://tvheadend.org/projects/tvheadend/wiki/Custom_MPEG-TS_Input

RE: Using Analog TV with tvheadend - Added by nf gb about 9 years ago

Hi,

Regarding analog TV with the Pipe method. Has anyone used it yet? I've seen lots of posts and documentation saying it is possible but no one claiming to have used it.
If so how would I do it? Is it as easy as adding an iptv mux with url:
pipe:///usr/bin/ffmpeg -loglevel fatal -i /dev/video0 -vcodec copy -acodec copy -metadata service_provider=STRING
-metadata service_name=STRING -f mpegts -tune zerolatency pipe:1

and then tvh would automatically tune all the channels like a digital source?

TIA

    (1-7/7)