-
Notifications
You must be signed in to change notification settings - Fork 15
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
Creation of temporary files ffmpeg is hardcoded to fixed commandline (ultrafast etc.) #16
Comments
Could you please explain this in more detail? Indeed the ffmpeg command needs high ressources without temporary files. So for many slides it is recommended to use the temporary files option. The ffmpeg command for the temporary files is optimized for speed. Nevertheless the general settings are used for the final video creation kburns-slideshow/slideshow/SlideManager.py Lines 832 to 870 in 2ccaa8f
|
Hello, first thank you for your effort making this software! Appreciated! :D Encoding with user setting be it speed or quality, your method using temporary files renders user quality/commandline obsolete. The source has to be same or better quality than target. This is not the case with your hardcoded "-preset ultrafast", default bitrate etc. for temporary files, if the user wants more quality than "ultrafast" and default bitrate. I'd strongly recommend creating lossless or near lossless quality temporary files. You've had something in mind yet I guess with commented CRF = 0. I don't know how to link code from Queue.py here. Therefore I put a snippet.txt in OP. It contains the hardcoded always same "-preset ultrafast" quality temporary file generation. What else do you need to know in detail? |
You are right, I will look into it and maybe add a new setting field for the temporary files creation. Feel free to add a PR for this feature. |
@jedcooper Could you please test the source from the latest development branch? |
As title. So the general settings for ffmpeg commandline is obsolete. As I don't think it's intentionally I file this as an issue.
For example I'm using:
"output_parameters": "-preset p7 -tune hq -profile:v high -multipass qres -rc vbr -cq 16 -qmin 16 -qmax 16 -b:v 0k",
along with"output_codec": "h264_nvenc",
which is working fine working without temporary files for 3-4 pictures.
But with a bigger pictures count it soon gets out of memory (log shows FFMPEG cancel) so using temporary files gets mandatory and - as said - user's custom ffmpeg quality commandline obsolete, unfortunately.
In slideshow/Queue.py: snippet.txt
The text was updated successfully, but these errors were encountered: