how to find out container to use in codec_spec_script

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

how to find out container to use in codec_spec_script

Postby OlliL » Fri Feb 01, 2013 4:18 pm

Hi,

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'
OlliL
 
Posts: 19
Joined: Sat Feb 19, 2011 3:48 pm

Re: how to find out container to use in codec_spec_script

Postby OlliL » Fri Feb 01, 2013 4:28 pm

I now enabled TRACE as debug level... and tried "mov" as container... also without success

Code: Select all
TRACE 2013-02-01 16:24:29.577 [New I/O server worker #1-4] Matched format MPG to "/mnt/files/movies/_.mpeg"
TRACE 2013-02-01 16:24:29.586 [New I/O server worker #1-4] Adding _.mpeg / class: net.pms.dlna.RealFile
TRACE 2013-02-01 16:24:29.587 [New I/O server worker #1-4] Selecting player MEncoder for resource _.mpeg
TRACE 2013-02-01 16:24:29.588 [New I/O server worker #1-4] Switching _.mpeg to player MEncoder for transcoding
TRACE 2013-02-01 16:26:33.227 [pool-6-thread-3] Parsing results: _.mpeg / container: mov / bitrate: 1165312 / size: 731876028 / codecV: h264 (Main) / duration: 01:25:43.00 / width: 704 / height: 400 / frameRate: 25.00 / thumb size : 6138 / muxingMode: null
        audio: id=0 / lang: eng / flavor: null / codec: aac / sf:44100 / na: 2 / bs: 16
OlliL
 
Posts: 19
Joined: Sat Feb 19, 2011 3:48 pm

Re: how to find out container to use in codec_spec_script

Postby OlliL » Fri Feb 01, 2013 4:48 pm

"mov" is working now
OlliL
 
Posts: 19
Joined: Sat Feb 19, 2011 3:48 pm


Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 12 guests