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. |
![]() |
#1 | Link |
Registered User
Join Date: Jul 2020
Posts: 76
|
Staxrip - How to change display aspect ratio??
I have a video file that has an incorrect aspect ratio. It is a PAL DVD source with a resolution of 720x576 and is displayed as such. It should be displayed a resolution of 1024x576, for a 16x9 image, using a non square pixel aspect ratio. How do I set this in the encoder??
|
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Sep 2003
Posts: 208
|
I suspect that your stream does have an incorrect AR flag in the mpg2 elementary stream. If that is true, you might give this program a try:
https://www.videohelp.com/software/Restream This program is able to correct the AR information in a mpg2 elementary stream without reenconding. |
![]() |
![]() |
![]() |
#4 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,800
|
Quote:
There are 4 aspect ratio dropdown buttons in the main dialog, these buttons show tooltips if you hover the mouse over them or right-click. The encoder will use the aspect ratio that was detected or changed in the menu, this can be seen in the command line preview of the encoder.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
|
![]() |
![]() |
![]() |
#9 | Link |
Registered User
Join Date: Sep 2003
Posts: 208
|
The problem with ripped DVDs is that in many / most cases the correct AR is stored only at container level. When demuxxing the video to a mpg2 elementary stream, this information is lost. Within the mpg2 elementary stream, each sequence header contains an AR flag, which allows four differerent aspect ratios:
1 = 1:1 (square pixel) 2 = 4:3 3 = 16:9 4 = 2.211 (not used in dvd) And this flag is very often not set to the correct value by the company which authored the DVD, with the result that a 16:9 stream is falsely detected as 4:3 after demuxxing. If you are interested in the details you may have a look here: https://forum.videohelp.com/threads/...-4-3-16-9-flag I am not working with ripped DVDs as source for a long time, but when ever it was needed, I used the mentioned program "restream" to set the AR flag to 16:9 if neccessary. |
![]() |
![]() |
![]() |
#10 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,800
|
So there is a Use ITU-R BT.601 compliant aspect ratio setting, and it's enabled by default.
Would be interesting to know what hello_hello and other members who discuss this topic since years are thinking if this should still be enabled by default. https://github.com/staxrip/staxrip/issues/527
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
![]() |
![]() |
![]() |
#12 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,800
|
OK, I was hoping to read your opinion about it, thanks.
2 staxrip contributors want to disable it, I've not really a strong opinion about it, so we disable it. It would be possible to have a different default but would mean investing some time.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
![]() |
![]() |
![]() |
#13 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,721
|
I have a memory... from a long time ago.... of Handbrake switching between a generic and ITU aspect ratio based on cropping. No cropping and it used generic, but once you cropped from the sides (somewhere around 12 pixels total) it switched to ITU. I don't think my brain invented that memory, but I don't think it works that way these days. Maybe there's a reason.....
I thought MeGUI was the only "active" program using the old "almost correct" ITU PARs, but the DAR in one of the screenshots (1.82361) seems to indicate StaxRip uses them too. Maybe this would be an opportunity to switch to the mpeg4 PARs instead. ![]() https://forum.doom9.org/showthread.p...27#post1058927 The main reason is the mpeg4 PARs are Bluray compliant and almost identical to the ITU PARs. How does StaxRip handle a situation where you're encoding a DVD based on an ITU PAR and want the output to be Bluray compliant? The other thing that's nice about the mpeg4 PARs instead of ITU, is they result in the same DARs for both NTSC and PAL. Just as the generic PARs give you exactly 16:9 and 4:3, the mpeg4 PARs give you DARs of 20:11 and 15:11 for both NTSC and PAL. I don't know if 44vince44 is reading this thread, but.... https://github.com/staxrip/staxrip/i...ment-782734036 I don't think there ever was a bt601 colormatrix option for x264/x265, but there's bt470bg and smpte170m which are functionally equivalent to bt601 for colormatrix. There's info in this post if you're interested. https://forum.doom9.org/showthread.p...24#post1897824 |
![]() |
![]() |
![]() |
#14 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,800
|
Brother John helped to implement AR support around 15 years ago, I don't have good memory, and it was never a special interest of mine, that's why I had asked. But as far as I know there were never issues found, implementation is known to be solid.
Probably not all contributors read here, we use mostly GitHub issues and discussions. Feel free to post there, maybe somebody still has interest in the topic.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
![]() |
![]() |
![]() |
Tags |
aspect ratio, display aspect ratio, dvd, pal/ntsc, pixel aspect ratio |
Thread Tools | Search this Thread |
Display Modes | |
|
|