Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
languagebash
titlefixing FFprobe data
linenumberstrue
find . |grep-name \*.stdout$stdout | xargs -Ił xmllint --noout ł 2>&1 | grep ^\\./ | cut -d':' -f1 | sort -u > broken-files
for linefile in $(grep \_plutre\.mp4\.stdout$ broken-files); do sed -i -e 's/value=\"\s/value=\"d012//g' $line $file $(dirname $file)/$(basename $file .stdout).stderr; done
for linefile in $(grep \.\/mux broken-files); do echo "</ffprobe:ffprobe>" >> $line$file; done
xargs -Ił xmllint --noout ł 2>&1 < broken-files | grep ^\\./ | cut -d':' -f1 | sort -u > broken-files-remaining

xmllint is used to find faulty files (line 1), and the files typically have two types of errors: Files containing line-feed feeds (^L) in attribute values (line 2) and files missing the ffprobe:ffprobe-end-tag (line 3). Line 4 is equivalent to line 1, and should result in an empty file. If broken-files-remaining is non-empty, somebody should probably have a look at the offending files.