Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. video
    Log in to post

    • UNSOLVED Processing Every Frame in a Video File
      QML and Qt Quick • qml video mediaplayer videooutput qvideofilter • • PetrichorShark  

      5
      0
      Votes
      5
      Posts
      159
      Views

      @SGaist Ah, in that case, I'll give it a try. Would that also be the case with QAbstractVideoSurface, or would that one receive further-in frames if more time passes? Processing takes about 250ms per frame on Android right now. I'm working on ways to speed that up, but the processing fps is going to be worse than the video file's fps for some time yet.
    • UNSOLVED QtMultimedia support custom video format
      General and Desktop • qtmultimedia video format • • Dmitry87  

      4
      0
      Votes
      4
      Posts
      122
      Views

      I am currently unsure that you can achieve that this way. If memory serves well, you can create a custom QMediaObject that you can attach to VideoOutput. It could be an alternative.
    • UNSOLVED Getting Slow Motion Video while using QML Media Player
      QML and Qt Quick • qml qmediaplayer video gstreamer • • alizadeh91  

      2
      0
      Votes
      2
      Posts
      149
      Views

      I have the same issue. It's soo slow with rtsp and buggy.
    • UNSOLVED Custom streamer pipeline in QML
      QML and Qt Quick • qml video gstreamer gstreamer video udp stream • • vicky_mac  

      15
      0
      Votes
      15
      Posts
      600
      Views

      @vicky_mac said in Custom streamer pipeline in QML: module org.freedesktop.gstreamer.GLVideoItem if vaapi is used in the pipeline on linux, install libva-dev
    • SOLVED Capture a frame (image) from a video playing in a QT GUI
      General and Desktop • c++ video qt 6 frame • • BigBen  

      7
      0
      Votes
      7
      Posts
      404
      Views

      Connect the videoFrameChanged signal of the sink to a custom slot so you will have the frame available to be saved.
    • SOLVED QtWebEngine corrupts QtQuick Video
      QtWebEngine • qml video multimedia webengine qt5.15.2 • • J0Nes  

      2
      1
      Votes
      2
      Posts
      180
      Views

      ok looks like I've stumbled upon https://bugreports.qt.io/browse/QTBUG-86896
    • SOLVED How do you add a Camera class to a .ui file correctly?
      General and Desktop • video qcamera promote webcam qcameraviewfind • • arjun98  

      2
      0
      Votes
      2
      Posts
      200
      Views

      I added the following two lines of code and it worked: QHBoxLayout *camera_layout = new QHBoxLayout(this); mCamera = new QCamera(); mCameraViewfinder = new QCameraViewfinder(); camera_layout->addWidget(mCameraViewfinder); mCamera->setViewfinder(mCameraViewfinder); mCamera->start(); And it worked
    • UNSOLVED Qt Android gstreamer , qtquick2videosink slow down video.
      Mobile and Embedded • qml android video gstreamer plugins • • DkDkDk  

      9
      0
      Votes
      9
      Posts
      758
      Views

      Sorry, I meant for video encoding. In any case, I would separate the streaming and the preview if possible. Generating the network stream for one or more device can be very heavy CPU wise.
    • UNSOLVED Video inside Qt 3d window ?
      General and Desktop • qt3d video rendering • • asimfile  

      1
      0
      Votes
      1
      Posts
      176
      Views

      No one has replied

    • SOLVED Unable to play video
      General and Desktop • video gstreamer video • • Jonathan Levanon  

      13
      0
      Votes
      13
      Posts
      1082
      Views

      Update - After a very long day, turns out that opencv lib was linked to gstreamer0.10, qt to 1.0. This did not work well obviously. When compiling opencv with linking to gstreamer1.0, works ok.
    • SOLVED Split a video into two separate clips
      General and Desktop • qmediaplayer video split qmediaplaylist • • mgalkissa  

      4
      0
      Votes
      4
      Posts
      587
      Views

      Hi @SGaist , Thanks for your response. Just wanted to know for sure if there was a way to do it with Qt itself. Will start looking at other options. Thanks.
    • UNSOLVED Optimizing CPU/RAM usage when playing video with Qt on Raspberry
      Mobile and Embedded • video gstreamer raspberry optimization • • etiennedm  

      1
      0
      Votes
      1
      Posts
      386
      Views

      No one has replied

    • UNSOLVED Preprocessing images from Camera before Viewfinder
      General and Desktop • video camera media • • sergboec  

      7
      0
      Votes
      7
      Posts
      1176
      Views

      Ok. I have found a solution QImage imageToReturn = QImage((uchar*)converted_image.data, converted_image.cols, converted_image.rows, QImage::Format_RGB888); imageToReturn.convertToFormat(QImage::Format_RGB32); I have found that when i started to compare metadata between QImage constructed from cv::Mat data and QImage constructed as in second example
    • UNSOLVED QMediaPlayer stays in UnknownMediaStatus on Windows 7
      General and Desktop • qmediaplayer video windows 7 windows7 • • QuentinJanuel  

      4
      0
      Votes
      4
      Posts
      620
      Views

      Here is pretty much the commands I use to deploy the app: qmake videoplayer/videoplayer.pro -o build/MakeFile -r -spec win32-msvc2010 -nocache jom -f Makefile -s windeployqt --release release
    • SOLVED Get video file duration without playing it
      General and Desktop • c++ video • • Jonathan Levanon  

      3
      0
      Votes
      3
      Posts
      2148
      Views

      Thanks. Ended up really using mediainfo, got it with the following method int getVideoDuration(std::string fileName){ MediaInfo MI; MI.Open(fileName); int duration = std::stoi(MI.Get(Stream_General, 0, "Duration")); MI.Close(); return duration; }
    • SOLVED QWidget Flickering for frame by frame streaming of video
      General and Desktop • qwidget video pixmap qpaintevent flickering • • SilverSurfer  

      26
      0
      Votes
      26
      Posts
      7412
      Views

      @SilverSurfer I don't have the time handy to do a full working example, but this is the technique in glsl: https://www.khronos.org/opengl/wiki/Data_Type_(GLSL)#Swizzling (The vec4 can hold "rgba" values if that's what you put in it - the example there just calls it "xyzw" because the data type generically handles any 4 floats.) Basically, start from an example that draws an image with a simple glsl shader as a texture. Then hack on the shader until it flips around the colors like you want when it draws the texture. Then use your code that gets the image over the network to upload the image as the OpenGL texture every frame.
    • UNSOLVED Approach for a museum video player and selector
      QML and Qt Quick • qml video quick museum selector • • zoulock  

      4
      0
      Votes
      4
      Posts
      1380
      Views

      @GrecKo thanks for your comment. I've managed to create the window in which people would touch the video, but I'm not sure how to make the player. I've seen there is a library, Qt media, but I don't really know how to bind it with the other screen.
    • QMediaPlayer on Ubuntu 16.04 GStreamer error
      General and Desktop • qmediaplayer video ubuntu gstreamer • • lpares12  

      8
      0
      Votes
      8
      Posts
      6412
      Views

      Solved, gstreamer-0.10-ffmpeg was missing. sudo add-apt-repository ppa:mc3man/gstffmpeg-keep sudo apt-get update sudo apt-get install gstreamer0.10-ffmpeg UPDATE: Not really solved, using this plugin breaks GStreamer: $ export GST_DEBUG=2 $ ./RPIStreamer 0:00:01.232878440 29169 0x7f0414007320 WARN qtdemux qtdemux_types.c:191:qtdemux_type_get: unknown QuickTime node type iods 0:00:01.233010807 29169 0x7f0414007320 WARN qtdemux qtdemux_types.c:191:qtdemux_type_get: unknown QuickTime node type avc1 0:00:01.233055875 29169 0x7f0414007320 WARN qtdemux qtdemux_types.c:191:qtdemux_type_get: unknown QuickTime node type avcC 0:00:01.233095592 29169 0x7f0414007320 WARN qtdemux qtdemux_types.c:191:qtdemux_type_get: unknown QuickTime node type btrt 0:00:01.235499777 29169 0x7f0414007320 WARN qtdemux qtdemux.c:6006:qtdemux_parse_segments:<qtdemux0> streaming; discarding edit list segments 0:00:01.235563181 29169 0x7f0414007320 WARN qtdemux qtdemux.c:7044:qtdemux_parse_trak:<qtdemux0> unknown version 00000000 0:00:01.236318578 29169 0x7f0414007320 WARN qtdemux qtdemux.c:6006:qtdemux_parse_segments:<qtdemux0> streaming; discarding edit list segments 0:00:01.264479125 29169 0x7f0414007680 WARN playsinkconvertbin gstplaysinkconvertbin.c:481:gst_play_sink_convert_bin_cache_converter_caps:<GstPlaySinkAudioConvert@0x7f03f801a050> No conversion elements 0:00:01.290541635 29169 0x7f04140071e0 WARN ffmpeg gstffmpegdec.c:2299:gst_ffmpegdec_frame:<ffdec_h2640> ffdec_h264: decoding error (len: -1, have_data: 0) 0:00:01.297533958 29169 0xba4d40 WARN basesrc gstbasesrc.c:2625:gst_base_src_loop:<source> error: Internal data flow error. 0:00:01.297562286 29169 0xba4d40 WARN basesrc gstbasesrc.c:2625:gst_base_src_loop:<source> error: streaming task paused, reason not-negotiated (-4) Error: "Internal data flow error."
    • SOLVED Zoom QCameraViewfinder Video possible?
      General and Desktop • video zoom scale qcameraviewfind • • pauledd  

      2
      1
      Votes
      2
      Posts
      1311
      Views

      I think I found a solution. I roughly quadrupled the QCameraViewfinder size and repositioned it to the middle. Its all done with "cameraVf->setGeometry(x,y,x,y);". And I parented the viewfinder to a new QFrame to have a frame and to have the viewfinder not overlaying the start button. mainwindow.cpp ... QFrame *frameVideo = new QFrame(frame4); // extra frame where the video is in frameVideo->setGeometry(5,35,375,380); camera = new QCamera("/dev/video0"); cameraVf = new QCameraViewfinder(frameVideo); camera->setViewfinder(cameraVf); cameraVf->setGeometry(0,0,375,380); QCameraViewfinderSettings vfsettings; vfsettings.setPixelFormat(QVideoFrame::Format_YUV420P); vfsettings.setResolution(640,480); camera->setViewfinderSettings(vfsettings); cameraVf->show(); ... void MainWindow::onZoomClicked(){ if(cameraVf->width() != 1600) { cameraVf->setGeometry(-590,-490,1600,1440); // zoom in } else { cameraVf->setGeometry(0,0,375,380); // zoom out } }
    • UNSOLVED QML / Video / Autorepeat:true // Ugly white screen is displayed between video looping
      Mobile and Embedded • qml video • • QtEnthusiast_EmbeddedProgrammer  

      1
      0
      Votes
      1
      Posts
      707
      Views

      No one has replied

    • UNSOLVED QVideoFrame bits() access too slow
      General and Desktop • video qvideoframe decoder • • HAWK0044  

      4
      0
      Votes
      4
      Posts
      1619
      Views

      Then it sounds like a regression… Can you check against the latest 5.7 to see if it still happens ?
    • UNSOLVED mediaplayer not able to play video
      General and Desktop • video mediaplayer qt 5.5.1 media player 32bit • • AmazingQt  

      16
      0
      Votes
      16
      Posts
      5123
      Views

      @raven-worx Got keys from plugin meta data ("audiocapture") QFactoryLoader::QFactoryLoader() checking directory path "/home/MYPATH/build-desktop-system-dev-Desktop_Qt_5_5_1_GCC_32bit-Release/MY_PROJECT/mediaservice" ... defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    • UNSOLVED QML WebEngineView doesn't play video
      General and Desktop • qml video webengineview videoplayback • • AmazingQt  

      1
      0
      Votes
      1
      Posts
      784
      Views

      No one has replied

    • UNSOLVED QMediaPlayer - "Internal data flow error."
      General and Desktop • qmediaplayer video • • redevil5k  

      1
      0
      Votes
      1
      Posts
      737
      Views

      No one has replied

    • SOLVED What's a good reliable works-anywhere multiplatform video format (OSX, iOS and Windows)?
      Installation and Deployment • qml video multimedia cross platform • • timday  

      4
      0
      Votes
      4
      Posts
      1858
      Views

      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.
    • UNSOLVED Video seek does not function
      General and Desktop • qml video seekable • • eiriham  

      2
      0
      Votes
      2
      Posts
      802
      Views

      Hi Which platform are you running your application on ?
    • gstreamer opengl video sink
      Installation and Deployment • opengl video gstreamer • • Mark81  

      10
      0
      Votes
      10
      Posts
      3514
      Views

      Hi, Not a direct answer but maybe the QtGStreamer might be an option. Hope it helps
    • UNSOLVED Video frame rate on iMX6
      Mobile and Embedded • android video imx6 videoplayback lollipop • • JSmith  

      2
      1
      Votes
      2
      Posts
      1584
      Views

      @JSmith said in Video frame rate on iMX6: smoothly @JSmith did you get it to work with better fps >30 fps on iMx6Q with Qt5?
    • SOLVED Extract sound with QMultimedia
      General and Desktop • video audio qmultimedia • • sabativi  

      10
      0
      Votes
      10
      Posts
      3315
      Views

      Hi, Then that's something you should ask to the QtAV authors. It's not an official Qt module.
    • UNSOLVED ShaderEffect on VideoOutput (and qmlglsink) without ShaderEffectSource
      Mobile and Embedded • qml video shader • • kirgene  

      1
      0
      Votes
      1
      Posts
      882
      Views

      No one has replied

    • UNSOLVED Video overlay with Qt 4.8
      Mobile and Embedded • video gstreamer overlay qt4.8.6 • • PierreO  

      1
      0
      Votes
      1
      Posts
      1245
      Views

      No one has replied

    • changing source of Video item causes hang
      QML and Qt Quick • qml video • • michael levin  

      1
      0
      Votes
      1
      Posts
      587
      Views

      No one has replied

    • SOLVED listView click start mp3 or video with default player (Windows)?
      General and Desktop • windows qprocess video mp3 • • qDebug  

      4
      0
      Votes
      4
      Posts
      1460
      Views

      Thank you! QString file = filemodel->data(index, Qt::DisplayRole).toString(); QDesktopServices::openUrl(QUrl::fromLocalFile(file)); Works perfekt! :D
    • UNSOLVED Best practice for making a video widget fullscreen
      General and Desktop • video fullscreen • • JordanHarris  

      6
      0
      Votes
      6
      Posts
      3813
      Views

      Just an update: I ended up just using a "container widget" that holds the video widget. This way I can just add the container widget to the layout and detach the video widget from the container when going full screen. Then I just add it back to the container instead of trying to add it to the layout exactly as it was. In my case, I'm actually using a QStackedWidget as the "container" since I need to switch the video out with other views anyways. It works out perfectly. This project is really coming along nicely. I'm loving Qt right now. :)
    • QVideoWidget black window
      Mobile and Embedded • qt5 video multimedia • • Zola  

      3
      1
      Votes
      3
      Posts
      1295
      Views

      @mehmety888, this thread is over 2 years old. If they did they would of said they did find a solution. By the way you mean found not find.
    • UNSOLVED GstFBDEVSink has no property named 'force-aspect-ratio'
      Mobile and Embedded • qtmultimedia embedded linux arm video • • IL  

      2
      0
      Votes
      2
      Posts
      1105
      Views

      My log also include the message: This plugin does not support setParent! Please advise! IL
    • UNSOLVED Video HW acceleration on Nvidia Jetson K1
      Mobile and Embedded • qt5 qtmultimedia video gstreamer1.0 nvidia jetson t • • StefanoCordibella  

      1
      0
      Votes
      1
      Posts
      1075
      Views

      No one has replied

    • qmediaplayer object does not have a valid service
      General and Desktop • c++ linux arm video fedora fc20 • • IL  

      22
      0
      Votes
      22
      Posts
      18307
      Views

      guys, i have the same issue but with debian 11. When i run the player example, i get the following defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" sherif@debian:~/sndmod$ sudo apt list --installed | grep gstreamer [sudo] password for sherif: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. gir1.2-gstreamer-1.0/stable,now 1.18.4-2.1 amd64 [installed,automatic] gira-gstreamer-vanilla/testing,now 1.0.0-4 all [installed,automatic] gstreamer1.0-alsa/stable,now 1.18.4-2 amd64 [installed,automatic] gstreamer1.0-clutter-3.0/stable,now 3.0.27-2 amd64 [installed,automatic] gstreamer1.0-gl/stable,now 1.18.4-2 amd64 [installed,automatic] gstreamer1.0-gtk3/stable,now 1.18.4-2 amd64 [installed,automatic] gstreamer1.0-libav/stable,now 1.18.4-3 amd64 [installed] gstreamer1.0-packagekit/stable,now 1.2.2-2 amd64 [installed] gstreamer1.0-pipewire/stable,now 0.3.19-4 amd64 [installed,automatic] gstreamer1.0-plugins-bad/stable,now 1.18.4-3 amd64 [installed,automatic] gstreamer1.0-plugins-base/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-plugins-good/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-plugins-ugly/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-pulseaudio/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-tools/stable,now 1.18.4-2.1 amd64 [installed,automatic] gstreamer1.0-x/stable,now 1.18.4-2 amd64 [installed,automatic] libgstreamer-gl1.0-0/stable,now 1.18.4-2 amd64 [installed,automatic] libgstreamer-plugins-bad1.0-0/stable,now 1.18.4-3 amd64 [installed,automatic] libgstreamer-plugins-base1.0-0/stable,now 1.18.4-2 amd64 [installed,automatic] libgstreamer1.0-0/stable,now 1.18.4-2.1 amd64 [installed,automatic] libgstreamer1.0-dev/stable,now 1.18.4-2.1 amd64 [installed,automatic] qtgstreamer-plugins-qt5/stable,now 1.2.0-5.1 amd64 [installed,auto-removable] sherif@debian:~/sndmod$
    • Qt5Multimedia Problem - no service found for - "org.qt-project.qt.mediaplayer"
      General and Desktop • qtmultimedia video • • sinjohr  

      1
      0
      Votes
      1
      Posts
      1424
      Views

      No one has replied