Avi_SteamSetFormat() : couldn't set format : une soluce !
Publié : ven. juil. 25, 2003 11:25 am
Here is my solution to fix the message avi_fileopen() : Avi_SteamSetFormat() : couldn't set format! with DivX 5.x 2 Pass Encoding.
DivX Multipass and and certification profiles don't work with Mpeg2Avi,then i disable profiles by the DivX CLI (-profile 0) and i configure VBV Settings same to the Home Theatre profile (-vbv 4000000,3145728,2359296) and instead of Multipass, i use first the Original 2 Pass-1st Pass (-b21) and then the Original 2 Pass-2nd Pass.
To Automate encrypting, i use DivXAuto5.exe Modified by Aki-SoftWare in a batch File like this :
---------------------- START OF FILE --------------------------------------------------
@Echo Off
CLS
Echo -------------------------------------------------------------
Echo Encodage en 2 passes avec Mpeg2Avi et Codec DivX 5.0.5 Pro
Echo -------------------------------------------------------------
Start "DivXAuto 5 pass 1" C:\Video\DivXAuto5.exe WI00:"Choose a CODEC - YV12" CB00:"DivX Pro 5.0.5 Codec" BT04: WI01:"DivX codec properties" ED04:"-b21 1065 -psy 2 -key 250 -log 'c:\video\divx.log' -mv 'c:\video\mvinfo.bin' -d 1 -b -g -sc 50 -pq 5 -vbv 4000000,3145728,2359296 -profile 0" BT11: WI00: BT02: QU00:
Echo.
Echo -------------------------------------------------------------
Echo -------- Première Passe - Ecriture du Fichier .log ----------
Echo -------------------------------------------------------------
Echo.
Start /wait "Mpeg2Avi pass 1" C:\Video\m2apx3g.016.exe -b "C:\Video\Rip\rip.lst" -f2 -q0 -r1 -p 4 4 -a -# 0 100 -1 656 384 -3X 704 -3Y 400 -o8 C:\Video\Video_DivX.avi
Start "DivXAuto 5 pass 1" C:\Video\DivXAuto5.exe WI00:"Choose a CODEC - YV12" CB00:"DivX Pro 5.0.5 Codec" BT04: WI01:"DivX codec properties" ED04:"-b22 1065 -psy 2 -key 250 -log 'c:\video\divx.log' -mv 'c:\video\mvinfo.bin' -d 1 -b -g -sc 50 -pq 5 -vbv 4000000,3145728,2359296 -profile 0" BT11: WI00: BT02: QU00:
Echo.
Echo -------------------------------------------------------------
Echo -------- Deuxième Passe - Ecriture du Fichier .avi ----------
Echo -------------------------------------------------------------
Echo.
Start /wait "Mpeg2Avi pass2" C:\Video\m2apx3g.016.exe -b "C:\Video\Rip\rip.lst" -f2 -q0 -r1 -p 4 4 -a -# 0 100 -1 656 384 -3X 704 -3Y 400 -o8 C:\Video\Video_DivX.avi
CLS
EXIT
--------------------------- END OF FILE ---------------------------------------------
It work fine for DivX 5.0.2, 5.0.3, 5.0.4, 5.0.5 etc...
Maybe you can reuse that method to fix the message avi_fileopen() : Avi_SteamSetFormat() : couldn't set format! provided by mpeg2avi with DivX Multipass.
source : forum simpledivx
DivX Multipass and and certification profiles don't work with Mpeg2Avi,then i disable profiles by the DivX CLI (-profile 0) and i configure VBV Settings same to the Home Theatre profile (-vbv 4000000,3145728,2359296) and instead of Multipass, i use first the Original 2 Pass-1st Pass (-b21) and then the Original 2 Pass-2nd Pass.
To Automate encrypting, i use DivXAuto5.exe Modified by Aki-SoftWare in a batch File like this :
---------------------- START OF FILE --------------------------------------------------
@Echo Off
CLS
Echo -------------------------------------------------------------
Echo Encodage en 2 passes avec Mpeg2Avi et Codec DivX 5.0.5 Pro
Echo -------------------------------------------------------------
Start "DivXAuto 5 pass 1" C:\Video\DivXAuto5.exe WI00:"Choose a CODEC - YV12" CB00:"DivX Pro 5.0.5 Codec" BT04: WI01:"DivX codec properties" ED04:"-b21 1065 -psy 2 -key 250 -log 'c:\video\divx.log' -mv 'c:\video\mvinfo.bin' -d 1 -b -g -sc 50 -pq 5 -vbv 4000000,3145728,2359296 -profile 0" BT11: WI00: BT02: QU00:
Echo.
Echo -------------------------------------------------------------
Echo -------- Première Passe - Ecriture du Fichier .log ----------
Echo -------------------------------------------------------------
Echo.
Start /wait "Mpeg2Avi pass 1" C:\Video\m2apx3g.016.exe -b "C:\Video\Rip\rip.lst" -f2 -q0 -r1 -p 4 4 -a -# 0 100 -1 656 384 -3X 704 -3Y 400 -o8 C:\Video\Video_DivX.avi
Start "DivXAuto 5 pass 1" C:\Video\DivXAuto5.exe WI00:"Choose a CODEC - YV12" CB00:"DivX Pro 5.0.5 Codec" BT04: WI01:"DivX codec properties" ED04:"-b22 1065 -psy 2 -key 250 -log 'c:\video\divx.log' -mv 'c:\video\mvinfo.bin' -d 1 -b -g -sc 50 -pq 5 -vbv 4000000,3145728,2359296 -profile 0" BT11: WI00: BT02: QU00:
Echo.
Echo -------------------------------------------------------------
Echo -------- Deuxième Passe - Ecriture du Fichier .avi ----------
Echo -------------------------------------------------------------
Echo.
Start /wait "Mpeg2Avi pass2" C:\Video\m2apx3g.016.exe -b "C:\Video\Rip\rip.lst" -f2 -q0 -r1 -p 4 4 -a -# 0 100 -1 656 384 -3X 704 -3Y 400 -o8 C:\Video\Video_DivX.avi
CLS
EXIT
--------------------------- END OF FILE ---------------------------------------------
It work fine for DivX 5.0.2, 5.0.3, 5.0.4, 5.0.5 etc...
Maybe you can reuse that method to fix the message avi_fileopen() : Avi_SteamSetFormat() : couldn't set format! provided by mpeg2avi with DivX Multipass.
source : forum simpledivx