summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-02 00:30:59 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-02 00:30:59 +0100
commita946998f73d817b3230eca6fe16cdbedec05b0eb (patch)
tree1bd6436bf5c7582cfcfd8db972f6a84d7eb2dc29
parent5ac4016d19ae698109a2ff8521003aed11fb490b (diff)
Fix -t parameter to possibly be a float.
-rwxr-xr-xhacks/make_dummy_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacks/make_dummy_files b/hacks/make_dummy_files
index 21cb1fd58..3dce41cf8 100755
--- a/hacks/make_dummy_files
+++ b/hacks/make_dummy_files
@@ -104,7 +104,7 @@ for c in root.find('Playlist').findall('Content'):
audio_frame_rate = int(c.find('AudioStream').find('FrameRate').text)
names = { 1: 'mono', 2: 'stereo', 3: '3.0', 4: '4.0', 5: '4.1', 6: '5.1', 7: '6.1', 8: '7.1' }
audio_cmd = '-f lavfi -i anullsrc=channel_layout=%s:sample_rate=%d' % (names[audio_channels], audio_frame_rate)
- os.system('ffmpeg -t %d %s %s -shortest "%s"' % (float(video_length) / video_frame_rate, video_cmd, audio_cmd, path))
+ os.system('ffmpeg -t %f %s %s -shortest "%s"' % (float(video_length) / video_frame_rate, video_cmd, audio_cmd, path))
c.find('Path').text = path
c.find('Digest').text = digest_head_tail(path)
elif type == 'Image':