Bug 369081 - Kaffeine doesn't always scale dvb streams to fullscreen
Summary: Kaffeine doesn't always scale dvb streams to fullscreen
Status: RESOLVED FIXED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.1
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
: 376015 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-19 21:38 UTC by boris64
Modified: 2017-10-04 12:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example (228.64 KB, image/jpeg)
2016-09-19 21:42 UTC, boris64
Details
example 2 (204.40 KB, image/jpeg)
2016-09-19 21:44 UTC, boris64
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boris64 2016-09-19 21:38:39 UTC
Hey folks,

kaffeine does not scale dvb streams (only?) to fullscreen, it keeps black bars al around the video (please take a look a the attached pictures). It works in (s)mplayer, it doesn't in kaffeine with vlc backend.

Reproducible: Always

Steps to Reproduce:
1. Start kaffeine ;)
2. Watch some dvb stream in full screen on a 2.35:1 widescreen monitor (resolution 2560 x 1080)
3. Use any setting you want (video-> aspect ratio / video-> automatic resize) without any effect

Actual Results:  
black bars all around

Expected Results:  
Really have full screen behaviour like for example in (s)mplayer

used software:
latest extra/mesa (unstable)
latest kde / plasma (unstable)
kaffeine (from git / or latest unstable = same results)
latest vlc-3.xy (from git / or latest unstable = same results)

Any help would be appreciated. Maybe some kind of pebcak?
As alway I'm willing to test patches / help out with infos / logs.

Thank you in advance!
Comment 1 boris64 2016-09-19 21:42:21 UTC
Created attachment 101188 [details]
example
Comment 2 boris64 2016-09-19 21:44:39 UTC
Created attachment 101189 [details]
example 2
Comment 3 Mauro Carvalho Chehab 2016-12-02 08:43:17 UTC
(In reply to boris64 from comment #0)
> Hey folks,
> 
> kaffeine does not scale dvb streams (only?) to fullscreen, it keeps black
> bars al around the video (please take a look a the attached pictures). It
> works in (s)mplayer, it doesn't in kaffeine with vlc backend.

Kaffeine uses libVlc for video stream display. VLC selects a default output plugin based on its internal logic, seeking for the fastest one. Sometimes, the selected one doesn't allow video scaling. There's an option on newer versions of Kaffeine that allows passing arguments to libVlc, forcing it to select a different plugin. You can change it via those menu options:

"Settings" -->  "Configure Kaffeine" -->  "libVLC". Any VLC command line option is accepted there. You could try those:
	--no-video-title-show -V xcb_glx
or:

	--no-video-title-show -V xcb_xv

and re-start Kaffeine.
Comment 4 boris64 2016-12-22 12:51:58 UTC
(In reply to Mauro Carvalho Chehab from comment #3)
> (In reply to boris64 from comment #0)
> > Hey folks,
> > 
> > kaffeine does not scale dvb streams (only?) to fullscreen, it keeps black
> > bars al around the video (please take a look a the attached pictures). It
> > works in (s)mplayer, it doesn't in kaffeine with vlc backend.
> 
> Kaffeine uses libVlc for video stream display. VLC selects a default output
> plugin based on its internal logic, seeking for the fastest one. Sometimes,
> the selected one doesn't allow video scaling. There's an option on newer
> versions of Kaffeine that allows passing arguments to libVlc, forcing it to
> select a different plugin. You can change it via those menu options:
> 
> "Settings" -->  "Configure Kaffeine" -->  "libVLC". Any VLC command line
> option is accepted there. You could try those:
> 	--no-video-title-show -V xcb_glx
> or:
> 
> 	--no-video-title-show -V xcb_xv
> 
> and re-start Kaffeine.

Hey Mauro,

i tried both, they don't seem to work or make any difference. Additionally
the "double size" menu entry seems to be buggy or doesn't have any function at all for me.

Maybe I'm just missing some kind of _overscan_ function in kaffeine.


Btw, many libvlc arguments do not work or seem to be overwritten
by kaffeine(?). I tried a lot of parameters with zero effect :/
Comment 5 Mauro Carvalho Chehab 2016-12-28 20:02:52 UTC
(In reply to boris64 from comment #4)

> i tried both, they don't seem to work or make any difference. Additionally
> the "double size" menu entry seems to be buggy or doesn't have any function
> at all for me.
> 
> Maybe I'm just missing some kind of _overscan_ function in kaffeine.
> 
> 
> Btw, many libvlc arguments do not work or seem to be overwritten
> by kaffeine(?). I tried a lot of parameters with zero effect :/

Maybe a broken video driver, then. On a few boards, VLC is not able to rezise the image. I had this problem in the past using older Kernels. Perhaps a Kernel upgrade (and get rid of non-free video drivers) would solve it.
Comment 6 Mauro Carvalho Chehab 2017-02-16 09:11:40 UTC
*** Bug 376015 has been marked as a duplicate of this bug. ***
Comment 7 Mauro Carvalho Chehab 2017-07-09 23:13:35 UTC
Could you try again against Kaffeine -git? There were some bad performance issues related to EPG handled that got fixed a few versions ago, and we just fixed some CPU performance issues while sending data to libVLC.
Comment 8 Mauro Carvalho Chehab 2017-07-09 23:15:43 UTC
(In reply to Mauro Carvalho Chehab from comment #7)
> Could you try again against Kaffeine -git? There were some bad performance
> issues related to EPG handled that got fixed a few versions ago, and we just
> fixed some CPU performance issues while sending data to libVLC.

Sorry, this comment was meant for another BZ.

Anyway, there were some fixes related to scaling at Kaffeine 2.0.10. Please test.
Comment 9 boris64 2017-07-10 15:57:24 UTC
(In reply to Mauro Carvalho Chehab from comment #8)
> (In reply to Mauro Carvalho Chehab from comment #7)
> > Could you try again against Kaffeine -git? There were some bad performance
> > issues related to EPG handled that got fixed a few versions ago, and we just
> > fixed some CPU performance issues while sending data to libVLC.
> 
> Sorry, this comment was meant for another BZ.
> 
> Anyway, there were some fixes related to scaling at Kaffeine 2.0.10. Please
> test.

Hey Mauro,

i can manually zoom in while watching movies via dvb-c.
This is much better now, but autozoom would be (of course) a much cooler feature ;)
Comment 10 Mauro Carvalho Chehab 2017-10-04 12:09:38 UTC
(In reply to boris64 from comment #9)
> (In reply to Mauro Carvalho Chehab from comment #8)
> > (In reply to Mauro Carvalho Chehab from comment #7)
> > > Could you try again against Kaffeine -git? There were some bad performance
> > > issues related to EPG handled that got fixed a few versions ago, and we just
> > > fixed some CPU performance issues while sending data to libVLC.
> > 
> > Sorry, this comment was meant for another BZ.
> > 
> > Anyway, there were some fixes related to scaling at Kaffeine 2.0.10. Please
> > test.
> 
> Hey Mauro,
> 
> i can manually zoom in while watching movies via dvb-c.
> This is much better now, but autozoom would be (of course) a much cooler
> feature ;)

Here, it auto-zooms, as this is a default feature at libVLC that Kaffeine uses. Yet, if the the differences of the image size and the screen size is too big (e. g. if I try to watch a low definition video stream on a 1080p screen), libVLC limits scaling to a certain limit.

Adding auto-scaling support directly at Kaffeine could be done, but that could be complex and not fail proof. So, IMHO, the best is to keep letting this task to libVLC.

Anyway, as we now have a solution for it, I'll close this BZ.