View Full Version : Help: RMVB converter with Aspect Ratio adjustment
inman
17th November 2004, 13:26
Is there an RMVB conversion software which has the option to change the aspect ratio of the output video? i.e. converting 4:3 to 16:9 or back. Dr.Divx has this feature and is very useful. Now that I am working on RMVB, I am very much in need of such an app. I tried Easy RealMedia Producer but it didnt have that feature.
If anyone knows such an app, please reply.
notags
17th November 2004, 15:38
Easy Real Media Producer (http://forum.doom9.org/showthread.php?s=&threadid=73228) can do that. :cool:
inman
17th November 2004, 15:52
Sorry I cant find this feature. Can you tell me where exactly is this option in the program?
karl_lillevold
18th November 2004, 00:39
D-C was going to add this ("change display size") to his RMVB shell extension tool. He probably already did, because he showed me how to binary edit the RM file to change the display size. Describing briefly how to find the width and height is a little hard, I am looking forward to the new version of the shell extension!
notags
18th November 2004, 12:40
Originally posted by inman
Sorry I cant find this feature. Can you tell me where exactly is this option in the program?
You can't change the aspect ratio directly, but changing the resolution will achieve your desired ratio as well. For eg., I usually want my anime to be 4:3, hence I set their output ratio to 640 X 480. If you want 16:9, then it should be 640 X 360. :D
inman
18th November 2004, 13:13
Originally posted by notags
You can't change the aspect ratio directly, but changing the resolution will achieve your desired ratio as well. For eg., I usually want my anime to be 4:3, hence I set their output ratio to 640 X 480. If you want 16:9, then it should be 640 X 360. :D
But what about VCD files which come at a resolution of 352 X 288. I want to change them into 16:9. How?
If someone had kept an option to do this (just like in Dr.Divx), it would have been very helpful.
Shinobu
18th November 2004, 19:17
288*16/9=512
=> resize on play must be set to 512*288 to achieve 16/9.
you can also resize before encoding.
++
damrod
18th November 2004, 23:13
i usually do like shinobu...
for exemple i have an anime in hd-tv (1020*720) and i want only 640*xxx max... so i specify resize in producer parameters..
karl_lillevold
19th November 2004, 00:19
if you "resize" in producer, and ask for a /larger/ output size than input size, producer will not actually resize, but put a flag in the bitstream to indicate to the player that it should display at the requested size, even though the actual encoding size remains the input size.
For instance:
16:9 anamorphic
Source: 720 x 480
Ask producer to resize to : (480 * 16/9) x 480 = 854 x 480
=> encoding size remains 720 x 480
player strethes to 854 x 480 on playback.
The display size (854 x 480 in this case) is stored in the RM header, and can be modified after the encode is complete as well. Currently you have to use a hex editor, but when D-C releases his updated shell extension tool, it should be possible to use this.
inman
20th November 2004, 17:08
Thanks for the reply guys. I never thought it would be this easy.
karl_lillevold
24th November 2004, 21:01
Originally posted by karl_lillevold
Describing briefly how to find the width and height is a little hard, I am looking forward to the new version of the shell extension!
Someone else asked this question, so I took the time to write down a description how to hex edit an RM file to change the display size. Here it is:
"Open RM file in hex editor. Look for the ASCII string 'VIDORV40'. The next two bytes are the width, and the next two the height. For instance, I have one test file that's 480x256. The 4 bytes after VIDORV40 are: '01 E0 01 00'. Simply edit these to whatever you would like the new display size to be. If I would like this to displayed at 640x480, I change those 4 bytes to '02 80 01 E0'. Usually you probably only want to change the height to correct the aspect ratio."
digidragon
16th December 2004, 19:00
I'm not very good with hex, and I can't see the correlation between the hex values and the display sizes.
If I wanted to resize a clip to 360x208, what hex values would I enter that in a hex editor?
Thanks.
karl_lillevold
16th December 2004, 19:02
try this tool instead:
http://forum.doom9.org/showthread.php?s=&threadid=85959
digidragon
16th December 2004, 19:12
I did. It hangs for ages and then says "error file!". It does work on some rm files, but not on this particular one.
karl_lillevold
16th December 2004, 19:20
I am sorry, maybe this RM file of yours is somewhat different. I do not know all the details of the RM file format protocol (I know the codec bitstream though). Do you find the string VIDORV40 at all?
Also, perhaps it is a SureStream file.. Those might have the display size stored differently.
digidragon
16th December 2004, 19:27
Yes, the string VIDORV40 is there, followed by 01 40 00 F0.
Some information from the clip info:
Stream: RealVideo Stream - Single Rate
MIME type: video/x-pn-realvideo
Max Stream Bit Rate: 437.6 Kbps
Dimensions: 320x240
Encoded Frame Rate: 30.0 fps
Video Codec: 437.6 Kbps (RealVideo 9)
I want to resize it to 320x208, not 360x208 as in my first post...
karl_lillevold
16th December 2004, 19:32
Well, it's probably better to preserve your resolution and increase the width, instead of reduce the height.
You want AR 320:208 = 1.5384
Then instead change width to:
240 * 1.5384 ~= 368 = 0x170h
So change 01 40 to 01 70
Alternatively, to change the height:
240 = 0xf0h (00 F0)
Change to:
208 = 0xd0h (00 D0)
See, it's not that hard :)
digidragon
16th December 2004, 19:47
Thank you.
I was having a slight blonde moment and taking the four hex values in isolation, instead of reading them as two pairs.
It looks fine in realplayer, but other players, when using the realmedia splitter, either crash or display it in the wrong AR and covered in multicloured lines. Any idea why that would be?
karl_lillevold
17th December 2004, 01:24
Originally posted by digidragon
I was having a slight blonde moment and taking the four hex values in isolation, instead of reading them as two pairs.
:D or, 0xd0h
It looks fine in realplayer, but other players, when using the realmedia splitter, either crash or display it in the wrong AR and covered in multicloured lines. Any idea why that would be?
Hmm, it seems realmediasplitter does not like shrinking. I tried to shrink the height, and it plays fine in RealPlayer, but not ZoomPlayer or MPC via realmediasplitter. In fact, with realmediasplitter I get a nice dialog box from MSVC asking me if I want to debug a crash in NTDLL.DLL. Try to expand the width instead (unless that's what you already did).
digidragon
17th December 2004, 20:47
Thanks for your help, karl.
I expanded the width - the opposite way crashed both realplayer and MPC using the realmedia splitter.
But at least it now looks as though it has the correct aspect ratio.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.