748 - Aspect ratio output mp4 file

jirim100

New member
Scenario:
- On input I have mpeg2 file in which first half is in aspect ratio 16:9 and second half is in aspect ratio 4:3.
- Then I convert ONLY second half with aspect ratio 4:3 (first half is cutted) -> output mp4 file have aspect ratio erroneously 16:9.

VideoRedo should by detect aspect ratio not by begin of the file but by begin of the part which will be in the output video.
 

jmc

Active member
Scenario:
- On input I have mpeg2 file in which first half is in aspect ratio 16:9 and second half is in aspect ratio 4:3.
- Then I convert ONLY second half with aspect ratio 4:3 (first half is cutted) -> output mp4 file have aspect ratio erroneously 16:9.

VideoRedo should by detect aspect ratio not by begin of the file but by begin of the part which will be in the output video.
As long as the file is mp4 you can change the aspect ratio without recoding to 3-4.

Profile Options > Aspect ratio

VRD will still show the file as 16-9 but VLC and MPClassic will play it as 3-4.

jmc
 

jirim100

New member
I want to make it work automatically.
Visibly it is not clear whether an output edited section is 4:3 or 16:9. I edit daily a lot of videos and I don't have time to detect whether output must be 4:3 or 16:9 in order to change this setting in Profile Options > Aspect ratio. This must be automatic according the beginning of the first included scene.

The above scenario is only example.
 
Last edited:

Dan203

Senior Developer
Staff member
We can't do that. We detect the aspect at the start of the file and use that value for the entire file. It's not possible for us to adjust for every frame.
 

jirim100

New member
It's not possible for us to adjust for every frame.
I don't want adjust aspect ratio for every frame. I want only you detect aspect ratio not by the start of the file BUT by the start of the first included scene - only this.
 

Dan203

Senior Developer
Staff member
Still not possible for us. We pick up these things at file open, before you've made any cuts.

It's not that hard to just set the aspect manually.
 

jmc

Active member
Hard is detecting whether output scene is in aspect ratio 4:3 or 16:9 - showed window for video is in program VideoRedo5 for both cases the same.
You can change the background color around the
display window to non black and perhaps better see what
you have.

I had that problem before I changed mine to gray.
Black on black was hard to tell apart. :)

jmc
 

jirim100

New member
You can change the background color around the
display window to non black and perhaps better see what
you have.
Sorry, but are you joking???

My background color is blue. But this don't solve this problem. The window for the video in VideoRedo5 has, without regards of aspect ratio of source video, still the same size, position AND aspect ratio.

-------------------------------

To VideoRedo5 guys: You are not very professional when you are not able to solve these simple problems. Mpg is known format with variable aspect ratio and is not good idea to set the aspect ratio for output mp4 file according the aspect ratio of the beginning of source video. When you answer me "sorry, we don't have free time for this functionality/bug" then I understand it but don't tell me "not possible for us".
 
Last edited:

jmc

Active member
Sorry, but are you joking???

My background color is blue. But this don't solve this problem. The window for the video in VideoRedo5 has, without regards of aspect ratio of source video, still the same size, position AND aspect ratio.
No, I'm not joking.

I had black surrounding the video area.
If a video was letterboxed or had "pillors" I could not see that
till I changed the color of the backgound

VRD5 has never had a problem displaying the aspect ratio for me.
Only my seeing it.

Good luck with your problem.

bye.
 
Last edited:

jirim100

New member
If a video was letterboxed or had "pillors" I could not see that
till I changed the color of the backgound.
My videos aren't letterboxed and don't have black "pillors".

For peoples which don't trust me:

Part of mpg video with aspect ratio 4:3 in VideoRedo5:
VideoRedo_4_3.jpg

Part of the same mpg video with aspect ratio 16:9 in VideoRedo5:
VideoRedo_16_9.jpg

As you can see in VideoRedo5 you don't have a chance to visually identify the aspect ratio.


The same parts of the same video in player MPC-HC:
4:3
MPC-HC_4_3.jpg

16:9
MPC-HC_16_9.jpg

MPC-HC change video window - his aspect ratio.
----------------------------------------------------

VRD5 has never had a problem displaying the aspect ratio for me.
VRD5 has for viewing of video fixed size, position and aspect ratio of window which is computed from the beginning of source video and then do not change.
 
Last edited:

jmc

Active member
There are a couple of aspect ratio "flags".

One is the one that VRD will set in a MP4 file and MPClassic obeys it.
VRD will Ignore this flag.

I had to buy TMPGEnc Smart Renderer 5 to set the other "flag" that VRD will obey.

jmc
 

Dan203

Senior Developer
Staff member
This is caused by the same thing that causes the output issue. We pick up the aspect from the first few frames in the file at file open. The movie wndow uses that aspect for display even if it changes. Again, this is not something we can easily change. I "might" be able to add another QSF filter for aspect, like the ones we have currently for resolution and frame rate. Then you could QSF the file and it would only keep frames that match the selected aspect. Although I'd need to investigate to say for sure if that was possible.
 

