Register from TV: problem with colorspace.
ezzetabi <[email protected]> Sat, 29 Aug 2009 16:32:49 +0200
| Newsgroups | gmane.comp.video.transcode.user |
|---|---|
| Message-ID | <[email protected]> |
I own a DC60+ Easycap device, but at the moment I cannot record.
You might read here about my previous vane tries with mencoder:
http://lists.mplayerhq.hu/pipermail/mencoder-users/2009-August/010669.html
In the movies I encode with mencoder the video track goes a little faster than
the audio track: after a while the audio delay is unacceptable.
So I decided to give transcode a try... Here I am, I cannot even start to record.
I got most of the informations from:
http://www.transcoding.org/transcode?Video4linux_Examples ,
http://www.transcoding.org/transcode?Import_Modules/Import_V4l2
and the f...antastic manual of course.
but I continue to get this error:
[import_v4l2.so] critical: colorspace (2) must be one of RGB, YUV 4:2:0 or YUV 4:2:2
It does matter what format I put in -V: yuv420p, yuv422p or rgb24.
Here a dump of my bash:
$ v4lctl -c /dev/video1 setnorm PAL
$ v4lctl -c /dev/video1 volume mute off
$ v4lctl -c /dev/video1 list
attribute | type | current | default | comment
-----------+--------+---------+---------+-------------------------------------
norm | choice | PAL-DK | NTSC | NTSC NTSC-M NTSC-M-JP NTSC-M-KR
NTSC-443 PAL PAL-BG PAL-H PAL-I PAL-DK PAL-M PAL-N PAL-Nc PAL-60 SECAM SECAM-B
input | choice | Composi | Composi | Composite1 S-Video
bright | int | 128 | 128 | range is 0 => 255
contrast | int | 64 | 64 | range is 0 => 127
color | int | 64 | 64 | range is 0 => 127
hue | int | 0 | 0 | range is -128 => 127
volume | int | 31 | 31 | range is 0 => 31
mute | bool | off | on |
$ cat a.sh
transcode \
-x v4l2=resync_margin=1:resync_interval=250,alsa=device=dc60_plus \
-f 0,3 \
-g 704x576 \
-i /dev/video1 \
-e 48000,16,2 \
-N 0x1 \
-J levels,smartyuv,pv \
-w 8000 \
-y ffmpeg \
-F mjpeg \
-o tvrecord.avi \
--avi_limit 1536
$ cat ~/.asoundrc
pcm.dc60_plus {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave {
pcm {
type hw
card 1
device 0
}
period_time 0
period_size 128
buffer_size 4096
channels 2
rate 48000
}
bindings {
0 0
1 1
}
}
$ sh a.sh
transcode v1.1.3 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
[transcode] V: auto-probing | /dev/video1 (OK)
[transcode] V: import format | (null) in (module=v4l2)
[transcode] A: auto-probing | /dev/video1 (OK)
[transcode] A: import format | PCM in (module=alsa)
[transcode] V: AV demux/sync | (1) sync AV at initial MPEG sequence
[transcode] V: import frame | 704x576 1.22:1 encoded @ UNKNOWN
[transcode] V: bits/pixel | 0.789
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: video format | YUV420 (4:2:0) aka I420
[transcode] A: import format | 0x1 PCM [48000,16,2]
[transcode] A: export format | 0x1 PCM [48000,16,2] 1536 kbps
[transcode] V: export format | unknown (module dependant)
[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 | sse3 sse2 sse mmx cmove asm
[transcode] V: video buffer | 10 @ 704x576 [0x2]
[transcode] A: audio buffer | 10 @ 48000x2x16
[import_alsa.so] v0.0.5 (2007-05-12) (audio) pcm
[import_v4l2.so] v1.6.2 (2008-10-25) (video) v4l2 | (audio) pcm
[filter_levels.so] instance #1
[filter_levels.so] v1.2.0 (2007-06-07) Luminosity level scaler
[filter_levels.so] scaling 0-255 gamma 1.000000 to 0-255 (post-process)
[filter_smartyuv.so] (MMX) 0.1.6 (2007-05-31) Motion-adaptive deinterlacing
[filter_pv.so] v0.2.3 (2004-06-01) xv only preview plugin
[filter_pv.so] preview window 704x576
[pv.c] Xv: Intel(R) Textured Video: ports 81 - 96
[pv.c] Xv: grabbed port 81
[pv.c] Using Xv for display
[export_ffmpeg.so] v0.3.18 (2008-11-29) (video) Lavc52.20.0 | (audio) MPEG/AC3/PCM
[import_alsa.c] using PCM capture device: dc60_plus
[import_alsa.c] ALSA audio capture: 48000 Hz, 16 bps, 2 channels
[import_v4l2.so] critical: colorspace (2) must be one of RGB, YUV 4:2:0 or YUV 4:2:2
[transcode] critical: video import module error: OPEN failed
[transcode] critical: failed to open input source
$
Please do not focus on the alsa device: I cannot record the video!
I do not know if it might help, but I can play just fine with:
$ mplayer -tv width=704:height=576:fps=25:driver=v4l2:device=/dev/video1\
:norm=PAL:input=0:forceaudio:alsa:adevice=dc60_plus:immediatemode=0\
:amode=1:audiorate=48000 tv://
Thanks a lot.
etb