gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.94k stars 326 forks source link

Extract and save single track from MP4? #275

Closed ikmolbo closed 2 years ago

ikmolbo commented 2 years ago

Can MP4Box.js extract and output an audio track from an MP4, as the command line tool can?

mp4box -single 2 video.mp4 -out audio.m4a

Thanks.

cconcolato commented 2 years ago

Not really. You could try creating a segmented file (see https://github.com/gpac/mp4box.js#segmentation) from your source file but ignoring the video stream.

ikmolbo commented 2 years ago

Understood, thank you for your answer.

1kilogram commented 1 year ago

@ikmolbo Explain to me, how did you do it?

I can't do it! Neither get the audio, nor remove the video from the mp4 container using segmentation!

1kilogram commented 1 year ago

Understood, thank you for your answer.

Please give an example