Skip to content

Instantly share code, notes, and snippets.

View tana3n's full-sized avatar

tana3n tana3n

View GitHub Profile
@tana3n
tana3n / LibISDB_datacarrousel_diff
Last active May 18, 2022 06:14
LibISDBのStock777選局可にするPatch
diff --git a/LibISDB/Windows/Viewer/ViewerEngine.cpp b/LibISDB/Windows/Viewer/ViewerEngine.cpp
index 3bf1841..aade311 100644
--- a/LibISDB/Windows/Viewer/ViewerEngine.cpp
+++ b/LibISDB/Windows/Viewer/ViewerEngine.cpp
@@ -162,6 +162,9 @@ bool ViewerEngine::IsSelectableService(int Index) const
if (m_pAnalyzer == nullptr)
return false;
+ if (m_pAnalyzer->GetDataCarrouselESCount(Index) > 0)
+ return true;
diff --git a/source/input/avs.cpp b/source/input/avs.cpp
index c84dd9b9b..3db615f56 100644
--- a/source/input/avs.cpp
+++ b/source/input/avs.cpp
@@ -77,6 +77,11 @@ void AVSInput::info_avs()
void AVSInput::openfile(InputFileInfo& info)
{
+ //thx http://csbarn.blogspot.com/2013/07/multibytetowidechartomultibyte_8.html
+ wchar_t real_filename_wchar[MAX_PATH * 4];
@tana3n
tana3n / link.txt
Created May 16, 2021 02:34
DTV/Encode関係のWebArchive
@tana3n
tana3n / markdown.md
Created March 15, 2021 01:51
AviSynth+ 3.7.0 CUDA Feature
------------------------------------------------------------------------------
CrystalDiskMark 8.0.0 Shizuku Edition x64 (C) 2007-2020 hiyohiyo
Crystal Dew World: https://crystalmark.info/
------------------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes
[Read]
SEQ 1MiB (Q= 8, T= 1): 2386.088 MB/s [ 2275.6 IOPS] < 3513.36 us>
SEQ 128KiB (Q= 32, T= 1): 2382.552 MB/s [ 18177.4 IOPS] < 1759.64 us>
@tana3n
tana3n / RaspberryPi3-on-Realtek-WLAN.md
Last active June 7, 2022 09:42
RaspberryPi 3で🦀の無線LANを動かす

Raspberry Pi 3で🦀のWLANを動かしたメモ.md

Raspbian上で確認(Ver未確認) また、

sudo apt-get install raspberrypi-kernel-headers build-essential git dkms
sudo apt-get upgrade

してある前提です。

TP-Link WN722N (V2)

一応いっておくけどV1-V3間でモジュール全部違うっぽいので別の人は調べてね

@tana3n
tana3n / Bookmarks to qpfile.py
Last active December 5, 2020 08:17
x264とか265向けのQPfileを出力するやつ
import os.path
import re
bookmarks = avsp.GetBookmarkList()
bookmarks.sort()
filename = avsp.GetScriptFilename(propose='general')
qpfile = str(re.sub(r'avs','',filename) + "qpfile")
with open(qpfile,"w") as f:
for item in bookmarks:
function AutoFrameSelect_Fast25(clip v1, clip v2, clip v3, clip v4 ,clip v5) {
global sv1=v1.Combcheck()
global sv2=v2.Combcheck()
global sv3=v3.Combcheck()
global sv4=v4.Combcheck()
global sv5=v5.Combcheck()
v12=ConditionalFilter(v1, v1, v2, "AverageChromaV(sv1)", "<", "AverageChromaV(sv2)")
global sv12=ConditionalFilter(sv1, sv1, sv2, "AverageChromaV(sv1)", "<", "AverageChromaV(sv2)")
v34=ConditionalFilter(v3, v3, v4, "AverageChromaV(sv3)", "<", "AverageChromaV(sv4)")
@tana3n
tana3n / GetTimecode.py
Last active December 5, 2020 08:22
周期不定vfrなavs用タイムコード生成Macro for AvsP
### GetTimecode v0.3 by tana3n
### Date:2020-12-05
### ChangeLog
### v0.3 2020-12-05 Trim([0-9]+.0)形式での記述時に対する対応の強化
import os
import re
filename = avsp.GetScriptFilename(propose='general')
scripts = avsp.GetText()
timecode = str(re.sub(r'avs','',filename) + "tmc")
analysis = re.sub(r'^Trim.+\..+\n','',scripts,flags=(re.IGNORECASE|re.MULTILINE))
@tana3n
tana3n / Bookmarks to Chapter(verse).py
Created September 1, 2020 06:42
Bookmarks to Chapter(verse).py
import codecs
import os.path
# run in thread
try:
bookmarks = avsp.GetBookmarkList(title=True)
except TypeError:
bookmarks = avsp.GetBookmarkList()
bookmarks.sort()
filename = avsp.GetSaveFilename(