Skip to content
  • 0 Votes
    1 Posts
    409 Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    S

    For audio playlist management and cross-platform transfers, I highly recommend using MuzConvtool, which makes it easy to move playlists between these services without losing track of your favorite songs.

  • HDR Support in Qt

    Unsolved General and Desktop
    2
    0 Votes
    2 Posts
    901 Views
    jsulmJ

    @qromanek I don't know whether anybody here knows the answer (I don't). In case not you should ask on Qt developers mailing list.

  • 0 Votes
    7 Posts
    7k Views
    4

    That error is usually happening with the shared version when an application has not been properly deployed.

    What do you mean shared? is that as opposed to the static build i've been trying to do?

    Sorry but I don't understand how your post is meant to help me.

    The application hasn't been 'deployed' (windeployqt? which i shouldn't need to do anyway because its meant to be static/standalone) yet because I'm still working on it in creator. The other plugins i need are now statically built / installed as was in an above response. The only thing that doesn't show up is the windows in "%QTDIR%\plugins\platforms" (I needed to add QT_QPA_PLATFORM_PLUGIN_PATH to windows environment variables)

    ive rebuilt the 5.12 static version multiple times now with other different configs to try to get it to work and the windows plugin simply never exists in plugins\platforms\

  • 0 Votes
    16 Posts
    2k Views
    mrjjM

    hi
    well you can hook up the AUDIO positionchanged
    signal to your own method (slot)
    using connect.
    http://doc.qt.io//qt-5/signalsandslots.html

    so it will directly call your method when it changes.

  • 0 Votes
    4 Posts
    1k Views
    H

    https://drive.google.com/file/d/1SHw3k6gY9pz8cL7skhDUPUf2NrwF4xeE/view

  • 0 Votes
    16 Posts
    6k Views
    K

    I got the answer . MainWindow.cpp is like that

    ui->listWidget->setFlow(QListView::LeftToRight); ui->listWidget->setMinimumSize(1050,800); ui->listWidget->setGridSize(QSize(340, 320)); ui->listWidget->setResizeMode(QListView::Adjust); ui->listWidget->setViewMode(QListView::ListMode); ui->listWidget->setWrapping(true); QDir directory = QFileDialog::getExistingDirectory(this, tr("Open Directory"),"/home", QFileDialog::ShowDirsOnly| QFileDialog::DontResolveSymlinks); directory.setNameFilters({"*.mp4" , "*.avi" , "*.flv" , "*.mwv"}); for(const QFileInfo & finfo: directory.entryInfoList()){ QMediaPlayer *mediaPlayer = new QMediaPlayer(); mediaPlayer->setMedia(QUrl::fromLocalFile(finfo.absoluteFilePath())); videoItem = new QGraphicsVideoItem; videoItem->setSize(QSize(300,240)); QGraphicsScene *scene = new QGraphicsScene(this); QGraphicsView *graphicsView = new QGraphicsView(scene); mediaPlayer->setVideoOutput(videoItem); QPushButton *m_playButton = new QPushButton(); m_playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); connect(m_playButton, &QAbstractButton::clicked, [mediaPlayer]() { switch (mediaPlayer->state()) { case QMediaPlayer::PlayingState: mediaPlayer->pause(); break; default: mediaPlayer->play(); break; } }); connect(mediaPlayer, &QMediaPlayer::stateChanged, [m_playButton, this](QMediaPlayer::State state) { switch(state) { case QMediaPlayer::PlayingState: m_playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPause)); break; default: m_playButton->setIcon(style()->standardIcon(QStyle::SP_MediaPlay)); break; } }); QSlider *m_positionSlider = new QSlider(Qt::Horizontal,this); m_positionSlider->setRange(0,mediaPlayer->duration() / 1000); connect(mediaPlayer, &QMediaPlayer::positionChanged ,[m_positionSlider, this](qint64 position){ m_positionSlider->setValue(position); }); connect(mediaPlayer, &QMediaPlayer::durationChanged ,[m_positionSlider, this](qint64 duration){ m_positionSlider->setRange(0,duration); }); connect(m_positionSlider ,&QAbstractSlider::sliderMoved, [mediaPlayer ,this] (int position){ mediaPlayer->setPosition(position); }); auto item = new QListWidgetItem("", ui->listWidget); auto widget = new QWidget; auto label = new QLabel(finfo.fileName()); auto vb = new QVBoxLayout; QBoxLayout *controlLayout = new QHBoxLayout; controlLayout->setMargin(0); controlLayout->addWidget(m_playButton); controlLayout->addWidget(m_positionSlider); vb->addWidget(label); vb->addWidget(graphicsView); vb->addLayout(controlLayout); widget->setLayout(vb); widget->setMinimumSize(320, 320); ui->listWidget->setItemWidget(item,widget); player.append(mediaPlayer); scene->addItem(videoItem); }
  • 0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    From the errors you should install the pulse dev package for your distribution (likely libpulse-dev).

  • 0 Votes
    7 Posts
    3k Views
    SGaistS

    The please first update to 5.9.1

  • 0 Votes
    65 Posts
    42k Views
    6

    @SGaist New output (after getting logged out): https://pastebin.com/yJK4tFeQ

    Output of diff dmesgOutputBeforeLogout.txt dmesgOutputAfterLogout.txt: https://pastebin.com/5jGtEiUd (differences between two outputs)

  • 0 Votes
    3 Posts
    2k Views
    J

    It worked! I had done it before but it was adding to the errors, and when I solved those I forgot to re add that. Thanks!

  • 0 Votes
    3 Posts
    5k Views
    SGaistS

    Hi,

    Check the version of gstreamer that the plugin uses. It could be 0.1. In that case the quick and dirty way is to install that version of gstreamer with the corresponding plugin packages.

    Hope it helps

  • QtMultimedia Issue

    Solved General and Desktop
    8
    0 Votes
    8 Posts
    4k Views
    fortyffF

    I have just solved the problem. I did as you said. The things were going fine, but the error was still exist. Therefore, I tried to find the source of the problem. In makefiles of the program what I am dealing with, the library links are referred as

    libQtMultimedia

    However, in my library location there is no library exactly the same name. There is :

    libQt5Multimedia

    So, I redefined it in makefile, and the problem is solved.

    Thanks for your helps..

  • 0 Votes
    2 Posts
    1k Views
    jerome_isAviableJ

    I think not. It seems to not deeply use the same "gstreamer plugins". I'm also not sure of my answer, but it is the impression i have.
    You can maybe try to change some camera parameters from qml code, but not sure you will have the same result (it's look like luminosity problem).

  • 0 Votes
    4 Posts
    2k Views
    timdayT

    Actually, I have now seen the .mov files played by QML's MediaPlayer on Windows. I'm making things slightly difficult for myself by not having a Windows machine in the house, so this has all been on an AWS EC2 instance; that gives you a Server2012R2 session... but that seems to have no media player support at all until you enable "Windows Desktop Experience". I also installed a "K-Lite Codec Pack", but since I'd installed that before I enabled the "desktop experience" stuff, I'm not sure if it was needed or not (will try and remove the codec pack at some point, if it's uninstallable; strongly suspect it is needed though). Anyway, that's the existence proof the .mov files can work I was looking for.

    Thanks for the other suggestions...

    I'm not too keen on turning to other tools like VLC or ffmpeg if I can possibly avoid it. Stock Qt has so far served me remarkably well as a one-stop shop for multiplatform applications and I'm very reluctant to have to bring in something else too. Transcoding my video content to something that worked everywhere would have been a more attractive solution if needed.

  • 0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    It comes from the media foundation backend.

    What do you mean by regular mp4 ? What are the streams format ?

  • 0 Votes
    2 Posts
    956 Views
    SGaistS

    Hi and welcome to devnet,

    If you want the internal details you should check QtMultimedia's source code.

  • 0 Votes
    1 Posts
    903 Views
    No one has replied