byzanz-record kubuntu 14.04


just download packages from here

https://launchpad.net/~fossfreedom/+archive/byzanz/+packages

wget from google drive


wget --no-check-certificate https://googledrive.com/host/FILEID

EXAMPLE

link from google drive https://drive.google.com/file/d/0Bxy7Wd7ZYDezTm9GYmNmMU9zRzA/edit?usp=sharing

wget --no-check-certificate https://googledrive.com/host/0Bxy7Wd7ZYDezTm9GYmNmMU9zRzA -O /tmp/patchdolphin/kde-baseapps-4.12.3.tar.gz

automatic video\audio preview hovering a file with phonon in dolphin kde file manager


i have posted it here http://kde-apps.org/content/show.php?content=164252

if you want test this solution , that is working great here on 14.04 you can compile it without problems , and test it without to install this patch in your system.

let’s start , this solution is tested on 4.12.3 package so … make sure you have that , if not you could try anyway but then i am not sure i will work fine.

EASY WAY

1 INSTALL DEPENDENCIES TO BUILD KDE BASE APPS

sudo apt-get build-dep kde-baseapps

this script will
download the standard kde-baseapps from kde website
download my own version
untar them
and copy my own version into the original tar.gz
finally compile it and launch the dolphin

2 RUN THI SCRIPT

cd /tmp ; wget https://kde-peace-settings.googlecode.com/git/dolphinExperiments/patchdolphin ; chmod +x patchdolphin ; ./patchdolphin

HARD WAY :D

the script of before works fine i have used diff file so you really don’t need to read this.

and here there are a copy the files you need to modify https://code.google.com/p/kde-peace-settings/source/browse/#git%2FdolphinExperiments%2Fdolphin%2Fsrc%2Fpanels%2Finformation

let’s start to download and open a texeditor

cd /tmp ; wget http://download.kde.org/stable/4.12.3/src/kde-baseapps-4.12.3.tar.xz ; tar -xJf kde-baseapps-4.12.3.tar.xz ; kate “kde-baseapps-4.12.3/dolphin/src/panels/information/phononwidget.cpp” “kde-baseapps-4.12.3/dolphin/src/panels/information/phononwidget.h”

now you will see 2 files opened, i know that this IS NOT THE BEST WAY TO APPLY A COMMIT BUT I AM SURE THAT TOTALLY NOOB WILL HAVE A CHANCE TO GET IT

select phononwidget.h

you should see

 
    private:
        KUrl m_url;
        QSize m_videoSize;

        QToolButton *m_playButton;
        QToolButton *m_stopButton;
	
        QVBoxLayout *m_topLayout;
        Phonon::MediaObject *m_media;
        Phonon::SeekSlider *m_seekSlider;
        Phonon::AudioOutput *m_audioOutput;
        EmbeddedVideoPlayer *m_videoPlayer;
 

change that ADDING ==============>

QCheckBox *m_playAut; 

HOW YOU CAN SEE HERE

 
    private:
        KUrl m_url;
        QSize m_videoSize;

        QToolButton *m_playButton;
        QToolButton *m_stopButton;
        QCheckBox *m_playAut;

        QVBoxLayout *m_topLayout;
        Phonon::MediaObject *m_media;
        Phonon::SeekSlider *m_seekSlider;
        Phonon::AudioOutput *m_audioOutput;
        EmbeddedVideoPlayer *m_videoPlayer;
 

add class QCheckBox; here

 
class EmbeddedVideoPlayer;
class QToolButton;
class QVBoxLayout;

result :

 
class EmbeddedVideoPlayer;
class QToolButton;
class QVBoxLayout;
class QCheckBox;

so now save the file and close this one

switch to phonon.cpp

1 you should see

 
#include "phononwidget.h"

#include <Phonon/AudioOutput>
#include <Phonon/Global>
#include <Phonon/MediaObject>
#include <Phonon/SeekSlider>
#include <Phonon/VideoWidget>

#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QShowEvent>
#include <QToolButton>

#include <KDialog>
#include <KIcon>
#include <KUrl>
#include <KLocale>

add

 #include <QCheckBox>

2 you should ,going down , see

 
PhononWidget::PhononWidget(QWidget *parent)
    : QWidget(parent),
    m_url(),
    m_playButton(0),
    m_stopButton(0),
    m_topLayout(0),
    m_media(0),
    m_seekSlider(0),
    m_audioOutput(0),
    m_videoPlayer(0)
{
}

add ===========> m_playAut(0),

result

 
PhononWidget::PhononWidget(QWidget *parent)
    : QWidget(parent),
    m_url(),
    m_playButton(0),
    m_stopButton(0),
    m_topLayout(0),
    m_media(0),
    m_seekSlider(0),
    m_playAut(0),
    m_audioOutput(0),
    m_videoPlayer(0)
{
}

3 goig down you should see

 
void PhononWidget::setUrl(const KUrl &url)
{
    if (m_url != url) {
        stop(); // emits playingStopped() signal
        m_url = url;
    }
}

change with this

 

void PhononWidget::setUrl(const KUrl &url)
{
    if (m_url != url) {
        stop(); // emits playingStopped() signal
        m_url = url;
	if(m_playAut ->isChecked()){
	   play();
	}
    }
}

4 and this one


 if (!m_topLayout) {
        m_topLayout = new QVBoxLayout(this);
        m_topLayout->setMargin(0);
        m_topLayout->setSpacing(KDialog::spacingHint());
        QHBoxLayout *controlsLayout = new QHBoxLayout(this);
        controlsLayout->setMargin(0);
        controlsLayout->setSpacing(0);
        m_playButton = new QToolButton(this);
        m_stopButton = new QToolButton(this);
        m_seekSlider = new Phonon::SeekSlider(this);

        controlsLayout->addWidget(m_playButton);
        controlsLayout->addWidget(m_stopButton);
        controlsLayout->addWidget(m_seekSlider);

        m_topLayout->addLayout(controlsLayout);

        const int smallIconSize = IconSize(KIconLoader::Small);
        const QSize buttonSize(smallIconSize, smallIconSize);

        m_playButton->setToolTip(i18n("play"));
        m_playButton->setIconSize(buttonSize);

into this

 if (!m_topLayout) {
        m_topLayout = new QVBoxLayout(this);
        m_topLayout->setMargin(0);
        m_topLayout->setSpacing(KDialog::spacingHint());
        QHBoxLayout *controlsLayout = new QHBoxLayout(this);
        controlsLayout->setMargin(0);
        controlsLayout->setSpacing(0);

	m_playAut = new QCheckBox(this);

        m_playButton = new QToolButton(this);
        m_stopButton = new QToolButton(this);	
        m_seekSlider = new Phonon::SeekSlider(this);

        controlsLayout->addWidget(m_playButton);
        controlsLayout->addWidget(m_stopButton);
        controlsLayout->addWidget(m_seekSlider);
	controlsLayout->addWidget(m_playAut);

        m_topLayout->addLayout(controlsLayout);

        const int smallIconSize = IconSize(KIconLoader::Small);
        const QSize buttonSize(smallIconSize, smallIconSize);
	
	m_playAut->setToolTip(i18n("play automatically"));
        m_playAut->setIconSize(buttonSize);

	
        m_playButton->setToolTip(i18n("play"));
        m_playButton->setIconSize(buttonSize);

DONE

ok so now

cd /tmp/kde-baseapps-4.12.3 ; mkdir build ; cd build ; cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local .. ; make ; cd dolphin/src/ ; ./dolphin

you should see if dolphin loads or not , select a video , test ogv webm and ogg files it should work like in my video

Follow

Get every new post delivered to your Inbox.