Bug 473207 - render error mkv. mp4 ,etc.
Summary: render error mkv. mp4 ,etc.
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-09 12:37 UTC by ahmett
Modified: 2023-10-08 03:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
no render (1.66 MB, video/mp4)
2023-08-09 12:40 UTC, ahmett
Details
log file (588 bytes, text/plain)
2023-08-30 13:32 UTC, ahmett
Details
same path (79.35 KB, image/png)
2023-08-31 15:44 UTC, ahmett
Details
no ffmpeg in bin folder (289.45 KB, image/jpeg)
2023-09-04 17:08 UTC, ahmett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ahmett 2023-08-09 12:37:36 UTC
night version (87dcc40) of the krita can be rendered animation. but it doesn't save as video. There is no problem with image sequence. mkv. mp4. like other versions a same. It appears as 0 bytes.
Comment 1 ahmett 2023-08-09 12:40:40 UTC
Created attachment 160862 [details]
no render
Comment 2 vanyossi 2023-08-10 01:58:58 UTC
Please Attach the contents of adasdad.mkv.log, the file is in the same directory the output file adasdad.mkv is.

Also try the same operation with the provided ffmpeg.exe inside "krita-nightly-x64.../bin". I tried the same operation as shown with the latest nightly (98405f8051) and could not reproduce the issue with the included ffmpeg.exe
Comment 3 Bug Janitor Service 2023-08-25 03:45:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Dmitry Kazakov 2023-08-30 13:19:23 UTC
Hi, ahmett!

Could you please provide the log Ivan asked for? Otherwise we cannot keep this bug in "REPORTED" status, since we cannot do anything about that.
Comment 5 ahmett 2023-08-30 13:32:41 UTC
Created attachment 161281 [details]
log file

i try new one and same result
Comment 6 Bug Janitor Service 2023-08-31 03:45:24 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 7 Dmitry Kazakov 2023-08-31 12:47:26 UTC
Git commit 7b1e1cc5bdd32fbca7fb657726e36912c142e488 by Dmitry Kazakov.
Committed on 31/08/2023 at 14:47.
Pushed by dkazakov into branch 'krita/5.2'.

Make sure that Krita correctly specifies video codec for libopenh264

It seems like in new versions of ffmpeg we should explicitly specify
that the selected codec is to be applied to video stream only

M  +2    -2    libs/ui/animation/VideoExportOptionsDialog.cpp

https://invent.kde.org/graphics/krita/-/commit/7b1e1cc5bdd32fbca7fb657726e36912c142e488
Comment 8 Dmitry Kazakov 2023-08-31 12:48:11 UTC
Git commit 401d11726e8db96300d00493dd856b027168af23 by Dmitry Kazakov.
Committed on 31/08/2023 at 14:48.
Pushed by dkazakov into branch 'master'.

Make sure that Krita correctly specifies video codec for libopenh264

It seems like in new versions of ffmpeg we should explicitly specify
that the selected codec is to be applied to video stream only

M  +2    -2    libs/ui/animation/VideoExportOptionsDialog.cpp

https://invent.kde.org/graphics/krita/-/commit/401d11726e8db96300d00493dd856b027168af23
Comment 9 Dmitry Kazakov 2023-08-31 12:50:08 UTC
Hi, Ahmett!

Thank you for your log! I think I have fixed the issue now. Could you please test this build when it is finished?

https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/1964/

It the problem persists could you try two following steps:

1) Make sure that you don't have any "Custom ffmpeg arguments" line set in the encoder options
2) Try to use ffmpeg.exe that is embedded into Krita package itself (it supports libopenh264 codec only)
Comment 10 ahmett 2023-08-31 15:44:34 UTC
Created attachment 161310 [details]
same path

Hello, I tried the current version. Now, I still see the old path in the render settings, but when I want to re-introduce it, I cannot find the one embedded in the krita. Where can I find the embedded extension you mentioned or is it possible for you to lock these settings and turn off permission to change?
Comment 11 Dmitry Kazakov 2023-09-04 12:59:18 UTC
Hi, Ahmett!

Did you try these two points?

> 1) Make sure that you don't have any "Custom ffmpeg arguments" line set in the encoder options
> 2) Try to use ffmpeg.exe that is embedded into Krita package itself (it supports libopenh264 codec only)

The path to ffmpeg shouldn't have changed with the update, it should change the same. The "Custom ffmpeg arguments" are placed in the "dots" button near the container type selection.

The embedded ffmpeg.exe is places in the same folder, where krita.exe is placed, that is `krita-nightly-x64-5.2.0-beta2-7b1e1cc5bd\bin\ffmpeg.exe`
Comment 12 ahmett 2023-09-04 17:08:28 UTC
Created attachment 161403 [details]
no ffmpeg in bin folder

hi. There is no ffmpeg.exe in the bin folder. There are only those that appear in the atteched.
Comment 13 Bug Janitor Service 2023-09-05 03:45:13 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 14 Dmitry Kazakov 2023-09-08 15:19:27 UTC
Hi, Ahmett!

Could you recheck if you still have "Custom ffmpeg arguments" option set? I have a feeling that you have it set from some older version and you need to reset it.

If you don't have it set, could you please attach the updated log file. I have changed the code and now there should be no `-c libopenh264` line. It should be `-c:v libopenh264` instead.
Comment 15 Bug Janitor Service 2023-09-23 03:46:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 16 Bug Janitor Service 2023-10-08 03:46:09 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!