Skip to content

Create WebM DASH Manifest XML file (usually with the extension .mpd) #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
naimul-haque-sagar opened this issue Jul 5, 2022 · 2 comments
Labels

Comments

@naimul-haque-sagar
Copy link

naimul-haque-sagar commented Jul 5, 2022

FFmpegBuilder fFmpegBuilder = new FFmpegBuilder()
                .setInput(filePath)
                .overrideOutputFiles(true)
                .addOutput(filePathWithoutExtension.concat("_144_video_output.webm"))
                .setAudioCodec("libvorbis")
                .setVideoCodec("libvpx-vp9")
                .setVideoResolution(256, 144)
                .done();

        fFmpegExecutor.createJob(fFmpegBuilder).run();

I am creating .webm file of different resolution

Now i want to create webm dash manifest xml file. Like this:

ffmpeg \

 -f webm_dash_manifest -i video_160x90_250k.webm \

 -f webm_dash_manifest -i video_320x180_500k.webm \

 -f webm_dash_manifest -i video_640x360_750k.webm \

 -f webm_dash_manifest -i video_640x360_1000k.webm \

 -f webm_dash_manifest -i video_1280x720_500k.webm \

 -f webm_dash_manifest -i audio_128k.webm \

 -c copy -map 0 -map 1 -map 2 -map 3 -map 4 -map 5 \

 -f webm_dash_manifest \

 -adaptation_sets "id=0,streams=0,1,2,3,4 id=1,streams=5" \

 manifest.mpd

This command is from ffmpeg documentation. This above command creates a .mpd file .

can i do the same with this ffmpeg-cli-wrapper

@Euklios
Copy link
Collaborator

Euklios commented Aug 10, 2024

This is currently not possible, but with PR #339 it would be

@Euklios
Copy link
Collaborator

Euklios commented Aug 22, 2024

This is now possible thanks to #339.
I've also just added a test for the command provided.

@Euklios Euklios closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants