Skip to content
  • 0 Votes
    2 Posts
    50 Views
    K
    Kernel error during changing play video: Oct 20 07:33:58 PXDEVICE kernel: ------------[ cut here ]------------ Oct 20 07:33:58 PXDEVICE kernel: 3038 pages are still in use! Oct 20 07:33:58 PXDEVICE kernel: WARNING: CPU: 2 PID: 559 at mm/page_alloc.c:9275 free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: Modules linked in: snd_soc_imx_spdif snd_soc_imx_hdmi snd_soc_wm8904 fsl_jr_uio caam_jr caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine rng_core authenc libdes imx8mq_interconnect imx_interconnect crct10dif_ce imx8m_ddrc governor_userspace imx_bus rtc_ds1307 snd_soc_fsl_spdif secvio caam error snd_soc_fsl_sai imx_sdma nfsd galcore(O) fuse Oct 20 07:33:58 PXDEVICE kernel: CPU: 2 PID: 559 Comm: QSGRenderThread Tainted: G W O 5.15.60-imx8mq+geeb831e225df #1 Oct 20 07:33:58 PXDEVICE kernel: Hardware name: Variscite DART-MX8M on DT8MCustomBoard 2.x and above SD+HDMI (DT) Oct 20 07:33:58 PXDEVICE kernel: pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) Oct 20 07:33:58 PXDEVICE kernel: pc : free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: lr : free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: sp : ffff80001bae3ae0 Oct 20 07:33:58 PXDEVICE kernel: x29: ffff80001bae3ae0 x28: ffff0000c1bac740 x27: 0000000000000000 Oct 20 07:33:58 PXDEVICE kernel: x26: 0000000000000000 x25: ffff0000c2e8cc00 x24: 0000000000000000 Oct 20 07:33:58 PXDEVICE kernel: x23: ffff80000980e248 x22: fffffc0000000000 x21: 00000000000d72d8 Oct 20 07:33:58 PXDEVICE kernel: x20: 0000000000000bde x19: 00000000000d72d8 x18: ffffffffffffffff Oct 20 07:33:58 PXDEVICE kernel: x17: 0000000000000000 x16: 0000000000000000 x15: ffff800009efe96e Oct 20 07:33:58 PXDEVICE kernel: x14: ffffffffffffffff x13: ffff800009d82810 x12: 000000000000067b Oct 20 07:33:58 PXDEVICE kernel: x11: 0000000000000229 x10: ffff800009d82810 x9 : ffff800009d82810 Oct 20 07:33:58 PXDEVICE kernel: x8 : 00000000ffffefff x7 : ffff800009dda810 x6 : ffff800009dda810 Oct 20 07:33:58 PXDEVICE kernel: x5 : ffff0000ff7839d0 x4 : 0000000000000000 x3 : 0000000000000027 Oct 20 07:33:58 PXDEVICE kernel: x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000c1bac740 Oct 20 07:33:58 PXDEVICE kernel: Call trace: Oct 20 07:33:58 PXDEVICE kernel: free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: cma_release+0x78/0xbc Oct 20 07:33:58 PXDEVICE kernel: dma_free_contiguous+0xa8/0xbc Oct 20 07:33:58 PXDEVICE kernel: dma_direct_free+0xbc/0x110 Oct 20 07:33:58 PXDEVICE kernel: dma_free_attrs+0x9c/0xe0 Oct 20 07:33:58 PXDEVICE kernel: vb2_dc_put+0x88/0xc0 Oct 20 07:33:58 PXDEVICE kernel: vb2_dc_dmabuf_ops_release+0x14/0x50 Oct 20 07:33:58 PXDEVICE kernel: dma_buf_release+0x40/0xa0 Oct 20 07:33:58 PXDEVICE kernel: __dentry_kill+0x13c/0x1d0 Oct 20 07:33:58 PXDEVICE kernel: dput+0x1c4/0x300 Oct 20 07:33:58 PXDEVICE kernel: __fput+0xb0/0x234 Oct 20 07:33:58 PXDEVICE kernel: ____fput+0x10/0x20 Oct 20 07:33:58 PXDEVICE kernel: task_work_run+0x80/0x180 Oct 20 07:33:58 PXDEVICE kernel: do_notify_resume+0x208/0x12ec Oct 20 07:33:58 PXDEVICE kernel: el0_svc+0x6c/0x80 Oct 20 07:33:58 PXDEVICE kernel: el0t_64_sync_handler+0xa4/0x130 Oct 20 07:33:58 PXDEVICE kernel: el0t_64_sync+0x1a0/0x1a4 Oct 20 07:33:58 PXDEVICE kernel: ---[ end trace 65d78baf2fb2bd43 ]--- Oct 20 07:33:58 PXDEVICE kernel: ------------[ cut here ]------------ Oct 20 07:33:58 PXDEVICE kernel: 3038 pages are still in use! Oct 20 07:33:58 PXDEVICE kernel: WARNING: CPU: 2 PID: 559 at mm/page_alloc.c:9275 free_contig_range+0xa4/0xc0 Oct 20 07:33:58 PXDEVICE kernel: Modules linked in: snd_soc_imx_spdif snd_soc_imx_hdmi snd_soc_wm8904 fsl_jr_uio caam_jr caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine rng_core authenc libdes imx8mq_interconnect imx_interconnect crct10dif_ce imx8m_ddrc governor_userspace imx_bus rtc_ds1307 snd_soc_fsl_spdif secvio caam error snd_soc_fsl_sai imx_sdma nfsd galcore(O) fuse Oct 20 07:33:58 PXDEVICE kernel: CPU: 2 PID: 559 Comm: QSGRenderThread Tainted: G W O 5.15.60-imx8mq+geeb831e225df #1 ... Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_ARMV8 build on Sep 20 2017 15:02:50. Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ====== AIUR: 4.7.0 build on May 20 2022 06:51:21. ====== Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Core: MPEG4PARSER_06.20.06 build on May 7 2022 07:52:31 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Track 00 [video_0] Enabled Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Duration: 0:02:07.127000000 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Language: und Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Mime: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: video/x-h265, parsed=(boolean)true, alignment=(string)au, stream-format=(string)hev1, width=(int)3840, height=(int)2160, framerate=(fraction)60000/1001, codec_data=(buffer)01222000000090000000000099f000fcfdfafa00000703a00001002040010c01ffff222000000300900000030000030099350300001f4800075300e8a10001029e420101222000000300900000030000030099a001e020021c4d8d35924f841470f1c0903b0e18361a0842f081210088401006e1a306c341085ca0a021044170b02a0ac28035407080e007d02b4180a8200b858150561401aa038407003e8158a10d35e9e860d7430341b1b8c0d0703a1b1b181a0e432130c8602418101f1f1c1e307426120e0c04304038108200940ff0869af21720482659024120984f09048381d0984e1209072190985c2c120c080f8f8e0f183a130907060218201c0841004a07f286894d082c838e52181702f2c80b80dc06b05f82e03503a06606b06306006a0640e00b20730660c80e405803900ab07707402a81c7ffc12434498e6182620c7290c0b81796405c06e03582fc1701a81d03303583183003503207005903983306407202c01c805583b83a01540e3ffe090a10e9af4f4306ba181a0d8dc6068381d0d8d8c0d072190986430120c080f8f8e0f183a130907060218201c0841004a07f843a6bc85c81209964090482613c24120e0742613848241c86426170b04830203e3e383c60e84c241c1808608070210401281fca1a929a1059071ca4302e05e5901701b80d60bf05c06a0740cc0d60c60c00d40c81c01640e60cc1901c80b007201560ee0e8055038fff82486a498e6182620c7290c0b81796405c06e03582fc1701a81d03303583183003503207005903983306407202c01c805583b83a01540e3ffe090a10e9af4f4306ba181a0d8dc6068381d0d8d8c0d072190986430120c080f8f8e0f183a130907060218201c0841004a07f86a498e6182620c7290c0b81796405c06e03582fc1701a81d03303583183003503207005903983306407202c01c805583b83a01540e3ffe091115c96a5de02d4244026d9400007d20001d4c03e46818dc0002625a0001312d00004c4b40002625a8b840208a2000100084401c172438d6224 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Track 01 [audio_0] Enabled Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Duration: 0:02:07.168000000 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Language: eng Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Mime: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)192000, stream-format=(string)raw, codec_data=(buffer)1190 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ------------------------ Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ====== BEEP: 4.7.0 build on May 20 2022 06:51:21. ====== Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Core: AAC decoder Wrapper build on Jul 28 2020 10:45:34 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm_elinux.so.3 Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_ARMV8 build on Sep 20 2017 15:02:50. Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: Oct 20 07:33:58 PXDEVICE PXDEVICE-main[501]: ====== V4L2DEC: 1.20.0 build on Apr 24 2022 09:19:42. ======
  • Qt Multimedia sub-category positioning

    Solved Qt.io webservices qtforum categories qtmultimedia
    3
    3 Votes
    3 Posts
    552 Views
    SGaistS
    Hi, Suggestion heard and acted on
  • 0 Votes
    2 Posts
    445 Views
    X
    Same issues after testing on another Windows 10 machine. The output file seems to be in sync on a M2 macbook air.
  • Video transmission through ethernet port.

    Moved Unsolved Qt Multimedia qt c++ qtnetwork qtmultimedia
    5
    0 Votes
    5 Posts
    858 Views
    mrdebugM
    Hi, if you have to straming audio and video files you could use live555 on server side and, client side, only QMediaPlayer using rtsp.
  • 0 Votes
    17 Posts
    2k Views
    JonBJ
    @Prakash08 Sorry, but you're wrong. @Christian-Ehrlicher & I have both tried to point this out to you. First of all, QMediaPlayer *player = new QMediaPlayer is a pointer to an allocated object on the heap. That means it persists until something deletes it. The fact that QMediaPlayer *player is itself a local variable is neither here nor there, when it goes out of scope that does not destroy the object it points to. That is quite different from QBuffer buffer(&received_data), which is a local stack variable, not a pointer to an object. That does get destroyed at the end of the if. Secondly, player->setMedia(QMediaContent(), &buffer) means that player is using the stack buffer, so as soon as the if exits buffer is destroyed but the QMediaPlayer is still using it as its buffer. When you go player->play() at the end that only starts playing the video, it does not finish playing it. It carries on playing after the function exits. But it's reading from a buffer which has now been destroyed. Not good! Lucky it does not "crash". Your "Error:failed to seek" error may be from code trying to access it when it is no longer valid. This is all standard C++ stuff.
  • 0 Votes
    4 Posts
    689 Views
    SGaistS
    @Olivier-Duguay can you update to a more recent version of Qt ? Since 6.5, the default backend has been switched to ffmpeg which may give better results.
  • 0 Votes
    3 Posts
    537 Views
    L
    @ChrisW67 Thanks for your response! Using Qt::FramelessWindowHint flags can help me in my case. But for further understanding, in case I want to record other apps then I have to remove its header section (such as the OBS header in above picture), I wonder If I could set this similar flags to CapturableWindow when I get it from capturableWindows(). Or QWindowCapture, QMediaRecorder had the other ways to help me with this? Please feel free to share, I’m grateful.
  • 0 Votes
    3 Posts
    593 Views
    C
    @artemious3 said in Creating QIODevice with infinite data: I'd like to know if you can see some problems with this implementation, On a cursory inspection... Let's say your audioData buffer size is 1024 bytes, for example, and the user requests a read of 2048 bytes (because your bytesAvailable says that is available). This line: currentDataPtr = std::copy(audioData, audioData + remainingBytes, targetData); will try to copy 2048 bytes out of a 1024 byte buffer. You should also look at the QIODevice::bytesAvailable() docs regarding what this should return.
  • 1 Votes
    1 Posts
    837 Views
    No one has replied
  • QT6 QAudioProbe no more...

    Moved Unsolved Qt Multimedia qtmultimedia videoplayer audio meter
    3
    0 Votes
    3 Posts
    1k Views
    M
    They yanked perfectly good functionality out of Qt5, as far as I can tell. Concerning. M$ has a virtual monopoly on OS's, but much like two of the most enduring programming languages out there, win32, C++ and FORTRAN virtually never obsolete a given statement or call. These are also some of the most popular languages/APIs out there. I was looking to pick up the "peak meter" from an audio output, but nevermind. Not the first shortcoming of Qt I've had to code around. I figured out a way to do it with GetPeakValue() and adding the OLE lib to the .pro file. The advantage of doing it this way is the hw usu. does the calculation for you; and you don't have to scan your whole block of audio data. I also prefer linking to a windows distribution of CURL instead of QNetWorkManager; as I found it more reliable. That was in Qt5, however.
  • 0 Votes
    18 Posts
    7k Views
    M
    @eramne Is it working for you now? I've got a problem linking FFmpeg with static Qt, which I've logged at https://bugreports.qt.io/browse/QTBUG-115052 but if it's working for you, feel free to mark this as Solved
  • 0 Votes
    7 Posts
    4k Views
    S
    @SGaist Yes in case of Qt 6.5.0, but this also happens with Qt 6.3.1, although the error I can read from QMediaPlayer is different: Qt 6.5.0: QMediaPlayer::ResourceError Qt 6.3.1: QMediaPlayer::FormatError Edit: The root cause of this issue was connected to file types and the way my url was constructed. I opted to use the native darwin backend with Qt 6.5 instead of the new ffmpeg, at least until 6.5.1 is out and I can do further testing. Thank you for the valuable input (as always!).
  • QT6.5 QtMultimedia ffmpeg problems.

    Unsolved QML and Qt Quick ffmpeg qtmultimedia qtquick qt6.5
    2
    1 Votes
    2 Posts
    901 Views
    O
    @sethsource same with HLS
  • HLS playback in Qt 6 in Windows ?

    Unsolved General and Desktop qtmultimedia hls
    7
    0 Votes
    7 Posts
    2k Views
    O
    So 6.5.1 is out and this should now be fixed, but nope, it starts, debug output shows hls playlist information but the it just ends with "Operation not permitted". Same url works with ffplay just fine. sigh.
  • 0 Votes
    1 Posts
    556 Views
    No one has replied
  • 0 Votes
    6 Posts
    1k Views
    M
    @ekkescorner This issue will be fixed in next release. Qt support said that overwriting Qt 5.15.11 androiddeployqt files with Qt 5.15.10 ones will fix this issue. I don't like mixing versions, so I'm waiting next release while using Qt 5.15.10 which is good enough for my development.
  • 0 Votes
    2 Posts
    1k Views
    D
    @nishithaa I have tried to do this for years to make a VR video player using Qt and I'm finally close to achieving it but without gstreamer. I don't know if gstreamer is a requirement to you but I use libvlc 4, based on this example : https://github.com/videolan/vlc/tree/master/doc/libvlc/QtGL . It compiles and runs well but I don't want to use QOpenGLWidget (I use QWindows with manually-managed QOpenGLContexts) and somehow I can't make it to work in this setup.
  • QtMultimedia - UI Freezes after 6.4.0 update.

    Unsolved Qt 6 qtmultimedia qt6.4.0 qt6 videoplayback
    18
    0 Votes
    18 Posts
    4k Views
    S
    @Sam-Aaron said in QtMultimedia - UI Freezes after 6.4.0 update.: Downgrading to Qt 6.2.4 does appear to have fixed the issue. I've had the GUI running overnight and all morning and no freezing so far. Unfortunately (for me) this assertion was wrong and I got a freeze with a Qt 6.2.4 build. Apologies for the red herring - my issue is likely unrelated.
  • QtMultimedia support custom video format

    Unsolved General and Desktop qtmultimedia video format
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    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.