jirim100

New member
This is caused by the same thing that causes the output issue. We pick up the aspect from the first few frames in the file at file open. The movie wndow uses that aspect for display even if it changes. Again, this is not something we can easily change. I "might" be able to add another QSF filter for aspect, like the ones we have currently for resolution and frame rate. Then you could QSF the file and it would only keep frames that match the selected aspect. Although I'd need to investigate to say for sure if that was possible.
No, I don't want this propossed functionality. When I edit my video I don't know in advance whether selected output scene will be 4:3 or 16:9.
I want only, before saving video, you call again test function (when input is mpg file) for detecting aspect ratio onto beginning of outputed scene and this detected aspect ratio set in output mp4 file.

Small note: When is in output profile set "Aspect Ratio: No Change" then you should respect aspect ratio of selected output scene. But now you set the aspect ratio detected from the beginning of the input file. This is bug.
 

jirim100

New member
One is the one that VRD will set in a MP4 file and MPClassic obeys it.
VRD will Ignore this flag.
??? With this I don't have any problems. This is in VideoRedo5 without bugs.

When I convert pure 4:3 mpg file to mp4 file and reopen created mp4 file in VideoRedo5 -> VideoRedo5 correctly detect it as mp4 video with aspect ratio 4:3.

When I convert pure 16:9 mpg file to mp4 file and reopen created mp4 file in VideoRedo5 -> VideoRedo5 correctly detect it as mp4 video with aspect ratio 16:9.
 

jmc

Active member
??? With this I don't have any problems. This is in VideoRedo5 without bugs.

When I convert pure 4:3 mpg file to mp4 file and reopen created mp4 file in VideoRedo5 -> VideoRedo5 correctly detect it as mp4 video with aspect ratio 4:3.

When I convert pure 16:9 mpg file to mp4 file and reopen created mp4 file in VideoRedo5 -> VideoRedo5 correctly detect it as mp4 video with aspect ratio 16:9.
Yes, I agree with what you are saying.

But if you tell VRD to set the aspect ratio of the 4:3 MP4 file to 16:9 then...

MPClassic will display it as 16:9

VRD will display it as 4:3

jmc
 

jirim100

New member
But if you tell VRD to set the aspect ratio of the 4:3 MP4 file to 16:9 then...

MPClassic will display it as 16:9

VRD will display it as 4:3
Ha, you are right! This is another bug in VideoRedo5 (and in last version too).

For VideoRedo programmers, try it:

1. Create in VideoRedo5 mp4 video with number "1" with aspect ratio 4:3 (I created it from mpeg2 4:3 video).
2. Open mp4 video with number "1" and save it as mp4 video with number "2" with only changed aspect ratio to 16:9.
3. Open mp4 video with number "2" and show "Video Program Info" -> the aspect ratio is wrong 4:3.

MediaInfo show for video with number "2":

Display aspect ratio : 16:9
Original display aspect ratio : 4:3
 
Last edited:

jmc

Active member
The Devs are the ones that told me about the two aspect flags and why I
bought the other program to set the other flag.

Could not stand the confusion of seeing the video the way I wanted it (unsquished 4:3)
in VLC and MPClassic and having it squished in VRD.
 

jirim100

New member
The Devs are the ones that told me about the two aspect flags and why I
bought the other program to set the other flag.

Devs from VideoRedo??? But they create 16:9 mp4 video and then, after reopening in their own program, showing/detecting their set aspect ratio badly!
 

Dan203

Senior Developer
Staff member
No, I don't want this propossed functionality. When I edit my video I don't know in advance whether selected output scene will be 4:3 or 16:9.
I want only, before saving video, you call again test function (when input is mpg file) for detecting aspect ratio onto beginning of outputed scene and this detected aspect ratio set in output mp4 file.

Small note: When is in output profile set "Aspect Ratio: No Change" then you should respect aspect ratio of selected output scene. But now you set the aspect ratio detected from the beginning of the input file. This is bug.
It's the MP4 format that is causing the issue here. MP4 files do not allow for variations in video specs across frames. The way MP4 works is it stores a single frame header in the MP4 container and then strips the individual frame headers. It then reapplies the header from the container to each frame at playback. So it assumes that every frame is the same and can use the same header. It also stores the aspect ratio at the container level, which might be contributing to this, but in my experience most players ignore that. (VideoReDo should only use the container aspect if the frame level one doesn't exist)

If you were to save as a TS instead then you wouldn't have this issue. TS has no container level header and retains the header for every individual frame.

As for the other part about checking the frames at output... it's simply not possible. We setup the entire output chain before we read a single frame of video for output. Changing this would require a massive overhaul of the entire output system.
 
Top Bottom