You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a python master so not sure how easy this would be to achieve, I presume this could be installed as a dependency through pip?
Obviously, it's possible to just save the frames and not encode the video, and do this manually. The scaling algorithm might be a little better with the original script truth be told, although frame generation time will be pretty high in comparison.
But here's an example of ffmpeg using cuda for anybody who's interested in doing it that way :
Done some more experimenting. Here's my newest command line (which allows for lanczos scaling and doesn't seem much slower. Quality is noticeably improved.)
Obviously there's a little more to experiment with here. At the moment I'm trying to encode in a manner that's compatible with facebook at 2160p, as it's defaulting to 720p no matter what I upload.
Not a python master so not sure how easy this would be to achieve, I presume this could be installed as a dependency through pip?
Obviously, it's possible to just save the frames and not encode the video, and do this manually. The scaling algorithm might be a little better with the original script truth be told, although frame generation time will be pretty high in comparison.
But here's an example of ffmpeg using cuda for anybody who's interested in doing it that way :
ffmpeg -hwaccel cuvid -framerate 30 -i %06d.png -i 'optionalaudio.wav' -vf "hwupload_cuda,scale_cuda=1280:720" -c:v h264_nvenc -c:a aac -b:a 320k output720.mp4
The text was updated successfully, but these errors were encountered: