Mencoder

Stefan Ehmann shoesoft at gmx.net
Wed Oct 29 08:57:12 UTC 2008


On Wednesday 29 October 2008 08:48:06 newbie at poq.co.za wrote:
> >> On Friday 24 October 2008 08:40:04 newbie at poq.co.za wrote:
> >>> Hi There
> >>>
> >>> I have a Brooktree chipped card. It's got 4 video inputs.
> >>> I'm trying to record video, no audio from all 4 channels
> >>> of the card using mencoder. I use fxtv to display video
> >>> on the seperate channels. I get video on all of them. This
> >>> is the command I use
> >>>
> >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 0
> >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 1
> >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 2
> >>> fxtv -disableDirectV -inputFormat paln -deviceNumber 3
> >>>
> >>> So i got video on all of them, but when I record using
> >>> mencoder I only get video on the first device. Device
> >>> (1,2 and 3) got no video(blue screen). But from fxtv
> >>> it works fine.
> >>>
> >>> mencoder -tv
> >>> device=/dev/bktr0,/dev/tuner0:driver=bsdbt848:width=640:height=480:norm
> >>>=pal tv:// -o tv.avi -ovc lavc -nosound
...
> I have found the problem. But I don't know how to fix it. Its inside the
> patch 'patch-stream-tvi_bsdbt848.c' in mplayer's port folder. There is a
> hardcoded variable "   +priv->btdev = strdup("/dev/bktr0");  ". If I
> change it for example /dev/bktr7, That channel works fine.
>
> Can anyone please help me to fix this. I want mplayer/mencoder to except my
> input from console, not a hardcoded variable in the source.

The patch doesn't seem to be correct. The device parsed in tvi_init_bsdbt848() 
gets overwritten in init().

Removing this line from init() should fix it:
priv->btdev = strdup("/dev/bktr0");

-- 
Stefan


More information about the freebsd-multimedia mailing list