Hello list,

I'm having some trouble recording from a v4l capturing device (it's
video only and emulates a soundcard which I try to capture sound from).
Sound is PAL and the output format is virtually irrelevant (as long as
it's not uncompressed and I can read it with some other OSS afterwards).

I've tried going from the wiki entry and ended up with

transcode -x v4l2=resync_margin=1:resync_interval=250,v4l2 \
                        -g 640x480 \
           -i /dev/video0 \
           -y ffmpeg -F mjpeg \
           -p /dev/dsp \
           -E 48000,16,2 \
           --lame_preset medium \
           -o clip.avi

However, the colors look broken, although it somewhat resembles the picture:

http://www.bilder-space.de/show.php?file=14.03jKsfg5aQRf2LAGP.png

When I play the video capture source directly with mplayer, the picture
looks alright:

mplayer tv:// -tv driver=v4l2:width=640:height=480

I really hope somebody knows how to solve this. In order to debug, I've
attached the transcode output and mplayer output at the bottom, in case
it helps.

Kind regards,
Johannes

transcode -x v4l2=resync_margin=1:resync_interval=250,v4l2 \
                        -g 640x480 \
           -i /dev/video0 \
           -y ffmpeg -F mjpeg \
           -p /dev/dsp \
           -E 48000,16,2 \
           --lame_preset medium \
           -o clip.avi

transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] auto-probing source /dev/video0 (failed)
[transcode] V: import format    | unknown  (V=v4l2|A=v4l2)
[transcode] V: import frame     | 720x576  1.25:1
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128
kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0...@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_v4l2.so] v1.3.5 (2005-03-11) (video) v4l2 | (audio) pcm
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.50.0 | (audio)
MPEG/AC3/PCM
[import_v4l2.so]: v4l2 audio grabbing
[import_v4l2.so]: v4l2 video grabbing
[import_v4l2.so]: resync enabled, margin = 1 frames, interval = 250 frames,
[import_v4l2.so]: video grabbing, driver = em28xx, card = PointNix
Intra-Oral Camera
[import_v4l2.so]: Pixel format conversion: YVU420 [planar] -> YUV420
[planar] (no conversion)
[import_v4l2.so]: driver does not support setting parameters
(ioctl(VIDIOC_S_PARM) returns "Invalid argument")
[import_v4l2.so]: checking colour & framerate standards: [PAL]
[import_v4l2.so]: receiving 25 frames / sec
[import_v4l2.so]: frame size: 720x576
[import_v4l2.so]: cropcap bounds: 720x576 +0+0
[import_v4l2.so]: cropcap defrect: 720x576 +0+0
[import_v4l2.so]: cropcap pixelaspect: 54/59
[import_v4l2.so]: driver does not support inquering cropping parameters
(ioctl(VIDIOC_G_CROP) returns "Invalid argument")
[import_v4l2.so]: 32 buffers available
[export_ffmpeg.so]: INFO: output is mjpeg or ljpeg, extending range from
YUV420P to YUVJ420P (full range)
[filter.c] Filter "levels=input=16-240" with args (levels=input=16-240)
[filter.c] Filter "levels=input=16-240" not loaded. Loading ...
[filter.c] Loading (levels=input=16-240) ..
[filter_levels.so]: v1.0.0 (2004-06-09) Luminosity level scaler #0
[filter_levels.so]: scaling 16-240 gamma 1.000000 to 0-255
[filter_levels.so]: post-processing filter
[export_ffmpeg.so] Using FFMPEG codec 'mjpeg' (FourCC 'MJPG', Motion JPEG).
[export_ffmpeg.so]: WARNING: Interlacing parameters unknown, use
--encode_fields
[export_ffmpeg.so]: INFO: No profile selected
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Set display aspect ratio to input
[mjpeg @ 0xb51722f0]removing common factors from framerate
Audio: using new version
Audio: using lame-3.98

mplayer tv:// -tv driver=v4l2:width=640:height=480
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1400MHz (Family: 6, Model: 9,
Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 <[email protected]>
 comment: first try, more to come ;-)
Selected device: PointNix Intra-Oral Camera
 Capabilites:  video capture  audio  read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4
= NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 =
PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B;
16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
 inputs: 0 = S-Video;
 Current input: 0
 Current format: YUYV
Selected input hasn't got a tuner!
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...

Reply via email to