Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
17th January 2008, 19:18 | #561 | Link |
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
@Honeyko: The predefined PARs are stored as 4 bits in the VOL, custom PARs use an additional 16 bits (8 width, 8 height). So in certain cases it is possible to modify the file in-place, but not always. Of course it's not necessary for it to be written in .NET, but C# is the language I'm most comfortable with. MPEG4 Modifier is something I did mostly for fun, I didn't really even need it, and for me writing it in C++ would have been more frustrating than anything and I wouldn't have written it at all.
@squid_80:
__________________
moitah.net |
17th January 2008, 23:28 | #562 | Link | |
Registered User
Join Date: Oct 2007
Posts: 313
|
Quote:
(Have hex-editor, and ready to hack....) |
|
18th January 2008, 01:11 | #563 | Link |
Registered User
Join Date: Jan 2008
Posts: 1
|
why is it that when i change the aspect Ratio to 16:9 in the display AR side that it does display the video 16:9 but when i burn the video onto a DVD and play back on my Divx dvd player it display the Aspect ratio before and not the 16:9 that i change to?
Thank you |
18th January 2008, 04:13 | #564 | Link |
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
@Ruud00: Your DVD player must be ignoring the aspect ratio information stored in the video header. Unless there is a firmware update to support this, you will have to reencode the video to correct aspect ratio.
@Honeyko: It's a pain to do in a hex editor. For example let's say you want to set a custom PAR and insert 2 8-bit values for the width/height. The VOL is a stream of bits and these width/height fields will never fall on byte-boundaries, so it's not as simple as just inserting a few bytes.
__________________
moitah.net |
18th January 2008, 06:12 | #565 | Link | |
Registered User
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
|
Quote:
To start with, search for the first occurrence of (hex) 00000120. That's the VOL start code. Directly after that there's a byte that you don't need to change, just remember its value (in my case it's 0x08). Bits 5-2 in the next byte describe the PAR. The file I'm looking at right now has 0x96 at this byte. In binary this is 10010110, bits 5-2 = 0101 = 5. This stands for 16:9 NTSC, or a PAR of 40:33. Here's the full table: (1)0001 = 1:1 (2)0010 = 12:11 (4:3 pal) (3)0011 = 10:11 (4:3 ntsc) (4)0100 = 16:11 (16:9 pal) (5)0101 = 40:33 (16:9 ntsc) (15)1111 = custom So if I wanted to change the PAR to 12:11, I need to change those four bits to 0010. Which makes the new whole byte 10001010 = 0x8A. From here you use the hex editor to do a search/replace on all the VOL headers. In this case I'd search for (in hex): 00 00 01 20 08 96 87 FF FB (take the next few bytes as well for good measure) and replace with 00 00 01 20 08 8A 87 FF FB If your hex editor reports how many occurrences were replaced it should be equal to the number of I-frames in the file since there's a VOL header stored at each one. |
|
25th April 2008, 19:44 | #566 | Link |
Registered User
Join Date: Apr 2008
Posts: 1
|
AVI "User Data" modifier for KiSS DVD players
Taking inspiration from the Linux ipsr and the MPEG4 Mod programs, a friend has written the attached KiSSconv utility.
The utility will check if the file needs the change in the User Data from DivX503b1393p to DivX999b000p and make the changes on the fly, directly in the avi file. Run it either from the command line, with the filename (full filename, for example Blahblah.avi) as the parameter (if you want to see how many times it changed the string in the file, which is the output of the utility) or just drop the avi file onto the executable (which will open a cmd window but that will close once it has finished processing the file). Attached zip file has both source and exe. WARNING Use with care as the utility modifies the file in-place, thus as your original file will be directly modified there will be NO backup copy of it. Therefore please make a backup of the avi file before running the utility if needed/unsure/etc. I have been using the utility and it has never corrupted a file, but just in case... Last edited by SwissDude; 28th April 2008 at 18:43. |
26th April 2008, 05:53 | #567 | Link |
Moderator
Join Date: Oct 2001
Location: Germany
Posts: 4,454
|
FIle seems to be clean, approved attachment: http://www.virustotal.com/de/analisi...af566e4963eecf
__________________
Koepi's new media development site |
10th August 2008, 05:55 | #569 | Link |
Registered User
Join Date: Feb 2004
Location: Virginia, USA
Posts: 334
|
@shae: Yeah, I'd like to take a look at it, can you upload the code somewhere?
__________________
moitah.net |
4th April 2009, 20:05 | #570 | Link |
Registered User
Join Date: Aug 2006
Posts: 6
|
can someone assist me to change the aspect ratio of avi file. i am new to this software & cant find a guide
the problem is when i play this on windows media player, the movie is all stretched up & when i open it with virtualdub & then change the aspect ratio to 16:9 (wide screen), the video looks just perfect. (actually from where i downloded this, there was a note stating "set aspect ratio manually to 16:9") any help will be much appreciated & i have a few more files with exactly the same problem but they all have different frame sizes, like one is 512*384 & so on. These are the screen caps: this is the info from mediainfo: Code:
General Complete name : E:\abcd.avi Format : AVI Format/Info : Audio Video Interleave File size : 699 MiB Duration : 1h 38mn Overall bit rate : 988 Kbps Writing application : VirtualDubMod 1.5.4.1 (build 2178/release) Writing library : VirtualDubMod build 2178/release Video Format : MPEG-4 Visual Format profile : Streaming Video@L1 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Custom Codec ID : XVID Codec ID/Hint : XviD Duration : 1h 38mn Bit rate : 842 Kbps Width : 624 pixels Height : 464 pixels Display aspect ratio : 4/3 Frame rate : 29.970 fps Resolution : 24 bits Colorimetry : 4:2:0 Scan type : Progressive Bits/(Pixel*Frame) : 0.097 Stream size : 596 MiB (85%) Writing library : XviD 1.0.2 (UTC 2004-08-29) Audio Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Codec ID : 55 Codec ID/Hint : MP3 Duration : 1h 38mn Bit rate mode : Variable Bit rate : 131 Kbps Nominal bit rate : 128 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Resolution : 16 bits Stream size : 93.0 MiB (13%) Alignment : Aligned on interleaves Interleave, duration : 24 ms (0.72 video frame) Interleave, preload duration : 273 ms Writing library : LAME3.90. Encoding settings : ABR Language : English Last edited by mahendra; 4th April 2009 at 20:54. |
4th April 2009, 20:24 | #571 | Link | |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Quote:
Nobody here can help you with copyrighted files you have downloaded!
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
26th June 2009, 23:34 | #574 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Ryo94,
The file mahendra wanted help with was illegally downloaded, so your reply post is in violation of rule 6. You better remove it before a moderator strikes you!
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
1st July 2013, 22:55 | #575 | Link |
Registered User
Join Date: Aug 2006
Posts: 164
|
Hi folks,
First of all Moitah Thanks for your Tool is a Life Saver ... I have a question, may be someone can help ... When I use MPEG4Modifier to correct the Playback Aspect Ratio of an AVI ... I happen to check the output AVI with MediaInfo and I noticed that under "Container and General Info" the Writing Application Info now are gone. Q: Is there a Way that I can Keep that info even after I use MPEG4Modifier tool? Thanks, G! |
9th June 2020, 00:40 | #576 | Link |
Registered User
Join Date: Mar 2003
Location: France
Posts: 63
|
Hello.
To update a little bit this post, moitah has updated the tool to 1.4.6 version in 2015: http://www.moitah.net/ Changes since 1.4.4 version: 1.4.6 (2015-Jan-10): Marked as system DPI aware to fix blurry UI with high DPI settings. Changed license to MIT (was GPL v2). 1.4.5 (2012-Sep-02): Ability to export custom quantization matrix to .cqm file. Fixed window layout with high DPI settings. Supports loading on .NET 4.x runtime (not required; still 2.0 compatible).
__________________
We always need to a smaller of us! |
9th June 2020, 09:24 | #577 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
Whatever happened to Moitah
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|