https://bugs.kde.org/show_bug.cgi?id=468103
Bug ID: 468103 Summary: Transcoding to editor-friendly format does not transcode to editor-friendly format Classification: Applications Product: kdenlive Version: 22.12.3 Platform: Neon OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: User Interface Assignee: j...@kdenlive.org Reporter: mashkal2...@gmail.com Target Milestone: --- SUMMARY *** the "The following clips are not usable for editing" warning appears in the "transcode to editor-friendly format" dialog even when the clip is already in an edit-friendly format. *** STEPS TO REPRODUCE 1. Import a clip with the following codec: $ mediainfo 2023-04-01\ 01-00-05.mkv General Unique ID : 112631966528953939127287428105906066476 (0x54BC20B12A683ACA87004B0CDF7A942C) Complete name : 2023-04-01 01-00-05.mkv Format : Matroska Format version : Version 4 File size : 456 MiB Duration : 13 min 46 s Overall bit rate : 4 623 kb/s Writing application : Lavf58.76.100 Writing library : Lavf58.76.100 ErrorDetectionType : Per level 1 Video ID : 1 Format : AV1 Format/Info : AOMedia Video 1 Format profile : Main@L4.1 Codec ID : V_AV1 Duration : 13 min 46 s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Default : Yes Forced : No Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : A_AAC-2 Duration : 13 min 46 s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Title : Track1 Default : Yes Forced : No 2. Right click the clip, and select "Transcode to edit-friendly format". Observe that the clip is not in an editor-friendly format: "The following clips are not usable for editing" 3. Click the button that transcodes to an editor-friendly format. (x264 iframes only, lossy). This produces the following file: mediainfo 2023-04-01\ 01-00-05-60fps.mp4 General Complete name : 2023-04-01 01-00-05-60fps.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 3.36 GiB Duration : 13 min 46 s Overall bit rate mode : Variable Overall bit rate : 34.9 Mb/s Writing application : Lavf58.76.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High Intra@L4.2 Format settings : CABAC Format settings, CABAC : Yes Format settings, GOP : N=1 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 13 min 46 s Bit rate mode : Variable Bit rate : 34.6 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.278 Stream size : 3.33 GiB (99%) Writing library : x264 core 163 r3060 5db6aa6 Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=30 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=1 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 13 min 46 s Source duration : 13 min 46 s Bit rate mode : Constant Bit rate : 265 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 26.0 MiB (1%) Source stream size : 26.0 MiB (1%) Title : Track1 Default : Yes Alternate group : 1 mdhd_Duration : 826880 OBSERVED RESULT The resulting file shows the warning "The following clips are not usable for editing" when clicking the "transcode to edit-friendly format" button again. EXPECTED RESULT The resulting file does not show the "The following clips are not usable for editing" warning as the file is already in an edit-friendly format. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Not sure if this is a UI bug, or if the video is genuinely in a non-edit friendly format. After replacing the file the first time, timeline scrubbing performance improved drastically. Does the UI assume that the 'transcode to edit-friendly format' dialog only appears when the clip is in a non-edit-friendly format and forgets that it can be triggered manually? transcoding to an edit-friendly format a second time produced this file: mediainfo 2023-04-01\ 01-00-05-60fps-60fps.mp4 General Complete name : 2023-04-01 01-00-05-60fps-60fps.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 3.33 GiB Duration : 13 min 46 s Overall bit rate mode : Variable Overall bit rate : 34.6 Mb/s Writing application : Lavf58.76.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High Intra@L4.2 Format settings : CABAC Format settings, CABAC : Yes Format settings, GOP : N=1 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 13 min 46 s Bit rate mode : Variable Bit rate : 34.3 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.276 Stream size : 3.30 GiB (99%) Writing library : x264 core 163 r3060 5db6aa6 Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=30 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=1 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 13 min 46 s Source duration : 13 min 46 s Bit rate mode : Constant Bit rate : 265 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 25.8 MiB (1%) Source stream size : 25.8 MiB (1%) Default : Yes Alternate group : 1 mdhd_Duration : 826880 Diff: diff <(mediainfo 2023-04-01\ 01-00-05-60fps-60fps.mp4) <(mediainfo 2023-04-01\ 01-00-05-60fps.mp4) 2c2 < Complete name : 2023-04-01 01-00-05-60fps-60fps.mp4 --- > Complete name : 2023-04-01 01-00-05-60fps.mp4 6c6 < File size : 3.33 GiB --- > File size : 3.36 GiB 9c9 < Overall bit rate : 34.6 Mb/s --- > Overall bit rate : 34.9 Mb/s 24c24 < Bit rate : 34.3 Mb/s --- > Bit rate : 34.6 Mb/s 34,35c34,35 < Bits/(Pixel*Frame) : 0.276 < Stream size : 3.30 GiB (99%) --- > Bits/(Pixel*Frame) : 0.278 > Stream size : 3.33 GiB (99%) 58,59c58,60 < Stream size : 25.8 MiB (1%) < Source stream size : 25.8 MiB (1%) --- > Stream size : 26.0 MiB (1%) > Source stream size : 26.0 MiB (1%) > Title : Track1 -- You are receiving this mail because: You are watching all bug changes.