No.76893 [View All]
a collection of guides/scripts/general quality of life improvements for /^kne{1,2}(ts|rd)s?$/
Downloading from YouTube v3.0
https://git.io/v5sMF
MPV Guide v2.0
https://github.com/kpganon/MPV
Ripping HR KPICS with DownThemAll! v1.2
https://git.io/v5GLm
Scraping Tistory (special thanks to kagami)
https://github.com/Kagami/tistore/releases
https://github.com/kpganon/Guides
https://kpganon.github.io/
15 posts and 23 image replies omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.76970
https://github.com/Kagami/boram
this is his aio webm program, it's pretty good. better than webm4retards in some ways and worse in others, personally i don't use it but others might
the biggest drawback for me is not being able to cut by exact frame like with webm4retards and the filesize limit doesn't work that well which makes it kind of a guessing game if you're doing crf
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.76971
https://github.com/Kagami/webm.py
this is his best script by far imo. it's basically an ffmpeg wrapper written in python with mpv integration, it simplifies the process a lot even if you're not using an alias to shorten the commands further (which you should be)
if you install it with pip (highly reccomended) basic usage is as follows
webm -i "C:/path/to/input.mp4" -vh 720 -an -l 3 -mt "[title/source url here]" -vp8 -vf reverse,atadenoise,"setpts=2.0*PTS" -o "C:/path/to/output.webm"
this will output an audioless webm downscaled to 720 vertical resolution with 3MB file restraint adding a metadata title and then applying filters which in this case are reversing the video, denoising and then slowing by 50%
* https://ffmpeg.org/ffmpeg-filters.html
as an alias this can be shortened to
webm $1 -vh 720 -an -l $2 -mt "$3" -vp8 -o $4
where
$1 = "C:/path/to/input.mp4"
$2 = desired filesize
$3 = source url (no spaces)
$4 = "C:/path/to/output.webm"
this would shorten your input to
webm "C:/path/to/input.mp4" 3 [URL] "C:/path/to/output.webm"
this can further be shortened to simply
webm "C:/path/to/input.mp4"
but i'll save aliases for another post
https://github.com/Kagami/webm.py/wiki/Related-links
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.76975
https://gitgud.io/nixx/WebMConverter
then we have good ol' webm4retards. everybody knows this one but they might not be aware of how powerful it can be if you know how to use avisynth scripts
multiple trim works by selecting multiple start/end points for multiple clips that you want to join together, everything outside of those bounds will be skipped
preview filters will open ffplay to preview all effects, this is especially useful when using avisynth filters
export will export an .avs script file with your filename and effects which you can then input into ffmpeg for advanced editing
then finally on the advanced tab you can write avisynth script directly. there are a lot of things you can do with this (see http://avisynth.nl/index.php/Internal_filters) but here are just a few examples
# Trim video by frame
#Trim(start_frame, end_frame)
Trim(173, 2348)
# Flip video
FlipHorizontal
FlipVertical
# Fade In/Out
#FadeIn(#_of_frames) // FPS * (Fade time in seconds)
FadeIn(60)
FadeOut(60)
# Crop
# Crop 8px off the left, 2px off the top, 9px off the right, and 0px off the bottom
Crop(8, 2, -9, 0)
#Resize
#LanczosResize(W, H)
LanczosResize(1920, 1080)
#Tweak (contrast, brightness, hue, saturation etc)
* see http://avisynth.nl/index.php/Tweak
Tweak(cont=1.2, bright=-20)
it works like a regular script in that it's all sequential so order matters here
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.76977
https://axiomui.github.io/
also there's this. i haven't tried it yet but you can save presets and export commands which is convenient
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.82221
Setting up aliases on windows:
1. Navigate to your home directory (windows key + R, "%USERPROFILE%")
2. Create a text file and name it mybatfile.cmd
3. Add the following lines and save
@echo off
doskey /macrofile="%USERPROFILE%\myaliases.txt"
4. Create a second text file and name it myaliases.txt
5. Add desired aliases here and save
ydl=youtube-dl -f bestvideo+bestaudio $*
6. Run Command Prompt (windows key + R "cmd")
7. Input the following string
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun ^ /t REG_EXPAND_SZ /d "%"USERPROFILE"%\mybatfile.cmd" /f
* this will make your aliases load every time you launch terminal
* to delete it: reg delete "HKCU\Software\Microsoft\Command Processor" /v AutoRun
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.82223
a handful of aliases to get you started, you'll have to change the paths on some of them but you get the idea:
;= is a comment
;= [optional] set variables in %USERPROFILE%\mybatfile.cmd as follows:
;= YYYYMMDD
;= SET DATESTAMP=%Date:~-2,2%%Date:~4,2%%Date:~7,2%
;= HH_MM_SS
;= SET TIMESTAMP=%time:~0,2%_%time:~3,2%_%time:~6,2%
;= SET DESKTOPDIR=%USERPROFILE%\Desktop\
;= Shortcuts
;= open desktop in explorer
desktop=cd /D %USERPROFILE%\Desktop
;= open current directory in explorer
e=start .
;= open alias file in default editor
aliasfile="%USERPROFILE%\myaliases.txt"
;= open files in notepad2
batfile="C:\Program Files\Notepad2\Notepad2.exe" C:\Users\HTPC\mybatfile.cmd
hangul="C:\Program Files\Notepad2\Notepad2.exe" H:\ORGANIZE2\KPOP\hangul.txt
;= Youtube-dl
;= best available with m4a audio
ydl=youtube-dl -f bestvideo+bestaudio[ext=m4a]/bestaudio $*
;= audio only to custom dir
ydla=youtube-dl -f bestaudio --extract-audio --audio-format mp3 --download-archive C:\Users\HTPC\AppData\Roaming\youtube-dl\downloaded.txt --embed-thumbnail --add-metadata -o "E:\youtube-dl\New\music\%(uploader)s\%(title)s.%(ext)s" $*
;= best single format available
ydlb=youtube-dl -f best $*
;= video only to custom dir
ydlv=youtube-dl -f bestvideo $* -o "C:\Users\HTPC\Desktop\%(uploader)s - %(title)s.%(ext)s"
;= best available to custom dir (for twitter videos)
dlt=youtube-dl -f best $* -o "C:\Users\HTPC\Desktop\%(uploader)s - %(title)s.%(ext)s"
;= download soundcloud user's uploads to custom dir
soundrip=youtube-dl --ignore-config --extract-audio --audio-format mp3 https://soundcloud.com/$1 --download-archive "C:\Users\HTPC\AppData\Roaming\youtube-dl\downloaded.txt" -o "H:\RIPS\Soundcloud\$1\%(uploader)s - %(title)s.%(ext)s"
;= copy direct url to clipboard
geturl=youtube-dl -f best -g $1|clip
geturlb=youtube-dl -f $2 -g $1|clip
;= get bestvideo available in mp4 format via youtube-dl and pip into mpv for viewing (useful for the mpv webm plugin which only supports mp4 with no audio from streaming sources)
ydlcut=youtube-dl -f bestvideo[ext=mp4]/best -g $1 | xargs mpv
;= FFMPEG
;= 2pass encoding from url
webffm="C:\Users\HTPC\ffmpeg.exe" -i $1 -y -codec:v libvpx -quality good -cpu-used 0 -b:v 500k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -vf scale=-1:720 -an -pass 1 -f webm NUL && "C:\Users\HTPC\ffmpeg.exe" -i $1 -codec:v libvpx -quality good -cpu-used 0 -b:v 500k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -vf scale=-1:720 -codec:a libvorbis -b:a 128k -pass 2 -f webm "C:\Users\HTPC\Desktop\%DATESTAMP%@%TIMESTAMP%.webm"
;= remove audio from webm without reencoding
ffcopy=ffmpeg -i $1 -vcodec copy -an "C:\Users\HTPC\Desktop\%DATESTAMP%@%time:~0,2%_%time:~3,2%_%time:~6,2%.webm"
;= copy vcodec and reencode audio
ffcopyaudio=ffmpeg -i $1 -vcodec copy -acodec libvorbis "C:\Users\HTPC\Desktop\%DATESTAMP%@%time:~0,2%_%time:~3,2%_%time:~6,2%.webm"
;= convert file to mp4
ffmp4=ffmpeg -i $1 -vcodec libx264 -acodec aac "C:\Users\HTPC\Desktop\%DATESTAMP%@%time:~0,2%_%time:~3,2%_%time:~6,2%.mp4"
;= WEBM.PY (https://github.com/Kagami/webm.py)
;= 4chan
webm4chan=webm.py -i $1 -vh 720 -an -l 3 -mt "$2" -vp8 -o %DESKTOPDIR%%DATESTAMP%@%TIMESTAMP%.webm
webm4chan2=webm.py -i $1 -vh $2 -an -l 3 -mt "$3" -vp8 -o %DESKTOPDIR%%DATESTAMP%@%TIMESTAMP%.webm
webm4chan3=webm.py -i $1 -vh $2 -an -l $3 -mt "$4" -vp8 -o %DESKTOPDIR%%DATESTAMP%@%TIMESTAMP%.webm
webm4chansd=webm.py -i $1 -vh 480 -an -l 3 -mt "$2" -vp8 -o %DESKTOPDIR%%DATESTAMP%@%TIMESTAMP%.webm
;= 8chan
webm8chan=webm.py -i $1 -vh 1080 -an -l 12 -mt "$2" -vp8 -o %DESKTOPDIR%%DATESTAMP%@%TIMESTAMP%.webm
webm8chana=webm.py -i $1 -vh 1080 -l 12 -mt "$2" -vp8 -o %DESKTOPDIR%%DATESTAMP%@%TIMESTAMP%.webm
;= MPV
;= open given playlist file in mpv
mpvp="C:\Users\HTPC\mpv.exe" -shuffle -volume=100 --no-resume-playback --window-scale=0.25 $*
;= open predefined playlist file in mpv
mpvpl="%USERPROFILE%\mpv.exe" -shuffle -volume=100 --no-resume-playback --window-scale=0.25 "%USERPROFILE%\Desktop\playlist.m3u"
;= open audio file in mpv console
mpva=mpv --no-video -volume=100 $*
;= search youtube for audio
mpvs=mpv --no-video --ytdl-format=bestaudio ytdl://ytsearch100:"$*"
;= search youtube for audio with custom # of results
mpvs2=mpv --no-video --ytdl-format=bestaudio ytdl://ytsearch$2:\"$1\"
;= OTHER
;= open private fapcam playlist in mpv and shuffle
fapcams=mpv --ytdl-format=bestvideo+bestaudio --ytdl-raw-options=username=[email],password=[password] --shuffle [PRIVATE PLAYLIST URL]
;= open files in media player
vlc="C:\Program Files (x86)\VLC\vlc.exe" $1
mpc="C:\Program Files (x86)\MPC-HC\mpc-hc.exe" /fullscreen "$*"
;= ***END***
;=
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.82224
https://conemu.github.io/
https://draculatheme.com/conemu/
should have posted this sooner but this is the best console i've found so far
you can split the terminal with ctrl+T by adding this task if it's not there already (see settings pic)
*cmd /k "%ConEmuDir%\..\init.bat" -new_console:s50W
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.82225
another qol improvement is adding copy as path to the windows context menu. for commandline stuff it's better to just drag+drop the file onto the console but this is still p useful for hangul filenames
either save the following script as .reg or just download the .pdf files and change the extension
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Copy as Path]
[HKEY_CLASSES_ROOT\*\shell\Copy as Path\command]
@="cmd.exe /c chcp 65001 && echo "%1"|clip && chcp 437"
[HKEY_CLASSES_ROOT\Directory\shell\Copy as Path]
[HKEY_CLASSES_ROOT\Directory\shell\Copy as Path\command]
@="cmd.exe /c chcp 65001 && echo "%1"|clip && chcp 437"
there is a bug with this that registers an empty second line which will send {enter} if pasted into a console. idk why it does that but if you paste into any other program/text box it works fine
also depending on your nationality your chcp might be different. to check just type "chcp" into console and it will say "Active code page: xxx"
if it's anything other than 437 you can change both lines in the script to match but it doesn't actually matter since it's a seperate console that closes immediately after.
also note there's a setting in conemu that will make all .bat/.cmd/etc files run through conemu instead of the default command prompt. it's not necessary but i prefer it
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.85065
https://github.com/Thann/play-with-mpv
https://chrome.google.com/webstore/detail/play-with-mpv/hahklcmnfgffdlchjigehabfbiigleji?utm_source=chrome-app-launcher-info-dialog
this is a good alternative method for launching videos in mpv via the chrome (much easier with firefox https://addons.mozilla.org/en-US/firefox/addon/open-with/) context menu or an extension button. normally i would just drag+drop the url onto mpv but if it's not already open this is really useful
easy install assuming you already have git and python:
git clone https://github.com/Thann/play-with-mpv && cd play-with-mpv && start server.py
or just download manually. afterwards make a bat script to run this at startup if you wish
open your startup folder
win key+r "shell:startup"
create start_mpvserver.bat and paste the following
start "C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python35-32\python.exe" C:\Users\%USERNAME%\play-with-mpv\server.py
this assumes you have python 3 installed and installed play-with-mpv in your home directory. if not this should work too
python C:\path\to\play-with-mpv\server.py
after that just go to any page that works with youtube-dl (https://rg3.github.io/youtube-dl/supportedsites.html) and click the mpv icon or right-click a url to open via the context menu
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.85319
https://www.strem.io/
https://www.strem.io/faq
http://addons.strem.io/
stremio is a pretty dope aio for content streaming/discovery from a number of sources like youtube, netflix, rarbg.to and most notably torrent files directly. there are several addons you can install either through the site or manually
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.85683
https://github.com/mafintosh/peerflix
i found another way to stream torrent files/magnets through mpv directly. it requires a package manager called npm but other than that it's pretty straight-forward
just install npm from here (download the .msi)
https://nodejs.org/en/download/
then open cmd.exe (winkey+r "cmd") and enter
npm install -g peerflix
after that you'll need to restart your computer for it to launch mpv correctly (i had to anyway). then, assuming it's a single-file torrent and you have mpv installed correctly (ie you can call it just by typing mpv in console), type the following
peerflix "[magnet link url or /path/to/file.torrent]" -r -k -f "X:/path/to/.temp"
to play with mpv
-r = remove files from %LOCALAPPDATA%\Temp\torrent-stream on exit (pretty sure this is broken atm but i have a workaround -- see below)
-l = interactively list all files (up/down arrows to choose)
-k = open with mpv player
-a = load all files in the torrent into .m3u (intended for music files only i think)
-f = path to tmp folder
you can shorten this with an alias like
mpvflix=peerflix $* -l -k -f "X:/path/to/.temp"
so input is simplified to just
mpvflix "magnet:?xt="
* notes:
+always wrap in double quotes
+launch speed/playback is entirely
dependent on swarm health
i also found this script https://gist.github.com/ElegantMonkey/bba287693830055a6bad90081c1ad4e2#file-peerflix-hook-lua which is a hook for peerflix that enables you to paste magnet links directly into mpv like any other url without using console but it appears it only works for linux
you can launch directly from the browser too if you use linux/firefox apprently http://www.webupd8.org/2014/03/peerflix-stream-torrents-with-vlc-or.html
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.85729
>>85683
the -r option doesn't work but we can do it manually by chaining a couple of scripts at the end of the peerflix command
1. you need to have your alias/bat files set up already. see >>82221
2. navigate to your home folder (winkey+r "%USERPROFILE%"
3. create the following scripts
cleartmp.cmd
@echo off
set dir="X:\path\to\.temp"
rmdir /s /q %dir%
mkdir %dir%
cleartmp.vbs
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\Users\%USERNAME%\cleartmp.bat" & Chr(34), 0
Set WshShell = Nothing
4. open your batfile.cmd and enter the following string
SET cleartmp=start "C:\Users\%USERNAME%\cleartmp.vbs"
5. then edit your aliases.txt and make an alias for peerflix like so
mpvflix=peerflix $* -l -k -f "X:/path/to/.temp" && cleartmp
now all files in your designated tmp folder will be deleted immediately after closing mpv without opening a second terminal window
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.86790
https://glowmpv.github.io/
https://github.com/MattMcManis/Glow
so the guy who made axiom >>76977 just released a configurator for mpv.conf settings. really useful if you aren't familiar with all the options
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.86806
>>85065
https://chrome.google.com/webstore/detail/watch-with-mpv/gbgfakmgjoejbcffelendicfedkegllf
https://github.com/winneon/watch-with-mpv
a similar extension that simplifies this a bit just came out too. it creates a registry service so the server is automatically loaded. the only caveat is mpv/youtube-dl/ffmpeg all have to be in your %PATH%
this can be slightly complicated depending on how you have them installed (whether through pip/manually or some other package manager). if you don't know if they are in your path you can check by
1. opening terminal (winkey+r "cmd") then
cd %USERPROFILE%\Desktop
youtube-dl
ffmpeg
mpv
if the programs load from outside %USERPROFILE% then you're good to go. if not you'll have to append the directory that the executable is in to your %PATH% manually. there's a few different ways to do this but the shortest is to
1. winkey+r "rundll32 sysdm.cpl,EditEnvironmentVariables"
2. double-click PATH
3. add the parent folder of your exe to the end of the string
C:\Some\Other\Directory;C:\path\to\your\folder;
* probably easiest to use C:\Users\%USERNAME%\bin;
then either run "refreshenv" or restart cmd.exe and type "echo %PATH%" to see the changes. you should now be able to call mpv from any directory
if for some reason you can't (user %PATH% is >1024 characters for example) you can use this tool https://www.rapidee.com/en/download to set a system-wide %PATH% variable with all your .exe in the bin folder. then just
1. install the extension
2. download the installer from github
3. extract the archive into C:\Users\%USERNAME%\
4. right click install.bat and run as admin
5. profit
if it still doesn't work then try making copies of all 3 .exes + dlls in your %HOMEPATH%
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.88559
randomize filenames.sh
#!/bin/bash
for i in *.{jpg,png,gif,webm,mp4,mkv}; do
variable1=$(echo $(date +%s));
variable2=$(shuf -i 1-100000 -n 1);
filename=$(($variable1 + $variable2));
extension=$(echo "$i"|awk -F . '{print $NF}');
mv "$i" "$filename.$extension";
done
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.89724
https://github.com/apsun/GoogleImageShell
this is really useful for finding full res pics, i'm sure there's a similar tool for https://www.tineye.com/ and other sites too
just install the .exe on the releases page to a permanent directory like %home% and run as admin
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.95757
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.95854
>>95757
<nunu
absolutely based! it works great thank you so much chingu
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.95857
>>95757
a bit unrelated but i use webm.py all the time and i noticed that it doesn't work with hangul text in either the filename or metadata. it gives one of two errors: "failed to parse duration of input file" or "list index out of range". for reference:
Exception in thread Thread-8:
Traceback (most recent call last):
File "c:\users\htpc\appdata\local\programs\python\python35-32
\lib\threading.py", line 914, in _bootstrap_inner
self.run()
File "c:\users\htpc\appdata\local\programs\python\python35-32
\lib\threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "c:\users\htpc\appdata\local\programs\python\python35-32
\lib\subprocess.py", line 1283, in _readerthread
buffer.append(fh.read())
File "c:\users\htpc\appdata\local\programs\python\python35-32
\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_tab
le)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in p
osition 243: character maps to <undefined>
Cannot proceed due to the following error: list index out of ra
nge
the same files with hangul text work perfectly using ffmpeg directly and i have my terminal encoding set to utf-8 (cp65001) so i'm pretty sure it's an issue either with python's default encoding or the webm.py code itself which i have no idea how to change. if i remove all hangul text from the filename and metadata it works fine though
is this a problem on my end or something you can fix within webm.py? thanks for all your help btw
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.95963
>>95857
Try now. Should work with Py3.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.95986
Download files faster
aria2c -o out.mp4 -j 16 -x 16 -s 16 -k 1M $(youtube-dl -g http://www.vlive.tv/video/123)
Naver CDN gives only ~1.5MB/s for single-threaded download, using 16 threads easily gives you 10MB/s. Same for tv.naver.com.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96028
>>95963
https://git.io/vFITt
can confirm the new build works, thanks a ton!
any idea when this version will be updated to work with pip? i only ask because i have a bunch of aliases that use "webm" instead of "webm.py" i'd rather not change
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96029
>>95986
+1 for aria2c, this command should work with any site supported by youtube-dl too (provided there aren't separated video+audio files like youtube)
https://aria2.github.io/
https://rg3.github.io/youtube-dl/supportedsites.html
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96030
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96089
>>96030
so i just reinstalled via pip and it still isn't working
C:\Users\HTPC\Desktop
λ webm
'webm' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\HTPC\Desktop
λ pip install webm
Collecting webm
Using cached webm-0.11.0.tar.gz
Installing collected packages: webm
Running setup.py install for webm ... done
Successfully installed webm-0.11.0
C:\Users\HTPC\Desktop
λ pip show webm
Name: webm
Version: 0.11.0
Summary: Encode WebM videos
Home-page: https://github.com/Kagami/webm.py
Author: Kagami Hiiragi
Author-email: kagami@genshiken.org
License: CC0
Location: c:\users\htpc\appdata\local\programs\python\python35-32\lib\site-packages
C:\Users\HTPC\Desktop
λ python C:\Users\HTPC\Desktop\webm.py --version
webm.py 0.11.0
the version number is updated but i get a "failed to parse duration of input file" error so i think it's the wrong code because i manually downloaded this https://git.io/vFIro version (before you fixed the version number) and it works fine but they both show as version 11.0
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96090
>>96089
What does "pip –version" print?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96092
>>96090
Hm, the code is correct, it's python's .exe wrapper issue.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96095
I think your best bet is to create webm.bat withpython c:\users\htpc\appdata\local\programs\python\python35-32\lib\site-packages\webm.py %*
Python is shit.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96126
>>96095
i'm on pip 9.0.1 which says it's up to date. i don't really understand why the old version works and the new one doesn't but this is a fine solution. thanks again for your help, i use your scripts a lot so i really appreciate it
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96127
>>96126
webm.exe passes garbage instead of unicode arguments to the script.
Calling webm.py via python directly works fine.
It's probably issue in pip (setuptools) which creates that "webm.exe" wrapper.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.96129
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.103614
RSS feeds are extremely useful for keeping updated with all things kpop related. i use feeder for google chrome (https://chrome.google.com/webstore/detail/rss-feed-reader/pnjaodmkngahhkoihejjehlcdlnohgmp?hl=en) but there's plenty of other options
you can rss just about anything (youtube, twitter, instagram, fb, periscope etc) with this site
https://rssbox.herokuapp.com/
a lot of sites like tumblr have built in rss feeds, with feeder there will be a + on the extension icon if it's available
https://xxxxx.tumblr.com/rss
https://kr.1z2x1z.com/feed
for everything else
http://createfeed.fivefilters.org/index.php
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.104872
i found this script for making mv playlists in mpv based on a search term
#!/bin/bash
#
# Author: Twily 2017
# Description: Play everything on youtube based on your search tag.
# Requires: mpv
# Usage $ sh ./ytplay Some Artist
SRC="$@"
SRC=${SRC// /%20}
SRC=${SRC//&/%26}
TAG="#music"
URL="https://www.youtube.com/results?search_query="
mpv "$URL$SRC$TAG" --really-quiet --force-window=immediate --keep-open --loop=inf &
exit 0
you need bash but once you have it installed you can make an alias to run it like this
ytp=C:\cygwin64\bin\bash.exe C:\Users\%USERNAME%\ytplay.sh $*
the script is written to get videos specifically tagged for #music which makes it slightly different than searching via mpv directly. you can make an alias to get any results and play just the audio through terminal like this
mpvs=mpv --vo=null --ytdl-format=bestaudio ytdl://ytsearch100:"$*"
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.111339
thanks for all the nice recommendations chingu, I have a problem with tweeten.
My twitter account got blocked because it looked like a bot (probably because of my 10 minute e mail) however tweeten went into "do-nothing-mode" like pic related. I tried restarting and then reinstalling. Now when I try to install it (on a brand new win7 btw) it is stuck on this window(pic related)
what do?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.111341
>>111339
try deleting the tweeten folder in "C:\Users\%USERNAME%\AppData\Local\Tweeten" and "C:\Users\%USERNAME%\AppData\Roaming\Tweeten" and then reinstalling via https://github.com/MehediH/Tweeten/releases
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.111342
>>111341
I fucking knew it was some shit like that, didn't find the folders. thank you it works <3
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.119832
banner on the right side
img.board_image {
background-image: url(https://banners.8ch.net/banners/kpop/1497892680310.png);
position: fixed;
right: 12px;
top: 13px;
z-index:-1;
box-sizing: border-box;
width: 300px;
height: 100px;
padding-left: 300px;
}
pick one here https://banners.8ch.net/list/kpop
mascot code
html, body
{
background-color: #111111 !important;
background-image: url(https://media.8ch.net/file_dl/94aa4af77ff70bcefa9259424883bd17ce13ad531b6287c90641c32f197093b7.png/chaewife2.png) !important;
background-position: right bottom !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
background-size: 45%;
color: #999999;
font-family: sans-serif;
font-size: 12px;
}
note these can only be used seperately, there's probably a way to get them both working but i haven't figured it out yet
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.119834
download files much faster with youtube-dl+aria2c no bash required
1. install youtube-dl+aria2c if you don't already have them either manually or through chocolatey package manager (https://github.com/rg3/youtube-dl / https://github.com/aria2/aria2/releases/ / https://chocolatey.org/install)
choco install youtube-dl && choco install youtube-dl
2. create an alias (see >>82221)
ydld=youtube-dl -f bestvideo+bestaudio --add-metadata --ignore-errors --user-agent "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0" --external-downloader aria2c --external-downloader-args "-x 16 -s 16 -k 1M" -o "C:\Users\%Username%\Desktop\%(uploader)s - %(title)s_%(height)sp-%(id)s.%(ext)s" $*
this will download and merge bestvideo+bestaudio to your desktop, for sites that use single formats (ie not youtube) you'll want to make another alias using -f best
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.119837
multi-threaded/parallel download 30+ links at the same time via aria2c
https://github.com/eladkarako/parallel-multipart-downloader
basically an aria2c script, pretty self-explanatory just put all the links you want in the text file and it will download them at the same time insead of sequentially
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.120263
>>119834
You can create config for youtube-dl (~/.config/youtube-dl/config or %APPDATA%/youtube-dl/config.txt) so external downloader always will be used.
Also "-j 16" (or more) because it's 5 by default. "-x" can only be 16 max.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.120264
Download full resolution photos from blog.naver.com
curl -s "$URL" | sed -nr 's#.*<img.*src="https?://post(files[^?]+).*#https://blog\1#p' | aria2c -j 16 -x 16 -i -
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.138426
>>119832
i figured it out some time ago but forgot to post it so hyg
img.banner, img.board_image {
position: fixed;
float: right;
margin-top: 26px;
margin-right: 12px;
right:0px;
top:0px;
z-index:-1;
}
div.banner {
background-color: transparent;
}
body {
background-image: url("https://media.8ch.net/file_store/bb4f608b8ada499daee76bf3f3383e26d2c064043583d1b66e1b1f5d3c8508b7.jpg");
background-size: 300px, auto;
background-attachment: fixed;
background-position: right 12px bottom 55px;
background-repeat: no-repeat;
}
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.138444
>>138426
the float: right;
part in line 3 is redundant btw, sorry for that
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.138691
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.142651
https://net.kpop.re
Idol profiles database.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.142652
>>142651
>face of the group
lmao based
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.142653
bona deserves a better picture…
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.154820
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.171858
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
No.174936
ublock filters to hide ads and that stupid post disclaimer
##.disclaimer-8kun
||media.8kun.top/static/vanwatech.png$image
###new-bottom-ads
change 8chanx script (https://github.com/Pashe/8chanX) to match the new domain
// @match *://8kun.top/*
// @match *://h.8kun.top/*
// @match *://h.8kun.top/*
// @match *://jp.8kun.top/*
// @match *://jp.8kun.top/*
// @match *://sys.8kun.top/*
// @match *://8kun.top/*
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.