Bug 462258

Summary: Cannot preview and play .avi video
Product: [Applications] digikam Reporter: wlpang <806197556>
Component: Preview-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 8.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 8.0.0
Sentry Crash Report:
Attachments: screenshot

Description wlpang 2022-11-26 08:24:13 UTC
Created attachment 154039 [details]
screenshot

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. avi video link: https://www.aliyundrive.com/s/6VG57s1P6am password: j5m5
2. screenshot in the attachment
3. 

OBSERVED RESULT


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 2022-11-26 08:52:40 UTC
I don't see any possibility to download the video without login on the Chinese site.
However, I assume that you have not yet selected a video decoder in the digiKam setup under the new video settings. Activate FFmpeg in the setup.

Maik
Comment 2 wlpang 2022-11-26 09:12:27 UTC
(In reply to Maik Qualmann from comment #1)
> I don't see any possibility to download the video without login on the
> Chinese site.
> However, I assume that you have not yet selected a video decoder in the
> digiKam setup under the new video settings. Activate FFmpeg in the setup.
> 
> Maik

In digiKam 8.0, I active FFmpeg in the setup and restart the application, however it still cannot preview and play my avi video, can you give me a email address and I send the avi video to you, it is too large to add attachment here.
Comment 3 Maik Qualmann 2022-11-26 09:53:49 UTC
If you're logged into the bugtracker, you can see my email address.

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

Maik
Comment 4 wlpang 2022-11-26 10:06:52 UTC
(In reply to Maik Qualmann from comment #3)
> If you're logged into the bugtracker, you can see my email address.
> 
> https://bugs.kde.org/show_bug.cgi?id=462258
> 
> Maik

I have sent you a mail with my avi video named 'SY_00006.AVI' at 2022-11-26 pm5:08, please find, Thanks
Comment 5 wlpang 2022-11-26 10:08:17 UTC
(In reply to wlpang from comment #4)
> (In reply to Maik Qualmann from comment #3)
> > If you're logged into the bugtracker, you can see my email address.
> > 
> > https://bugs.kde.org/show_bug.cgi?id=462258
> > 
> > Maik
> 
> I have sent you a mail with my avi video named 'SY_00006.AVI' at 2022-11-26
> pm5:08, please find, Thanks

And my email address is(In reply to wlpang from comment #4)
> (In reply to Maik Qualmann from comment #3)
> > If you're logged into the bugtracker, you can see my email address.
> > 
> > https://bugs.kde.org/show_bug.cgi?id=462258
> > 
> > Maik
> 
> I have sent you a mail with my avi video named 'SY_00006.AVI' at 2022-11-26
> pm5:08, please find, Thanks

And you can see my email address in bugtracker.
Comment 6 caulier.gilles 2022-11-26 10:11:03 UTC
Hi,

AVI is a container where different kind of encoding can be used. Please, use ffmpeg or another tool to identify how the avi chanel are store in container. ffmpeg -i foo.avi must be enough.

Gilles Caulier
Comment 7 wlpang 2022-11-26 10:22:05 UTC
(In reply to caulier.gilles from comment #6)
> Hi,
> 
> AVI is a container where different kind of encoding can be used. Please, use
> ffmpeg or another tool to identify how the avi chanel are store in
> container. ffmpeg -i foo.avi must be enough.
> 
> Gilles Caulier

I used FormatFactory get my video info as below:
General
Complete name                            : D:\Download\G\SY_00006.AVI
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 35.5 MiB
Duration                                 : 20 s 433 ms
Overall bit rate                         : 14.6 Mb/s

Video
ID                                       : 0
Format                                   : JPEG
Codec ID                                 : MJPG
Duration                                 : 20 s 433 ms
Bit rate                                 : 14.4 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 14.829 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.468
Stream size                              : 35.0 MiB (99%)
Comment 8 Maik Qualmann 2022-11-26 12:05:27 UTC
The video is recognized with video codec "None" due to errors. Some time ago we disabled the playback of videos with unknown video codecs. The video would generate some FFmpeg errors at the beginning, but it would still play. I think I'll add an option to the video settings that will still try to play video with unknown video codec detection.

digikam.qtav.warn: [FFmpeg:avi] Something went wrong during header parsing, tag [13]c[239][205] has size 2622732586, I will ignore it and try to continue anyway.

digikam.qtav.warn: [FFmpeg:avi] Could not find codec parameters for stream 1 (Video: none (JUNK / 0x4B4E554A), none, 11025x22050): unknown codec

Maik
Comment 9 wlpang 2022-11-26 12:49:34 UTC
(In reply to Maik Qualmann from comment #8)
> The video is recognized with video codec "None" due to errors. Some time ago
> we disabled the playback of videos with unknown video codecs. The video
> would generate some FFmpeg errors at the beginning, but it would still play.
> I think I'll add an option to the video settings that will still try to play
> video with unknown video codec detection.
> 
> digikam.qtav.warn: [FFmpeg:avi] Something went wrong during header parsing,
> tag [13]c[239][205] has size 2622732586, I will ignore it and try to
> continue anyway.
> 
> digikam.qtav.warn: [FFmpeg:avi] Could not find codec parameters for stream 1
> (Video: none (JUNK / 0x4B4E554A), none, 11025x22050): unknown codec
> 
> Maik

Thanks a lot.
And can add (In reply to Maik Qualmann from comment #8)
> The video is recognized with video codec "None" due to errors. Some time ago
> we disabled the playback of videos with unknown video codecs. The video
> would generate some FFmpeg errors at the beginning, but it would still play.
> I think I'll add an option to the video settings that will still try to play
> video with unknown video codec detection.
> 
> digikam.qtav.warn: [FFmpeg:avi] Something went wrong during header parsing,
> tag [13]c[239][205] has size 2622732586, I will ignore it and try to
> continue anyway.
> 
> digikam.qtav.warn: [FFmpeg:avi] Could not find codec parameters for stream 1
> (Video: none (JUNK / 0x4B4E554A), none, 11025x22050): unknown codec
> 
> Maik

Oh, I see.
Can you add that option in recent weekly version,
 I am managing  about one hundred thousand videos and pictures,
 i have to watch every video for tagging, 
thanks a lot.
Comment 10 Maik Qualmann 2022-11-26 19:02:04 UTC
Git commit 6ad85a52082b75d600e8f991a22154c06d83a1c4 by Maik Qualmann.
Committed on 26/11/2022 at 18:59.
Pushed by mqualmann into branch 'master'.

remove check for missing video codec in the media player
A test with the file that caused the crash in 2018 and
made this check necessary shows that the current
FFmpeg version no longer has a problem with it.
FIXED-IN: 8.0.0

M  +1    -1    NEWS
M  +5    -19   core/libs/video/player/mediaplayerview.cpp

https://invent.kde.org/graphics/digikam/commit/6ad85a52082b75d600e8f991a22154c06d83a1c4
Comment 11 Maik Qualmann 2022-11-26 19:04:58 UTC
Git commit 1a3e0fdfd0848567719e2bfe84121c6e8b685de6 by Maik Qualmann.
Committed on 26/11/2022 at 19:04.
Pushed by mqualmann into branch 'master'.

remove check for missing video codec in the slideshow player

M  +3    -17   core/libs/video/player/slidevideo.cpp

https://invent.kde.org/graphics/digikam/commit/1a3e0fdfd0848567719e2bfe84121c6e8b685de6
Comment 12 wlpang 2022-11-27 01:22:36 UTC
(In reply to Maik Qualmann from comment #11)
> Git commit 1a3e0fdfd0848567719e2bfe84121c6e8b685de6 by Maik Qualmann.
> Committed on 26/11/2022 at 19:04.
> Pushed by mqualmann into branch 'master'.
> 
> remove check for missing video codec in the slideshow player
> 
> M  +3    -17   core/libs/video/player/slidevideo.cpp
> 
> https://invent.kde.org/graphics/digikam/commit/
> 1a3e0fdfd0848567719e2bfe84121c6e8b685de6


Do I need to compile it by myself?
I am not a developer......
Comment 13 caulier.gilles 2022-11-27 08:00:47 UTC
I will rebuild the bundles this morning with last changes from MAik. Please wait...

Gilles Caulier
Comment 14 caulier.gilles 2022-11-27 12:24:28 UTC
New Windows installer is available at usual place :

https://files.kde.org/digikam/unstable/

Gilles Caulier
Comment 15 wlpang 2022-11-27 12:44:28 UTC
(In reply to caulier.gilles from comment #14)
> New Windows installer is available at usual place :
> 
> https://files.kde.org/digikam/unstable/
> 
> Gilles Caulier

Thanks very much in deed!
Comment 16 wlpang 2022-11-30 12:37:52 UTC
(In reply to wlpang from comment #15)
> (In reply to caulier.gilles from comment #14)
> > New Windows installer is available at usual place :
> > 
> > https://files.kde.org/digikam/unstable/
> > 
> > Gilles Caulier
> 
> Thanks very much in deed!

Hi, Whether there is a function of exporting .csv data?