aNNiMON / ffmpegbot

Telegram ffmpeg bot for re-encoding media
MIT License
8 stars 16 forks source link

Specify ffmpeg code #2

Closed killerlearner closed 1 year ago

killerlearner commented 1 year ago

Where can I specify my own ffmpeg code and if it's given in repo from starting then how can I set to the one I want to use?

killerlearner commented 1 year ago

And if possible drive upload and direct link download to as tg only support max 2gb file

aNNiMON commented 1 year ago

You can define your ffmpeg options here FFmpegCommandBuilder.java and bot buttons for them here ffmpegbot/parameters

For Drive upload you can try this project https://github.com/WeebZoneIndia/Video-Encoder-Bot/tree/beta (beta branch).

killerlearner commented 1 year ago

I am getting errors in weebzone repo and it's owner has dropped it so he doesn't know how to solve! So does your repo support hevc .mkv file encoding in aac .mp4

killerlearner commented 1 year ago

I want to convert .mkv files into .MP4 with only one audio track specified like -map 0:a:m:language:eng. Can you tell me your tg I'd I can ask there.

aNNiMON commented 1 year ago

@killerlearner I added Audio selector by language https://github.com/aNNiMON/ffmpegbot/tree/audio-stream-paramerter But looks like Telegram stores mkv only as files. Bot works only with videos, video notes, voice messages and audios.

killerlearner commented 1 year ago

Can you add so I can keep files in bot after encoding instead of uploading in tg then we can use rclone to upload in cloud or any other api method And I can get mkv file using direct link in bot with wget cmd. Then which cmd should I use to encode the video to get video with only one stream audio I select like by selecting language code and subtitle removed