mltframework / mltframework/shotcut
Colour hues of imported videos are sometimes unexpectedly different
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 11h 27m
- Merged PRs (30d)
- 5
Description
OS and Version (please complete the following information):
- Operating System: Debian Trixie
- Shotcut Version:
shotcut-linux-x86_64-26.4.26.txzfrom the project download page
Describe the bug
Colour hues of imported videos are sometimes unexpectedly different even for identical displayed clip properties.
Steps To Reproduce
- Download
green.mp4from https://www.metalevel.at/shotcut/green.mp4 - Create a copy of
green.mp4with:ffmpeg -i green.mp4 -colorspace 1 copy.mp4 - Start Shotcut, create a new project and append both videos to the timeline.
- The properties of the two videos show the same value for Color space:
ITU-R BT.709. - Yet the hue of the green differs visibly and measurably between the two clips. In the clip corresponding to
green.mp4, the green value is measured as 225, whereas in that ofcopy.mp4it is 238.
Expected behavior
I would expect the green hue to be exactly the same in the two clips, since the -colorspace option of ffmpeg is meant to set the frame attribute that was, according to the shown properties, apparently implicitly already taken to be bt709 for green.mp4, and explicitly set to that same value for copy.mp4.
If the difference in hues is unavoidable, I would expect one of the clip "Properties" to show a difference between one of the attributes pertaining to colours.
Screenshots
green.mp4:
copy.mp4:
Identical video properties for both clips, in particular ITU-R BT.709:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the difference with green.mp4 and the copy.mp4 generated by the listed ffmpeg command, then compare the color attributes shown in Shotcut's clip Properties. Measure the rendered green values for both clips and trace why identical displayed properties produce different hues. Done means the discrepancy is corrected or the missing color distinction is exposed in Properties.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- audio-video-rtc, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100