ffmpeg generating video manifest.mpd file error "The term -b is not recognized as the name of a cmdlet, function, script file, or operable program" in Powershell

When working with Dash Video to generate the manifest.mpd file to play a video based on the bandwidth of the network like YouTube or Netflix videos play. There might be an error when Dashfying the videos files.

- If you decide to use the code from ffmpeg.org/ffmepg-formats.html#dash-2 then the code will look like below:


ffmpeg -re -i <input> -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \
-b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \
-profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 \
-b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 \
-window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \
-f dash /path/to/out.mpd

[Reference] the code above is from ffmpeg.org/ffmepg-formats.html#dash-2


Please Login to see the rest of the answer

Answer: Just remove the leading "\" from the command, Powershell is terminating the command when it reaches a slash. FFmpeg needs to know the whole command to work.

Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

© 2022 - ErnesTech - Privacy