Вот мой скромный опыт по HDTV с картой HVR-4000
Загрузка Multiproto и Patch'а:
Bash
#!/bin/sh -e
cd ~/MULTIPROTO
wget http://www.linuxtv.org/pipermail/linux-dvb/attachments/20071213/c316e7cc/attachment-0001.bin -O ./hvr4000-multiproto.patch.bz2
bzip2 -d hvr4000-multiproto.patch.bz2
cd /usr/src
hg clone http://jusst.de/hg/multiproto/
cd /usr/src/multiproto/
cp ~/MULTIPROTO/hvr4000-multiproto.patch .
patch -p1 < hvr4000-multiproto.patch
cd /usr/src/multiproto/linux/include/linux
ln -s /usr/src/linux-headers-2.6.22-3-686/include/linux/compiler.h compiler.h
Показать весь код
Компиляция:
Bash
#!/bin/sh -e
cd /usr/src/multiproto
make clean
make distclean
make release VER=$(uname -r)
make all
make install
Показать весь код
Настройка каналов:
Bash
#!/bin/sh -e
# 8psk 2/3
# === Вариант 1 (переключение каналов клавишей TAB в mplayer)
# FEC = 2/3
sysctl dev.cx24116.modfec=0x000d
sysctl dev.cx24116.rolloff=2
echo "szap -r -c Astra-19.2E.conf -a0 \"Pro 7 HD\""
szap -r -c Astra-19.2E.conf -a0 "Pro 7 HD"
# === Вариант 2
# FEC = 9/10
#sysctl dev.cx24116.modfec=0x000b
#sysctl dev.cx24116.rolloff=2
#echo "szap -r -c Astra-19.2E.conf -a0 \"Astra HD Promo 2\""
#szap -r -c Astra-19.2E.conf -a0 "Astra HD Promo 2"
Показать весь код
И собственно проигрывание:
Bash
#!/bin/sh -e
dvbsnoop -s ts -b -tsraw | mplayer -cache 32000 -framedrop -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all -
Mplayer взят так:
Bash
#!/bin/sh -e
cd ~/MPLAYER
wget http://www7.mplayerhq.hu/MPlayer/releases/mplayer-checkout-snapshot.tar.bz2
tar xjf mplayer-checkout-snapshot.tar.bz2 -C /usr/local/src/
И скомпилирован так:
Bash
#!/bin/sh -e
cd /usr/local/src/mplayer*
./configure --enable-largefiles --enable-runtime-cpudetection
make
make install
Каналы Astra-19.2E.conf:
Исходный код
Sat 1:12722:h:1:22000:511:515:10201
Pro 7 HD:12722:h:1:22000:255:259:10200
Anixe HD:12722:h:1:22000:1023:1027:10203
Astra HD Promo:12722:h:1:22000:767:768:10202
Astra HD Promo 2:11914:h:1:27500:1279:1283:131
Исходный код
dev.cx24116.modfec = 0x000d
dev.cx24116.rolloff = 2
szap -r -c Astra-19.2E.conf -a0 "Pro 7 HD"
reading channels from file 'Astra-19.2E.conf'
zapping to 2 'Pro 7 HD':
sat 1, frequency = 12722 MHz H, symbolrate 22000000, vpid = 0x00ff, apid = 0x0103 sid = 0x27d8
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 1f | signal cf40 | snr 0000 | FE_HAS_LOCK
status 1f | signal ce40 | snr 0000 | FE_HAS_LOCK
status 1f | signal ce40 | snr f000 | FE_HAS_LOCK
status 1f | signal ce40 | snr f000 | FE_HAS_LOCK
status 1f | signal ce40 | snr f000 | FE_HAS_LOCK
status 1f | signal ce40 | snr f000 | FE_HAS_LOCK
Показать весь код
Исходный код
MPlayer dev-SVN-r25384-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 35, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing -.
Reading from stdin...
Cache fill: 19.82% (6496256 bytes)
Win32 LoadLibrary failed to load: avisynth.dll, /usr/local/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
TS file format detected.
VIDEO H264(pid=255) AUDIO A52(pid=259) NO SUBS (yet)! PROGRAM N. 10200
FPS seems to be: 25.000000
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Invalid argument
[AO_ALSA] alsa-lib: pcm_hw.c:1099:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1920 x 1088 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
VO: [xv] 1920x1088 => 1920x1088 Planar YV12
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[h264 @ 0x889d190]concealing 6960 DC, 6960 AC, 6960 MV errors,?% 0 0 0%
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
A:50117.1 V:50119.5 A-V: -2.367 ct: -0.208 53/ 53 66% 8% 0.5% 4 0 1%
Показать весь код
Исходный код
dev.cx24116.modfec = 0x000b
dev.cx24116.rolloff = 2
szap -r -c Astra-19.2E.conf -a0 "Astra HD Promo 2"
reading channels from file 'Astra-19.2E.conf'
zapping to 5 'Astra HD Promo 2':
sat 1, frequency = 11914 MHz H, symbolrate 27500000, vpid = 0x04ff, apid = 0x0503 sid = 0x0083
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 1f | signal d500 | snr 0000 | FE_HAS_LOCK
status 1f | signal d4c0 | snr 0000 | FE_HAS_LOCK
status 1f | signal d4c0 | snr ffff | FE_HAS_LOCK
status 1f | signal d540 | snr ffff | FE_HAS_LOCK
status 1f | signal d4c0 | snr ffff | FE_HAS_LOCK
status 1f | signal d4c0 | snr ffff | FE_HAS_LOCK
Показать весь код
Исходный код
MPlayer dev-SVN-r25384-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 35, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing -.
Reading from stdin...
Cache fill: 19.82% (6496256 bytes)
Win32 LoadLibrary failed to load: avisynth.dll, /usr/local/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
TS file format detected.
VIDEO H264(pid=1279) AUDIO A52(pid=1283) NO SUBS (yet)! PROGRAM N. 131
FPS seems to be: 25.000000
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Invalid argument
[AO_ALSA] alsa-lib: pcm_hw.c:1099:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1920 x 1088 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
VO: [xv] 1920x1088 => 1920x1088 Planar YV12
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
[h264 @ 0x889d190]Interlaced pictures + spatial direct mode is not implemented
A:34162.0 V:34163.5 A-V: -1.530 ct: -0.816 205/205 75% 8% 0.5% 1 0 13%
Показать весь код