Skip to content

Black/blank video during playback #2307

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

Open
mifi opened this issue Jan 25, 2025 · 2 comments
Open

Black/blank video during playback #2307

mifi opened this issue Jan 25, 2025 · 2 comments

Comments

@mifi
Copy link
Owner

mifi commented Jan 25, 2025

For some combinations of OS, video codec and graphics card/driver (looking at you NVIDIA), the HTML5 video player (which LosslessCut uses) will simply play back audio only, and not report an error via the API, meaning we can't programmatically detect that there's a problem. Not always clear how to solve this. For some codecs we use a blacklist but it's not always complete:

const chromiumSilentlyFailCodecs = ['prores', 'mpeg4', 'mpeg2video', 'tscc2', 'dvvideo', 'mjpeg', 'ffv1'];

In this issue I will gather info about such problems that occurred in the wild for future reference:

See also:

Workaround

  • Turn off HEVC / H265 hardware decoding.
  • Use File -> Convert to supported format.
@shwhjw
Copy link

shwhjw commented Mar 15, 2025

Could be related to a problem I'm having - I'm cutting a long HEVC mp4 video but have an AMD graphics card on Windows 10. LosslessCut plays the video fine in the preview, but when splitting the long video into several smaller ones, only the first exported video is has a valid video track, all the others seem to have no video track (although the size and codec information suggests the video track is there). It's definitely not a valid video track because VLC shows its logo, not just black. Is it related or should I make a new issue?

EDIT: seem to have fixed my issue by downloading the latest version of ffmpeg and directing LC to use it!

@mifi
Copy link
Owner Author

mifi commented Mar 16, 2025

I think your problem is not related to this issue, because this issue is about preview. Ffmpeg is not used for preview. Your issue is about exporting. But thanks for reporting back. I guess your issue will be fixed once i upgrade ffmpeg version shipped with losslesscut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants