hellfred
3rd November 2004, 14:26
Hi there.
avs2yuv is a small program written by akupenguin. He wanted to use avisynth script server under linux emulator wine and created avs2yuv to pipe the frames (video only!) to linux programms like mplayer/mencoder.
Syntax:
D:\>avs2yuv.exe
Avs2YUV 0.1
Usage: avs2yuv [options] in.avs out.yuv
-v print the frame number after processing each frame
-seek seek to the given frame number
-frames stop after processing this many frames
The outfile may be "-", meaning stdout.
Output is in yuv4mpeg, as used by MPlayer and mjpegtools
Piping to e.g. mplayer:
D:\>avs2yuv test.avs - | mplayer.exe -
For more information see the hompage (http://students.washington.edu/lorenm/src/avisynth/avs2yuv/)
and for the first steps towards backporting it to win32 in the New A/V Codecs thread x264 development (http://forum.doom9.org/showthread.php?threadid=80910&perpage=20&pagenumber=9)
After fixing issues with the line end difference between unix and windows - done by ak (http://4nykey.nm.ru/tmp/) - the app began to fulfill its task on win32, too. But there is still a problem of error messages that hinder the use of avs2yuv for batch endcoding, as one has to click away the error dialog after each encode to e.g. start the next one or the second pass.
My goal is to get rid of this error message to make the tool universal usable under win32 with the win32 ports of linux tools.
On WinXP cmd.exe, MSYS and cygwin bash are available as console to use this program.
Here some information on the error meassag dialog:
Stefan@CF /opt/mplayer_x264/bin
$ avs2yuv.exe -frames 500 test.avs - | mplayer.exe -
MPlayer dev-CVS-041024-20:04-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading config file /opt/mplayer_x264/etc/mplayer/mplayer.conf:
No such file ordirectory
Reading config file C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/config
Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf:
Can't open'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf':
No such file ordirectory
Reading /opt/mplayer_x264/etc/mplayer/codecs.conf:
Can't open '/opt/mplayer_x264/etc/mplayer/codecs.conf':
No such file or directory
Using built-in default codecs.conf.
font: can't open file: C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer_x264/share/mplayer/font/font.desc
Using Windows native timing
Can't open input config file C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/input.conf:
No such file or directory
Can't open input config file /opt/mplayer_x264/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Playing -.
Reading from stdin...
YUV4MPEG2 file format detected.
YUV4MPEG2 Video stream 0 size: display: 640x480, codec: 640x480
VIDEO: [YV12] 640x480 12bpp 23,976 fps 0,0 kbps ( 0,0 kbyte/s)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 640x480 => 640x480 Planar YV12
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
test.avs 499 0% 1% 0,0% 0 0 0%
total frames: 34321
V: 20,8 500 0% 1% 0,0% 0 0 0%
Exiting... (End of file)
*Error Message (Dialog)*
Stefan@CF /opt/mplayer_x264/bin
$
Stefan@CF ~/c/Programme/Stefan/msys/1.0/opt/mplayer_x264/bin
$ ./avs2yuv.exe -frames 500 test.avs out.yuv
test.avs
total frames: 34321
*Error Message (Dialog)*
Stefan@CF ~/c/Programme/Stefan/msys/1.0/opt/mplayer_x264/bin
$
Error Message (Dialog):
Caption: "avs2yuv.exe - Fehler in Anwendung"
Symbol: red cyrcle with white x in it -> Error Symbol
Text to its right:
Die Anwendung in "0x0...."verweist auf Speicher in "0x0...". Der Vorgang "read"
konnte nicht auf den Speicher durchgeführt werden.
Klicke auf "OK" um das Programm zu beenden.
Button OK
Translation of the text:
Application in "0x0..." points/referenzes to memeory in "0x0...". Action "read" could not be performed on memory.
Press "OK" to terminate the application/program
By the way:
If you have problems with pipes and temporal files Win98 please refere the 9th page of the x264 developmend thread (use cygwin's bash pipe data).
Hellfred
avs2yuv is a small program written by akupenguin. He wanted to use avisynth script server under linux emulator wine and created avs2yuv to pipe the frames (video only!) to linux programms like mplayer/mencoder.
Syntax:
D:\>avs2yuv.exe
Avs2YUV 0.1
Usage: avs2yuv [options] in.avs out.yuv
-v print the frame number after processing each frame
-seek seek to the given frame number
-frames stop after processing this many frames
The outfile may be "-", meaning stdout.
Output is in yuv4mpeg, as used by MPlayer and mjpegtools
Piping to e.g. mplayer:
D:\>avs2yuv test.avs - | mplayer.exe -
For more information see the hompage (http://students.washington.edu/lorenm/src/avisynth/avs2yuv/)
and for the first steps towards backporting it to win32 in the New A/V Codecs thread x264 development (http://forum.doom9.org/showthread.php?threadid=80910&perpage=20&pagenumber=9)
After fixing issues with the line end difference between unix and windows - done by ak (http://4nykey.nm.ru/tmp/) - the app began to fulfill its task on win32, too. But there is still a problem of error messages that hinder the use of avs2yuv for batch endcoding, as one has to click away the error dialog after each encode to e.g. start the next one or the second pass.
My goal is to get rid of this error message to make the tool universal usable under win32 with the win32 ports of linux tools.
On WinXP cmd.exe, MSYS and cygwin bash are available as console to use this program.
Here some information on the error meassag dialog:
Stefan@CF /opt/mplayer_x264/bin
$ avs2yuv.exe -frames 500 test.avs - | mplayer.exe -
MPlayer dev-CVS-041024-20:04-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading config file /opt/mplayer_x264/etc/mplayer/mplayer.conf:
No such file ordirectory
Reading config file C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/config
Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf:
Can't open'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf':
No such file ordirectory
Reading /opt/mplayer_x264/etc/mplayer/codecs.conf:
Can't open '/opt/mplayer_x264/etc/mplayer/codecs.conf':
No such file or directory
Using built-in default codecs.conf.
font: can't open file: C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer_x264/share/mplayer/font/font.desc
Using Windows native timing
Can't open input config file C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/input.conf:
No such file or directory
Can't open input config file /opt/mplayer_x264/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Playing -.
Reading from stdin...
YUV4MPEG2 file format detected.
YUV4MPEG2 Video stream 0 size: display: 640x480, codec: 640x480
VIDEO: [YV12] 640x480 12bpp 23,976 fps 0,0 kbps ( 0,0 kbyte/s)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 640x480 => 640x480 Planar YV12
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
test.avs 499 0% 1% 0,0% 0 0 0%
total frames: 34321
V: 20,8 500 0% 1% 0,0% 0 0 0%
Exiting... (End of file)
*Error Message (Dialog)*
Stefan@CF /opt/mplayer_x264/bin
$
Stefan@CF ~/c/Programme/Stefan/msys/1.0/opt/mplayer_x264/bin
$ ./avs2yuv.exe -frames 500 test.avs out.yuv
test.avs
total frames: 34321
*Error Message (Dialog)*
Stefan@CF ~/c/Programme/Stefan/msys/1.0/opt/mplayer_x264/bin
$
Error Message (Dialog):
Caption: "avs2yuv.exe - Fehler in Anwendung"
Symbol: red cyrcle with white x in it -> Error Symbol
Text to its right:
Die Anwendung in "0x0...."verweist auf Speicher in "0x0...". Der Vorgang "read"
konnte nicht auf den Speicher durchgeführt werden.
Klicke auf "OK" um das Programm zu beenden.
Button OK
Translation of the text:
Application in "0x0..." points/referenzes to memeory in "0x0...". Action "read" could not be performed on memory.
Press "OK" to terminate the application/program
By the way:
If you have problems with pipes and temporal files Win98 please refere the 9th page of the x264 developmend thread (use cygwin's bash pipe data).
Hellfred