[Mplayer-dvb] Audio resampling 44.1 -> 48 Khz with DVB-s
Achim Lange
Achim_Lange at t-online.de
Tue Jan 8 00:11:50 CET 2002
Hello Arpi,
I just read on the mplayer homepage that 0.60 was released. Congratulations!
I hope, my question is not answered somewhere in the docs, I looked but did
not find it. My last "knowledge" was, that the resampling only worked in a
CVS version for the Hollywood-card.
Now I read, that the resampling is a generic feature for the released 0.60.
I tried several divx-files (44.1 kHz-audio with -aop
list=resample:fout=48000 or 49152 (which would be more suitable for the
DVB-card?)), but sometimes Mplayer stops replay after 1-2 secs (there is a
start-picture of the film on screen), consuming 99% CPU-time, but does
nothing you would see or hear. (with -vc ffdivx, regardless of -framedrop or
not)
With -vc odivx it dies after around 1 sec with "interrupted by signal 8 in
modules: flip_page"
Without the -aop option and -vc ffdivx the movie plays, but with unusable
sound (the alien problem).
Is this expected behaviour with 0.60 and DVB, does it make sense to try a
CVS-version or do I just have to be a little more patient? :)
Thanks for your great work,
Achim
P.S. here is a complete "log", in case it is not expected behaviour:
stb:/data/mplay# mplayer -aop list=resample:fout=49152 -ao mpegpes -vo
mpegpes -v -vc ffdivx /data/mplay/Dogma.CD1.DVDrip.Divx-TDR.avi
MPlayer 0.60-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Type: 6, Stepping:
6)
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with features: MMX MMX2 SSE
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf':
No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 26 audio & 70 video codecs
CommandLine: '-aop' 'list=resample' '-ao' 'mpegpes' '-vo' 'mpegpes' '-v'
'-vc' 'ffdivx' '/data/mplay/Dogma.CD1.DVDrip.Divx-TDR.avi'
num_filenames: 1
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Setting up lirc support...
LIRC init was successful.
Linux RTC init: open: No such device
Using usleep() timing
Playing /data/mplay/Dogma.CD1.DVDrip.Divx-TDR.avi
get_path('sub/') -> '/root/.mplayer/sub/'
Not an URL!
File size is 604362752 bytes
Detected AVI file format!
======= AVI Header =======
us/frame: 41708 (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 90000 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 352
==> Found video stream: 0
======= STREAM Header =======
Type: vids FCC: DIV4 (34564944)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 23976/1000 = 23.976
Start: 0 Len: 90000
Suggested BufferSize: 55656
Quality 5000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 352
biPlanes 1
biBitCount 24
biCompression 861292868='DIV3'
biSizeImage 675840
===========================
Regenerating keyframe table for DIVX 3 video
==> Found audio stream: 1
======= STREAM Header =======
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 39966/1 = 39966.000
Start: 0 Len: 150020712
Suggested BufferSize: 834156
Quality -1
Sample size: 1
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 39966
Block align: 1
bits/sample: 0
cbSize: 12
Found movie at 0x280C - 0x23EFCC08
Reading INDEX block, 90181 chunks for 90000 frames
AVI index offset: 10248
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=452165484
VIDEO: [DIV3] 640x352 24bpp 23.98 fps 963.6 kbps (117.6 kbyte/s)
[V] filefmt:3 fourcc:0x33564944 size:640x352 fps:23.98 ftime:=0.0417
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: Processor ID: 686
mp3lib: Using Pentium-MMX optimized decore.
AUDIO: srate=44100 chans=2 bps=2 sfmt=0x10 ratio: 40000->176400
Forcing video codec: [ffdivx] drv:5 prio:0 (FFmpeg DivX ;-) (MS MPEG-4 v3))
FFmpeg's libavcodec video codec
INFO: libavcodec init OK!
Movie-Aspect is undefined - no prescaling applied.
VO: [mpegpes] 640x352 => 640x352 Planar YV12
VO: Description: Mpeg-PES to DVB card
VO: Author: A'rpi
video_out->init(640x352->640x352,flags=0,'MPlayer',0x32315659)
[vo] position mapping: 0;0 => 32;112
INFO: Video OUT driver init OK!
AO: [plugin] 44100Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: Plugin audio output
AO: Author: Anders
[pl_resample] Up=128, Down=115, True fout=49085.217391
Start playing...
XXX initial v_pts=0.000 a_pos=19836 (0.496) 1 0% 0% 0.0% 0 0 0%
A: -0.0 V: 0.5 A-V: -0.459 ct: -0.046 12/ 12 10% 128% 0.0% 0 0 0%
MPlayer interrupted by signal 2 in module: decode_video
stb:/data/mplay#
More information about the MPlayer-dvb
mailing list