Continue new gstreamer patch

This commit is contained in:
AlexPresso
2022-05-16 17:20:24 +02:00
parent d2c3bdfed3
commit b9db899e74
2 changed files with 6 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ defaultargs=($@)
hlsslice=${@: -1}
hlsroot=${hlsslice::-14}
stderrfile="/tmp/gstlaunch-$pid.stderr"
logfile="/tmp/ffmpeg.log"
logfile="/tmp/gstreamer.log"
#########################
# UTILS
@@ -41,4 +41,4 @@ newline
info "========================================[start gst $pid]"
info "GST_ARGS: ${defaultargs[*]}"
/var/packages/CodecPack/target/pack/bin/gst-launch-1.0.orig "${defaultargs[@]}" 2> $stderrfile
/var/packages/gstreamer/target/bin/gst-launch-1.0 "${defaultargs[@]}" 2> $stderrfile

View File

@@ -80,6 +80,9 @@ function patch() {
ln -s -f "$vs_bin_path/ffmpeg" "$cp_bin_path/$filename"
fi
done
mv -n "$cp_bin_path/gst-launch-1.0" "$cp_bin_path/gst-launch-1.0.orig"
ln -s -f /var/packages/gstreamer/target/bin/gst-launch-1.0 "$cp_bin_path/gst-launch-1.0"
fi
info "Saving current libsynovte.so as libsynovte.so.orig"
@@ -105,7 +108,7 @@ function unpatch() {
mv -f "$vs_bin_path/ffmpeg.orig" "$vs_bin_path/ffmpeg"
if [[ -d $cp_bin_path ]]; then
find $cp_bin_path -type f -name "ffmpeg*.orig" | while read filename
find $cp_bin_path -type f -name "*.orig" | while read filename
do
info "Restoring CodecPack's $filename"
mv -T -f "$filename" "${filename::-5}"