Stuart’s MATLAB Videos

Watch and Learn

Converting a Set of Video Caption Text Files From One Format to Another

Posted by Stuart McGarrity,

I offered to help my colleague Josh to convert a bunch of video caption text files from one format called DFXP to another called WebVTT. The text files store lists of voice-over captions with start and ending timestamps plus language information. I used some of MATLAB’s string handling functions to do it.

Features covered in this code-along style video include:

  • regexp, regexprep and + operator
  • fscanf

Follow me (@stuartmcgarrity) if you want to be notified via Twitter when I post.

Play the video in full screen mode for a better viewing experience. 

0 views (last 30 days)  | |

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.