>From: Francesco Romani <fromani <at> gmail.com>
>Date: 2009-08-29 15:58:31 GMT (1 day, 4 hours and 29 minutes ago)

First of all, thanks for the answer.

>Bug introduced by myself between 1.1.2 and 1.1.3. You have the following
>options:
>1) grab the lastest *1.1.x* branch snapshot with the fix
>   and recompile transcode.
>2) step back to 1.1.2, or at least restore the 1.1.2 import_v4l2 module
>   (yes, that should work even it isn't good practice).
>3) wait for the 1.1.5 (don't hold your breath) with the fix included.

I went for the first, I downloaded and compiled transcode
tcforge-3e2baa14f7c3, because the newer tcforge-9c151dce0123 gave me
problems with the -N option (!?).

Now at least it starts, but still I cannot obtain a movie with the
sound in correct sync.

I think that the problem is based on the fact that the input fps is hardly
ever 25 fps, usually it is a little less and it varies.

I thought that transcode did duplicate or drop frames as needed, but it
seems it does not. Is there some kind of filter like modfps that accept
in input a variable fps? It should not be much harder than modfps itself.

Here is the log:
- There are some ugly-looking warnings from alsa, what does it mean?
- There are also warning about bad pixel formats, but it does not seem
a problem.
- The 103 minutes is the length of the VCR movie.
- I removed the pv filter because I usually do not watch television while
recording, and anyway there was no sound.
- You can see that there are no duped or dropped frames.
- I used tcaud only because ffmpeg says it is a good idea.
- Maybe --hard_fps might help? The man pages says to look for a framerate.txt
file that explain nothing.

$ cat s.sh
 transcode \
        -q 1 \
        -x v4l2=resync_margin=1:resync_interval=250,alsa=device=dc60_plus \
        -g 704x576 \
        -i /dev/video1 \
        -e 48000,16,2 \
        -N 0x1 \
        -J lowpass,levels,smartyuv \
        -w 8000 \
        -y ffmpeg,tcaud \
        -F mjpeg \
        -o video.avi \
        -c 1-103:00

$ sh s.sh
transcode v1.1.4 (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_lowpass.so] v0.1.0 (2002-02-26) High and low pass filter
[filter_levels.so] instance #2
[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
[export_tcaud.so] v0.9.0 (2007-07-03) (audio) MPEG/AC3/PCM
[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] warning: bad pixel format conversion: YUV420 [planar] -> YUV420
[planar] (no conversion)
[import_v4l2.so] warning: bad pixel format conversion: YVU420 [planar] -> YUV420
[planar]
[import_v4l2.so] warning: bad pixel format conversion: YUV422 [planar] -> YUV420
[planar]
[import_v4l2.so] warning: bad pixel format conversion: YUV411 [planar] -> YUV420
[planar]
[import_v4l2.so] warning: bad pixel format conversion: UYVY [packed] -> YUV420
[planar]
[import_v4l2.so] warning: driver does not support setting parameters
(ioctl(VIDIOC_S_PARM) returns "Invalid argument")
[export_ffmpeg.so] output is mjpeg or ljpeg, extending range from YUV420P to
YUVJ420P (full range)
[filter_levels.so] instance #4
[filter_levels.so] v1.2.0 (2007-06-07) Luminosity level scaler
[filter_levels.so] scaling 16-240 gamma 1.000000 to 0-255 (post-process)
[export_ffmpeg.so] Using FFMPEG codec 'mjpeg' (FourCC 'MJPG', Motion JPEG).
[export_ffmpeg.so] No profile selected
[export_ffmpeg.so] warning: Error opening configuration file ./ffmpeg.cfg: No
such file or directory
[export_ffmpeg.so] Starting 1 thread(s)
[export_ffmpeg.so] Set display aspect ratio to input
[mjpeg @ 0x90c4c0]removing common factors from framerate
[transcode] PCM -> PCM
[import_alsa.c] warning: overrun at least 0.042 ms long1:37:58, ( 0| 0|20)
[import_alsa.c] warning: overrun at least 0.006 ms long 1:20:49, ( 9| 0|11)
[import_alsa.c] warning: overrun at least 0.009 ms long 1:20:19, ( 0| 0|20)
[import_alsa.c] warning: overrun at least 0.007 ms long 1:19:45, ( 0| 0|20)
[avilib.c] Adding a new RIFF chunk: 1 fps,  27.6%, ETA: 1:14:37, (11| 0| 9)
[import_alsa.c] warning: overrun at least 0.008 ms long 1:02:13, ( 0| 0|20)
[import_alsa.c] warning: overrun at least 0.007 ms long 1:01:39, ( 0| 0|20)
[avilib.c] Adding a new RIFF chunk: 2 fps,  55.1%, ETA: 0:46:17, ( 9| 0|11)
[import_alsa.c] warning: overrun at least 0.006 ms long 0:44:12, ( 0| 0|20)
[import_alsa.c] warning: overrun at least 0.007 ms long: 0:22:36, ( 0| 0|20)
[import_alsa.c] warning: overrun at least 0.006 ms long: 0:22:01, ( 0| 0|20)
[avilib.c] Adding a new RIFF chunk: 38 fps,  83.1%, ETA: 0:17:26, ( 9| 0|11)
[import_alsa.c] warning: overrun at least 0.006 ms long: 0:08:36, ( 0| 0|20)
[import_alsa.c] warning: overrun at least 0.005 ms long: 0:08:02, ( 2| 0|18)
[import_alsa.c] warning: overrun at least 0.005 ms long: 0:07:27, ( 0| 0|20)
[avilib.c] VID NrEntries 0/4 (ix00) |0x76A05DEA|341744|42714|:00, ( 9| 0|11)
[avilib.c] VID NrEntries 1/4 (ix00) |0xED7597C0|339440|42426|
[avilib.c] VID NrEntries 2/4 (ix00) |0x1643559D6|345872|43230|
[avilib.c] VID NrEntries 3/4 (ix00) |0x1A62DE654|209032|26125|
[decoder.c] cancelling the import threads

[transcode] encoded 154499 frames (0 dropped, 0 cloned), clip length 6179.96 s

I am starting to lose hope, maybe this dc60+ device is simply unusable.
Any insight?

Thanks again.
etb



Reply via email to