PDA

View Full Version : Video won't play after changing resolution


marnix88
17th June 2006, 21:28
Hi, I have an AVI (XviD) clip, but the resolution is not correct (people look fat). Most video players allow you to change the resolution while playing the video, but it's a pain having to do this everytime I want to watch it.

I changed the resolution with a hex editor. BSPlayer and Zoom Player show the correct resolution now, but won't play the video (black screen). VideoLAN does play the video with the correct resolution, but everything is scrambled with strange colors.

Does anybody know why video players won't play the video correctly after I changed the resolution with a hex editor. What is the difference between changing the resolution with the video player or changing it with a hex editor?

foxyshadis
17th June 2006, 22:16
Ooh, yes, bad idea. You should use mpeg4modifier and set the aspect ratio to 4:3 (I assume that's what it is) instead, or whatever the correct AR is. You'll have to hex edit back the original file's header though.

marnix88
17th June 2006, 23:41
Thanks. Changing the aspect ratio with mpeg4modifier works, but only when I play the video with VideoLAN, not when I play the video with BSPlayer or Zoom Player.

Can you maybe explain to me why changing the resolution with a hex editor doesn't work? What does mpeg4modifier exactly change?

setarip_old
17th June 2006, 23:57
Hi!

How did you manage to create your XviD-compressed .AVI with the incorrect resolution?

the simplest solution would be to go back to your original source material and create a new XviD-compressed .AVI with the correct resolution...

marnix88
18th June 2006, 00:22
It's a 3 minute movie trailer I encoded quite a while ago and it got messed up (I don't know why). I can re-encode it if I want to, but I was also trying to create a small application to easily change the resolution. I assumed that if you change the resolution in the header, the video player would automatically play the video with the new resolution, but most of them become unplayable or show weird colors (like a DRM protected video).

It does work with some videos, but only if they are changed slighty (i.e. 512*384 to 500*384).