I want my subtitles on the black border.

Users
2007-07-09
2013-04-16
  • In mplayer you can get your subtitles drawn on the black border instead on the video-surface, as in Xine i.e.:
    gmplayer -vf expand=0:-50:0:25

    Are there any possiblity to do this in kplayer? It would be very nice with a GUI-support for this and also a commandline support.

     
    • kiriuja
      kiriuja
      2007-07-09

      This option has been added in the current CVS.

      You need to go to Settings/Configure KPlayer/Subtitles and check the Autoexpand option.

      Please report any bugs you find asap, so they can be fixed for 0.6.3 release.

       
    • Ok thanks. I'm a newbie with CVS (never used it before), but I'll maybe make a try.

       
    • Thanks! I got it working. Though I firest tried to download the CVS via Cervisia, I didn't get the .png files. End when I did configure I hade to manually tell where the Q3-headers where and change some code in kplayer.cpp. But I got it running and then it showed KPlayer version 0.1.0 (if I remember correct). :) But I unsinstalled and got it working without problems with your directives. So it seems to be a very nice player with works easy and problem free (yet ;). Anyway I miss a pan-and-scan function so I can scale, scew or crop the image of the video. I hope it will come up soon.

      PS.
      I found a little bug when setting the aspect-ratio manually to 2.4:1 in Propertiees-menu for the current video playing. Here is the output from the terminal:

      kplayer: 17:33:47:633 KPlayerActionList::plug
      kplayer: 17:33:47:633  Name   subtitle_streams
      kplayer: 17:33:47:633 KPlayer::enableSubmenu subtitle_streams true
      kplayer: 17:33:47:633 Inserting separators
      kplayer: 17:33:47:633  Containers 1
      kplayer: 17:33:47:633  Container KPopupMenu subtitles
      kplayer: 17:33:47:633  Index  0
      kplayer: 17:33:47:633  Containers 1
      kplayer: 17:33:47:634  Container KPopupMenu subtitles
      kplayer: 17:33:47:634  Index  2
      kplayer: 17:33:47:634 Settings::setInitialDisplaySize
      KCrash: Application 'kplayer' crashing...

      And here is the backtrace from KDE crasch handler:

      Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
      [Thread debugging using libthread_db enabled]
      [New Thread -1233114912 (LWP 17274)]
      [KCrash handler]
      #6  0x08135f3b in KPlayerDisplaySizeProperty::value ()
      #7  0x0813fa48 in KPlayerTrackProperties::getDisplaySize ()
      #8  0x0812ecf9 in KPlayerSettings::setInitialDisplaySize ()
      #9  0x0819aa56 in KPlayerEngine::refreshProperties ()
      #10 0x081a05c0 in KPlayerEngine::qt_invoke ()
      #11 0xb6f359b8 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #12 0xb6f36330 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #13 0x081356b9 in KPlayerProperties::updated ()
      #14 0x0814e021 in KPlayerProperties::update ()
      #15 0x0814eb0f in KPlayerProperties::commit ()
      #16 0x081fad14 in KPlayerPropertiesDialog::slotApply ()
      #17 0xb7874423 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
      #18 0x081fb343 in KPlayerPropertiesDialog::qt_invoke ()
      #19 0x081fb37b in KPlayerDiskTrackPropertiesDialog::qt_invoke ()
      #20 0x081fb3bb in KPlayerItemPropertiesDialog::qt_invoke ()
      #21 0xb6f359b8 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #22 0xb6f36330 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #23 0xb72caafb in QButton::clicked () from /usr/lib/libqt-mt.so.3
      #24 0xb6fd3f30 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
      #25 0xb6f6c65d in QWidget::event () from /usr/lib/libqt-mt.so.3
      #26 0xb6ecca60 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
      #27 0xb6ecec1e in QApplication::notify () from /usr/lib/libqt-mt.so.3
      #28 0xb75d5c32 in KApplication::notify () from /usr/lib/libkdecore.so.4
      #29 0x080d2e08 in KPlayerApplication::notify ()
      #30 0xb6e5f25d in QApplication::sendSpontaneousEvent ()
         from /usr/lib/libqt-mt.so.3
      #31 0xb6e5dec2 in QETWidget::translateMouseEvent ()
         from /usr/lib/libqt-mt.so.3
      #32 0xb6e5bfac in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
      #33 0xb6e73180 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
      #34 0xb6ee7136 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
      #35 0xb6ece587 in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
      #36 0xb70ea3e9 in QDialog::exec () from /usr/lib/libqt-mt.so.3
      #37 0x0816cc8d in KPlayerEngine::fileProperties ()
      #38 0x081a066b in KPlayerEngine::qt_invoke ()
      #39 0xb6f3588b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #40 0xb6f36330 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #41 0xb779da89 in KAction::activated () from /usr/lib/libkdeui.so.4
      #42 0xb77db212 in KAction::slotActivated () from /usr/lib/libkdeui.so.4
      #43 0xb78a337d in KAction::slotPopupActivated () from /usr/lib/libkdeui.so.4
      #44 0xb78a3641 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
      #45 0xb6f3588b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
      #46 0xb72c1ae0 in QSignal::signal () from /usr/lib/libqt-mt.so.3
      #47 0xb6f5581e in QSignal::activate () from /usr/lib/libqt-mt.so.3
      #48 0xb705bf1b in QPopupMenu::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
      #49 0xb77a48de in KPopupMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.4
      #50 0xb6f6c65d in QWidget::event () from /usr/lib/libqt-mt.so.3
      #51 0xb6ecca60 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
      #52 0xb6ecec1e in QApplication::notify () from /usr/lib/libqt-mt.so.3
      #53 0xb75d5c32 in KApplication::notify () from /usr/lib/libkdecore.so.4
      #54 0x080d2e08 in KPlayerApplication::notify ()
      #55 0xb6e5f25d in QApplication::sendSpontaneousEvent ()
         from /usr/lib/libqt-mt.so.3
      #56 0xb6e5db9f in QETWidget::translateMouseEvent ()
         from /usr/lib/libqt-mt.so.3
      #57 0xb6e5bfac in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
      #58 0xb6e73180 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
      #59 0xb6ee7136 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
      #60 0xb6ee6f46 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
      #61 0xb6ece609 in QApplication::exec () from /usr/lib/libqt-mt.so.3
      #62 0x080e2145 in main ()

       
      • kiriuja
        kiriuja
        2007-07-12

        I fixed this one, thanks for reporting it!

        Please update the code from CVS and recompile (make and make install will be enough).

        How is the autoexpand feature working for you?