Re: [gentoo-user] Thumbnail thingy generating large xorg-session.log file

2023-12-02 Thread Dale
Michael wrote:
> On Saturday, 2 December 2023 05:41:06 GMT Dale wrote:
>
> Unless you create your own sddm config file in /etc, the sddm package uses a 
> default config file.  From the man page:
>
> FILES
>/usr/share/sddm/sddm.conf.d
>   System configuration directory
>
>/etc/sddm.conf.d
>   Local configuration directory
>
>/etc/sddm.conf
>   Local configuration file for compatibility
>
>/usr/share/sddm/themes
>   Where sddm looks for themes
>
> Search in the above paths and you should find the default sddm config file, 
> which you can copy over to /etc and tweak it to stop it recording events in 
> your user xsession log file.
>


For the first file, not here.  I have this but no config file that I
see.  Others below that.


root@fireball / # ls /usr/share/sddm/
total 44
drwxr-xr-x   7 root root  4096 Jul  2 11:05 .
drwxr-xr-x 411 root root 20480 Dec  2 19:20 ..
drwxr-xr-x   2 root root  4096 Dec  5  2022 faces
drwxr-xr-x   2 root root  4096 Jul  2 11:05 flags
drwxr-xr-x   2 root root  4096 Jul  2 11:05 scripts
drwxr-xr-x   8 root root  4096 Nov  4  2019 themes
drwxr-xr-x   2 root root  4096 Jul  2 11:05 translations
root@fireball / #

cat /etc/sddm.conf.d/01gentoo.conf
[General]
# Remove qtvirtualkeyboard as InputMethod default
InputMethod=
root@fireball / #

cat /etc/sddm.conf
[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=
RebootCommand=

[Theme]
Current=maldives
CursorTheme=Adwaita

[Users]
MaximumUid=6
MinimumUid=1000
root@fireball / #


This may help give ideas on what I do have. 


root@fireball / # locate sddm.conf
/etc/sddm.conf
/etc/sddm.conf.d
/etc/config-archive/etc/sddm.conf
/etc/config-archive/etc/sddm.conf.dist
/etc/sddm.conf.d/01gentoo.conf
/usr/lib/sysusers.d/acct-group-sddm.conf
/usr/lib/sysusers.d/acct-user-sddm.conf
/usr/lib/tmpfiles.d/sddm.conf
/usr/share/dbus-1/system.d/org.freedesktop.sddm.conf
/usr/share/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf
/usr/share/man/man5/sddm.conf.5.bz2
root@fireball / #


>> Since this is
>> actually dolphin, what does dolphin use to generate those thumbnails? 
>> Maybe I need to beat some sense into that thing.  Another thing that hit
>> me, I have three video packages installed, these three. 
> I would think it uses ffmpeg to decompress, parse, decode and play a file 
> when 
> previewed in dolphin.
>
>
>> root@fireball / # equery list mpv ffmpeg mplayer
>>  * Searching for mpv ...
>> [IP-] [  ] media-video/mpv-0.36.0-r1:0/2
>>
>>  * Searching for ffmpeg ...
>> [IP-] [  ] media-video/ffmpeg-4.4.4-r8:0/56.58.58
>>
>>  * Searching for mplayer ...
>> [IP-] [  ] media-video/mplayer-1.5_p20230618:0
>> root@fireball / #
>>
>>
>>
>> I'm wondering, if I remove ffmpeg, could my video players use mpv or
>> mplayer?
> I understand these video players use ffmpeg libraries too.
>
>
>> Does dolphin use ffmpeg or mplayer to generate the
>> thumbnails?
> Yes:
>
> ~ $ lsof | grep ffmpeg
> kioslave5 8826   michael  mem   REG   0,19
>   
> 435168 /usr/lib64/qt5/plugins/kf5/thumbcreator/ffmpegthumbs.so (path dev=0,23)
>
>
> Dolpin would not need a video player's functionality just to preview a 
> thumbnail of a video file.
>
>
>> I need to keep mpv because I use that to play videos
>> directly.  I think smplayer needs mplayer, maybe.Another thought,
>> you see any USE flags that need to be changed?  Maybe I missed a new one
>> that I need to enable or something. 
> If I recall correctly you have NVidia graphics card(s), so you should enable 
> the nvidia related hardware acceleration for better performance and less CPU 
> load; e.g. nvencm and/or vdpau
>


I'm working on enabling those USE flags.  For months now, I've ran into
a block with opencascade, vlc, pipewire and several other video
packages.  I have to emerge -C vlc and opencascade to do emerges on
video stuff then re-emerge them when done.  I don't know if it is me or
something else but it has been that way for months.  I posted a thread
about it a few months back.  I dunno.  I'm working on the change now.  ;-) 

And mplayer just failed with this nifty message. 


SIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg
-march=native -O2 -pipe -fno-tree-vectorize
-fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT
-D_REENTRANT -I/usr/include/dvdcss -I/usr/include/freetype2
-I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/dvdcss -c -o
libmpcodecs/img_format.o libmpcodecs/img_format.c
x86_64-pc-linux-gnu-gcc -MMD -MP -Wundef -Wstrict-prototypes
-Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112
-D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -march=native -O2
-pipe -fno-tree-vectorize -fno-asynchronous-unwind-tables
-D_LARGEFILE_SOURCE 

Re: [gentoo-user] Thumbnail thingy generating large xorg-session.log file

2023-12-02 Thread Michael
On Saturday, 2 December 2023 05:41:06 GMT Dale wrote:
> Michael wrote:
> > On Friday, 1 December 2023 11:47:31 GMT Dale wrote:
> >> Howdy,
> >> 
> >> I was poking around the other day and noticed a large log file.  At
> >> first I thought it was smplayer but it does it even when smplayer is
> >> closed.  So, I tested several things and finally noticed it stops
> >> generating errors when I turn off showing thumbnails in dolphin.  This
> >> is a sample of what it enters into xorg-sessions.log file.
> >> 
> >> 
> >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55af3fb5c1c0] Format
> >> mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection
> >> possible!
> >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55af3fb5c1c0] moov atom not found
> >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55af4087ade0] Format
> >> mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection
> >> possible!
> >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55af4087ade0] moov atom not found
> >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55af408794e0] Format
> >> mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection
> >> possible!
> >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55af408794e0] moov atom not found
> >> 
> >> 
> >> 
> >> When I cut off thumbnails and turn it back on, I also get some messages
> >> like this.
> >> 
> >> 
> >> 
> >> [avi @ 0x55dcc9bede00] non-interleaved AVI
> >> [avi @ 0x55dcc9bede00] non-interleaved AVI
> >> [mpeg4 @ 0x55dcc9c00c20] Video uses a non-standard and wasteful way to
> >> store B-frames ('packed B-frames'). Consider using the
> >> mpeg4_unpack_bframes bitstream filter without encoding but stream copy
> >> to fix it.
> >> [avi @ 0x55dcc9bede00] non-interleaved AVI
> >> [avi @ 0x55dcc9bede00] non-interleaved AVI
> >> [mpeg4 @ 0x55dcc9bd76e0] Video uses a non-standard and wasteful way to
> >> store B-frames ('packed B-frames'). Consider using the
> >> mpeg4_unpack_bframes bitstream filter without encoding but stream copy
> >> to fix it.
> >> 
> >> 
> >> I cleared the log file since it was over 1GB.  I looked around in
> >> dolphin settings and can't figure out a way to cut those messages off.
> >> I'm not sure how to fix this.  If the video is broken somehow, they all
> >> play fine on my TV.  I'm kinda thinking that something is is having
> >> problems but I don't know how it generates thumbnails to know what that
> >> is.
> >> 
> >> Anyone have ideas or thoughts on this?  Is it a bug that will be fixed
> >> soon and just give it time?  Should I threaten it with a hammer?  ROFL
> >> 
> >> Thanks.
> >> 
> >> Dale
> >> 
> >> :-)  :-)
> > 
> > Is your issue related to these logs being generated, or to these logs
> > being
> > captured.  If the latter, then my previous response on configuring the
> > sddm
> > logs should help.
> 
> Replying here since the original post has the correct info.  Took me a
> bit to try some of things in other reply. I had to help install two TVs
> and tried to do some hunting today for a friend.  Most of the files you
> mentioned aren't on this system and some paths don't exist either. 
> Maybe different USE flags or something??  I dunno.

