Great that seemed to do the job, and now I can capture a local MPG (albeit tuned to garbage)
I'm trying to capture UHF C68 in the UK (which is tuned to my Sky TV Box), I believe this should be frequency 850.0 Mhz (based on information found here https://ukfree.tv/maps/uhfchannel/68)
I notice from the logs when the scripts run that its actually trying to capture 487.250 Mhz:
./capture-analog -c 68 -s /dev/video0 -o sky.mpg
SOURCES=[/dev/video0]
Will tune to channel [68] (table=default)
Begin capture from /dev/video0 (VBI=none AUDIO=hw:1,0 TUNER=true)
Querying audio capabilities for [hw:1,0]...
/dev/video0: 487.250 MHz
+ /usr/bin/ffmpeg -r 30000/1001 -f v4l2 -i /dev/video0 -f alsa -ac 2 -ar 48000 -i hw:1,0 -f mpegts -c:v mpeg2video -b:v 8000k -filter:v yadif=0:-1:0 -c:a ac3 -b:a 224k -y sky.mpg
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/arm-linux-gnueabihf --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[video4linux2,v4l2
0x1b9c960] The driver does not permit changing the time per frame
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 68879.289732, bitrate: 165722 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x480, 165722 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'hw:1,0':
Duration: N/A, start: 1457603064.392267, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
No pixel format specified, yuv422p for MPEG-2 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
Output #0, mpegts, to 'sky.mpg':
Metadata:
encoder : Lavf56.25.101
Stream #0:0: Video: mpeg2video, yuv422p, 720x480, q=2-31, 8000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Metadata:
encoder : Lavc56.26.100 mpeg2video
Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
Metadata:
encoder : Lavc56.26.100 ac3
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> ac3 (native))
Press [q] to stop, [?] for help
[alsa
0x1b9dce0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[video4linux2,v4l2 @ 0x1b9c960] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
frame= 135 fps= 12 q=24.8 Lsize= 11656kB time=00:00:04.48 bitrate=21267.7kbits/s
video:10765kB audio:28kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.992982%
Received signal 2: terminating.
+ set +x
So I figured I would try the -f command line to specify a frequency, but it just errors:
./capture-analog -f 850 -s /dev/video0 -o sky.mpg
ERROR: Frequency specification [850] is not valid
I've tried 850, 850.0, 850.0Mhz all of which are not valid options (what is the format for using the -f command setting?)
Regards
David