|
|
| trodas |
Posted: May 13 2014, 06:43 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 88
Member No.: 22291
Joined: 22-October 07

|
The problem - 730MB of "highly special" porn MKV file. The wanted result - normal AVI file that is playable on most computers. The choice of tool to convert - VirtualDub. It can - with MKV input drivers - import the MKV file and w/o reencoding save it as AVI (choose direct stream copy and if the encoding format is possible with AVI, it will works... I can live with reencodding audio anyway).
So far, so good and everything worked out well. Even I get rid of the another audio stream, so I have only one and that make the file also smaller.
There is only one small problem. Aspect ratio does not match. The file is played when into MKV format at 720x"576" (or at least that is what it says), but the window is only 405 pixels in height (720 pixels wide are okay and unchanged). And that way the movie looks as it should.
But when opened in VirtualDub, it does scale to the 576 pixels and the movie looks pretty bad that way.
And this problem stays when there is no resize and the stream is saved as it is by direct stream copy.
So my question is - is there some plugin, that change the AR in VirtualDub, w/o the need to reencode the video? I can scale it down too, but that is not the desired effect, since it require the reencode. Any suggestions?
-------------------- "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire ...just keep folding, just keep folding... :) my config - my caps |
 |
| dloneranger |
| Posted: May 13 2014, 07:28 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
Depends on exactly what you're after - it's unclear to me
Do you want the source video to be decoded by virtualdub using the source videos ar ratio? (automatically resize the video in virtualdub based on its ar) If so, the ffmpeg input plugin has an option to use the source's ar ratio instead of 1:1
If you mean that you want the ar values to be transferred from the source to the destination (but with virtualdub seeing it's normal 1:1 ratio), then there's no specific way Using the external encoder options to set a specific ar in the dest file would be my best guess for that scenario
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| -vdub- |
| Posted: May 14 2014, 09:23 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
If MediaInfo says 720x405 or 720x404 and is meant to be 16:9 or trying to be
Encode the video again with filter Resize set to 704x396 - 16:9 with 4x4 multiples (use preview to check if/as needed)
An MKV yesterday that wasn't playing correct time wise and out of sync audio was an xvid why people still using xvid ? Tried using another software which didn't work because xvid video was packed
AVIDemux (older one that works with frames) it loaded the video unpacked the video VOPs or something. Saved with copy video and changed the audio to pcm (after noting the audio properties). Doing this without the audio would result with the same problem. Likewise if didn't unpack xvid video it would be the same (tested both ways had forgotten about xvid problems)
Loaded new video into Virtualdub set video DirectCopy with audio set to encode at 128bits AC3 48000khz 2channel (stereo, non-jointed) as was with original audio mp3. After saving the video time counts correctly and can navigate better while the audio is now always in sync |
 |
| trodas |
| Posted: May 24 2014, 08:08 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 88
Member No.: 22291
Joined: 22-October 07

|
dloneranger - Unclear? I make it clear - I want the video to be in usable AVI format (and not exotic MKV) and be still in the correct size when playing. That it is w/o reencoding it, because that would lose quality 
-vdub- - reencode is not an option, the quality is already as it is... so yes, I would like to get rid of the MKV format, but not at the cost of reencode. Even the Xvid 2 pass does not do good enought IMHO. And IIRC that is the best codec for smal videos, so...
-------------------- "It is dangerous to be right in matters on which the established authorities are wrong." - Voltaire ...just keep folding, just keep folding... :) my config - my caps |
 |
| Abrazo |
| Posted: May 24 2014, 09:07 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10

|
For as far as I know, there is no aspect ratio parameter in AVI.
By default, an AVI plays in a 1:1 aspect.
This means that if the width x height are NOT adapted to the desired aspect ratio (for exemple 16:9), then you will get a wrong display. To be good, it should be 720 x 404 pixels. If it is 720 x 576, then it will be bad.
A thing you can do in VirtualDub, is do a right mouseclick onto the Input and/or Output video pane and choose Aspect Ratio 16:9 frame (Wide).
In some Windows media players there is also an option to play (AVI-)videos in the aspect ratio that you prefere.
In Windows Media Player there is an option to change pixel aspect ratio, but it has NO influence when playing AVI. Via the menu Tools > Options > Devices tab > Display > Properties button... Drag the slider to the new position > Apply > and click Yes > OK > OK. |
 |
| dloneranger |
| Posted: May 24 2014, 09:33 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
In some instances, you can do AR in an avi If the codec's xvid or divx, and the player supports decoding the information, you can set the AR in the video stream itself eg MPEG4Modifier will let you do alter it in xvid/divx encoded avi's http://moitah.net/
If you have to reencode and are after quality, then forget 2pass and use the quality based encoding instead You'll get better results but unpredictable file sizes (that's not normally a problem though)
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| -vdub- |
| Posted: May 25 2014, 02:46 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
When everything goes tits up always easier to start again. Or for this demux the video to separate video, audio stream. Again mediainfo should tell you what the actual video resolution and aspect is for the demuxed streams. After you could load each to virtualdub and save as avi
Or after demux try avimux and mux to an avi video that way. Either way the end video should have same properties as the original video stream for resolution and aspect. Long as avimux accepts the video and audio streams you feed it
If mediainfo say after demux the video stream is not what you require encoding atm will be the only way to correct it. Unless you try other suggestions above and they work for the video |
 |