I wanted to resize the frame of an avi without changing the video or the audio.
Since I was unsuccessful, (see below), I would like to ask 1st:
Is this change fast or is it like a new reencode?
First I tried to use virtualdub in video full processing mode, xvid target quantizer 4, and audio direct stream copy. See the error in the attached. Of course I added the resize filter before run.
Then, I tried to use AGK. In hidden settings I ticked "Override input AR" and ticked "16:9". In main window I chose 100% target quality and in Advanced settings I left everything to auto (xvid codec). Here is the log:[2010-11-24 17:58:11] AutoGK 2.55Notice that AGK says the source is DivX!
[2010-11-24 17:58:11] OS: WinXP (5.1.2600).2
[2010-11-24 17:58:11] Job started.
[2010-11-24 17:58:11] Input file: D:\AV\ToBurn\AugustRush\AugustRush.avi
[2010-11-24 17:58:11] Input codec: DivX 5
[2010-11-24 17:58:11] Source duration: 1h 54mn 17s 107ms
[2010-11-24 17:58:11] Output file: D:\\AV\ToBurn\AugustRush\AugustRush_agk.avi
[2010-11-24 17:58:11] Output codec: XviD
[2010-11-24 17:58:11] Audio 1: 112 Kbps MPEG-1/2 L3 2ch
[2010-11-24 17:58:11] Subtitles: none
[2010-11-24 17:58:11] Format: AVI
[2010-11-24 17:58:11] Target quality: 100%
[2010-11-24 17:58:11] Audio 1 settings: Auto
[2010-11-24 17:58:11] Started encoding.
[2010-11-24 17:58:11] Source resolution: 616x256
[2010-11-24 17:58:11] Source fps: 23.976
[2010-11-24 17:58:11] Manual aspect ratio: 16:9
[2010-11-24 17:58:11] Output will contain 164406 frames
[2010-11-24 17:58:11] Demuxing audio.
*************************************
EXCEPTION: Unsupported audio type.
*************************************
[2010-11-24 17:58:11] Job finished. Total time: 0 seconds
+ Reply to Thread
Results 1 to 27 of 27
-
Last edited by drgt; 24th Nov 2010 at 12:53.
-
If you are just trying to change the aspect ratio, and not actually change the resolution, try Mpeg4Modifier. For Xvid/Divx AVI files it can change the aspect ratio flags without the need for re-encoding.
Read my blog here.
-
I wanted to change the AR to avoid those black bars during playback or avoid to have to zoom to get rid of them. But if I am gonna spend an hour or so doing this, then I prefer to zoom.
Apart from that, Thank you guns1inger, I 'll give it a try.
Baldrick, you 're right. This 616 is indeed ODD!!!
What is strange is that AGK reports source as DivX while GSpot says the source is XVid!
Also strange is the fact that AGK got stuck on audio, and virtualDub got stuck on video.
Both DivX and XVid are installed in the system. -
I agree. There are so many AR out there. There should only be 4:3, 16:9 and this new very wide one (I forget the ratio) tops!
-
It's approx 2.40 - a common size for the cinema. Are you trying to make it less wide when played back on
a standalone player? Most ignore internal aspect ratio flags within the file. You'll have to re-encode it.
Have you tried AVIdemux ?
PS this movie will look pretty bad stretched to 16/9, but horses for courses and all that.
Might be better finding a compromise, crop 20 off the left and right and then resize to
576/288 -giving a ratio of 2.0.
I did this in Virtualdub and it worked fine.Last edited by davexnet; 25th Nov 2010 at 06:38.
-
If it requires re-encoding, it is not worth it. Better zoom in.
Just curious about what I defined "strange" above.
Any ideas? -
Yes . If you look at the header of the file in the HEX editor, the so-called "video codec FOURCC handler" is "xvid" , while the
"video format FOURCC code" is "DX50". Both can be overridden in Virtualdubs extended open dialog - although as I mentioned,
I opened it without issue as-is.
You should be able to recode this file in 30-40 minutes on any average, recent PC. -
I don't understand some people's obsession with not seeing black bars. Why not just view the movie the way it was intended to be seen? The full frame, with the correct aspect ratio, and no distortion. Do you complain to the movie theater manager when the curtains cover unused parts of the screen at the theater?
-
-
Good point jagabo; I think robjv1 has the answer!
Personally, due to ignorance, back then when I bought my 1st wide screen tv I thought I 'd say goodbye to those annoying black bars!
But, you got to admit, tv not being nearly the size of a movie theater screen, if you see a 2.4 ratio movie on relatively small tv it is simply annoying. It uses less than half the screen. This ratio is for the theater and extra wide tv. -
I have watched and enjoyed 2.4 : 1 movies on smaller sets, and hell, I even encode widescreen for my iPod classic. My largest TV is only 37 inches, which isn't all that big by today's standards, and for years I watched widescreen on 4:3 CRT. In all that time I have never noticed the black bars.
Read my blog here.
-
I guess the matter is subjective.
Anyway, I thought I 'd give it a 2nd try, so I loaded it on VDub, this time using DivX codec. In code configuring I selected Home Theater preset 3 and overidden source AR to 640x360. The process took 20 minutes.
Is it possible to maintain picture quality when resizing? If yes, what settings should I use?
See picture below. -
Don't screw with the aspect ratio when resizing. Crop to 1.778 : 1 (16:9) first, the resize after that if necessary. Note : if you are cropping files that are not original source (your own DVDs) then chances are they have already been cropped (bars removed) and resized down. When you crop them further, they may become quite small. Resizing them back up will only degrade picture quality further. That is the price you pay. If you are using your own DVDs as source material, start by cropping off the bars (leaving a small amount for overscan is usually a good idea), then crop the edges off to get to 1.778 : 1, and encode at whatever resolution you are left with. Trying to resize up will only hurt you.
Read my blog here.
-
Re-encoding with a lossy codec will result in quality loss too. And finally, the bigger image on screen will make all those defects and low resolution more visible.
-
Guns1inger: Let me see if I get this right. So what you are saying is "Do not squeeze nor stretch the image by altering the ratio. Just select a centered 16/9 area and discard what is out of it." (Basically, "do the zoom here").
Assuming this is right:
In VDub if I choose video direct stream copy (so I use the same codec, no recompression) the "filters" is dim and I cannot select a null filter so I can crop the image.
How do you do it?
Is there an automatic 16/9 crop or I have to do it manually?
Does this mean that whatever was out of the crop box will be replaced by black? If yes, it defeats the purpose. -
-
You can't crop the video in Direct Stream Copy mode.
Add a Null Transform filter and elect to add cropping to that filter at the main filter dialog. Cropping can be added to any filter -- so if you're going to use another filter you can attach cropping to that filter instead. Cropping takes place before the filter is applied.
No, it leaves you with a smaller frame. -
So, I select "Full Processing Mode" in order for "Filters" to be available. I select a null filter which does nothing except for allowing me to crop.
Is there an automatic 16/9 crop or I have to do it manually?
Now, since I am in full processing mode, do I go on to "compression" choose codec (in this case we want the same codec) and configuration settings? If yes, that would be a re-encode with a loosy codec which means we loose quality which I do not want.
So, I cannot crop the frame without re-encode? -
Then don't bother with cropping and resizing.
So, I cannot crop the frame without re-encode?
Is it in one ear and out the other? Are we just wasting our time here? -
Did you try it? Did you see an automatic setting? Too hard to use a calculator?
width = height * 16 / 9
Since the process of cropping video involves first decompressing the source, then cropping, you will have to recompress it if you want a compressed file. In VirualDub select Video -> Compression, select the codec you want to use, press Configure, and adjust the codec to your liking.
If you don't want to lose quality to a lossy compression you will have to use a lossless codec or no video compression. That will result in enormous files. Your 616x256 source, cropped to 456x256 (~16:9 and mod 8), compressed with HuffYUV will result in about 7 GB/hr, about ~20 GB/hr as uncompressed YUY2, ~30 GB/hr as uncompressed RGB.
Actually, even using a lossless codec or no compression you will get a little quality loss because VirtualDub filtering works in RGB and your source is in YV12. To perform the crop VirtualDub will convert the YV12 to RGB which will result in a small quality loss. Then the compression codec may convert back to a YUV leading to a little more quality loss.
You have been told this many times, unequivocally. No.Last edited by jagabo; 27th Nov 2010 at 07:06.
-
Thank you for your in depth explanations.
Sorry guys, I got confused by:
Of course you are not wasting your time, you are offering a much appreciated service! Some ...students need to ask more than once!
A simple "no" would suffice. Didn't hurt to ask, did it? -
There is one final point where there will be a perception of quality loss - playback. After all the cropping your resolution will have been substantially reduced in most cases. On playback you will be resizing the image bacl to full screen, however this time with a larger amount of zoom. This will make any artifacts either in the source or from your cropping and re-encoding much more obvious, and the quality fo the resize will be completely up to the resizer in your player or TV. And they are not all created equal.
Read my blog here.
-
I pointed that out already. Though not as clearly.
https://forum.videohelp.com/threads/328552-Frame-resize?p=2035587&viewfull=1#post2035587 -
Another question:
Up until now, we discussed changing the frame size of a compressed video file. Now if we had the DVD and we wanted to change its "unconventional" frame size to a 16:9 or to 4:3 would we run into the same problem as the picture(s) I posted above? -
Unconventional? Most movies are shot at 2.35:1. If anything, 16:9 is unconventional. Nothing was shot at 16:9 until HDTV was standardized at that size. Even now, only TV shows are shot at 16:9.
And yes, DVD has to be handled similarly if you want to convert 2.35:1 to 1.78:1. How else are you going to fit a wide video in a less wide screen?Last edited by jagabo; 28th Nov 2010 at 11:58.
Similar Threads
-
How do I debug/extract i-frame p-frame and b-frame?
By jwbrasil2 in forum ProgrammingReplies: 0Last Post: 20th Nov 2011, 12:24 -
Play an MTS file frame by frame, displaying timecode or frame number
By SeánB in forum Software PlayingReplies: 5Last Post: 5th Oct 2010, 16:26 -
tmpgenc xpress auto resize results in 708 width in 720 frame.
By davexnet in forum Video ConversionReplies: 0Last Post: 27th Jan 2010, 13:49 -
WMP and VB6, is it possible to step forward or back frame by frame?
By gadgetguy in forum ProgrammingReplies: 11Last Post: 6th Mar 2009, 20:00 -
Advancing/Rewinding Clip Frame by Frame on Windows Movie Maker (Vista)
By ione in forum EditingReplies: 20Last Post: 9th Sep 2008, 22:53