I have an .mpeg file which is being displayed in a wrong ratio on my Sony Bravia TV.
I routed the call to mencoder through a script and added -aspect 4:3 and this fixes the problem. The thing now is - I want to have pms to add this option automatically for this kind of video when it is played. What I have so far in my PMS.conf:
- Code: Select all
codec_spec_script = container == mkv :: -aspect 4:3\ncontainer == avi :: -lavcopts aspect=16/9 -oac copy -mc 0
I now tried adding
- Code: Select all
\ncontainer == <whatever> :: -aspect 4:3
For <whatever> I tried mpeg, mpg, mpeg1, mpeg2, mpeg1video, mpeg2video, mp4, mp42 but... nothing works - "-aspect 4:3" is not added to the cmdline when calling mencoder.
ffmpeg tells about this video:
- Code: Select all
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/files/movies/_.mpeg':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2006-07-23 15:37:49
Duration: 01:25:43.68, start: 0.000000, bitrate: 1138 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 704x400, 1008 kb/s, 25 fps, 25 tbr, 44100 tbn, 50 tbc
Metadata:
creation_time : 2006-07-23 15:37:49
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 2006-07-23 15:37:49
Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
