]> git.parisson.com Git - teleforma.git/commitdiff
fix media remux : ffmpeg -ss in seconds with python-ebml 0.2
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 4 Feb 2013 23:15:56 +0000 (00:15 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 4 Feb 2013 23:15:56 +0000 (00:15 +0100)
tools/trans/fix_chk_media.py

index f564e8a36c0950d462b7090ab7a41db406db3999..6dc1f67898d3fbbd08647300aa3aa4dfc5e6354f 100644 (file)
@@ -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)