Is there a configuration file somewhere where I can set the aspect ratio in Kaffeine to 16:9? I have rooted around in my hidden files in my /home/username folder and found none.
Not sure…does this work?
I can change the aspect ratio. I have been with the mouse doing it by right select> video> aspect ratio > 16:9. At least on the MP4 playing right now. The function keys didn’t work (but can be configured in settings). I want to set the default to ALWAYS be 16:9 and not have to do that every time I put a DVD in. I can find no configuration file however to do this and the “settings” for Kaffeine really don’t let you set anything like this.
This program has been around a long time there has to be a configuration file for it someplace to set the default aspect ratio you would think. It’s the default DVD player in KDE on openSUSE.
Well, the best answer I could find is that the underlying xine libraries use the aspect ratio derived via Xorg autodetection (based on EDID display size)
Kaffeine = wrong aspect ratio?
Doesn’t sound promising does it? You might consider filing a bug report for this. I don’t see a good reason why any configuration change you make with kaffeine wouldn’t be save in kaffeinerc for persistence.
Anyway, I downloaded xine-ui for a brief play, as it is possible to set aspect ratio manually there with this option (for example):
xine --aspect-ratio 4:3
Valid options:
-r, --aspect-ratio <mode> Set aspect ratio of video output. Modes are:
'auto', 'square', '4:3', 'anamorphic', 'dvb'.
I don’t know why 16:9 isn’t explicitly available though.
All the googling I didn’t didn’t even get this far though.
Manually changing the aspect ratio every time you watch a DVD (everyday sometimes many times) gets old. My monitor is not square it’s a wide rectangle since I am blessed with a newer display format.
Looking in /home/flamebait/.xine there is no config file.
in /home/flamebait/.kde4 /apps /kaffeine there is a xine-config file and there is this
# override pixel aspect ratio
# string, default:
#video.pixel_aspect_ratio:
with no remarks or references to what the heck they are talking about. I don’t know if it is take it or leave it by the openSUSE devs, the Kaffeine devs or the xine devs but I have yet find the right search terms to decode this statement or safely touch it to try and get a 16:9 ratio.
Looking in /home/flamebait/.xine there is no config file.
in /home/flamebait/.kde4 /apps /kaffeine there is a xine-config file and there is this
Yes, I had a look at that config file, but not sure what is configurable there.
I don’t know if it is take it or leave it by the openSUSE devs, the Kaffeine devs or the xine devs but I have yet find the right search terms to decode this statement or safely touch it to try and get a 16:9 ratio.
I think it is within the kaffeine developers domain. They have the aspect ratio configuration option available, but it is not persistent. They could save this setting in ~/.kde4/share/config/kaffeinerc
I looked at the ~/.kde4/share/config/kaffeinerc file earler. Most of the data in mine is pretty stale as that goes back a long way and there is nothing recent in the recent list. It also seems to remember my old TV tuner card that has been gone out of my system over a year.
[DVB]
ChannelViewState=AAAA/wAAAAAAAAABAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAPoAAAACAQEAAQAAAAAAAAAAAAAAAGT/////AAAAgQAAAAAAAAACAAAAZAAAAAEAAAAAAAAAlgAAAAEAAAAA
LastChannel=
ScanDataDate=1900,1,1
TabSplitterState=AAAA/wAAAAAAAAACAAABCAAAAAABAAAAAwEAAAAB
TimeShiftFolder=/home/flamebait
[KFileDialog Settings]
Autoplay sounds=false
Height 1080=522
Recent Files$e]=$HOME/anime1.xspf,$HOME/Documents/ariapaino.xspf,$HOME/Music/Ghost in the Shell - SAC - OST 1/14 - Beauty is Within Us.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/13 - Some Other Time.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/12 - Fish ~ Silent Cruise.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/11 - Inner Universe.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/10 - Stay Home.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/09 - Lithium Flower.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/08 - Velveteen.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/07 - Siberian Doll House.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/06 - Train Search.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/05 - Where Does This Ocean Go.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/04 - Surf.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/03 - Stamina Rose.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/02 - Yakitori.flac,$HOME/Music/Ghost in the Shell - SAC - OST 1/01 - Run Rabbit Junk.flac
Width 1920=960
[MainWindow]
Height 1080=772
State=AAAA/wAAAAD9AAAAAAAABQAAAALQAAAABAAAAAQAAAAIAAAACPwAAAACAAAAAAAAAAEAAAAcAG4AYQB2AGkAZwBhAHQAaQBvAG4AXwBiAGEAcgMAAAAA/////wAAAAAAAAAAAAAAAwAAAAEAAAAWAGMAbwBuAHQAcgBvAGwAXwBiAGEAcgEAAAAA/////wAAAAAAAAAA
ToolBarsMovable=Disabled
Width 1920=1312
[MainWindow][Toolbar control_bar]
ToolButtonStyle=IconOnly
[MediaObject]
AutoResizeFactor=2
Deinterlace=true
LongSkipDuration=60
ShortSkipDuration=15
Volume=100
[Recent Files]
File1$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_Honki!!.mp3
File10$e]=$HOME/.config/gxine/playlist
File2$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_In_This_Arm.mp3
File3$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_Slayers_4_the_Future.mp3
File4$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_Stand_Up.mp3
File5$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_Take_Your_Courage.mp3
File6$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_Uso_no_Nai_Geemu_(False-Lie_Game)_-_Set_Me_Free.mp3
File7$e]=$HOME/Music/Slayers OP and Ed/Slayers_-_Waru_Bad_Blood.mp3
File8$e]=$HOME/Music/Slayers OP and Ed/Slayers_Try_-_Sasurai.mp3
File9$e]=$HOME/Music/TouHou MP3/Session 1 3 Waltz for the Beloved Girl - YouTube.mp3
Name1$e]=Slayers_-_Honki!!.mp3
Name10$e]=playlist
Name2$e]=Slayers_-_In_This_Arm.mp3
Name3$e]=Slayers_-_Slayers_4_the_Future.mp3
Name4$e]=Slayers_-_Stand_Up.mp3
Name5$e]=Slayers_-_Take_Your_Courage.mp3
Name6$e]=Slayers_-_Uso_no_Nai_Geemu_(False-Lie_Game)_-_Set_Me_Free.mp3
Name7$e]=Slayers_-_Waru_Bad_Blood.mp3
Name8$e]=Slayers_Try_-_Sasurai.mp3
Name9$e]=Session 1 3 Waltz for the Beloved Girl - YouTube.mp3
This bit here might be where the aspect ratio setting code would go.
[MediaObject]
AutoResizeFactor=2
Deinterlace=true
LongSkipDuration=60
ShortSkipDuration=15
Volume=100
AutoResizeFactor=2 is double which seems to be the default when Kaffeine launches a video file.
I wouldn’t worry about the ‘stale’ info. If you remove the file, it will simply get recreated the next time you launch kaffeine.
Why not ask this question on the Kaffeine forum Kaffeine Forum :: Index ?
I would if I could register their captcha seems broken on my browser. The last post on the the forurm was the 24th of September it look like.
It rejected my email about not being able to register as spam
This Message was undeliverable due to the following reason:
Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why
each recipient was rejected.
Recipient: <hftom@free.fr>
Reason: Too many spams from your IP (75.180.132.121), please visit http://postmaster.free.fr/
The following websites may contain more information to assist you:
http://help.rr.com/HMSLogic/rrmail.aspx
http://postmaster.rr.com/help
Please do not reply to this message, as it will go to an unread
mailbox
I won’t be going to that forum for help. I have never emailed that site until today.
More searching and I came across this xine looks to see what size monitor you are running in /etc/X11/xorg,confg at the xine project - FAQ list The search terms I used were
Xine +16:9 +setting +default
Xine looks for DisplaySize like so.
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "DDC Probed Monitor - ViewSonic G773-2"
DisplaySize 320 240
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 180.0
EndSection
My googling for my monitor yields no such listings in the specifications in mm as required. All I can find is a diagonal measurement in mm so I am going :sarcastic: right now. This is a very odd way to determine aspect ratios.
My googling for my monitor yields no such listings in the specifications in mm as required. All I can find is a diagonal measurement in mm so I am going right now. This is a very odd way to determine aspect ratios.
This is largely determined automatically now (as explained previously). However, the ‘DisplaySize’ variables can be specified explicitly in /etc/X11/xorg.conf, or for recent Xorg versions, in
/etc/X11/xorg.conf.d/50-monitor.conf
It may be automated now but xine still uses this “DisplaySize” variable to set the aspect ratio The automation of the monitor entry in the xorg.conf file doesn’t include that variable as it isn’t needed to drive the monitor only the resolution is.
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 275.21 (buildmeister@swio-display-x86-rhel47-02.nvidia.com) Mon Jul 18 15:01:50 PDT 2011
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG Electronics E2340"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8600 GT"
EndSection
Section "Screen"
# Removed Option "metamodes" "CRT-0: nvidia-auto-select +0+0, CRT-1: nvidia-auto-select +1920+0"
# Removed Option "metamodes" "CRT-0: 1920x1080 +0+0, CRT-1: 1920x1080 +1920+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "CRT-0: 1920x1080 +0+0, CRT-1: 1920x1080 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
t may be automated now but xine still uses this “DisplaySize” variable to set the aspect ratio
Yes, I’m aware of that, and for most hardware it is determined automatically from DPI and resolution info via EDID. Of course, you can add it yourself if you don’t think xine is using the correct numbers.
There is a useful NVIDIA DPI section here.
In addition to the standard approach for specifying DPI using DisplaySize, the NVIDIA drivers add another approach that could be used instead of DisplaySize. The NVIDIA display drivers allow you to specify the DPI option in the Monitor section as shown below: (Note: look for the existing Monitor section)
Section "Monitor"
...
Option "DPI" "100 x 100"
...
EndSection
Note, however, that if you specify both DisplaySize and DPI, the DPI settings will take precedence. Also, if your display is using non-square pixels, choosing 100x100 DPI will cause Myth to display video using an incorrect aspect. If this is the case, use the DisplaySize setting and do not specify the DPI option (but see, also, Overriding EDID Settings). The DPI option is a non-standard option that must be supported by your video card drivers, so it is not likely to work with drivers other than NVIDIA drivers.
kaffeine/xine is not automatically up scaling my DVD play back to 16:9 so it must be wrong LOL. I am spoiled by smplayer that lets me set it to automatically start playback in 16:9 full screen. smplayer is just not as good as Kaffeine at handling DVDs and DVD menus though. gxine is no better with DVDs and is just a mess as far as a interface goes.
If I take your LG monitor’s native resolution 1920x1080 and assume 96 DPI, then I calculate 508mm(h) x 285mm(v) display size (with 16:9 aspect ratio).
Maybe try
DisplaySize 508 285
Edit: You might find this is more accurate (to nearest integer)
DisplaySize 508 286
I tried the first from a reboot as you hadn’t does the second on yet. Kaffeine ignored it and didn’t default to that ratio it played the video in it’s default 4:3 standard def aspect ratio.
Going back and looking at ~./kde/apps/kaffeine/xine-config and playing with the number I got off this page Pixel aspect ratio - Wikipedia, the free encyclopedia didn’t force it into 16:9 upscaling from a 4:3 “standard definition” aspect ration only doing it manually did. It did change the aspect ratio slightly but it didn’t force 16:9
# override pixel aspect ratio
# string, default:
#video.pixel_aspect_ratio:
gxine also ignored the settings in xorg.conf and defaulted to a the standard definition aspect ratio.