Good day Bernhard!!! Thanks for the answer!
mencoder is nearly correct.
You have to use mplayer with the -vo yuv4mpeg output driver and a fifo file:
source avi:
Cache fill: 5,47% (458752 bytes) AVI file format detected. VIDEO: [DIV3] 384x288 24bpp 24,000 fps 945,8 kbps (115,5 kbyte/s)
then
> mplayer -vo null -ao pcm -waveheader file.avi > mkfifo stream.yuv > mplayer -vo yuv4mpeg -nosound -noframedrop file.avi & > cat stream.yuv | yuv2lav -o video.avi
but i have some errors:
[EMAIL PROTECTED] perl]$ lavplay video.avi
lavplay1.6.1.90
lavtools version 1.6.1.90
**ERROR: [lavplay] File video.avi has 23.999808 frames/sec, choose norm with +[np] param
[EMAIL PROTECTED] perl]$
or in gmplayer:
[EMAIL PROTECTED] perl]$ gmplayer video.avi MPlayer 1.0pre2-RPM-3.1 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1737 MHz
(Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/vilfred/.mplayer/config
[cfg] read config file: /home/vilfred/.mplayer/gui.conf
Reading config file /home/vilfred/.mplayer/gui.conf
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Reading /home/vilfred/.mplayer/codecs.conf: Can't open
'/home/vilfred/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 61 audio & 157 video codecs
font: can't open file: /home/vilfred/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/vilfred/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 52 binds
SKIN dir 1: '/home/vilfred/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'
Playing /mnt/lfs/vilfred/perl/video.avi Cache fill: 4,10% (344064 bytes) AVI file format detected. AVI_NI: No audio stream found -> no sound. AVI: No audio stream found -> no sound. VIDEO: [MJPG] 384x288 24bpp 24,000 fps 5877,5 kbps (717,5 kbyte/s) vo_yuv4mpeg: Using (default) progressive frame mode ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder) ========================================================================== Audio: no sound Starting playback... VDec: vo config request - 384 x 288 (preferred csp: Planar 422P) VDec: using Planar YV12 as output csp (no 3) Movie-Aspect is undefined - no prescaling applied. VO: [yuv4mpeg] 384x288 => 384x288 Planar YV12 [ws] Error in display. [ws] Error code: 169 ( BadShmSeg (invalid shared segment parameter) ) [ws] Request code: 146 [ws] Minor code: 2 [ws] Modules: enable_cache Broken pipe [EMAIL PROTECTED] perl]$
:((((
lavaddwav video.avi audiodump.wav stream.avi
You can replace the yuv2lav with anything else.
Thanks!! Dmitriy
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users