Bug 425284 - Generate Video Slideshow - Failed to open Muxer
Summary: Generate Video Slideshow - Failed to open Muxer
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-VideoSlideshow (show other bugs)
Version: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-13 10:16 UTC by apiszcz
Modified: 2024-01-07 13:03 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apiszcz 2020-08-13 10:16:46 UTC
SUMMARY


STEPS TO REPRODUCE
1. select a set of images
2. generate video slide show


OBSERVED RESULT
DebugView output
[28140] digikam.general: Failed to open muxer



EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-08-13 11:29:49 UTC
I just create a few short video slideshows on Windows and can't reproduce any problem. We do not check in depth whether the selected video settings are possible or useful. Which settings did you use exactly?

Maik
Comment 2 apiszcz 2020-08-13 13:08:34 UTC
I ran the same test on LINUX and it works fine, so windows specific.
The UI interaction behaves better on LINUX also.
Tx
Comment 3 caulier.gilles 2020-08-13 15:44:13 UTC
Apiszcz,

As Maik said, i also tested under Windows, and i cannot reproduce the problem.

Please explain better the dysfunction...

BEst

Gilles Caulier
Comment 4 Maik Qualmann 2020-10-01 20:16:54 UTC
*** Bug 427221 has been marked as a duplicate of this bug. ***
Comment 5 Christian Weiske 2021-12-23 19:26:23 UTC
I can reproduce the problem on Ubuntu 20.04 with digikam 7.3.0:

1. Select 2 images in the thumbnail view
2. Tools > Create video slideshow
3. Image selection method: Images, Next
4. Images List: Next
5. Video settings:
5.1. Number of frames by image: 75
5.2. Video standard: PAL - 25 FPS
5.3. Video type: Blueray 1920x1080
5.4. Video bit rate: 1200k
5.5. Video codec: High quality H.264 AVC/MPEG-4 AVC
5.6. Effect while displaying: Random
5.7. Transition between images: Fade, Next
6. Output settings
6.1. Media Container Format: MKV-Matroska
6.2. Destination folder: /home/cweiske/Videos
6.3. Overwrite automatically
6.4. Open in player: Default from desktop, Next
7. Log shows:
Starting to generate video slideshow...
2 input images to process
/home/cweiske/Bilder/Fotos/2021/2021-12-02 Fotos für Weihnachtsvideo/1989-12-23 001.jpg
/home/cweiske/Bilder/Fotos/2021/2021-12-02 Fotos für Weihnachtsvideo/1989-12-23 002.jpg
Failed to open muxer
Video Slideshow is not completed

When I change the container format from MKV to MP4, then the muxer error does not occur.
Comment 6 Christian Weiske 2021-12-23 19:27:11 UTC
My ffmpeg info:
----
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Comment 7 caulier.gilles 2023-04-30 02:31:15 UTC
@apiszcz

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 8 apiszcz 2023-05-03 17:32:22 UTC
Digicam 8 fixes this issue video generated. Thank you.

-----Original Message-----
From: bugzilla_noreply@kde.org <bugzilla_noreply@kde.org> 
Sent: Saturday, April 29, 2023 10:31 PM
To: apiszcz@gmail.com
Subject: [digikam] [Bug 425284] Generate Video Slideshow - Failed to open Muxer

https://bugs.kde.org/show_bug.cgi?id=425284

--- Comment #7 from caulier.gilles@gmail.com --- @apiszcz

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier

--
You are receiving this mail because:
You reported the bug.
Comment 9 caulier.gilles 2024-01-03 16:19:19 UTC
Git commit 5c0ce6aa787931b22bde21c50c6fa492883ae564 by Gilles Caulier.
Committed on 03/01/2024 at 16:56.
Pushed by cgilles into branch 'master'.

Add ffmpeg CLI binary finder for Video Slideshow.
Prepare to port the plugin to use the FFmpeg CLI tool instead QtAV (Qt6Multimedia cannot be used here).
NOTE: VideoSlideshow plugin is the last part of the Qt6 port of digiKam using QtAV.
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +1    -1    core/dplugins/generic/tools/videoslideshow/videoslideshowplugin.cpp
M  +1    -0    core/libs/video/CMakeLists.txt
A  +43   -0    core/libs/video/manager/ffmpegbinary.cpp     [License: GPL(v2.0+)]
A  +38   -0    core/libs/video/manager/ffmpegbinary.h     [License: GPL(v2.0+)]

