Certainly! Here's a comprehensive explanation of how to handle multiple tracks for both subtitles and audio in FFmpeg, focusing on the use of
-map for audio and si for subtitles :Handling Multiple Audio Tracks
Audio Tracks :
- Mapping Audio Streams: Use
-map to select which audio stream to include in the output file. Audio streams are indexed starting from 0. For example:-
-map 0:a:0 : Selects the first audio stream.-
-map 0:a:1 : Selects the second audio stream.In FFmpeg, audio tracks are not "burned in" or hardcoded. Instead, they are simply included as separate streams in the output file. The
-map option determines which audio tracks are included in the final file.Handling Multiple Subtitle
Subtitle Tracks Burning Subtitles : To hardcode subtitles into the video, use the
-vf option with the subtitles filter. You can specify which subtitle stream to use with the si paramet si=0 : Uses the first subtitle si=1 : Uses the second subtitle stream.Unlike audio, subtitles are hardcoded directly into the video stream, which means they are rendered into the video frames rather than being a separate stream in the output file.
Example Command for Multiple Tracks
FFmpeg command that handles multiple audio and subtitle tracks :
-vf "subtitles='/home/sp/app/ffmpeg/[userid]/[filename]':si=1" \
-map 0:v:0 -map 0:a:1 \
-c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k
Breakdown :
- -vf "subtitles='/home/sp/app/ffmpeg/[userid]/[filename]':si=1" : Hardcodes the second subtitle
-map 0:v:0 : Includes the first video
-map 0:a:1 : Includes the second audio stream from the input.
- -c:v libx264 -crf 18 -preset slow : Encodes the video using x264 codec with specified
- -c:a aac -b:a 192k : Encodes the audio using AAC codec
- Subtitles : Use
-vf "subtitles=/home/sp/app/ffmpeg/[userid]/[filename]:si=<index>" to hardcode muti subtitles.- Audio : Use
-map 0:a:<index> to select which muti audio.You Can Use That ffmpeg Custom Command in Those Bots.
@SPxCompressBot
@SPxCompressOneBot
@SPxCompressTwoBot
@SPxCompressThreeBot
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ8๐คฏ4โก1
Need Tutorials Video With Custom code ? While Using our Bots.
Video Watermark Text/metadata/trim/hardsubs(hardmux)
If U Want Comment Down Below.
Admin Riki(ใใ)
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ7โค2๐2โก1๐1
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Which Bot First ?
Currently Working Auto Caption Support Format
{file_caption} current caption
{file_name} original file name
{file_size} total file size
{quality} file resolution
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ6โก2๐2๐คฏ1๐1
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Youtube Link Fixed๐ฑ
Removed YT.Cookies
Using VPN With USA IP
๐ Riki(ใใ)
Using VPN With USA IP
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ฅ7โคโ๐ฅ3โก2๐คฉ2
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
โโ๐ ๐ญ๐พ๐ ๐ก๐๐ ๐ฑ๐พ๐
๐พ๐บ๐๐พ๐ฝ ๐ ๐ฒ๐ฏ๐๐ฅ๐๐
๐พ๐ฒ๐๐๐๐พ๐ก๐๐ ๐ ๐ฅ๐พ๐บ๐๐๐๐พ๐ ๐ ๐ฏ๐๐๐๐พ๐ผ๐๐๐๐ ๐๐ฟ ๐ ๐
๐
๐ณ๐๐๐๐๐ ๐ฃ๐บ๐๐บ : ๐๐พ๐บ๐ฝ๐ ๐๐ ๐๐๐๐๐พ๐ผ๐ ๐บ๐๐ฝ ๐๐พ๐๐๐พ ๐บ๐๐ ๐๐๐๐ฝ ๐๐ฟ ๐๐๐๐ ๐ฝ๐บ๐๐บ ๐๐๐๐ ๐บ ๐๐๐ฝ๐พ ๐๐ฟ ๐ผ๐๐บ๐๐. โฐ ๐ณ๐๐๐พ-๐ณ๐๐บ๐๐พ๐
๐๐๐ ๐ฃ๐บ๐๐บ : ๐ฃ๐พ๐
๐พ๐๐พ ๐ณ๐๐๐พ๐, ๐ฒ๐พ๐ ๐บ ๐๐๐๐พ๐ ๐ฟ๐๐ ๐๐๐บ๐๐พ๐ฝ ๐ฟ๐๐
๐พ๐ ๐๐ ๐บ๐๐๐๐๐บ๐๐๐ผ๐บ๐
๐
๐ ๐ฝ๐พ๐
๐พ๐๐พ ๐บ๐ฟ๐๐พ๐ ๐บ ๐๐๐พ๐ผ๐๐ฟ๐๐พ๐ฝโฆ
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ9โค3๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
๐13โคโ๐ฅ2๐ฅ2โค1
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Please open Telegram to view this post
VIEW IN TELEGRAM
โก6โค4๐2๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ6โค2๐คฉ2๐2๐ฅ1
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ฅ7๐ข5โค2
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
โโ๐ ๐๐๐ญ๐๐ฅ๐ก๐ค๐๐๐๐ง๐๐ง๐ค๐ฝ๐ค๐ฉ ๐ฑ๐๐๐ ๐๐ ๐พ๐๐๐๐๐ ๐ฆ ๐ต๐๐๐๐๐๐๐ ๐ ๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐ข ๐๐-๐ณ๐ป๐ฟ ๐๐ ๐๐๐๐๐๐๐๐. ๐ ๐๐๐๐๐๐ ๐ท๐๐๐ฟ/๐ท๐๐๐ฟ๐ ๐๐๐๐๐ ๐๐ ๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐. ๐ ๐๐๐๐๐๐ ๐ข๐๐๐๐๐๐,๐๐๐๐๐๐,๐๐๐๐๐๐๐๐๐, ๐๐๐๐๐๐๐๐๐๐ (๐๐๐๐), ๐๐๐๐๐๐ ๐๐๐๐๐, ๐๐๐๐๐๐ ๐๐๐๐๐ (๐๐๐๐๐๐.๐๐๐ ๐๐๐๐๐๐).๐๐๐๐โฆ
What's News
/setcookies/removecookiesUser Can Set Theirs Cookies file to download YT-DLP support link.
Please open Telegram to view this post
VIEW IN TELEGRAM
โค6โคโ๐ฅ1๐ข1
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Media is too big
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ฅ7
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Please open Telegram to view this post
VIEW IN TELEGRAM
๐คฉ6๐ข4โค2๐2
Please open Telegram to view this post
VIEW IN TELEGRAM
โค14๐ฅ3๐ข1
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
โโ๐ ๐๐๐ญ๐๐ฅ๐ก๐ค๐๐๐๐ง๐๐ง๐ค๐ฝ๐ค๐ฉ ๐ฑ๐๐๐ ๐๐ ๐พ๐๐๐๐๐ ๐ฆ ๐ต๐๐๐๐๐๐๐ ๐ ๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐ข ๐๐-๐ณ๐ป๐ฟ ๐๐ ๐๐๐๐๐๐๐๐. ๐ ๐๐๐๐๐๐ ๐ท๐๐๐ฟ/๐ท๐๐๐ฟ๐ ๐๐๐๐๐ ๐๐ ๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐. ๐ ๐๐๐๐๐๐ ๐ข๐๐๐๐๐๐,๐๐๐๐๐๐,๐๐๐๐๐๐๐๐๐, ๐๐๐๐๐๐๐๐๐๐ (๐๐๐๐), ๐๐๐๐๐๐ ๐๐๐๐๐, ๐๐๐๐๐๐ ๐๐๐๐๐ (๐๐๐๐๐๐.๐๐๐ ๐๐๐๐๐๐).๐๐๐๐โฆ
Please open Telegram to view this post
VIEW IN TELEGRAM
โค5๐ฅ1๐คฉ1
Media is too big
VIEW IN TELEGRAM
Tutorial For Verify URL Shortener๐ค
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ข21โค8โก3๐คฏ3๐2
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Add Your Bot/Userbot/DB/Channels
Please open Telegram to view this post
VIEW IN TELEGRAM
โค3
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Please open Telegram to view this post
VIEW IN TELEGRAM
๐๐ฐ๐ถ๐ณ๐ค๐ฆ ๐๐ญ๐ฆ๐ข๐ด๐ฆ ๐๐ฐ๐ต๐ด
Bot Back Online๐
๐คช ๐๐๐ญ๐พ๐ค๐ข๐ฅ๐ง๐๐จ๐จ๐ค๐ง๐ฝ๐ค๐ฉ ๐
๐ค Report Bug/Error Here๐
Please open Telegram to view this post
VIEW IN TELEGRAM
โคโ๐ฅ4๐ฅ4โค1
๐ฃ ๐๐๐ญ๐๐๐จ๐ฉ๐ง๐๐๐ฉ๐๐๐๐๐ซ๐๐ง๐ฃ ๐ฃ ๐๐๐ญ๐๐๐จ๐ฉ๐ง๐๐๐ฉ๐๐๐๐๐ซ๐๐ง๐ฃ
Send This Message
NGNL S2 Release In 2026What Does Coins Do
/info to Check how many Coins did u have./shop to buy premium.How To Get Coin For Free
/rewards)๐ง In๐ Premium Plan
(No Limitation/Access Premium Settings)โ๏ธ
Until February 01.02.2025
END
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ข5โคโ๐ฅ4โค1