diff options
Diffstat (limited to '')
| -rwxr-xr-x | transcode.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/transcode.sh b/transcode.sh index e333200..ea61fda 100755 --- a/transcode.sh +++ b/transcode.sh @@ -1251,12 +1251,13 @@ encode_one() { local input_codec input_pixel_format input_frame_rate input_fps - input_codec=$(printf '%s\n' "$probe_out" | sed -n '1p') + { + IFS= read -r input_codec + IFS= read -r input_pixel_format + IFS= read -r input_frame_rate + } <<<"$probe_out" debug "Input codec:" "$input_codec" - input_pixel_format=$(printf '%s\n' "$probe_out" | sed -n '2p') - input_frame_rate=$(printf "%s\n" "$probe_out" | sed -n '3p') - if [[ -z "$input_codec" ]]; then ((_REPORT_ENCODING_FAILED++)) append_size_report_row "failed" "$filename" "$(filesize "$input_file")" |
