If you want to view a movie with subtitles you mostly want to place these
subtitles into the black area on the bottom. You can do this in mplayer
with the -vf expand option.
How I did it in a script:
#mplayer query command
cmd="mplayer -vo null -ao null -frames 0 -identify"
movieWidth=` $cmd "$@" 2> /dev/null | grep ID_VIDEO_WIDTH | sed 's/
expandBy=`expr \( $movieWidth \* 3 \) \/ 4`
#expandBy=`expr \( $movieWidth \* 9 \) \/ 16`
Obviously you cannot do this by hand for every movie in advance. How
would I envision this? When KPlayer opens a file it reads in all it's info
with the 'cmd' function and store this during the movie.
Then if the checkbox is checked, it just reopens the movie with the
recalculated new height. I was trying to get this done myself but first I just
switched to Linux from windows, my QT knowledge is about zero and
have yet to figure out how KPlayer even works (I see frames are really
dirty, the ones I'm used to in Delphi are much nicer :) ).
Log in to post a comment.