mifi / lossless-cut

The swiss army knife of lossless video/audio editing
https://losslesscut.app/
GNU General Public License v2.0
27.65k stars 1.34k forks source link

Videos become green or warps the colours with full hardware acceleration #2093

Open ehjr5u opened 3 months ago

ehjr5u commented 3 months ago

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Steps to reproduce

By using the merging feature and merging two videos with keep all tracks, preserve all original and mp4/mov metadata, and allow this dialog to appear when dropping multiple files then exporting as mp4

Expected behavior

The videos should be able to work fine with and without full hardware acceleration without distorting colours Screenshot_20240801_201533_Video Player

Actual behavior

The entire video just turns green or warps all the colours for multiple frames but it stops if you jump ahead more into the video. But some videos from the same company that are merged can play just fine with full acceleration. The only way to prevent the issue is to convert into mov and then back to mp4 Screenshot_20240801_201332_VLC

Provide an error report

No error occurred.

{ "err": false, "state": { "ffmpegExperimental": false, "preserveMovData": true, "movFastStart": true, "preserveMetadataOnMerge": true, "externalFilesMeta": {}, "mainStreams": [], "copyStreamIdsByFile": {}, "cutSegments": [ {} ], "rotation": 360, "shortestFlag": false, "effectiveExportMode": "separate", "outSegTemplate": "${FILENAME}-${CUT_FROM}-${CUT_TO}${SEG_SUFFIX}${EXT}" }, "platform": "win32", "version": "3.61.1" }

Share the file

Can't share due to copyright issues

Share log from developer tools

No response

mifi commented 3 months ago

what do you mean by "The only way to prevent the issue is to convert into mov and then back to mp4"? do you mean convert the format back and forth by using losslesscut?

ehjr5u commented 3 months ago

what do you mean by "The only way to prevent the issue is to convert into mov and then back to mp4"? do you mean convert the format back and forth by using losslesscut?

I did not convert the format with lossless-cut but instead, used a third party file converter to convert it into a MOV, then take the MOV file that I just converted back to MP4. Do you understand me?

mifi commented 2 months ago

ah, ok. then the third party converter probably re-encoded the file, which is probably why it solved the problem. what about if you disable full hardware acceleration, does it work then (or why else did you mention that)?

unfortunately I don't know how to fix this. it's probably a limitation in ffmpeg. I can only recommend trying different parameters as described in the Troubleshooting guide