浏览代码

Hide some AVI conversion warnings

Zachary Kotlarek 14 年之前
父节点
当前提交
6932cacd9f
共有 1 个文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      toMKV.sh

+ 3 - 1
toMKV.sh

@@ -36,9 +36,11 @@ if [ ! -e "${srtFile}" ]; then
 fi
 
 # Convert to MKV
+# Hide some common AVI conversion warnings
 tmpFile="`mktemp -t toMKV`"
 outFile="${outFile}.mkv"
-mkvmerge --quiet -o "${tmpFile}" "${inFile}" ${srtFile}
+mkvmerge --quiet -o "${tmpFile}" "${inFile}" ${srtFile} 2>&1 | \
+	grep -v "The AVC video track is missing the 'CTTS' atom for frame timecode offsets."
 
 # Check for errors
 if [ ! -e "${tmpFile}" ] || [ `stat -f '%z' "${tmpFile}"` -lt 1000 ]; then