修复新版CodecPack不能播放问题

This commit is contained in:
nap.liu 2023-05-15 11:31:48 +08:00
parent 244e8dfc49
commit 3bddace398
3 changed files with 8 additions and 8 deletions

View File

@ -3,5 +3,5 @@
export LD_LIBRARY_PATH=/var/packages/VideoStation/target/lib/patch/lib/
export GST_PLUGIN_PATH=/var/packages/VideoStation/target/lib/patch/plugins/
/var/packages/VideoStation/target/bin/gst-inspect-1.0.orig "$@"
/var/packages/CodecPack/target/pack/bin/gst-inspect-1.0.orig "$@"

View File

@ -52,7 +52,7 @@ info "DEFAULT_ARGS: $*"
export LD_LIBRARY_PATH=/var/packages/VideoStation/target/lib/patch/lib/
export GST_PLUGIN_PATH=/var/packages/VideoStation/target/lib/patch/plugins/
/var/packages/VideoStation/target/bin/gst-launch-1.0.orig "$@" 2> $stderrfile &
/var/packages/CodecPack/target/pack/bin/gst-launch-1.0.orig "$@" 2> $stderrfile &
child=$!
info "gst-launch pid: $child"
wait $child

View File

@ -133,12 +133,12 @@ function patch() {
info "Enabling eac3, dts and truehd"
sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' "$libsynovte_path"
if [[ ! -f "$vs_path/etc/gstomx.conf.orig" ]]; then
info "Enabling gstreamer OpenMAX H.265 Video Decoder"
mv -n "$vs_path/etc/gstomx.conf" "$vs_path/etc/gstomx.conf.orig"
cp "$cp_path/etc/gstomx.conf" "$vs_path/etc/gstomx.conf"
chown VideoStation:VideoStation "$cp_path/etc/gstomx.conf"
fi
# if [[ ! -f "$vs_path/etc/gstomx.conf.orig" ]]; then
# info "Enabling gstreamer OpenMAX H.265 Video Decoder"
# mv -n "$vs_path/etc/gstomx.conf" "$vs_path/etc/gstomx.conf.orig"
# cp "$cp_path/etc/gstomx.conf" "$vs_path/etc/gstomx.conf"
# chown VideoStation:VideoStation "$cp_path/etc/gstomx.conf"
# fi
if [[ ! -d "$vs_lib_path/patch" ]]; then
info "Downloading gstreamer patch"