Skip to content

Commit

Permalink
allow single-stream video while still ignoring images and text
Browse files Browse the repository at this point in the history
  • Loading branch information
dericed committed Aug 2, 2017
1 parent 971cbb0 commit 76844f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmfunctions
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,8 @@ _find_input (){
# find av files in a directory and output to a temp list
find "${1}/objects" -type f -size +0 ! -path "*/access/*" ! -path "*/service/*" ! -name ".DS_Store" | while read file ; do
streamcount=$(ffprobe -loglevel quiet "$file" -show_entries format=nb_streams -of default=nw=1:nk=1)
if [[ "$streamcount" > 1 ]] ; then
duration_ts=$(ffprobe -loglevel quiet "$file" -show_entries stream=duration_ts -of default=nw=1:nk=1)
if [[ "$streamcount" > 0 && "${duration_ts}" != 1 ]] ; then
_report -d "Input file: $file"
echo "$file" >> "${INPUTFILES}"
fi
Expand Down

0 comments on commit 76844f3

Please sign in to comment.