https://invent.kde.org/graphics/digikam/-/commit/5c0ce6aa787931b22bde21c50c6fa492883ae564
Comment 10 caulier.gilles 2024-01-03 17:17:24 UTC
Git commit 420608c891d65372095db103bf8e795ffb289359 by Gilles Caulier.
Committed on 03/01/2024 at 18:16.
Pushed by cgilles into branch 'master'.

restore previous videoslideshow settings including audio track support
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +173  -10   core/libs/video/manager/qtav/vidslidetask.cpp
M  +1    -1    core/libs/video/manager/qtav/vidslidetask.h
M  +5    -1    core/libs/video/manager/vidslidesettings.cpp
M  +3    -1    core/libs/video/manager/vidslidesettings.h

https://invent.kde.org/graphics/digikam/-/commit/420608c891d65372095db103bf8e795ffb289359
Comment 11 caulier.gilles 2024-01-03 22:34:41 UTC
Git commit 4ff9e0d9fedf3189f62cbd3f0de64657bcc64116 by Gilles Caulier.
Committed on 03/01/2024 at 23:34.
Pushed by cgilles into branch 'master'.

add ffmpeg path tp the settings
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +1    -0    core/libs/video/manager/vidslidesettings.h

https://invent.kde.org/graphics/digikam/-/commit/4ff9e0d9fedf3189f62cbd3f0de64657bcc64116
Comment 12 caulier.gilles 2024-01-03 22:47:53 UTC
Git commit 982a06b8e1973a8447cac2ab92503f20a3f4fdfc by Gilles Caulier.
Committed on 03/01/2024 at 23:46.
Pushed by cgilles into branch 'master'.

add FFMpeg binary search in the wizard
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +12   -9    core/dplugins/generic/tools/videoslideshow/wizard/vidslidefinalpage.cpp
M  +45   -9    core/dplugins/generic/tools/videoslideshow/wizard/vidslideintropage.cpp
M  +3    -8    core/dplugins/generic/tools/videoslideshow/wizard/vidslideoutputpage.cpp
M  +3    -8    core/dplugins/generic/tools/videoslideshow/wizard/vidslidevideopage.cpp

https://invent.kde.org/graphics/digikam/-/commit/982a06b8e1973a8447cac2ab92503f20a3f4fdfc
Comment 13 caulier.gilles 2024-01-04 10:30:23 UTC
Git commit 2eb84eeb93994d93c4b3f4bdb001cba2fba67fb1 by Gilles Caulier.
Committed on 04/01/2024 at 11:26.
Pushed by cgilles into branch 'master'.

Complete isolation of QtAv code.
Tested with Qt5 and Qt5.
Tested with and without mediaplayer cmake option.
The linking problem with QtAv was the auto reccursive parsing of header file in whole source repository. QtAv was always parsed and add to the compilation rules.
Not qtav and qtmm are removed from the parse and add at the demand when necessary.
Continue to port VideoSlideshw to FFmpeg CLI tool to drop QtAV (Qt5 and Qt6).
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +6    -2    core/CMakeLists.txt
M  +27   -0    core/cmake/rules/RulesMediaPlayer.cmake
M  +1    -1    core/dplugins/generic/tools/CMakeLists.txt
M  +3    -4    core/dplugins/generic/tools/videoslideshow/wizard/vidslidefinalpage.cpp
M  +6    -8    core/libs/video/CMakeLists.txt

https://invent.kde.org/graphics/digikam/-/commit/2eb84eeb93994d93c4b3f4bdb001cba2fba67fb1
Comment 14 caulier.gilles 2024-01-04 12:43:16 UTC
Git commit 002af12bc3aad5cdfff34f2e6dd4eed71310df66 by Gilles Caulier.
Committed on 04/01/2024 at 13:42.
Pushed by cgilles into branch 'master'.

add C++17 support
use QString instead QUrl for the video output path
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +5    -9    core/dplugins/generic/tools/videoslideshow/wizard/vidslidealbumspage.cpp
M  +8    -15   core/dplugins/generic/tools/videoslideshow/wizard/vidslidefinalpage.cpp
M  +4    -6    core/dplugins/generic/tools/videoslideshow/wizard/vidslideimagespage.cpp
M  +9    -15   core/dplugins/generic/tools/videoslideshow/wizard/vidslideoutputpage.cpp
M  +12   -24   core/dplugins/generic/tools/videoslideshow/wizard/vidslidevideopage.cpp
M  +11   -21   core/dplugins/generic/tools/videoslideshow/wizard/vidslidewizard.cpp
M  +2    -2    core/libs/video/manager/vidslidesettings.cpp
M  +1    -1    core/libs/video/manager/vidslidesettings.h

