I'm trying to convert video clips from my camera (KonicaMinolta A200)
to .vdr format, so that I can watch them using vdr, but so far I had
no success. The format is MJPEG 640x480 30fps, with PCM audio
(7875x16x1). I can convert it to MPEG4 with:
transcode -i "$in" -x mov,ffbin -y ffmpeg -F mpeg4 -N 0x55 --no_audio_adjust -E 11025,16,1 -o "$out"
but i cannot convert it to MPEG2. I found some hints that I could use
mplayer to do the conversion, something like:
| $ mplayer pict0002.mov -ao mpegpes -vo mpegpes:001.vdr
| MPlayer 2:1.0~rc1-0ubuntu9 (C) 2000-2006 MPlayer Team
| CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75, Stepping: 2)
| CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
| Compiled with runtime CPU detection.
| Can't open joystick device /dev/input/js0: No such file or directory
| Can't init input joystick
| 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 pict0002.mov.
| Quicktime/MOV file format detected.
| VIDEO: [jpeg] 640x480 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
| Saving PES stream to 001.vdr
| ==========================================================================
| Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
| Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
| ==========================================================================
| ==========================================================================
| Forced audio codec: mad
| Opening audio decoder: [pcm] Uncompressed PCM audio decoder
| AUDIO: 7875 Hz, 1 ch, s16be, 126.0 kbit/100.00% (ratio: 15750->15750)
| Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
| ==========================================================================
| Opening /dev/dvb/adapter0/audio0
| DVB AUDIO DEVICE: No such file or directory
| Could not open/initialize audio device -> no sound.
| Audio: no sound
| Starting playback...
| VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
| Could not find matching colorspace - retrying with -vf scale...
| Opening video filter: [scale]
| Opening video filter: [lavc]
| Could not find matching colorspace - retrying with -vf scale...
| Opening video filter: [scale]
| VDec: using Planar 422P as output csp (no 1)
| Movie-Aspect is undefined - no prescaling applied.
| SwScaler: reducing / aligning filtersize 1 -> 4
| SwScaler: reducing / aligning filtersize 1 -> 4
| SwScaler: reducing / aligning filtersize 1 -> 1
| SwScaler: reducing / aligning filtersize 9 -> 8
|
| SwScaler: BICUBIC scaler, from yuv422p to yuv420p using MMX2
| SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
| SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
| SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
| SwScaler: 640x480 -> 640x480
| [mpeg1video @ 0x8939638]removing common factors from framerate
| VO: [mpegpes] 640x480 => 640x480 Mpeg PES
| V: 47.3 1421/1421 8% 22% 0.0% 0 0
|
| Exiting... (End of file)
However, when I play this with vdr (after generating the index.vdr file
with genindex), this video is not the right size, it skips every few
seconds and there is no sound.
What do I have to do to get a proper vdr recording?
--
Dick