So you managed to get ffmpeg to record a stream from VDR/analogTV ????
Could you send me your channels.conf (looks like you're in the same part of the world as me :))? What type of card are you using?
Love to but I deleted them from vdr already. I don't know if FFMPEG was actually doing anything because I couldn't get anything to show -- it was encoding.. what who knows. I'm in Canada btw -- is that the same area?
I have a Hauppauge WinTV to GO card -- basic analog no encoder and not supported by ivtv. Apparently its much easier if you have a card supported by ivtv.
KOMOTEST1:4:B7C12D0:C:0:301:300:0:32001:0:0:0:0
I've made some changes to the above that I used to get some output. I also use C0 rather then C12 but that varies depending on your card. You also need to put in a frequency instead of the '4'. I don't recall the program I used to get them but I know xawtv will show them as well.
When you run VDR at the console, you should see it trying to start ffmpeg -- does it give you an error? I also had issue where the plugin had configured PAL resolutions and no NTSC resolutions so FFMPEG had issues with the mixed command line for NTSC but a PAL resolution that was incompatible. It involved modifying the source code to get it past that point. If this is the blocker, it should give you an error in the vdr output though...
Also, did you apply all the recommended patches from the vdr wiki page? I use the German pages because the english ones are way out of date for most of the plugins.
Norm
On Tue, 2006-05-16 at 08:55 -0700, Simon Baxter wrote:
Well, the same landmass and TV standard :) I'm a New Zealander, lived in the UK for several years using VDR with DVB-T, moved to Washington 3 months ago
Mine's a WinTV-USB2 - similarly not supported by ivtv
KOMOTEST1:4:B7C12D0:C:0:301:300:0:32001:0:0:0:0
Where did you come up with the 301/300?
I can't get xawtv to work for FC5 :( I wasn't sure about the frequency - as tvtime just stores 'channel 4' and not the frequency. So didn't know what the thing wanted in the way of channel definitions.
I don't get anything on the console when I change channels???
I applied all the patches against VDR - but no others.
Norm
Simon
KOMOTEST1:4:B7C12D0:C:0:301:300:0:32001:0:0:0:0
Where did you come up with the 301/300?
Not really sure -- probably from the plugin readme.
Try scantv that comes with xawtv -- xawtv might not work but hopefully scantv does.
There are patches to the plugin you need to do -- check out http://www.vdr-wiki.de/wiki/index.php/Analogtv-plugin
You can also look at this post http://www.linuxtv.org/pipermail/vdr/2006-May/009257.html It helped me as well.
Norm
Have found tvtime for FC5 works: [root@media ~]# tvtime-scanner -d /dev/video1 Reading configuration from /etc/tvtime/tvtime.xml Reading configuration from /root/.tvtime/tvtime.xml Scanning using TV standard NTSC. /root/.tvtime/stationlist.xml: No existing NTSC station list "Custom". Scanning from 44.00 MHz to 958.00 MHz. Found a channel at 52.50 MHz (51.75 - 53.25 MHz), adding to channel list. Found a channel at 54.75 MHz (54.50 - 54.75 MHz), adding to channel list. Found a channel at 56.00 MHz (55.25 - 56.75 MHz), adding to channel list. Found a channel at 59.25 MHz (59.00 - 59.25 MHz), adding to channel list. Found a channel at 66.25 MHz (64.50 - 68.00 MHz), adding to channel list. Found a channel at 76.50 MHz (75.00 - 78.00 MHz), adding to channel list. Found a channel at 85.50 MHz (84.75 - 86.00 MHz), adding to channel list.
I've applied the main one for 'player-analogtv.c'. Will re-check which ones I applied to get it to compile...
Yeah - that was my post :))
You would use 52500 has the frequency as it is in hertz.
So, I recompiled the plugin and now I'm getting some action:
11:50:52 Switching to channel 0 on device 4 11:50:52 Switching to channel 0 on device 5 11:50:52 Channel: KOMO, SID=12003, 52.50 MHz (???), NTSC 11:50:52 Video device: /dev/video1 11:50:52 Video source: 0:Television 11:50:52 Encoder must be restarted 11:50:54 Switching to channel 1 on device 5 11:50:54 Switching to channel 1 on device 4 11:50:54 NEW Audio-PID=80, Video-PID=160 11:50:54 runEncoder(Apid=80, Vpid=160) 11:50:54 ffmpeg -f mpeg1video -s 352x288 -ad /dev/dsp:14 -ar 44.1 -vd /dev/video1 -ac 1 -b 2000 -ab 80 -y -hq -re -title analogTV -author analogTV -copyright GPL -comment analogTV -aspect 4:3 -tvstd NTSC /tmp/.analogtv.avi & 11:50:54 nice() failed, 13:Permission denied FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faad --enable-faac --enable-libgsm --enable-xvid --enable-x264 --enable-a52 --enable-a52bin --enable-dts --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-opts --disable-strip libavutil version: 49.0.0 libavcodec version: 51.7.0 libavformat version: 50.3.0 built on Mar 17 2006 10:19:16, gcc: 4.1.0 20060304 (Red Hat 4.1.0-3) ffmpeg: unrecognized option '-hq' 11:50:54 flush_buffer()
Can't work out why the '-hq' doesn't work, but modified the sourcefile to remove the option. Now I get:
12:51:47 Switching to channel 0 on device 5 12:51:47 Channel: KOMOTEST1, SID=12003, 52.50 MHz (???), NTSC 12:51:47 Video device: /dev/video1 12:51:47 Video source: 0:Television 12:51:47 Receiver #1 attached 12:51:47 Switching to channel 1 on device 5 12:51:47 NEW Audio-PID=80, Video-PID=160 12:51:47 runEncoder(Apid=80, Vpid=160) 12:51:47 ffmpeg -f mpeg1video -s 352x288 -ad /dev/dsp:14 -ar 44.1 -vd /dev/video1 -ac 1 -b 2000 -ab 80 -y -re -title analogTV -author analogTV -copyright GPL -comment analogTV -aspect 4:3 -tvstd NTSC /tmp/.analogtv.avi & 12:51:47 nice() failed, 13:Permission denied <snip>
I'm not sure where 'nice' is being called - and this error doesn't occur if run as 'root'. Will have to see what I get, when I'm local to the machine again and can see the picture. I still have problems - and a recording doesn't write any data to 001.vdr....but at least the plugin's doing something now.
On Tue, 2006-05-16 at 13:57 -0700, Simon Baxter wrote:
This is where I left it and gave up. Hopefully someone can solve this problem for you. I didn't have the issue with the -hq switch. I'm running this version of ffmpeg: FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard configuration: --prefix=/usr --enable-gpl --enable-mp3lame --enable-libogg --enable-vorbis --enable-pp --enable-faac --enable-faad --enable-a52 --enable-xvid --enable-dts --enable-pp --enable-shared --enable-pthreads libavutil version: 49.0.0 libavcodec version: 51.9.0 libavformat version: 50.4.0 built on May 7 2006 14:54:44, gcc: 4.0.3
Norm