Update vsync & async syntax
This commit is contained in:
parent
ac485f2139
commit
a255c296bf
|
@ -197,7 +197,8 @@ fi
|
|||
# Conversion parameters
|
||||
p_ffmpeg="ffmpeg -i"
|
||||
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
||||
f_conversion="-vsync 1 -async 1"
|
||||
# f_conversion="-vsync 1 -async 1" # Deprecated method
|
||||
f_conversion="-vsync cfr -af aresample=async=1:min_hard_comp=0.100000:first_pts=0"
|
||||
# Check if video input uses H265 (HEVC)
|
||||
codec_h265=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "h265")
|
||||
codec_hevc=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "hevc")
|
||||
|
|
|
@ -136,7 +136,8 @@ function errorReadingFile() {
|
|||
# Conversion parameters
|
||||
p_ffmpeg="ffmpeg -i"
|
||||
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
||||
f_conversion="-vsync 1 -async 1"
|
||||
# f_conversion="-vsync 1 -async 1" # Deprecated method
|
||||
f_conversion="-vsync cfr -af aresample=async=1:min_hard_comp=0.100000:first_pts=0"
|
||||
# Check if video input uses H265 (HEVC)
|
||||
codec_h265=$(${p_ffmpeg} "${2}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "h265")
|
||||
codec_hevc=$(${p_ffmpeg} "${2}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "hevc")
|
||||
|
|
|
@ -208,7 +208,7 @@ elif [ "${1}" == "-ev25" ] ; then
|
|||
if [ "${codec_encoded}" == "h264_encoded" ] ; then
|
||||
ffmpeg -y -i "${2}" -map ${video_track} -c copy -f h264 "${current_dir}/seeing_noaudio.h264"
|
||||
ffmpeg -y -r 25 -i "${current_dir}/seeing_noaudio.h264" -c copy "${current_dir}/seeing.mp4"
|
||||
ffmpeg -y -i "${current_dir}/seeing.mp4" -map 0:0 -vsync 1 -c:v copy "${video_file_dir}"
|
||||
ffmpeg -y -i "${current_dir}/seeing.mp4" -map 0:0 -vsync cfr -c:v copy "${video_file_dir}"
|
||||
echo ""
|
||||
echo -n "* Extracted video into ${video_file_dir} (25 fps)"
|
||||
sleep 2
|
||||
|
|
|
@ -197,7 +197,8 @@ fi
|
|||
# Conversion parameters
|
||||
p_ffmpeg="ffmpeg -i"
|
||||
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
||||
f_conversion="-vsync 1 -async 1"
|
||||
# f_conversion="-vsync 1 -async 1" # Deprecated method
|
||||
f_conversion="-vsync cfr -af aresample=async=1:min_hard_comp=0.100000:first_pts=0"
|
||||
# Check if video input uses H265 (HEVC)
|
||||
codec_h265=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "h265")
|
||||
codec_hevc=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "hevc")
|
||||
|
|
|
@ -197,7 +197,8 @@ fi
|
|||
# Conversion parameters
|
||||
p_ffmpeg="ffmpeg -i"
|
||||
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
||||
f_conversion="-vsync 1 -async 1"
|
||||
# f_conversion="-vsync 1 -async 1" # Deprecated method
|
||||
f_conversion="-vsync cfr -af aresample=async=1:min_hard_comp=0.100000:first_pts=0"
|
||||
# Check if video input uses H265 (HEVC)
|
||||
codec_h265=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "h265")
|
||||
codec_hevc=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "hevc")
|
||||
|
|
|
@ -197,7 +197,8 @@ fi
|
|||
# Conversion parameters
|
||||
p_ffmpeg="ffmpeg -i"
|
||||
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
||||
f_conversion="-vsync 1 -async 1"
|
||||
# f_conversion="-vsync 1 -async 1" # Deprecated method
|
||||
f_conversion="-vsync cfr -af aresample=async=1:min_hard_comp=0.100000:first_pts=0"
|
||||
# Check if video input uses H265 (HEVC)
|
||||
codec_h265=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "h265")
|
||||
codec_hevc=$(${p_ffmpeg} "${1}" 2>&1 | grep Stream | tr -s " " | grep "Video:" | grep "hevc")
|
||||
|
|
Loading…
Reference in New Issue
Block a user