Add a post processor for embedding subtitles in mp4 videos (closes #1052)

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-07-20 12:48:57 +02:00
parent df3df7fb64
commit d4051a8e05
4 changed files with 241 additions and 3 deletions

View file

@ -657,6 +657,9 @@ def determine_ext(url, default_ext=u'unknown_video'):
else:
return default_ext
def subtitles_filename(filename, sub_lang, sub_format):
return filename.rsplit('.', 1)[0] + u'.' + sub_lang + u'.' + sub_format
def date_from_str(date_str):
"""
Return a datetime object from a string in the format YYYYMMDD or