From: Guillaume Pellerin Date: Mon, 4 Feb 2013 23:15:56 +0000 (+0100) Subject: fix media remux : ffmpeg -ss in seconds with python-ebml 0.2 X-Git-Tag: 1.3-TC~46^2^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1aaddd8938c520055977eadc59bc6793ba6b8c07;p=teleforma.git fix media remux : ffmpeg -ss in seconds with python-ebml 0.2 --- diff --git a/tools/trans/fix_chk_media.py b/tools/trans/fix_chk_media.py index f564e8a3..6dc1f678 100644 --- a/tools/trans/fix_chk_media.py +++ b/tools/trans/fix_chk_media.py @@ -68,7 +68,7 @@ class FixCheckMedia(object): print command os.system(command) ebml_obj = EBMLData(tmp_file) - offset = ebml_obj.get_first_cluster_timecode() + offset = ebml_obj.get_first_cluster_seconds() command = '/usr/local/bin/ffmpeg -loglevel 0 -ss ' + str(offset) + ' -i ' + tmp_file + ' -vcodec copy -acodec copy -f webm -y ' + path + ' > /dev/null' print command os.system(command)