summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ffmpeg-embed-cmd7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ffmpeg-embed-cmd b/bin/ffmpeg-embed-cmd
index 2cc4c7c..83b6c1e 100755
--- a/bin/ffmpeg-embed-cmd
+++ b/bin/ffmpeg-embed-cmd
@@ -6,6 +6,11 @@ import sys
if __name__ == '__main__':
ffmpeg_cli = ['ffmpeg'] + sys.argv[1:]
if len(ffmpeg_cli) > 1:
+ ffmpeg_ver = subprocess.run(['ffmpeg', '-version'], capture_output=True, text=True)
+ ffmpeg_ver = ffmpeg_ver.stdout.splitlines()[0]
ffmpeg_str = ' '.join(ffmpeg_cli)
- ffmpeg_cli[-1:-1] = ['-metadata', f'comment={ffmpeg_str}']
+ ffmpeg_cli[-1:-1] = [
+ '-metadata', f'FFMPEG_VER={ffmpeg_ver}',
+ '-metadata', f'FFMPEG_CMD={ffmpeg_str}',
+ ]
subprocess.run(ffmpeg_cli)