Hello
I have an important problem because I have to create again lot of my videos.
When I insert a video into shotcut, and read it, it sometimes lags,but I know it may be the result of a slow processor. So I decided to not take care about that.
But in fact for me there is another deeper problem.
When, in shotcut, I read a video, it skip some frames of the readen video!!
Iām sure of that because when I move the cursor/selector on some part of the video frame after frame, the same frame is displayed whereas it shouldnāt.
So because I already created a video which I inserted in another video both in shotcut. Now Iām stucked
Do you know where my problem come from?
I think it may come from the version which may be too old because of bad ubuntu updates ( I installed shotcut from a Ubuntu package, not the first time a got a problem with Ubuntu packages).
Sorry if I donāt talk perfectly english, Iām french.
Thanks
What is your operating system?
Linux Ubuntu 20.4
What is your Shotcut version (see Help > About Shotcut)? Is it 32-bit?
20.10.31, certainly 64 version
Can you repeat the problem? If so, what are the steps?
To repeat that I only have to insert some videos tanken from my mobile phone or from Shotcut, insert it into a shotcut video. I 'll skip some frames, not only in my view but also in the created video.
This is simply the way preview is due to image processing. It drops video frames to try to keep real time and the audio more continuous. You need to export it if you want to see it play with full frame rate. You can use the following to improve speed of preview:
If you still see the problem when you export, then Shotcut has a problem reading your video. It does not support variable frame rate video, and most mobile phones capture with variable frame rate. This is not something that will be accepted as a bug. Video editors cannot simply work with every possible file even though Shotcut tries very hard to. In that case, you need to use Properties > Convert to convert the video into a format that is edit-friendly.
Thanks, indeed after converting my sequence it works!
Yes that is strange that shotcut canāt read variable frame rate video. That should be difficult to program I guess, that would be good if this function works, or at least send a message is displayed to tell it may loose frames when inserting such a video, and that you should convert video not to loose frames. Itās just an idea.
There is code to try to detect variable frame rate, but it is a guess/heuristic. When it does, it display a warning dialog with conversion options, but there is an option on this dialog to never show it again. It is possible you chose to ignore that a long time ago. Also, Properties displays āvariableā next to the frame rate when it detects that. I am happy manual conversion worked for you.
Yes indeed, I certainly read the dialog box without really taking care. I frequently close dialog box without taking care, sometime unfortunatly, it s important
I hope I wonāt disturb you, but I still have few problems about skipped frames in exportation.
Itās maybe not a good way to do, but I edited some video from my smart phone in shotcut, exported them, and then edited the output again with shotcut.
I did it with avi format with H264 codec, and I have less problem but I still have some frames loosed.
Even when I convert the original file
Can you suggest me an output format which could be safe to be put again as an input in shotcut?
Thanks
I also noticed that the exported fps rate is slightly different from the input file. Does it matter?
All output from Shotcut is constant frame rate. So any format works. If the goal is to reduce generational loss (a different issue than frame skipping), then good options are H.264 at 68% quality or use DNxHR HQ format.
Yes, that matters a lot and can account for skipped/lost frames due to frame rate conversion.
If the phone FPS is 30, it actually means 29.97. If it is 60, it actually means 59.94. If the phone FPS is some other value, then itās a variable frame rate video that will need Edit Friendly conversion. The conversion does the best it can, but there are situations where a frame may have to be duplicated or dropped in order to fit the new frame rate. Thatās just the nature of VFR.
Thanks for your answer. It helped me a lot to know that all output format from shotcut are at constant frame rate.
I was long, but I think I have found the problem responsible for my bug, it may interest you because I believe itās a bug of shotcut:
Apparently only when I output video from shotcut in avi format in h264 codec (with nvidia encoder or with libx264, and both in linux and windows), and this video is inserted in another shotcut file, the file is badly read in the second shotcut file, so both the display in shotcut and the output of this second shotcut file skip frames frequently.
It skipped something like 4-12 frames about every 10 seconds.
When I changed the export format of the first video to mp4 format, the problem was resolved (apparently, iāll check the whole video tomorrow).
If you think itās a bug, and if you want to understand and remove this bug, I can send you part of files which have the problem?
If it is a bug, it needs to be reported to the FFmpeg team. Thatās the component that does the parsing and encoding. However, this would be considered obscure because H.264 isnāt really expected to be in AVI.
H.264 with B frames is not supported in AVI. Honestly you should not be using AVI for H.264 at all. Shotcut Advanced Export mode is not designed to protect you from yourself. It assumes you are advanced.