"Convert to Edit Friendly" repeating endless

What is your operating system?
Windows 11 Pro / 23H2

What is your Shotcut version (see Help > About Shotcut)?

Shotcut version 24.10.29

Can you repeat the problem? If so, what are the steps?

The problem is stable and repeated several times to be sure.

  1. Yesterday I’ve done one project, the first in SC, and it was just fine. Original files was .mov from iPhone, they were converted by SC, about 15 files and all fine.
  2. Creating a project, tried to play with folders but the same problem. Now the foldr structure is: /myfiles/ - here original files and /project/ folder are. /myfiles/project/ - here .mlt and it is the path to converted clips. Tried to use /myfiles/ as original + .mlt and /myfiles/converted/ as a path for conversions, the same thing happend.
  3. Adding .mp4 file taken from Huawei smart, tried both ways - drag-n-drop and “open”. A dialogue offering conversion popups, confirming with medium settings.
  4. Ten endless sequence of conversions starts. So I’ve got a set of files:
    myfile - converted.mov
    myfile - converted - converted.mov
    myfile - converted.mp4
    myfile - converted - converted.mp4
    Where myfile - is the same and the name of original file.

It was the attempt when I’ve choose “better” settings. Then I’ve tried to do nothing but agree with conversion with “good” choice and the set of files are
myfile - converted[repeated as many as I’ve pressed OK].mp4
I’ve tried 5 and got 5 files. The last was
VID_20190726_104732 - Converted - Converted - Converted - Converted - Converted.mp4
and here is the real filename, may be the proble is in the sequence of characters in it.
UPD: tried to reneme → 1.mp4 the same ting.
UPD: tried to use simple folder structure to avoid cyrillic characters in the path → d:\file\ for source and d:\file\test\ as a project, no results
UPD: tried to separate source and project as \file\ as a source and \file2\ as a project, no result.
UPD: ENDLESS NOT APPEAR if to choose “best” as a destination (.mkv generated) in this case only the one converted file created. But it is not even the glitch because .mkv turns to 0.5 Gb from the .018 Gb .mp4 source…

UPD: the reason of bug is the source file(s) itselves(1). Because if to use all the same as described at the beggining, but open the file from another set (.mov created by iPhone) everything fine.

(1) not exactly… The reason of endless sequence is that converted file still has variable framerate (converted from that .mp4) while converted from .mov is the constant framerate. If to open “advanced” settings and point “override framerate” the final converted clip turns to CFR.

Problem file data:

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 10 s 875 ms
Bit rate : 13.8 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 27.587 FPS
Minimum frame rate : 7.503 FPS
Maximum frame rate : 27.907 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.241
Stream size : 17.9 MiB (95%)
Title : VideoHandle
Language : English
Encoded date : UTC 2019-07-26 07:47:32
Tagged date : UTC 2019-07-26 07:47:32
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 10875
Codec configuration box : avcC

UPD: checked converted file… The MediaInfo shows that it is CONSTANT (but really strange) framerate:

Video
ID : 1
Format : VC-3
Commercial name : DNxHR HQ
Format version : Version 3
Format profile : RI@HQ
Codec ID : AVdh
Codec ID/Info : Avid DNxHR
Duration : 10 s 887 ms
Duration_FirstFrame : 108 ms
Bit rate mode : Constant
Bit rate : 204 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 27.833 FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 3.540
Stream size : 262 MiB (99%)
Title : VideoHandle
Language : English
Encoded date : UTC 2019-07-26 07:47:32
Tagged date : UTC 2019-07-26 07:47:32
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

While SC tells that it still VARIABLE (but the same as MediaInfo) framerate:
image

At some point you should think smarter than the software (“I already converted it.”) and click Cancel on the convert dialog. Even though I may not have a file to reproduce the problem, I will add a check to skip the conversion if already converted.

I reproduced the problem. In this version, we upgrade FFmpeg from version 7.0 to 7.1. We use ffmpeg to do the conversion. It changed behavior and now for the “good” and “better” options it no longer converts variable to constant frame rate by default (using MediaInfo’s evaluation of variable frame rate).

Complete name                            : D:\testing\Desktop 11.06.2017 - 13.12.59.01 - Converted.mp4
...
Frame rate mode                          : Variable
Frame rate                               : 58.651 FPS
Minimum frame rate                       : 29.500 FPS
Maximum frame rate                       : 59.000 FPS
Complete name                            : D:\testing\Desktop 11.06.2017 - 13.12.59.01 - Converted.mov
...
Frame rate mode                          : Variable
Frame rate                               : 58.651 FPS
Minimum frame rate                       : 29.500 FPS
Maximum frame rate                       : 59.000 FPS
Original frame rate                      : 59.000 FPS

Compare with Shotcut v24.09:

Frame rate mode                          : Constant
Frame rate                               : 59.000 FPS

(same for both mp4 and mov)

The workaround is what you suggested: in the convert dialog click Advanced > Override frame rate.
IMPORTANT: the default override frame rate is based on the Video Mode and not the suggested frame rate for the file (unless the Video Mode is automatic and a project is not yet started).

I’m glad to see that I’ve found a real bug, not my stupidness… Finally I’ve use that files without converions but not due to this reason… After conversions the color range became to worse. Also that option “override framerate” caued cilp to be jumpy that is strange, because during editing it shoulbe aslo some conversion but final video (using ORIGINAL mp4) looks smooth…

if you need file, I coud send it to you, just removed all nudes from it :slight_smile:

1 Like

This is fixed for the next version 24.11