VideoHelp Forum

+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. I have a .mp4 file with about 30 different languages timed text subtitles. How do I extract all 30 timed text subtitles using MP4Box 2.0? Is there a way to bulk extract the 30 timed text subtitles using MP4Box 2.0 at once?
    Quote Quote  
  2. no, you would need a gui or something similar to do that. MP4Box has no option for bulk extraction (see: https://www.mankier.com/1/mp4box).
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. Thanks. I was able to extract using MP4Box GUI. Extractions doesn't name the languages in the SRT files. Is there a way to include the names of the different languages?
    Quote Quote  
  4. No clue, haven't used mp4box gui for 10+ years, but unless the subtitles are tagged with their language definitely not.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by vega69-ux View Post
    I have a .mp4 file with about 30 different languages timed text subtitles. How do I extract all 30 timed text subtitles using MP4Box 2.0? Is there a way to bulk extract the 30 timed text subtitles using MP4Box 2.0 at once?
    try with ffmpeg - https://superuser.com/questions/583393/how-to-extract-subtitle-from-video-using-ffmpeg
    Quote Quote  
  6. Can I bulk extract subtitles using ffmpeg to SRT?
    Quote Quote  
  7. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by vega69-ux View Post
    Can I bulk extract subtitles using ffmpeg to SRT?
    try it with subtitle edit - https://www.reddit.com/r/ffmpeg/comments/p68gxc/how_do_i_batch_extract_subtitles/
    Quote Quote  
  8. GPAC contributor here. Sorry I am late to the game...

    MP4Box allows to extract the N-th text track using #textN. Example to extract the 30th subtitle track:
    Code:
    MP4Box -add source.mp4#text30 -new sub30.mp4
    I'm pretty sure we can get the new 'gpac' executable to extract all subs at once. I'll let you know here.

    Don't hesistate to post on our github issue tracker. You'll get some more responsive help there
    Quote Quote  
  9. If you update to the latest GPAC, you will be able to do the following:

    Code:
    gpac -i source.mp4 @@0#text1 -o sub1.mp4 @@0#text2 -o sub2.mp4 ... @@0#text30 -o sub30.mp4
    or even shorter using templates:

    Code:
    gpac -i source.mp4 @#text -o sub_$PID$_$Language$.srt
    For those who don't know, the 'gpac' executable was introduce circa 2020 with the GPAC 1.0 beta. 'gpac' allows to build dynamic processing pipelines. It does not replace MP4Box completely. Wiki: https://github.com/gpac/gpac/wiki/Filters

    We are making GPAC better thanks to your feedback. Do not hesitate to contact us
    Quote Quote  



Similar Threads