We need people who know virtualdub! please contribute!

Video encoding, MTV, DMV, AMV, AMR, fps and everything video-related

Moderator: scrub50187

We need people who know virtualdub! please contribute!

Postby wladston » Sun Mar 26, 2006 10:39 pm

If you know virtualdub, please, look at this wiki article:

http://www.s1mp3.org/wiki/index.php/Video_encoding

you will notice it mentions some operations with virtualdub. Can someone please describe step-by-step, to a virtualdub newbie, HOW are these operations done ?

Thanks very very much! - feel free to directly edit the wiki article! ;)
1GB Standard s1 mp3 player. (MP-482C MAIN V8)
1GB "mp4" s1mp3 player. Not remarked.
I DO __NOT__ reply to PM's. Send email instead. I won't be even notified for new PM's.
User avatar
wladston
Site Admin
Site Admin
 
Posts: 1721
Joined: Tue Aug 23, 2005 8:54 pm
Location: Belo Horizonte, MG - Brazil

Postby LKRaider » Sun Apr 09, 2006 7:45 pm

I added some steps on how to use the Filters from VirtualDub.

If someone can confirm them and check if everything is written correctly, or add more info, please do :)

EDIT: maybe some screenshots could help too.
My MP4 player specs:
[url=http://forum.s1mp3.org/viewtopic.php?t=648]Shuray Japan - 256 Mb Memory
HJT H85-20MTV - REV:0.2B - 2005.03-12-Z[/url]
User avatar
LKRaider
s3 poster
 
Posts: 71
Joined: Wed Nov 23, 2005 12:08 am
Location: Florianopolis, SC - Brasil

Postby dazonic » Wed Jul 05, 2006 1:42 pm

Here's a batch that crops any video to 128x128 cleanly. Just change the vdub variable to suit. I just right click on a vid, Open With > crop.bat

crop.bat
Code: Select all
cls
set vdub=C:\vdub\vdub.exe
set destdir=%~dp1cropped

if not exist "%destdir%" mkdir "%destdir%"

echo>"%~dpn1.script" declare vd = VirtualDub;
echo>>"%~dpn1.script" vd.Open(vd.params[0]);

rem huffyuv lossless compression
rem http://neuron2.net/www.math.berkeley.edu/benrg/huffyuv.html
echo>>"%~dpn1.script" vd.video.SetCompression(0x75796668,0,10000,0);

echo>>"%~dpn1.script" vd.video.filters.Clear();
echo>>"%~dpn1.script" declare w = vd.video.width;
echo>>"%~dpn1.script" declare h = vd.video.height;
echo>>"%~dpn1.script" declare i = vd.video.filters.Add("resize");
echo>>"%~dpn1.script" vd.video.filters.instance[i].SetClipping((w-h)/2,0,(w-h)/2,0);
rem - or, if source is tall...
rem echo>>"%~dpn1.script" vd.video.filters.instance[i].SetClipping(0,(h-w)/2,0,(h-w)/2);

echo>>"%~dpn1.script" vd.video.filters.instance[i].Config(128, 128, 4);
echo>>"%~dpn1.script" vd.SaveAVI(U"%destdir%\%~n1.avi");

%vdub% /i "%~dpn1.script" %1
del "%~dpn1.script"


This uses VirtualDub's CLI to create, invoke, then delete a script- saving the resized AVI in a new directory 'cropped', in the source directory. This suited me but you change it if you want.

I use Huffyuv lossless compression rather than uncompressed. Download it here http://neuron2.net/www.math.berkeley.edu/benrg/huffyuv.html, or rem that line. It is very fast though, and can save you big bytes. Free too.


Here's another one that will resize your vid to 128 wide, retain the aspect ratio and letterbox the remainder. Good for movies if you don't want to miss out on the side bits (keeps file size down too a bit too).

letterbox.bat
Code: Select all
cls
set vdub=C:\vdub\vdub.exe
set destdir=%~dp1letterbox

if not exist "%destdir%" mkdir "%destdir%"

echo> "%~dpn1.script" declare vd = VirtualDub;
echo>>"%~dpn1.script" vd.Open(vd.params[0]);

rem huffyuv lossless compression
rem http://neuron2.net/www.math.berkeley.edu/benrg/huffyuv.html
echo>>"%~dpn1.script" vd.video.SetCompression(0x75796668,0,10000,0);

echo>>"%~dpn1.script" vd.video.filters.Clear();
echo>>"%~dpn1.script" declare w = vd.video.width;
echo>>"%~dpn1.script" declare h = vd.video.height;
echo>>"%~dpn1.script" declare i = vd.video.filters.Add("resize");
echo>>"%~dp1%~n1.script" vd.video.filters.instance[i].Config(128, h*128.0/w, 4, 128, 128, 0);
rem - or, if source is tall...
rem echo>>"%~dp1%~n1.script" vd.video.filters.instance[i].Config(w*128.0/h, 128, 4, 128, 128, 0);

echo>>"%~dpn1.script" vd.SaveAVI(U"%destdir%\%~n1.avi");

%vdub% /i "%~dpn1.script" %1
del "%~dpn1.script"


I hope this helps somebody out there,

cheers,


- daz
dazonic
 
Posts: 2
Joined: Wed Jul 05, 2006 12:48 pm

Postby wladston » Thu Jul 06, 2006 5:14 am

Great work dazonic!!

Will make life MUCH easier for us!

Feel free to update! http://www.s1mp3.org/wiki/index.php/Vir ... orrections
1GB Standard s1 mp3 player. (MP-482C MAIN V8)
1GB "mp4" s1mp3 player. Not remarked.
I DO __NOT__ reply to PM's. Send email instead. I won't be even notified for new PM's.
User avatar
wladston
Site Admin
Site Admin
 
Posts: 1721
Joined: Tue Aug 23, 2005 8:54 pm
Location: Belo Horizonte, MG - Brazil

Postby ace68 » Wed Aug 02, 2006 1:31 am

Gotta resurrect this post. Sorry to bother, but right click open with crop.bat doesnt work for me. it just doesnt run. im sure i set the directory of vdub correctly but it just wont run for me. Once i click crop.bat nothing appears in the open with programs (either goes to winamp or notepad). The letterbox.bat works properly. Anyways what's the difference?

also another problem. I ran a video which was about 700MB with letterbox.bat and after it converted it to 128pixels wide the file size ended up to be a WHOPPIN GRAND TOTAL OF FREAKIN 12.2 GB :shock: WTF HAPPENED? I thought its supposed to be a smaller file. Lol thanks for the help.

EDIT: ok i made both batch files work but the letterbox batch file still makes the file quite BIGGER.

EDIT: It still makes my files quite bigger, Iassume its because it turns it into an avi file. Another big problem is that the video doesnt correspond with the video. The talking is faster than the video by liek a LOT.

Help please.
Image
ace68
s2 poster
 
Posts: 115
Joined: Wed Jun 21, 2006 10:26 pm
Location: Toronto, Canada

Postby zwiebug » Fri Sep 01, 2006 7:51 am

i could add a detailed frameserving method with avisynth if there is demand.
zwiebug
 
Posts: 12
Joined: Mon Aug 28, 2006 7:37 pm

Postby BARMAN2005 » Fri Jun 22, 2007 12:29 pm

What it is this VirtualDub? :?
User avatar
BARMAN2005
Ugly Duckling :D poster
Ugly Duckling :D poster
 
Posts: 416
Joined: Wed Mar 14, 2007 1:30 pm
Location: Poland

Postby BARMAN2005 » Sat Jun 23, 2007 6:22 am

Aha. :) I should first ask Google. :P
User avatar
BARMAN2005
Ugly Duckling :D poster
Ugly Duckling :D poster
 
Posts: 416
Joined: Wed Mar 14, 2007 1:30 pm
Location: Poland

Re: We need people who know virtualdub! please contribute!

Postby rosannaluo08 » Fri Nov 28, 2008 7:07 am

Hi,there.
Have you been looking for some software that can convert your favourite

movies or music to your mobile phone? Here is the one you have been

looking for. Nokia Converter.

With this programme, you can convert all popular video and audio formats

to your Nokia Mobile Phone. Don't hesitate, try it right now!! :mrgreen:
rosannaluo08
 
Posts: 1
Joined: Fri Nov 28, 2008 7:04 am


Return to Video related (MTV, AMV, encoders, etc.)

Who is online

Users browsing this forum: No registered users and 2 guests



cron