<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>474803</bug_id>
          
          <creation_ts>2023-09-23 11:01:44 +0000</creation_ts>
          <short_desc>[recorder plugin] FFmpeg render presets not working for webm and mp4</short_desc>
          <delta_ts>2024-11-08 19:41:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Dockers/Recorder</component>
          <version>nightly build (please specify the git hash!)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Raghavendra kamath">raghu</reporter>
          <assigned_to name="Dmitry Kazakov">dimula73</assigned_to>
          <cc>dimula73</cc>
    
    <cc>halla</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2254913</commentid>
    <comment_count>0</comment_count>
    <who name="Raghavendra kamath">raghu</who>
    <bug_when>2023-09-23 11:01:44 +0000</bug_when>
    <thetext>I am using latest nightly build and I have also tested a build given by dmitry for ffmpeg crash.
On both the default presets for mp4 an webm fail to render. The mp4 preset is using libx264 changing it to -c:v libopenh264 works and the ffmpeg renders the mp4 files correctly.

STEPS TO REPRODUCE
1. Open latest nightly and draw something
2. be sure to record the drawing
3. Export the timelapse with any of the mp4 or webm presets

OBSERVED RESULT
ffmpeg gives error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255357</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-09-26 09:09:26 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1948</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255389</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-26 12:43:28 +0000</bug_when>
    <thetext>Update about WebM support in our ffmpeg binary:

Our ffmpeg binary supports only hardware encoding of vp8 using `vp8_v4l2m2m` encoder, it requires the presence of hardware and the specific driver. To support software encoding, we need to build ffmpeg with libvpx support, which we don&apos;t do (I don&apos;t know why, perhaps due to some license issues)

Here is the link to the problem like ours:
https://stackoverflow.com/questions/55056694/ffmpeg-codec-conversion-cant-configure-encoder</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255393</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-26 12:58:12 +0000</bug_when>
    <thetext>Git commit 6f2ca3bad196b34e1c5ff9482c24305aebe473ff by Dmitry Kazakov.
Committed on 26/09/2023 at 11:08.
Pushed by dkazakov into branch &apos;master&apos;.

Add openh264 presets to the recorder plugin

Internal ffmpeg binary supports only libopenh264 encoder, while
external ffmpeg binary supports only libx264 encoder :) We need
to add presets for both of them.

M  +55   -0    plugins/dockers/recorder/recorder_export_config.cpp

https://invent.kde.org/graphics/krita/-/commit/6f2ca3bad196b34e1c5ff9482c24305aebe473ff</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255396</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-26 13:10:34 +0000</bug_when>
    <thetext>Git commit 1feefa4b4cf3f24e78a705ff429f6a7b31cc4329 by Dmitry Kazakov.
Committed on 26/09/2023 at 15:10.
Pushed by dkazakov into branch &apos;krita/5.2&apos;.

Add openh264 presets to the recorder plugin

Internal ffmpeg binary supports only libopenh264 encoder, while
external ffmpeg binary supports only libx264 encoder :) We need
to add presets for both of them.


(cherry picked from commit 6f2ca3bad196b34e1c5ff9482c24305aebe473ff)

M  +55   -0    plugins/dockers/recorder/recorder_export_config.cpp

https://invent.kde.org/graphics/krita/-/commit/1feefa4b4cf3f24e78a705ff429f6a7b31cc4329</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255397</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-26 13:11:48 +0000</bug_when>
    <thetext>MP4 part of the bug is fixed in master and krita/5.2. WebM part will not be fixed in 5.2.0, because our ffmpeg is built without software encoding support for vp8, only hardware one using GPU.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255398</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2023-09-26 13:12:02 +0000</bug_when>
    <thetext>Removing release-blocker tag</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372819</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2024-11-08 19:41:27 +0000</bug_when>
    <thetext>The bug should now be fixed in https://invent.kde.org/dkazakov/krita-deps-management/-/commit/bfb2859dd6c170376e6ebc1da8ec58487231c980</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>