VideoHelp Forum




+ Reply to Thread
Results 1 to 21 of 21
  1. OK I have some high speed video's from my casio F1

    I want to put them on DVD. so I need to do 2 things to the videos when I make them into vobs

    I need to rotate them 90'

    then I need to resize/canvas them to 720x480 without going hinky on the aspect ratio (ie whats the other form of letter boxing? ie resize the video to 480 tall but retain the aspect ratio and add "black space" (canvas size change) left and right to get the 720x480

    is there a relatively simply solution(s) to do this like super makes doing vobs easy?
    Quote Quote  
  2. What's the frame size of your source video? Is it square pixel? Do you want 4:3 or 16:9 DVD?
    Quote Quote  
  3. about 7 different frame sizes. (3 on the F1 and 4 on the FH25 IIRC)

    for the ones I am messing with right now

    the 300fps videos are 512x384 so I need to rotate to 384x512 scale the 512 to 480 keeping the aspect ratio and then letter box (??) to 720 wide.

    600fps is 432x192

    and 1200fps is 336x96

    or a program that will let me rotate and letter box to the correct aspect ratio canvas without messing wit video original aspect ratio and then I just chunk them through super to make vobs.
    Quote Quote  
  4. Originally Posted by nerys View Post
    the 300fps videos are 512x384 so I need to rotate to 384x512 scale the 512 to 480 keeping the aspect ratio and then letter box (??) to 720 wide.
    For the width on 4:3 DVD: 384 * 480 / 512 * 9 / 8 = 405.
    Quote Quote  
  5. not sure I understand? I can do the math to know what I need. what I need is software that will actually "do it"

    super "stretches" them which obviously makes them look funny especially the long aspect ration 600 and 1200fps video.

    how do I rotate 90' and how do I increase the canvas size (not sure of the proper term for video that is the term for pictures) without screwing up the aspect ratio of the video? IE letter box (??) black bars on the sides.
    Quote Quote  
  6. Most video editors have 90 degree rotations, scaling, and padding filters. I would use AviSynth():

    Code:
    (assuming the 512x384 source)
    TurnLeft() #or TurnRight()
    BicubicResize(404,480) # odd values won't work for YUY2 of YV12 video
    AddBorders(160,0,156,0) # keep one edge on a mod 16 boundary for better compression
    In VirtualDub you can use the Rotate filter and the Resize filter (the latter has both resizing and adding borders).
    Quote Quote  
  7. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    @jagabo, I don't think that's right.

    I get:
    (512/384)*1/1=4:3 and (720/480)*8/9=4:3. But since you are rotating, it makes it (384/512)*1/1=3:4 and ((384 + X)/512)*1/1=4:3. Replacing the 4:3 and solving for X makes it (512 * 720 / 480 * 8 / 9) - 384 = 298.
    Which makes sense, because your are keeping the AR and shrinking the scale, so since the 512 is shrinking to become the 480, the 384 should shrink also.

    edit:
    nm, I was making it more complicated than it needed to be. If 384/512 = 3/4 (aka 0.75), then X/480 * 8 / 9 should also = 3/4, solving for X gives 3 / 4 * 480 * 9 / 8 = 405.


    BTW, nerys, those last 2 clip sizes are going to look like crap because of them being such low resolution to begin with. Hope you understand that going in...

    Scott
    Last edited by Cornucopia; 23rd May 2012 at 17:38.
    Quote Quote  
  8. FitCD gives results very close to what jagabo figured out:
    Image Attached Thumbnails Click image for larger version

Name:	resize.jpg
Views:	1140
Size:	50.9 KB
ID:	12525  

    Quote Quote  
  9. Oh I know they will look like crap relatively speaking. they actually scale up nicer than you think because everything is moving so slowly your brain has time to error correct so they "look" better than they sound.

    remember 96 pixel wide is in reality no different than 720 pixel wide.

    because even if the video was 720 pixel wide the "TARGET" ie the "rocket" would still only occupy the same actual pixel space on the screen or close to it IE all those extra pixels would just be ground and sky background doing nothing anyway.

    I WOULD LOVE to have higher resolutions but when your a poor schlub having 1200 fps at ANY resolution is "AWESOME"

    I have captured some truly stunning video with this thing. 1080p don't mean squat if you catch NOTHING hehe

    Here is an example of what I mean. this is a 600fps video. very low res but you will note the video does not look bad even full screen and well even at 4k resolution this video would have been a phweet gone done in .2 seconds you would have seen little to nothing.

    at 600fps its FASCINATING keep watching to the 30 second mark. in real life that motor was spinning so fast you could not "see" it and it sounded like one of those spinning little fireworks that spin in circles on the ground. Zzzzzzzzzzz. Very cool

    http://www.youtube.com/watch?v=EIcas5j2rcI

    you can stop watching after around 30 seconds its nothing after that (I should have cut out that ending
    Quote Quote  
  10. Ok I installed aviSynth 2.5 and well there is nothing their. there is no "program" to run just some documentation and an uninstall ??

    is this an "addon" for another program? what program? virtual dub?
    Quote Quote  
  11. I tried vdub but it won't read mov files. (I really really hate quicktime) gonna try the quicktime plug in and see if that works.

    Ok got the quicktime plugin to work and then had to install ffdshow updated version to get vdub to use the avc1 codec it needs to view these files. vdub now appears to read the files properly.

    how do I rotate the video (I see no rotate option anywhere) how so I add a border? and is there a way to directly output VOB or MPG2 from vdub so I only have to transcode once?

    I am going to google all this but figured post here too in case my google-fu fails me

    ahh found them have to goto "filters" then add filters select rotate left 90

    then add another filter for resize which lets me resize AND letter box retaining aspect ratio all in the same step. nice

    now to stalk ympeg so I can output right to mpg2 Sweet
    Last edited by nerys; 24th May 2012 at 09:18.
    Quote Quote  
  12. AviSynth is script driven. You need to create a script file with NotePad or similar text editor. Then open the script with your encoder or video editor.

    http://avisynth.org/mediawiki/Getting_started
    Quote Quote  
  13. Ok I got ympeg 0.6.14 its installed.

    now how do I "access" it within virtual dub? save as avi has no mpeg option and export has no mpeg option?

    yeah definitely need to figure this part out. I just saved a 30second no audio video with vdub and its 889mb !!! holy crap. no wonder it took so long to save a 30 second file it was all "write time" to the hard disc

    besides the insane uncompressed file size though it works great. rotates and letter boxed perfectly. just need to get ympeg working

    ahhh I think I found it. goto video compression select ympeg set options etc.. trying it now....

    OK when you use ympeg it ignores the output location from vdub and it defaults to C:\ (the setting in the compression settings screen under video compression)

    the quality is really low for some reason. strange artifacting is introduced. I am trying a rediculous high bitrate now (10k) to see if that goes away. I am not fully "sure" what to do with the settings and what not. I took VBR off and selected prograssive frames to see if that helps at all.

    almost no change except to double the file size.

    any suggestions? I think the ympeg is adding these artifacts for some reason. the uncompressed avi looks fantastic.

    gonna trying chunking an uncompressed file through super and see if the 2 mpegII files look the same IE confirm if its just the conversion to mpegII (doubt it) or if its ympeg doing something hinky
    Last edited by nerys; 24th May 2012 at 10:22.
    Quote Quote  
  14. VirtualDub defaults to uncompressed RGB if you don't select a video codec. I haven't used ympeg but I believe the way it works is you elect to save as AVI using ympeg as the codec. Then ympeg automatically re-routes the AVI output to an MPEG file.
    Quote Quote  
  15. kind of. it makes a "fake" 50k mpg (or avi if you leave the extension avi) file where you tell it to save.

    and the "real" mpg file is predicated on what is "set" in the compression settings window of ympeg.

    but the results are lackluster at best. Comparing to a super output now.

    ok its definately something hinky with ympeg.

    I took the raw avi output and chunked it through super at 8k ended up with a 7mb file (versus the 80 mb file from ympeg) and the super file is fasntastic. almost indistinguishable from the raw avi.

    Grrr sadly this means I have to do it "twice" once from vdub then chunk it through super. gonna have to watch my time lines though any file over 2 minutes will go over 4gb.

    might try a "mildly" compressed file (maybe really high bitrate xvid ??) from vdub and then chunk it through super and see how it comes out.
    Last edited by nerys; 24th May 2012 at 10:51.
    Quote Quote  
  16. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Because Vdub is likely working in RGB space, you're having to do a couple of colorspace conversions behind the scene (YUV->RGB on import, RGB->YUV on export). This lowers quality.

    Try using AVISynth script, since it can work directly in YUV space (no double conversion). Then you can encode with HCEnc, which is a MUCH better mpeg encoder.

    Scott
    Quote Quote  
  17. You can always save to an AVI file then use whatever encoder you want. Or you can frameserve to another encoder. Or you can figure out how to use export plugins in VirtualDub.

    http://forums.virtualdub.org/index.php?act=ST&f=3&t=18840&
    Quote Quote  
  18. I appreciate the info on encoding. alas I do THOUSANDS of these files. I need a simple drag and drop solution. Just too much of a headache to use command lines and scripts (especially since the variables are CONSTANTLY changing so its not as simple as do it once and never do it again)

    Just got to get the raw avi file size down a bit without destroying quality. something is "wrong" with ympeg (most likely i just don't know how to configure it properly and the defaults don't work for my files)

    super does fantastic at retaining quality and file size. I will upload the two output files later (slow work connection) so you guys can see what I am talking about.

    vdub has a "batch" option which is why I wanted to use ympeg. IE run one batch and DONE. so now I have to run two batches. one in vdub and one in super for each "set" of files.

    well the 420fps files and up can be all in one batch since they are all smaller than 480 wide.

    the lower than 420fps files will have to be done in another batch since the RESIZE command in vdub is size agnostic. IE I can't tell it to ONLY resize "larger" than 480 files. it also UPSIZES the smaller than 480 files and that introduces artifacting for no 'realized" gains (ie they are so close to 480 tall anyway there is no reason to upscale them)

    this does wonders for retaining quality. I am really surprised how good these files look even on a 40" screen.

    SO paying forward.

    for anyone else who needs to do this I have a partial solution with the help of these folks for doing this.

    install vdub
    install the quicktime plug in (make Plugin32 folder put the plugin inside)
    install FFDSHOW to get the AVC1 codecs needed for the casio mov's

    drop video on vdub set audio to no audio goto vidoe filders add filter

    add rotate filder left 90' for me
    add resize filter.

    absolute 480 tall for less than 420 fps files relative 100% for 420fps and up

    set to letter box crop to size and set for 720x480. it will letter box on all 4 sides as needed automatically

    save as avi (or other format)

    chunk through you favorite mpeg encoder

    attached is the screen shot of my settings for resize. make sure rotate is FIRST I assume it does them "in order"

    the other screen shot is my ympeg settings maybe you guys can tell me whats wrong with it?
    Image Attached Thumbnails Click image for larger version

Name:	vdub resize.gif
Views:	905
Size:	13.3 KB
ID:	12536  

    Click image for larger version

Name:	ympeg.gif
Views:	659
Size:	23.0 KB
ID:	12537  

    Quote Quote  
  19. If I might make a simple suggestion, why don't you turn the camera 90 degrees when recording.

    You could use TMPGEnc Plus with the TMPGEnc Mov Plugin to encode directly to DVD compliant MPG. It has many options to automatically center and size a video source and filters to crop (load unlock in the extras, after you load an encoding template). You would need to use DVD authoring software to generate VOB's. There are free progams in the Tools section or you can just buy the all in one TMPGEnc Authoring Works.
    Quote Quote  
  20. I do turn the camera's 90's

    but rockets are "long and skinny" and the videos are "long and skinny"

    its nearly impossible to keep the rocket "in the frame" with the "short side" on the vertical access unless I zoom out A LOT and at that point the rocket is a tiny blob of pixels.

    the point of high speed is to "see" something so I have to shoot portrait. to both dramatically increase effective resolution AND increase the odds of me keeping the critter in frame.

    in landscape the rocket would be less than 10% of the frame if I was lucky. in portrait the rocket is 50-60% of the frame. 5+ times the effective resolution.

    I use vdub to edit super to convert to vobs and then tmpg dvd author to actually "make" the DVD with the now compliant vobs from super.

    I don't use tmpg to do this all because it does not allow semi automated batch operations. IE process 100 files at once. doing this with a program like that would dramatically add to the amount of time it takes to process all the videos
    Quote Quote  
  21. I should have looked at the video, doh! You can do batch processing with TMPGEnc using TMPEG Batch List Creator; you just can't rotate video with it.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!