Unable to change from 4:3 to 16:9

Tudor

New member
I'm using 624, I copy a file from my DVD recorder which has set the header bits to 4:3 although the data is actually 16:9 using "Open Tile From DVD". After I have edited the file I try to save it as 16:9, but it does not seem to have any effect. I am using MP4, when I did it on a previous beta release as MPG all was ok. JPG of screen attached.
 

Attachments

Dan203

Senior Developer
Staff member
H.264 files set aspect in a different manor then MPG files. In H.264 you set the aspect by setting the SAR values int the H.264 stream. However some players, specifically Quick Time, ignore the SAR and simply use the resolution set in the MP4 container instead. This is completely wrong, but some MP4 creation programs, like Handbrake, use a trick which sets the MP4 container resolution to a fake value equivalent to the displayed aspect resolution rather then the actual video resolution. So for example if the video is 720x480 and the aspect is 16:9 they set the resolution in the MP4 container to 854x480, which seems to trick QT into playing the file at the proper aspect. Unfortunately we do not currently have the ability to use that same trick in VideoReDo. However it's on my list of things to look into in the future.

For now I would suggest using a different player if possible. VLC and MPC both should adhere to the SAR properly. Or if this is a hardware player then you might want to check it to see if there is a stretch feature that force it to fill the screen.

Dan
 

Tudor

New member
I had not even tried playing the resultant video in a player. I only opened it in VideoReDo, and it displayed as 4:3, attached vrd2.jpg. I have now tried it on my media player, Seagate GoFlex, and it does display as 4:3.

What made me aware of the incorrect aspect ratio was the thumbnail in Windows 7 Exolorer, see "Properties" in the attached vrd1.jpg.

I have reprocessed the same file totally, but this time I used a MPG2 16:9 profile not the MPG4 one for the "Open Title from DVD". I then edited it, VRD was showing it in 16:9 aspect ratio, did advert cuts and save using the MPG4 profile. The resultant file is correctly defined as 16:9.
 

Attachments

Last edited:

Dan203

Senior Developer
Staff member
Hmmm... I tried to recreate your issue but I couldn't. I opened a 16:9 DVD and output a small segment and MPG, but set the aspect to 4:3. The resulting file opened squished with a 4:3 aspect as expected. I then saved that to an H.264 MP4 with the aspect set to 16:9 and the resulting MP4 was 16:9 just as expected.

Can you do me a favor and reopen the original DVD and save a small segment, say 30 seconds, to a MPEG-2 Program Stream without changing the aspect. Then open that segment, which should still be 4:3, and save it to MP4 with the aspect set to 16:9 and see if that makes a difference.

If not then please upload the clip to our FTP...

http://www.videoredo.net/msgBoard/showthread.php?t=15807

If it does work that way then I need to know more about the process. Are you using the automatic QSF option when you open the DVD? If so are you changing it to MP4 16:9 right from the QSF dialog? Or are you waiting until you reopen the QSFed file? If I can recreate the problem then I can probably figure out what's going on.

Dan
 

Tudor

New member
Unless I'm missing something, AIUI, profiles are only used for output, not input.
When you do an "Open from DVD" it automatically does a QSF, it's for the output of the QSF to a temp file which you then edit and save as normal.
 

MrVideo

Active member
When you do an "Open from DVD" it automatically does a QSF, it's for the output of the QSF to a temp file which you then edit and save as normal.
At least I remembered it correctly. I don't open DVDs directly, so I've never had VRD do that :D
 

Tudor

New member
Dan

Have tried to do what you requested, but found the wife had overwritten the DVD as she thought I had it on the PC, grrrrrrrrrrrr.

Have tried to run test from the start with a new 30 second recording, but cannot reproduce it.

H264 MP4 aborts with an error code 5 at the end. The resultant file is readable and the aspect ratio correct, stays as 4:3 if I do not change the "edit profile" and changes to 16:9 ok if ask it to do so in the "edit profile".

I next tried to use the MPEG-4 MP4 profile, this did not abort at the end of the QSF phase, but threw up an error box, see file vrd3.jpg attached. The resultant file would not open in VRD, but was fine in Media Centre. Requested changes of aspect ratio worked ok.

Does this mean that no files produced with an encoding type of MPEG-4 in the profile can be read by VRD?
 

Attachments

Dan203

Senior Developer
Staff member
I fixed the problem with it crashing after the QSF. It was basically old code from the TVS3 days which assumed the output file was always MPEG-2. I've fixed it, and a few other things I found along the way, and now the QSFed file will always open correctly after you're done even if you recode to MP4.

However I was never able to reproduce the 4:3-16:9 issue, so unless I get a sample I don't think there is anything I can do with that.

One more thing... Even though I fixed it I do not recommend you QSF directly to an MP4 file. The reason being is that VideoReDo has some nice logic for calculating the recode bitrate when you save from MPEG-2 to H.264, but it does not work when you do it via QSF. The reason being is that this logic needs to know the length of the input video and in QSF we assume the timestamps are wrong and the length can not be trusted. Which means it has to fall back on the old hard coded bitrates which could potentially result in a bigger H.264 file then the input MPEG-2 file.

Dan
 
Top Bottom