Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
preservation-ffv1: generate framemd5 when normalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Dec 5, 2014
1 parent b59f333 commit ffe88b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions normalization/preservation-ffv1.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/bin/bash

inputFile="%fileFullName%"
framemd5path="%SIPDirectory%metadata/%fileUUID%.md5"
outputFile="%outputDirectory%%prefix%%fileName%%postfix%.mkv"
audioCodec="pcm_s16le"
videoCodec="ffv1 -level 3"

command="ffmpeg -vsync passthrough -i \"${inputFile}\" "
# Generating framemd5 at the same time as normalization is faster
# than doing both separately - framemd5 requires ffmpeg to decompress
# every frame in the video, but when performe at the same time as
# normalization, both tasks can share the same decompressed frames.
command="${command} -f framemd5 \"${framemd5path}\" "
command="${command} -vcodec ${videoCodec} -g 1 "
command="${command} -acodec ${audioCodec}"

Expand Down

0 comments on commit ffe88b3

Please sign in to comment.