Richard Palmer
asked this on August 17, 2010 12:37
The card is defaulting to CIF (352x288) capture resolution, but when I try to set it to D1 resolution with mplayer it gives a device busy notice and seems to ignore it:
mplayer -tv device=/dev/video3:width=720:height=576:norm=PAL-M:outfmt=mjpeg:fps=25:decimation=1 tv://
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format 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: Softlogic 6010 Enc 2
Capabilites: video capture read/write streaming
supported norms: 0 = NTSC-M; 1 = PAL-M;
inputs: 0 = Encoder 3;
Current input: 0
Current format: unknown (0x4745504d)
==================================================================
WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED (0x47504a4d)
This may cause buggy playback or program crash! Bug reports will
be ignored! You should try again with YV12 (which is the default
colorspace) and read the documentation!
==================================================================
v4l2: ioctl set width failed: Device or resource busy
v4l2: ioctl set height failed: Device or resource busy
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 352x288 => 352x288 Planar YV12
v4l2: ioctl set mute failed: Invalid argument
v4l2: 211 frames successfully processed, 0 frames dropped.
This is straight after the module is loaded so it's not being used/opened by any other video client.
Should I be setting some other option ?
Comments
I believe the card is failing to set the resolution because the resolution you selected doesn't exist. Try picking from one below:
The card supports these resolutions:
NTSC:
352x240
704x240
704x480
PAL:
352x288
704x288
704x576
Hi Curtis,
None of the PAL resolutions seem to work (all fail with ioctl busy). Perhaps I am missing something (again) but I can only seem to get 704x576 on video0, not on the encoders. Should it be able to encode MJPEG/MPEG4 at 704x576?
thanks,
Richard
This appears to be an issue with mplayer, we weren't able to change the resolution with mplayer (using the same configuration) either.
Thanks
Any solution to this? maybe ffmpeg?
Perhaps this?
v4l2-ctl --v width=704,height=480