This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: bash gen_iptv_m3u8.sh iptv.pcap | |
udpxy=192.168.5.1:7088 | |
input=$1 | |
workdir=${input%%.*} | |
tshark -r $1 -Y 'http.response_for.uri contains getchannellist' -T jsonraw -j data-text-lines_raw \ | |
| awk '/"data-text-lines_raw"/{getline; print}' \ | |
| sed -E 's/"|,//g' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import havsfunc as haf | |
import functools | |
input_clip = src | |
def postprocess(n, f, clip, deinterlaced): | |
if f.props['_Combed'] > 0: | |
return deinterlaced | |
else: | |
return clip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#EXTM3U name="北京联通IPTV(RTP)” | |
#EXTINF:-1,CCTV-1高清(1) | |
rtp://239.2.1.129:8000 | |
#EXTINF:-1,CCTV-2高清(2) | |
rtp://239.2.1.60:8084 | |
#EXTINF:-1,CCTV-4高清(4) | |
rtp://239.2.1.105:8092 | |
#EXTINF:-1,CCTV-7高清(7) | |
rtp://239.2.1.61:8104 | |
#EXTINF:-1,CCTV-9高清(9) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClearAutoloadDirs() | |
AddAutoloadDir("plugins") | |
LoadPlugin("D:\Apps\MeGUI\tools\dgindex\DGDecode.dll") | |
DGDecode_mpeg2source("yhy.d2v", info=3) | |
#color convert | |
ColorMatrix(mode="Rec.601->Rec.709") | |
#recover dynamic range |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
CHCP 65001>nul | |
SETLOCAL EnableDelayedExpansion | |
SET /p iv=Video File: | |
SET iv="%iv%" | |
FOR %%i in (%iv%) DO SET filename=%%~ni-mixed.mp4 | |
ECHO Output:%filename% | |
SET filename="%filename%" |