Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Problems playing NTSC-material with mplayer-plugin on FF-dvb-card



On 23/10/2004, at 7:15 AM, Harri Kukkonen wrote:

I can't get mplayer-plugin (or is it called just MP3-plugin now?) to play NTSC-based material (29.97 or 23.976 fps) on my FF DVB-card. More specifically the problem is with Xvid etc. files which need to be encoded into MPEG1 for the FF-card.
Playing ntsc mpeg-files works, and also playing PAL (25fps) xvid and divx files works.
If I set NTSC="false" in mplayer.sh.conf, then the playback works since everything is transformed to PAL. But I'd rather play these in their original speed since my tv is NTSC-capable.

Googling the issue I found just one relevant article, and even it was related to mencoder:
http://itdp.fh-biergarten.de/mplayer-users/2004-07/msg00474.html

The problem obviously is with mplayer and not the plugin directly, but I was hoping someone would know a way to fix this issue.

Attached is the mplayer commandline that the plugin uses and the relevant piece of mplayer's output.

Here is some version information from my Gentoo (x86 stable) system:
ffmpeg-0.4.7, mplayer-1.0_pre4-r7, vdr-1.3.12, MP3-plugin 0.9.7
DVB-card is Fujitsu-Siemens DVB-C

-- Harri Kukkonen
hkkukkon@cc.hut.fi
Here is the mplayer commandline that the player tries:

logger: *** DEBUG: Variable CMDLINE has value "/usr/bin/mplayer -vo mpegpes -ao mpegpes -vop lavc=5000:29.970,expand=512:480:-1:-1:1,scale=512:480 -cache 4096 -slave -nolirc -subpos 80 -sub-bg-color 0 -sub-bg-alpha 0 -quiet "

And here is a snippet of the log that mplayer gives:

Cache fill: 0.00% (0 bytes) AVI file format detected.
VIDEO: [XVID] 512x384 16bpp 29.970 fps 946.4 kbps (115.5 kbyte/s)
======================================================================= ===
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
======================================================================= ===
Opening /dev/dvb/adapter0/video0+audio0
Opening video filter: [lavc=5000:29.970]
Opening video filter: [expand w=512 h=480 x=-1 y=-1 osd=1]
Expand: 512 x 480, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=512 h=480]
======================================================================= ===
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
======================================================================= ===
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [mpegpes] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
PLAYBACK STARTED
mplayer: slave cmd: seek 2.0 1
VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using 3DNOW
[mpeg1video @ 0x847b880]removing common factors from framerate
[mpeg1video @ 0x847b880]MPEG1/2 doesnt support 2997/100 fps
Could not open codec.
FATAL: Cannot initialize video driver.

FATAL: Could not initialize video filters (-vf) or video output (-vo).

The problem (apparently) is a bug in ffmpeg. It supposedly can't accept fractional framerates. A solution (of sorts because it may in fact do nothing helpful) is to change the manner in which mplayer is called. It was suggested to me that it should not be lavc=bitrate:fps but rather lavc=bitrate=fps . That works in that it displays to the screen but I haven't had much time to work out what parameters mplayer ACTUALLY uses.

Good luck.

Regards,
Michal Dobrzynski





Home | Main Index | Thread Index