https://invent.kde.org/graphics/digikam/-/commit/002af12bc3aad5cdfff34f2e6dd4eed71310df66
Comment 15 caulier.gilles 2024-01-04 14:11:00 UTC
Git commit 58ece9388d0a3ef6ba90db979902ba7cbf2a9b84 by Gilles Caulier.
Committed on 04/01/2024 at 15:07.
Pushed by cgilles into branch 'master'.

new video slideshow task to encode frame as temporary JPEG files.
This JPEG stream will be pipe to the FFmpeg cli tool to encode as video.

M  +2    -3    core/libs/video/CMakeLists.txt
D  +0    -452  core/libs/video/manager/qtav/vidslidetask.cpp
A  +184  -0    core/libs/video/manager/vidslidetask.cpp     [License: GPL(v2.0+)]
R  +0    -0    core/libs/video/manager/vidslidetask.h [from: core/libs/video/manager/qtav/vidslidetask.h - 100% similarity]

https://invent.kde.org/graphics/digikam/-/commit/58ece9388d0a3ef6ba90db979902ba7cbf2a9b84
Comment 16 caulier.gilles 2024-01-04 14:18:22 UTC
Git commit ae723b3daa572b4fa26fbe820b4f9b3131979b6c by Gilles Caulier.
Committed on 04/01/2024 at 15:16.
Pushed by cgilles into branch 'master'.

start the encoding thread to generate temprary JPEG frame before encode video with FFMPEG
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +13   -9    core/dplugins/generic/tools/videoslideshow/wizard/vidslidefinalpage.cpp

https://invent.kde.org/graphics/digikam/-/commit/ae723b3daa572b4fa26fbe820b4f9b3131979b6c
Comment 17 caulier.gilles 2024-01-04 15:26:13 UTC
Git commit 7c0981484d4371bd1e5ff7db5da6785f9393f65b by Gilles Caulier.
Committed on 04/01/2024 at 16:25.
Pushed by cgilles into branch 'master'.

Create a temporary directory to host JPEG frames
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +1    -1    core/dplugins/generic/tools/CMakeLists.txt
M  +23   -8    core/libs/video/manager/vidslidetask.cpp

https://invent.kde.org/graphics/digikam/-/commit/7c0981484d4371bd1e5ff7db5da6785f9393f65b
Comment 18 caulier.gilles 2024-01-05 13:50:48 UTC
Git commit dd325854d3021dacb139d387bd37544bf89d3df8 by Gilles Caulier.
Committed on 05/01/2024 at 14:45.
Pushed by cgilles into branch 'master'.

First version for testing of the new video slideshow tool based on FFmpeg CLI tool to encode images as video.

A small demo is available here: https://drive.google.com/file/d/1posBo2rqkatU7N6qkbZWGBbOELsUGdgg/view?usp=sharing

It still plenty of features to restore, as to adjust the codecs, the size, the frame rate, the format. The audio track must be supported too.
Currently the temporary directory containing frames to encode is not yet deleted at end, it's for debuging.
It's planed to remove temp dir when all features will be completed.
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +1    -3    core/dplugins/generic/tools/CMakeLists.txt
M  +1    -1    core/dplugins/generic/tools/videoslideshow/wizard/vidslidefinalpage.cpp
M  +6    -6    core/libs/video/manager/ffmpeglauncher.cpp
M  +17   -4    core/libs/video/manager/vidslidethread.cpp
M  +15   -1    core/libs/video/manager/vidslidethread.h

https://invent.kde.org/graphics/digikam/-/commit/dd325854d3021dacb139d387bd37544bf89d3df8
Comment 19 caulier.gilles 2024-01-07 11:21:57 UTC
Git commit 90b508130131d470ef6051e0296d24f058bd85b1 by Gilles Caulier.
Committed on 07/01/2024 at 12:20.
Pushed by cgilles into branch 'master'.

run the ffmpeg process in a separate thread to not block the GUI while encoding frames.
Related: bug 472503, bug 427221, bug 139781, bug 462810, bug 448681

M  +6    -1    core/libs/threads/processlauncher.cpp
M  +6    -2    core/libs/threads/processlauncher.h

https://invent.kde.org/graphics/digikam/-/commit/90b508130131d470ef6051e0296d24f058bd85b1
Comment 20 caulier.gilles 2024-01-07 13:03:57 UTC
VideoSlideShow is now ported to ffmpeg CLI tool instead QtAv API. Problem solved.

Gilles Caulier