Hallo,
ich versuche (als kleinen Ersatz für das AnalogTV-Plugin) die TV-Ausgabe (analog) des Movieplayers auf meiner TT DVB-S 1.6
wiederzugeben, was (bis auf den Ton) ohne Probleme funktioniert.
Ein Problem mit den Soundtreibern schliesse ich eigentlich aus, da dass Abspielen eines Filmes über DVB (mplayer) und
das Aufnehmen des analogen TV´s (mencoder) mit Ton funktioniert!
Kann es sein, dass der MPlayer keine Tonausgabe für´s analoge TV bietet? Dann dürfte ja aber der mencoder (der zum mplayer
gehört, auch nur eine Aufnahme ohne Ton liefern :-/ )
Ich habe mal alle 3 Befehlszeilen und die Ausgaben (verbose) angehangen. Ich hoffe mir kann jemand weiterhelfen:
1. Ausgabe des analogen TV-Signals über die DVB-Karte (kein Audioton)
mplayer -tv driver=v4l2:device=/dev/video1:freq=231.250:input=0:norm=PAL:height=288:width=352:alsa -vo mpegpes -ao mpegpes -vop lavc=5000:25,expand=352:288:-1:-1:1,scale=352:288 -framedrop -cache 4096 -slave -nolirc -subpos 80 -sub-bg-color 0 -sub-bg-alpha 30 -v 3 tv://
MPlayer 1.0pre7try2-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
Playing tv://.
Cache fill: 0.00% (0 bytes) TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: BT878 video (Typhoon TView RDS
Tuner cap:
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video; 3 = Composite3;
Current input: 0
Current format: YUV420
v4l2: current audio mode is : MONO
Opening /dev/dvb/adapter0/video0+audio0
Opening video filter: [lavc=5000:25]
Opening video filter: [expand w=352 h=288 x=-1 y=-1 osd=1]
Expand: 352 x 288, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=352 h=288]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
[mpeg1video @ 0x86f1b20]removing common factors from framerate
VO: [mpegpes] 352x288 => 352x288 Mpeg PES [fs]
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
SLAVE: time=0.00 position=0.00
MPlayer interrupted by signal 2 in module: decode_video
MPlayer interrupted by signal 2 in module: enable_cache
v4l2: 94 frames successfully processed, 0 frames dropped.
Alles anzeigen
2. Aufnahme des analogen TV-Signale mit dem mencoder (klappt alles, inkl. Ton):
mencoder -tv driver=v4l2:device=/dev/video1:freq=231.250:input=0:norm=PAL:height=288:width=352:alsa -ovc divx4 -oac pcm -o output.avi tv://
MEncoder 1.0pre7try2-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: BT878 video (Typhoon TView RDS
Tuner cap:
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video; 3 = Composite3;
Current input: 0
Current format: YUV420
v4l2: current audio mode is : MONO
[V] filefmt:9 fourcc:0x32315659 size:352x288 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
CBR PCM audio selected
Building audio filter chain for 44100Hz/1ch/s16le -> 44100Hz/2ch/s16le...
Writing AVI header...
ODML: vprp aspect is 16384:13405.
Forcing audio preload to 0, max pts correction to 0
ODML: vprp aspect is 16384:13405.
Pos: 0.4s 9f ( 0%) 7fps Trem: 0min 0mb A-V:0.000 [0:0]
Flushing video frames
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:13405.
Video stream: 2895.422 kbit/s (361927 bps) size: 130294 bytes 0.360 secs 9 frames
Audio stream: 1411.200 kbit/s (176400 bps) size: 88200 bytes 0.500 secs
v4l2: 31 frames successfully processed, 0 frames dropped.
Alles anzeigen
3. Ausgabe einer Videodatei über DVB (alles klappt, inkl. Audioton):
mplayer -tv driver=v4l2:device=/dev/video1:freq=231.250:input=0:norm=PAL:height=288:width=352:alsa -vo mpegpes -ao mpegpes -vop lavc=5000:25,expand=352:288:-1:-1:1,scale=352:288 -framedrop -cache 4096 -slave -nolirc -subpos 80 -sub-bg-color 0 -sub-bg-alpha 30 -v 3 /vol/f/Videos/Filmpremiere - 3 Engel fuer Charlie 2.avi
MPlayer 1.0pre7try2-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
CommandLine: '-tv' 'driver=v4l2:device=/dev/video1:freq=231.250:input=0:norm=PAL:height=288:width=352:alsa' '-vo' 'mpegpes' '-ao' 'mpegpes' '-vop' 'lavc=5000:25,expand=352:288:-1:-1:1,scale=352:288' '-framedrop' '-cache' '4096' '-slave' '-nolirc' '-subpos' '80' '-sub-bg-color' '0' '-sub-bg-alpha' '30' '-v' '3' '/vol/f/Videos/Filmpremiere - 3 Engel fuer Charlie 2.avi'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
Font /root/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('3.conf') -> '/root/.mplayer/3.conf'
Playing 3.
File not found: '3'
Failed to open 3
get_path('Filmpremiere - 3 Engel fuer Charlie 2.avi.conf') -> '/root/.mplayer/Filmpremiere - 3 Engel fuer Charlie 2.avi.conf'
Playing /vol/f/Videos/Filmpremiere - 3 Engel fuer Charlie 2.avi.
[file] File size is 2570655 bytes
STREAM: [file] /vol/f/Videos/Filmpremiere - 3 Engel fuer Charlie 2.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:401408
Cache fill: 9.57% (401408 bytes) Checking for YUV4MPEG2
ASF file format detected.
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes, stream: 8 bytes ID: 1
unk1: 0 unk2: 78
FILEPOS=0x128
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 1
Samplerate: 16000
avg byte/sec: 2000
Block align: 640
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [22] [0] [0] [e] [0] [80] [7] [0] [0]
===========================
ASF: audio scrambling: 1 x 1 x -128
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 51 bytes, stream: 0 bytes ID: 2
unk1: 0 unk2: 78
FILEPOS=0x19A
==> Found video stream: 2
======= VIDEO Format ======
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 827739479='WMV1'
biSizeImage 0
===========================
ASF: packets: 902 flags: 2 max_packet_size: 2849 min_packet_size: 2849 max_bitrate: 227880 preroll: 3100
============ ASF Stream group == START ===
stream count=[0x2][2]
stream id=[0x1][1]
max bitrate=[0x4790][18320]
stream id=[0x2][2]
max bitrate=[0x33298][209560]
============ ASF Stream group == END ===
Found movie at 0x359 - 0x27399F
ASF: 1 audio and 1 video streams found
Auto-selected ASF audio ID = 1
Auto-selected ASF video ID = 2
ASF: Searching for audio stream (id:1).
VIDEO: [WMV1] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6 fourcc:0x31564D57 size:320x240 fps:1000.00 ftime:=0.0010
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 16000 Hz, 1 ch, s16le, 16.0 kbit/6.25% (ratio: 2000->32000)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
Opening /dev/dvb/adapter0/video0+audio0
Opening video filter: [lavc=5000:25]
Opening video filter: [expand w=352 h=288 x=-1 y=-1 osd=1]
Expand: 352 x 288, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=352 h=288]
SwScale params: 352 x 288 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffwmv1] vfm:ffmpeg (FFmpeg M$ WMV1/WMV7)
==========================================================================
Checking audio filter chain for 16000Hz/1ch/s16le -> 16000Hz/2ch/s16le...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 16000Hz/1ch/s16le
AF_pre: 16000Hz/1ch/s16le
[AO MPEGPES] 16000 Hz not supported, try to resample...
AO: [mpegpes] 48000Hz 2ch s16le (2 bps)
AO: Description: DVB audio output
AO: Author: A'rpi
Building audio filter chain for 16000Hz/1ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 16000Hz/1ch/s16le
[libaf] Adding filter resample
[resample] Changing sample rate to 48000Hz
[resample] Changing sample rate to 48000Hz
[resample] Using linear interpolation.
[libaf] Adding filter channels
[channels] Changing number of channels to 2
[dummy] Was reinitialized: 16000Hz/1ch/s16le
[resample] Using linear interpolation.
Starting playback...
avg. framerate: 15 fps
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
Trying filter chain: scale expand lavc vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=1,'MPlayer',0x32315659)
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 320x240 -> 352x288
REQ: flags=0x501 req=0x0
REQ: flags=0x101 req=0x0
[mpeg1video @ 0x86f1b20]removing common factors from framerate
REQ: flags=0x103 req=0x0
VO: [mpegpes] 352x288 => 384x288 Mpeg PES [fs]
VO: Description: Mpeg-PES to DVB card
VO: Author: A'rpi
*** [lavc] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
*** [expand] Direct Rendering mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
*** [scale] Allocating (slices) mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [vo] Exporting mp_image_t, 352x288x0bpp RGB packed, 0 bytes
*** [scale] Allocating (slices) mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
[libaf] Reallocating memory in module resample, old len = 0, new len = 6002
[libaf] Reallocating memory in module channels, old len = 0, new len = 12002
[libaf] Reallocating memory in module resample, old len = 6002, new len = 7004
[libaf] Reallocating memory in module channels, old len = 12002, new len = 14006
SLAVE: time=5.90 position=3.44
MPlayer interrupted by signal 2 in module: play_audio
Uninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter resample
[libaf] Removing filter channels
uninit audio: ffmpeg
uninit video: ffmpeg
vo: x11 uninit called but X11 not inited..
Alles anzeigen