cropping/stretching

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.

cropping/stretching

Postby OlliL » Sat Feb 02, 2013 5:59 pm

Hi,

I have an AVI file which format is 720:540 (4:3).
When I play this file on my Sony BRAVIA with PS3Media Server 1.72.0 it gets stretched to 16:9 without black bars on both sides... so stretched wrongly.

I tried a little bit around with mencoder expanding/scaling and found out, that When I produce a MPEG2 file with the following switches, the MPEG is shown perfectly on my TV:

Code: Select all
/usr/local/bin/mencoder -ss 0 "test.avi" -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000 -ovc lavc -channels 6 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=448:threads=2:keyint=5:vqscale=1:vqmin=2 -subdelay 20000 -ofps 24000/1001 -lavdopts fast -mc 0.1 -vf expand=aspect=16/9,scale=-2:240 -af lavcresample=48000 -srate 48000 -o - -really-quiet -msglevel statusline=2 > test.mpeg


When I play test.mpeg on my TV it is perfect!


I now used codec_spec_script to achive the same:
Code: Select all
DEBUG 2013-02-02 17:53:39.890 [mencoder-18] Starting mencoder -ss 0 "test.avi" -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=448:threads=2:keyint=5:vqscale=1:vqmin=2:vrc_maxrate=54000:vrc_buf_size=1835 -subdelay 20000 -ofps 25 -lavdopts fast -mc 0.1 -vf expand=aspect=16/9,scale=-2:240 -af lavcresample=48000 -srate 48000 -o - -really-quiet -msglevel statusline=2


But now I have black bars on the side AND on the top and the video is stretched to 16:9 again but with black bars all around it... this drives me crazy. Why is the MPEG file shown correctly but the on-the-fly-transcoded AVI file not?
OlliL
 
Posts: 19
Joined: Sat Feb 19, 2011 3:48 pm

Re: cropping/stretching

Postby ExSport » Mon Feb 04, 2013 6:01 pm

-srate 48000 -o - -really-quiet

What is it? Weird that MEncoder didn't generated error.
How you played test.mpeg file which works? You copied it to USB stick and played it directly on TV or streamed it as is directly from PMS?
ExSport
 
Posts: 2167
Joined: Mon Jan 19, 2009 5:40 pm


Return to General Help and Support

Who is online

Users browsing this forum: Google [Bot] and 15 guests