Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FFMPEG CVS Win32 build (Read 21005 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FFMPEG CVS Win32 build

Reply #25
my findings are as follows;
i needed to add

Code: [Select]
vidc.avis REG_SZ ffvfw.dll


to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32
in order for vdub to load it (ok,so we made some progress...)

now,vdub loads it,but 1suspicious thing;codec is listed as 16bit one(in windows properties on makeavis produced files) and when i hit PLAY in vdub,indeed,image becomes 16bit(source was NON 16bit mjpeg)
frame by frame goes ok(normal 24bit display)
mencoder also lists it as 16bit,but mencoder still can't load it (why is mencoder not using normal video lowading ways as vdub?)

Quote
VIDEO:  [AVIS]  768x576  16bpp  25.000 fps    0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3  fourcc:0x53495641  size:768x576  fps:25.00  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
===================
Cannot find codec matching selected -vo and video format 0x53495641.
Read DOCS/en/codecs.html!
===================


looks like both linux encoders use somewhat different approach to loading stuff,or makeavis is confusing them(?)
"aviutil" also loads it fine....

btw. on win98 ,vdub loads makeavis with just this
Code: [Select]
msacm.avis=ffvfw.dll

in system.ini (drivers32)

(win2000 registry already had this ( msacm.avis=ffvfw.dll) ,but vdub wasn't loading...btw. i'm on vdub 1.4.10...)

hmm..i think you should ask sh0dan,and i should ask avery...(vdub forum seems to be offline now,so i can't....)

we MUST make this work!(i tested on some dark clip;nandub really made a mess because it tends to overcompress the KF's so pumping is visible when brighness is increased;mencoder did MUCH better on that test....since then i have tried MANY older nandub versions,but no luck;when nandun inserts KF with lo-compression level (2 or 3 quantizer) then everything that follows gets awfully high bitrate....ie. doesn't really work!..that's why we must make this fast and good encoder work!    )

mencoder+avs must be top priority now....(as mencoder seems to be faster even than nandub!this is some SERIOUS shit, boys!)

[edit;oh yeah,i also tried do decode makeavis.avi with libavcodec.dll directly(  ),but that  doesn't work with vdub,so for sure it won't work with mencoder of ffmpeg...]

/ivo

FFMPEG CVS Win32 build

Reply #26
Mencoder doesn't use the Windows' avi loading routines because it's a Linux program! Linux doesn't have any multimedia loading routines built in. That's why mencoder/mplayer has its own avi loading functions.

FFMPEG CVS Win32 build

Reply #27
i'm off to ask fabrice if this could be remedied......

FFMPEG CVS Win32 build

Reply #28
Quote
[ahhh..here,i've found a better explanations
http://mirrors.xmission.com/MPlayer/releas...ld/mplayer.html

And there's more (most) recent version.

As for avisynth, the only way would be adding new entry for 'avis' to codecs.conf and tell mencoder to use avisynth.dll for encoding, I think.

BTW here are some compiles, in case anybody wants to toy with.

FFMPEG CVS Win32 build

Reply #29
Thanks for the compile, guys.
I've tested some clips and find it interesting for MPEG-2 video.
It has a trellis quant. For 1 minute clips(-qscale 2), it can save around  ~5%.
Quality is awesome.  It can reach quant 2 for 400kb/s on low motion.

ffmpeg -hq -i d:\sample.vob -target svcd -bufsize 224 -b 600 -mbd 2 -g 240 -bt 1024  -trell -bf 2 -alt -y -intra_matrix "8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26
,27,31,36,37,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79" -inter_matrix "16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36
,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44" test.mpg

Very good quality for 1CD SVCD encode

FFMPEG CVS Win32 build

Reply #30
ok guys,some good news regarding the ffvfw speed;it turns out that ffvfw's
"macroblock decision mode" setting(under "Motion estimation" tab) is the same thing as the "vhq" setting i wished for (to be precise,i wanted to turn off vhq in ffvfw in order to gain some speed)!!!

from newer mencoder doc;
Quote
mbd=<0-2>
Macroblock decision algorithm (high quality mode), encode each macro block in all modes and choose the best. This is slow but results in better quality and file size.
0
use mbcmp (default)
1
select the MB mode which needs the fewest bits (=vhq)
2
select the MB mode which has the best rate distortion
vhq
Same as mbd=1, kept for compatibility reasons.


older doc said;
Quote
vhq
high quality mode, encode each macro block in all modes an choose the smallest (slow). (default: HQ disabled)


FFVFW FINALLY BEATS NANDUB AT SPEED!!!

results;
"dark" test sequence;
-nandub->4'36"
-ffvfw(mb decision mode=fewest bits(ffvfw's default))->6'06"
-ffvfw(mb decision mode=simple)->4'05" (  )

"dynamic" test sequence;
nandub->31'17"
ffvfw(fewest bits)->45'
ffvfw(simple)->31'05" (  )

screenshots(nandub,ffvfw) and setings (for "dynamic" sequence) can be found on
http://i4004.bizhosting.com/ffvfw_the%20quest/


no need for mencoder mods now...(  )

cheers

/ivo

FFMPEG CVS Win32 build

Reply #31
oo..ohh..i forgot to inform you on some nice news about MEncoder(when i write something in upper case,you know it deserved it..  )

loading avisynth scripts into mencoder

and

guide

(consider this only a road-map...i dumped kvcd matrix immediately and used "standard" (as used by CCE and Tmpgenc))

some guis(i didn't tried this);

drpenc

qenc

i used vmesquita's build in pure text(command line) form....

both lower and higher bitrate tests went fine....

next time i do music video(or something that needs interlaced encoding) i'll be more precise and post detailed settings used etc. it'll probably be 720x576 laced at cca. 2Mbit/s or so....(tmpgenc vs cce vs MEncoder(  ) )
(only problem is that i do very lil of interlaced encodings overall...so that may keep you waiting...but you can toy with your own settings anytime you want....it's for free....  )

/ivo

FFMPEG CVS Win32 build

Reply #32
Nice to see that people find my GUI for MEncoder. So yesterday I build one for FFMPEG.

My question is still:

Is there a resizing filter for ffmpeg? If for example a 16:9 DVD source and want to produce a SVCD. But till now I didn't find a option to resize and expand

like I do in MEncoder
Code: [Select]
crop=700:576,scale=464:430,expand=480:576


I also searched in the net for warper. makeAVIs and Link2 dosn't work.

In MEncoder I added the codec into the sourcecode. In FFMPEG I didn't find it yet.
Did somebody of You find a way to resize a DVDSource right to produce a SVCD without the EGGHEADS in ffmpeg?

The new GUI of mine is called DRPEnc XP .

If we find a way this will be nice.