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?
