Skip to content
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

Trimmed videos aren't the proper length, and export mode setting isn't remembered #1

Open
omnosti opened this issue Oct 9, 2024 · 0 comments

Comments

@omnosti
Copy link

omnosti commented Oct 9, 2024

If I cut a video from 00:39 to 00:49, the trimmed video will start at the proper time but instead of being 10 seconds long it will be 49 seconds long, where the length is seemingly matched to the time stamp of the out point I selected. Similarly, trying to cut a video from 2:30 to 2:50 will result in a 2:50 long trimmed video. When I open the index selector before making the cut, the time stamp it reports is correct.

I'm also having a problem where the export mode is also set to smoothie on start up even though I always set it to ffmpeg. I got around this by commenting out config.export_mode = "smoothie" in the function below:

mp.register_event("file-loaded", function()
	local container_fps = mp.get_property('container-fps')
	if container_fps == nil then return end
	local vid_fps = tonumber(container_fps)

	if vid_fps == 0 or switchExportRan then
		-- disabled by user / already ran
		return
	elseif config.switch_above > vid_fps then
		print("FPS is above trigger limit, switching export mode to smoothie")
		config.export_mode = "smoothie"
	end
	switchExportRan = true
end)
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

1 participant