Bug 462464 - Cannot play video files: "An error has occurred with the media player..."
Summary: Cannot play video files: "An error has occurred with the media player..."
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-MainView (other bugs)
Version First Reported In: 8.0.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-30 21:11 UTC by MarcP
Modified: 2022-11-30 21:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarcP 2022-11-30 21:11:12 UTC
SUMMARY
I am not sure if it's an issue that has already been reported, but I can't seem to play video files in the 8.0.0 preview appimage (videos that play fine in 7.9). The view area is grey and shows the message "An error has occurred with the media player...". However, I can hear the sound of the video. I have tried both with .mov files in the h264 codec, and .mp4 files with the hevc codec.

In the console, this is what I see:

QtAV::AVDecoder::setCodecContext: Can not copy codec properties when it's open
QtAV::AVDemuxer::setStreamIndex: invalid index 0 ( valid is 0 ~ 0 ) for stream type 2
QtAV::audioFormatToAL: OpenAL audioFormatToAL error (null context): 0xa004
QtAV::audioFormatToAL: AudioOutputOpenAL Error: No OpenAL format available for audio data format flt stereo.
QtAV::audioFormatToAL: OpenAL audioFormatToAL error (null context): 0xa004
QtAV::audioFormatToAL: AudioOutputOpenAL Error: No OpenAL format available for audio data format s32 stereo.
QtAV::audioFormatToAL: OpenAL audioFormatToAL error (null context): 0xa004
QtAV::AudioResamplerFF::prepare: src audio parameters 'channel layout(or channels),sample rate and sample format must be set before initialize resampler
QtAV::AVPlayerCore::Private::setupVideoThread: "Video codec not found"
QtAV::AudioDecoderFFmpeg::decode: [AudioDecoder] got_frame_ptr=false. decoded: 6, un: 0 Error number 6 occurred
QtAV::AudioDecoderFFmpeg::decode: [AudioDecoder] got_frame_ptr=false. decoded: 369, un: 0 Error number 369 occurred


STEPS TO REPRODUCE
1. In digikam 8.0.0 appimage, double click on any video file.

OBSERVED RESULT
Only audio is heard, no image.

EXPECTED RESULT
Videos plays.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04 LTS with digiKam-8.0.0-git-20221124T104306-x86-64.appimage
Comment 1 Maik Qualmann 2022-11-30 21:16:58 UTC
There is now a section for video in the digiKam setup. Select FFmpeg as video decoder.

Maik
Comment 2 MarcP 2022-11-30 21:24:28 UTC
Ok, done, it works now. Thanks!
Comment 3 Maik Qualmann 2022-11-30 21:37:50 UTC
Git commit 6733dd3ec0d7a9b75261a7a7b618927b8afce135 by Maik Qualmann.
Committed on 30/11/2022 at 21:37.
Pushed by mqualmann into branch 'master'.

add FFmpeg as default for a new config
FIXED-IN: 8.0.0

M  +1    -1    NEWS
M  +2    -1    core/libs/video/qtav/config/AVPlayerConfigMngr.cpp

https://invent.kde.org/graphics/digikam/commit/6733dd3ec0d7a9b75261a7a7b618927b8afce135