Unless you create your own sddm config file in /etc, the sddm package uses a 
default config file.  From the man page:

FILES
   /usr/share/sddm/sddm.conf.d
  System configuration directory

   /etc/sddm.conf.d
  Local configuration directory

   /etc/sddm.conf
  Local configuration file for compatibility

   /usr/share/sddm/themes
  Where sddm looks for themes

Search in the above paths and you should find the default sddm config file, 
which you can copy over to /etc and tweak it to stop it recording events in 
your user xsession log file.


> Since this is
> actually dolphin, what does dolphin use to generate those thumbnails? 
> Maybe I need to beat some sense into that thing.  Another thing that hit
> me, I have three video packages installed, these three. 

I would think it uses ffmpeg to decompress, parse, decode and play a file when 
previewed in dolphin.


> root@fireball / # equery list mpv ffmpeg mplayer
>  * Searching for mpv ...
> [IP-] [  ] media-video/mpv-0.36.0-r1:0/2
> 
>  * Searching for ffmpeg ...
> [IP-] [  ] media-video/ffmpeg-4.4.4-r8:0/56.58.58
> 
>  * Searching for mplayer ...
> [IP-] [  ] media-video/mplayer-1.5_p20230618:0
> root@fireball / #
> 
> 
> 
> I'm wondering, if I remove ffmpeg, could my video players use mpv or
> mplayer?

I understand these video players use ffmpeg libraries too.


> Does dolphin use ffmpeg or mplayer to generate the
> thumbnails?

Yes:

~ $ lsof | grep ffmpeg
kioslave5 8826   michael  mem   REG   0,19  

435168 /usr/lib64/qt5/plugins/kf5/thumbcreator/ffmpegthumbs.so (path dev=0,23)


Dolpin would not need a video player's functionality just to preview a 
thumbnail of a video file.


> I need to keep mpv because I use that to play videos
> directly.  I think smplayer needs mplayer, maybe.Another thought,
> you see