crazydevman / mute-profanity

XBMC add-on used to mute profanity
GNU General Public License v3.0
33 stars 14 forks source link

Added support to extract srt from mp4/m4v #2

Closed fauxpaux closed 11 years ago

fauxpaux commented 11 years ago

Great work on the srt extract from the mkv. I modified the script for use with mp4box. There is one known issue with both the MKVsubextract and MP4subextract. The subprocess.check_output does not work below python 2.7. XBMC for mac uses 2.6 so the scripts will work if I run them outside of XBMC, but not within.

crazydevman commented 11 years ago

This is great! I started working on extracting using MP4Box, but I couldn't find a mp4 file with subtitles. You wouldn't happen to have a small example I could test with do you? Also, thanks for letting me know about the check_output command. I didn't realize we were using 2.6 in mac. I've been meaning to change that around anyway, because I want to execute and get the progress bar working which means communication via stdin & stdout. Thanks for your work!

fauxpaux commented 11 years ago

Glad to help. I see what I can dig up in way of a test file and send you a link.