-
Notifications
You must be signed in to change notification settings - Fork 99
/
issue-report.sh
92 lines (73 loc) · 2.73 KB
/
issue-report.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
###############################
# VARS + EXTERNAL FILES
###############################
ffmpeg_version=ffmpeg
# shellcheck source=/.github/workflows/mock/VERSION
source "/etc/VERSION"
dsm_version="$productversion $buildnumber-$smallfixnumber"
vs_path=/var/packages/VideoStation
cp_path=/var/packages/CodecPack
###############################
# UTILS
###############################
function root_check() {
if [[ "$EUID" -ne 0 ]]; then
echo "This tool needs root access (please run 'sudo -i' before proceeding)."
exit 1
fi
}
################################
# ENTRYPOINT
################################
root_check
echo "
================ ISSUE REPORT TOOL ================
https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
System Details.....................................
DSM Version: $dsm_version
Arch details: $(uname -a)
Package Details....................................
VideoStation version: $(synopkg version VideoStation || echo "Not installed")
FFMPEG version ($ffmpeg_version): $(synopkg version "${ffmpeg_version}" || echo "Not installed")
CodecPack version: $(synopkg version CodecPack || echo "Not installed")
Patch Details......................................
Is patched ? $([ -f "$vs_path/target/lib/libsynovte.so.orig" ] && echo "yes" || echo "no")
Has gstreamer ? $([ -f "$vs_path/target/bin/gst-launch-1.0" ] && echo "yes" || echo "no")
FFMPEG VAAPI.......................................
$("/var/packages/${ffmpeg_version}/target/bin/vainfo" || echo "No VAAPI Support")
CodecPack Details..................................
Has AAC ? $([ -f "$cp_path/target/pack/HAS_AAC" ] && echo "yes" || echo "no")
Has HEVC ? $([ -f "$cp_path/target/pack/HAS_HEVC" ] && echo "yes" || echo "no")
"
echo "CodecPack target/bin content......................."
ls -l "$cp_path/target/bin"
echo ""
echo "CodecPack target/pack/bin content.................."
ls -l "$cp_path/target/pack/bin"
echo ""
echo "CodecPack status..................................."
cat "$cp_path/var/codec_requirements.json" || echo "file not exists"
echo ""
echo ""
echo "GSTInspect last stderr logs........................"
tail -22 /tmp/gstinspect*.stderr
echo ""
echo "GSTInspect stderr.prev logs........................"
cat /tmp/gstinspect*.stderr.prev
echo ""
echo "GSTLaunch last stderr logs........................."
tail -22 /tmp/gstlaunch*.stderr
echo ""
echo "GSTLaunch stderr.prev logs........................."
cat /tmp/gstlaunch*.stderr.prev
echo ""
echo "FFMPEG head logs..................................."
head /tmp/ffmpeg*.stderr
echo ""
echo "FFMPEG last stderr logs............................"
tail -22 /tmp/ffmpeg*.stderr
echo ""
echo "FFMPEG prev logs..................................."
cat /tmp/ffmpeg*.stderr.prev
echo ""