PDA

View Full Version : Can i limit maximum bitrate?


junglemike
27th November 2004, 01:18
Hi folx,
I'm encoding a video for a hendheld computer (palm)480x320 screen. This is scrip i'm using:
LoadPlugin ("D:\Program Files\AviSynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin ("D:\Program Files\AviSynth 2.5\plugins\convolution3d.dll")


avisource("L:\my_movie.avi")
bilinearresize(480,256)
selecteven()
ConvertToYUY2()
Convolution3D (0, 3, 4, 3, 4, 2.8, 0)
FluxSmoothT()
turnleft()

I'm aiming for 128 or 256mb total final size (size of SD card)
So i use about 200kbits/sec bitrate.

Everything runs perfect,except paces where there is many action (like shooting, chase...) In these moments player stucks and resets itself.
I know that this is by no means an Xvid problem. In fact Xvid does really wonderful job. I know that this is a limitations of a my palm device. I'me just trying to find out how to fix it. What is the difference between regular moments in the movie and fast action? The only thing i can think of is bitrate(am i right?). So can i some how limit bitrate somehow in Xvid settings?
Ps: i use 2-pass, 1-bframe, rest=defaults
TIA

Episode
27th November 2004, 01:40
Hmm.. have you tried the latest unstable XviD build by Koepi (XviD-1.1.-127-06112004.exe)? IIRC it has a feature called VBV (Video Buffer Verifier?), which is very useful if you try to limit bitrates for slow computers such as PDA's. I never tried it for myself, so I really can't tell if it helps or not :-/

unmei
27th November 2004, 01:45
yes, you need at least the -1.1 by koepi from 13.oct., the feature is called VBV buffer and can be enabled in the 2nd pass settings (checkbox "respect VBV size"). But you also need to set an appropriate profile@level which then decides what the VBV buffer size will be. This includes the max size of the entire buffer (several frames) of a single frame etc, see the "more" button, level tab for the different levels meaning..
Also see this thread (http://forum.doom9.org/showthread.php?threadid=84039)

celtic_druid
27th November 2004, 02:21
Presumably VBV designed for hardware players won't help for a hand held palm though. You would need to set lower values.

Sharktooth
27th November 2004, 14:53
Current Xvid VBV is based on DivX Home Theater profile.
I doubt it will help encodings for portable devices...

cypher_soundz
27th November 2004, 16:35
if it helps , for my encodes i use the script below and default setting in xvid (but with turbo) everything works fine bitrate of 100 looks good on a pda (xvid 1.2) :p


LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")

LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")

LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")


# SOURCE
mpeg2source("D:\SCARFACE\VIDEO_TS\scareface.d2v")
Decimate(3)


# CROPPING
crop(0,84,712,412)


BicubicResize(320,128,0.333,0.333)

# DENOISING
Undot()



# 3) heavy noise

Convolution3d("movielq")
FluxSmooth(10,15)

Regards
cyph

sysKin
28th November 2004, 02:21
Originally posted by Sharktooth
Current Xvid VBV is based on DivX Home Theater profile.
I doubt it will help encodings for portable devices... Right - in current xvid, VBV already respects the profile/level that is chosen. But that is not in Koepi's build.

Radek

junglemike
28th November 2004, 06:35
Thanks guys, alredy trying the 06.11.2004 Xvid version,Too bad for me - didn't check for the latest versions since 1.0 - since it' working great already and completely satisfied me :-)
cypher_soundz, in my case the the final resolution from your Scarface DVD would be (480x192) which is 2.25 times larger (amount of pixels)than in your case. I guess if i try 100kbits/s bitrate - it would be a complete mess. I'm guess you are having PocketPc with qvga screen :D .

cypher_soundz
28th November 2004, 15:39
yes i can get away with heavy noise reduction with little visual impact (that i can notice) at that res, maybe that much smoothing will be more noticeable at 480x192.
Hope the new xvid build solves your probs.
Regards
cyph