Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trickart/41749ae52d5c3c91a01d738a902e73b0 to your computer and use it in GitHub Desktop.
Save trickart/41749ae52d5c3c91a01d738a902e73b0 to your computer and use it in GitHub Desktop.
MPEG2 ADをvaapiでデコードするとバグるのでソフトウェアデコードするようにするやつ
diff --git a/api/script-channel-watch.vm.js b/api/script-channel-watch.vm.js
index d1db39f..e04492c 100644
--- a/api/script-channel-watch.vm.js
+++ b/api/script-channel-watch.vm.js
@@ -69,8 +69,8 @@ Usushio では使わない
if (config.vaapiEnabled === true) {
args.push("-vaapi_device", config.vaapiDevice || '/dev/dri/renderD128');
- args.push("-hwaccel", "vaapi");
- args.push("-hwaccel_output_format", "yuv420p");
+ //args.push("-hwaccel", "vaapi");
+ //args.push("-hwaccel_output_format", "yuv420p");
}
args.push('-re');
diff --git a/api/script-recorded-program-watch.vm.js b/api/script-recorded-program-watch.vm.js
index 123259c..43f07d1 100644
--- a/api/script-recorded-program-watch.vm.js
+++ b/api/script-recorded-program-watch.vm.js
@@ -186,8 +186,8 @@ function main(avinfo) {
if (config.vaapiEnabled === true) {
args.push("-vaapi_device", config.vaapiDevice || '/dev/dri/renderD128');
- args.push("-hwaccel", "vaapi");
- args.push("-hwaccel_output_format", "yuv420p");
+ //args.push("-hwaccel", "vaapi");
+ //args.push("-hwaccel_output_format", "yuv420p");
}
args.push('-i', 'pipe:0');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment