Re: [Encode2mpeg-users] direct vs mpeg
Brought to you by:
encode2mpeg
|
From: Giacomo C. <enc...@us...> - 2005-09-23 13:57:04
|
On Wed, Sep 21, 2005 at 05:29:02PM -0400, Osmany Guirola Cruz wrote: > Hi ... > > I ama having problems with direct mode with version 0.5 i use a command > line like this > > encode2mpeg film.avi -vcd -vfr 1 -n n -mpeg1vbr -mpegonly -abr 128 > -srate 44100 -o vcd -mpegfixaspect pad -toolopts mpeg2enc -q 4 -4 1 -2 1 > -Q 5 -D 10 > > and works pwerfect with version 0.4.7 > > with 0.5 i got this error > > VO: [yuv4mpeg] 768x416 => 768x416 Planar YV12 > VO: Description: yuv4mpeg output for mjpegtools > VO: Author: Robert Kesterson <ro...@ro...> > Can't get memory or file handle to write "/dev/fd/4"!FATAL: Cannot > initialize video driver. > > FATAL: Could not initialize video filters (-vf) or video output (-vo). > > Uninit audio filters... > [libaf] Removing filter lavcresample > [libaf] Removing filter dummy > uninit audio: mp3lib > uninit video: ffmpeg > vo: x11 uninit called but X11 not inited.. > > Exiting... (End of file) > INFO: [yuvscaler] yuvscaler 1.6.2 (31-12-2003) is a general scaling > utility for yuv frames > INFO: [yuvscaler] (C) 2001-2003 Xavier Biquard <xbi...@fr...>, > yuvscaler -h for help, or man yuvscaler > **ERROR: [yuvscaler] Could'nt read YUV4MPEG header! > INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION! > INFO: [mpeg2enc] SETTING MMX for TRANSFORM! > INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION! > **ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error > (failed read/write)! > please remove: vcd.yuvscaler.log vcd.mpeg2enc.log > > Osmany Osmany has found a solution to his problem. I post the details here. This problem appears because some code has changed in 0.5.0. In few places instead of named pipe I use now /dev/fd/4 The new code is simpler and avoid some potential problems in case of errors. On linux it works (may be it wont work with very ancient kernel like 1.2.x). On non linux system, the default system configuration may have some features disabled. Osmany uses FreeBDS and for him it was necessary to do: mount -t fdescfs fdescfs /dev/fd A change in /etc/fstab fixed definitively the problem. Giacomo |