diff --git a/convert.sh b/convert.sh index 839a4f2..afd55ea 100755 --- a/convert.sh +++ b/convert.sh @@ -189,13 +189,13 @@ while true; do # Get the video width and height # Hack to get the height even if the audio and video stream are in reverse order - codec_type=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | jq --raw-output '.streams [0] .codec_type') + codec_type=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | ./jq --raw-output '.streams [0] .codec_type') if [ "$codec_type" = "video" ]; then - video_height=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | jq '.streams [0] .height') - video_width=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | jq '.streams [0] .width') + video_height=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | ./jq '.streams [0] .height') + video_width=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | ./jq '.streams [0] .width') else - video_height=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | jq '.streams [1] .height') - video_width=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | jq '.streams [1] .width') + video_height=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | ./jq '.streams [1] .height') + video_width=$($video_ffprobe_path -v quiet -show_streams -print_format json "$file" | ./jq '.streams [1] .width') fi # Calculate aspect ratio @@ -214,9 +214,9 @@ while true; do mkdir $file.out # Loop through all videoformats and convert them - for row in $(echo "${video_formats_file}" | jq -r '.[] | @base64'); do + for row in $(echo "${video_formats_file}" | ./jq -r '.[] | @base64'); do _jq() { - echo ${row} | base64 --decode | jq -r ${1} + echo ${row} | base64 --decode | ./jq -r ${1} } # Check if the video is larger or as large as the format we want to convert it to diff --git a/jq b/jq new file mode 100755 index 0000000..939227e Binary files /dev/null and b/jq differ