Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Subtitles: How to e...
 
Share:
Notifications
Clear all

[Solved] Subtitles: How to extract EIA-608 / EIA-708 subtitles from an MP4 or MKV?

2 Posts
1 Users
0 Reactions
381 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

Sometimes one runs into that weird (HDTV) video file with an obscure subtitle format which ffmpeg and ffprobe do not even see but your media player (I use IINA on my Mac) and Media Info do show these subtitle tracks marked as EIA-608 and/or EIA-708.

An example screenshot of Media Info:

So how do we extract this subtitle to an SRT file?

Seem ffmpeg can actually do something with this file. Extract the subtitle like so:

ffmpeg -f lavfi  -i "movie='YourVideoFilename.mp4' [out+subcc]" -map 0:s:0 eia608_subs.srt

** Mind the double and single quotes ...

This will result in a proper SRT file (with a potentially formatting tags).

Note: -map 0:s:0 will select the first EIA-608 subtitle.
If there are multiple you can select the next one with -map 0:s:1, and the next one with -map 0:s:2, etc.


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

Note: Works with MKV files as well. 😊 


   
ReplyQuote
Share: