Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  MPEG Player/resolution
« previous next »
  • Print
Pages: [1]

Author Topic: MPEG Player/resolution  (Read 1974 times)

Offline rjh82

  • Member
  • *
  • Posts: 2
MPEG Player/resolution
« on: March 17, 2009, 03:36:10 PM »
According to http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer#How_To_Encode_Files,
  • MPEG-1 and MPEG-2 video is encoded using blocks of 16x16 pixels but the display dimensions can be anything which is a multiple of 2x2 pixels.
I have an iPod photo (220x176); the table recommends a resolution of 220x166 for 4:3 and 220x124 for 16:9.
I notice that the WinFF presets suggest 224x176 for 4:3 and 224x128 for 16:9. 

So,
  • What happens when you play a video 224 pixels wide on a 220-pixel-wide display, using MPEG Player?  Does it just throw away four columns?
  • If so, does it throw away columns just from the right, or evenly from right and left so that the remainder of the video is centered?
  • What are the pros and cons of encoding mpeg2 video in 16x16 blocks versus having fractions left over?  Constraining to 16x16 blocks can introduce a noticeable aspect error at 4:3 (224x176 has an aspect ratio of 1.2727... versus 1.33...).  Whereas, I'm guessing there's a small cost in bitrate when you use a resolution that uses partial 16x16 blocks, such as 220x166.
  • Finally, all things considered, is it better for me in general to encode videos 224 or 220 pixels wide?

Thanks!
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: MPEG Player/resolution
« Reply #1 on: March 17, 2009, 04:05:37 PM »
Point 1 - Thrown away
Point 2 - From the rightmost edge.
Point 3 - You get better bitrate at the same quality if you use 16x16 blocks.
Point 4 - You really need to test yourself and see if the added bitrate cost (or added loss of quality at the same bitrate) is bad enough to make you pick one way or the other.
Logged

Offline rjh82

  • Member
  • *
  • Posts: 2
Re: MPEG Player/resolution
« Reply #2 on: March 17, 2009, 07:41:38 PM »
Thanks, that cleared a lot of stuff up.
Quote from: Llorean on March 17, 2009, 04:05:37 PM
Point 4 - You really need to test yourself and see if the added bitrate cost (or added loss of quality at the same bitrate) is bad enough to make you pick one way or the other.
I was afraid of that...
Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: MPEG Player/resolution
« Reply #3 on: March 24, 2009, 01:24:08 PM »
When I added support for the 2x2 pixel playback in mpegplayer (it used to be 16x16) I noticed that the pixels which will be cut from the right and lower 16x16 blocks (if the resolution is not 16x16), were filled by mencoder by mirroring the pixels from the edge of the image. This avoids some sharp edges (compared to just leaving the pixels black) and should helps to improve the bitrate a bit I think. So maybe the difference isn't very big. I personally just use the 2x2 resolutions.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  MPEG Player/resolution
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.072 seconds with 15 queries.