parent
7e38c0a5ff
commit
64b96840ff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
The patcher was redesigned to include an unpatch procedure.
|
||||
|
||||
I'm aware of an issue with HEVC and I'm working on it.
|
||||
The patcher now supports every scenarios including gstreamer (credits to @nap-liu).
|
||||
|
||||
As always, please let me know of any issue you could have.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
|
||||
#########################
|
||||
# VARS
|
||||
#########################
|
||||
|
||||
pid=$$
|
||||
stderrfile="/tmp/gstinspect-$pid.stderr"
|
||||
logfile="/tmp/gstreamer.log"
|
||||
|
||||
#########################
|
||||
# UTILS
|
||||
#########################
|
||||
|
||||
function log() {
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$1] $2" >> $logfile
|
||||
}
|
||||
function newline() {
|
||||
echo "" >> $logfile
|
||||
}
|
||||
function info() {
|
||||
log "INFO" "$1"
|
||||
}
|
||||
|
||||
function handle_error() {
|
||||
log "ERROR" "An error occurred, here is the $stderrfile content: "
|
||||
newline
|
||||
cat "$stderrfile" >> $logfile
|
||||
newline
|
||||
endprocess
|
||||
}
|
||||
|
||||
function endprocess() {
|
||||
info "========================================[end gst $pid]"
|
||||
newline
|
||||
rm "$stderrfile"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#########################
|
||||
# ENTRYPOINT
|
||||
#########################
|
||||
|
||||
trap endprocess SIGTERM
|
||||
trap handle_error ERR
|
||||
|
||||
newline
|
||||
info "========================================[start gst-inspect $pid]"
|
||||
info "GST_ARGS: $*"
|
||||
|
||||
/var/packages/VideoStation/target/bin/gst-inspect-1.0.orig "$@" 2> $stderrfile &
|
||||
|
||||
child=$!
|
||||
wait $child
|
||||
|
||||
endprocess
|
||||
@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
|
||||
#########################
|
||||
# VARS
|
||||
#########################
|
||||
|
||||
pid=$$
|
||||
stderrfile="/tmp/gstlaunch-$pid.stderr"
|
||||
logfile="/tmp/gstreamer.log"
|
||||
|
||||
#########################
|
||||
# UTILS
|
||||
#########################
|
||||
|
||||
function log() {
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$1] $2" >> $logfile
|
||||
}
|
||||
function newline() {
|
||||
echo "" >> $logfile
|
||||
}
|
||||
function info() {
|
||||
log "INFO" "$1"
|
||||
}
|
||||
|
||||
function handle_error() {
|
||||
log "ERROR" "An error occurred, here is the $stderrfile content: "
|
||||
newline
|
||||
cat "$stderrfile" >> $logfile
|
||||
newline
|
||||
endprocess
|
||||
}
|
||||
|
||||
function endprocess() {
|
||||
info "========================================[end gst $pid]"
|
||||
newline
|
||||
rm "$stderrfile"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#########################
|
||||
# ENTRYPOINT
|
||||
#########################
|
||||
|
||||
trap endprocess SIGTERM
|
||||
trap handle_error ERR
|
||||
|
||||
newline
|
||||
info "========================================[start gst-launch $pid]"
|
||||
info "GST_ARGS: $*"
|
||||
|
||||
/var/packages/VideoStation/target/bin/gst-launch-1.0.orig "$@" 2> $stderrfile &
|
||||
|
||||
child=$!
|
||||
wait $child
|
||||
|
||||
endprocess
|
||||
Loading…
Reference in New Issue