-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black video sequences in export when using proxy #1395
Comments
I think this is a known problem when the first stream in the file is not audio or video. In that case, proxy cannot be used. Please provide ffprobe output for this kind of video or a sample file. |
Thank you very much for looking into this. By the way, this is the ffprobe output for one of the files that only some times work: |
From the ffprobe output
This is the known bug. It causes the audio_index and video_index in the proxy to mismatch in the source because upon transcoding to make the proxy, ffmpeg drops the first unsupported stream. I do not know why it is being random for you, but basically files like this are not currently supported in proxy mode due to this problem. In order to fix it, we need to code up a new relative stream index system. Since these smartphone camera videos might also be variable framerate, which is also not supported I suggest you convert them. You can use Properties > Convert or something else like Handbrake. Then, you can use proxy mode reliably. I was not able to reproduce this issue with my video files. I am not sure I have a sample file with this problematic first stream if you can provide one. |
Here is such a file. PXL_20230108_142208704.TS.mp4 |
When inserting video files in the playlist, it randomly does not recognize the video index.
The save file contains for these files <property name="video_index">-1</property>
The proxy files were created correctly, so editing the videos was not a problem, but when exporting the video, the effected sequences were black (Audio was there). When I turn off proxy, the files are also blank in the preview and settings show Track: None. Videos in my case are 4K mp4 HEVC 30fps videos recorded with a Pixel 6 pro phone.
When I deleted the project folder, created a new project and pulled in the files again, some other(!) files (but not all!) were effected, so it seems to be a random issue. Maybe it happens only when inserting many files at once?
Replacing the video_index -1 with 2 in the save file solves the issue, but this workaround will probably not work for all kind of video files?
Shotcut version 22.12.21, Windows store version, Windows 11, Ryzen 5950X, 64GB RAM, RTX 4090
The text was updated successfully, but these errors were encountered: