Closed yshalsager closed 2 years ago
@yshalsager, Thanks for updating this PR.
There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:
Hi @yshalsager, Thanks for your hard work and sorry for the delay. Seems like it would be very useful and you have added so many methods. We will check this asap :)
There's no need to use
ffmpegsave
command anymore. All module commands will work with telegram files, local files, and direct links.
@yshalsager hey there , seems we need that save cmd since we can't have any visual feedbacks like in conventional android apps that first visualise the changes and exports them in single attempt , but here we need to do hit-and-trial in some scenarios like setting resolutions , etc so to optimise performance , the cmd may gradually affect it by saving last media locally. So , Can you please evaluate the scenario and present your views further , thanks
There's no need to use
ffmpegsave
command anymore. All module commands will work with telegram files, local files, and direct links.@yshalsager hey there , seems we need that save cmd since we can't have any visual feedbacks like in conventional android apps that first visualise the changes and exports them in single attempt , but here we need to do hit-and-trial in some scenarios like setting resolutions , etc so to optimise performance , the cmd may gradually affect it by saving last media locally. So , Can you please evaluate the scenario and present your views further , thanks
I have replaced ffmpegsave function with get_media_path_and_name that utilizes tg_download and url_download from download module (can be replaced with handle_download BTW), so it still visual progress exactly the same way as download module.
I have replaced ffmpegsave function with get_media_path_and_name that utilizes tg_download and url_download from download module (can be replaced with handle_download BTW), so it still visual progress exactly the same way as download module.
I think you are not getting what he is saying, anyways added -d flag to do same thing as he said
Changes:
ffmpegsave
command anymore. All module commands will work with telegram files, local files, and direct links.ffmpegtrim
has been replaced withatrim
orvtrim
command.New commands
x256
to encode videos using libx265, with the ability to use custom crf using-b
flag.v2a
to convert a video to audio, with the ability to use custom bitrate using-b
flag.vscale
to change video quality, with the ability to use custom crf using-b
flag and encode with x256 using-c
flag.vth
to extract video thumbnail.vcompress
to compress a video file to a given percentage.minfo
to get media info using ffmpeg.