#!/bin/env bash
#####################################################################
# Thumbnail Screenshot
#####################################################################
#
# This script takes screenshots of a movie
# Depends on mplayer, imagemagick and calc
#
# Original: Made by Starlite (http:starl1te.wordpress.com)
# https:starl1te.wordpress.com/2008/01/31/movie-thumbnailer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
# For Attacker JAV Screenshot. media info,extra info,logo,timestamp..
# Completely Update & Modified: by nietz (2018-05-01)
#####################################################################
usage="Type 'movieThumbnailer -h' for help"
#logo="/home/nietz/redfox-logo.png"
#logo="/home/nietz/rarbg-logo.png"
logo="/home/nietz/vixen-white.svg"
font="/usr/share/fonts/nerd-fonts-complete/ttf/M+ 2m bold Nerd Font Complete.ttf" ## 너드폰트, 일본어,영어,이미지 폰트
#font="/usr/share/fonts/noto-cjk/NotoSansCJK-Bold.ttc" ## 한중일 폰트
font_sub="/home/nietz/.local/share/fonts/SpoqaHanSans_all/SpoqaHanSans_jp_original/SpoqaHanSansJPBold.ttf" ## 한일 폰트
#font="/home/nietz/.local/share/fonts/SpoqaHanSans_all/SpoqaHanSans_original/SpoqaHanSansBold.ttf" ## 한일 폰트
_help(){
echo -e "\nusage: movieThumbnailer [options] [file] ... [fileN]\n
Options:
-t
~/zshrc.d/aliases.zsh
# Jav Thumbnail Screenshot with Info | very fast : $ fvpi [Video File Path]
function fvpi() {
[[ !$# -eq 0 ]] || return;
local inputfile="$1"
local outputfile="`echo ${inputfile%.*}`-preview.jpg"
local width="1920"
local height="1080"
local number="100"
[[ $2 == "" ]] || { height=$2; \
if [[ "$height" == "2160" ]]; then width="3840";
elif [[ "$height" == "1080" ]]; then width="1920";
elif [[ "$height" == "720" ]]; then width="1280";
elif [[ "$height" == "480" ]]; then width="1200";
else ; fi }
[[ $3 == "" ]] || number=$3;
# shot screenshot: -n갯수, -r가로너비, -s 시드모드, -k 타임스탬프모드, -l 로고모드, -m Manual모드
${HOME}/.local/bin/movieThumbnailer -n${number} -r${width} -s -k -l "${inputfile}"
# view screenshot by mpv
if ( echo "${inputfile}" | grep -qi " "); then
inputfile=`echo "${inputfile}" | sed 's/ /_/g'`
outputfile="`echo ${inputfile%.*}`-preview.jpg"
fi
if [[ "`pwd`" == "`dirname "${outputfine}"`" ]]; then
mpv --profile jjal ${outputfile} >/dev/null 2>&1
else
mpv --profile jjal $(basename ${outputfile}) >/dev/null 2>&1
fi
}
# p7zip - Uncompressed, Folder_name Base64 Pass: $ 7zjav [directory]
function 7zjav () {
[[ !$# -eq 0 ]] || return;
dir_name="$1"
#dir_name=$(echo $dir_name | sed -e 's/\/$//')
dir_name=$(basename $dir_name)
pass=$(echo -n "${dir_name}" | base64)
7z a -p${pass} -scsUTF-8 -ssc -mx0 ${dir_name}.7z ${1}
}
$ fvpi SSPD-133.mkv
Summary
$ ㅇㄷㅈㅅ rbd-794
1. javscrapy 스크립트: jav 라이브러리 폴더 경로에 품번폴더 생성, 마그넷 txt. json 파일 다운
2. javmoviescraper 스크립트: 포스터, 팬아트, nfo 메타데이터 생성
3. extra_meta 스크립트: 갤러리 이미지들, 예고편, extra nfo 내용 번역 추가(polt, tag, ...)
신참 모델, Kawase Shoko. 그녀가 달아나고 패션에 민감한 소녀들 사이에서 화제가 된 동안 패션 잡지의 표지로 선정되었는데, 인기는 켈리입니다. 그런 멋진 세계와는 관계없는 점포 편의점 점원에게 쇼핑하러 온 쇼코에게 ....
Newcomer model, Kawase Shoko. It was selected as a cover of a fashion magazine while she was running out and became a topic among girls sensitive to fashion, popularity is an eelbee. To Shoko who came to shopping to a store convenience store clerk Eto who has nothing to do with such a gorgeous world ...." -metadata comment="From 4.95GiB, To Hevc 10bit 720p 60fps(Vapoursynth Motion-Interpolation) low-quality" -metadata:s:v language="jpn" -metadata:s:a language="jpn" -metadata:s:s:0 title="Korean-SRT" -metadata:s:s:0 language="kor" -disposition:s:s:0 default -strict -2 RBD-794.enc.mkv
-- ffmpeg example command 2
## MIDE-051.metadata
content_id="MIDE-051"
bysubtitle="yumekanaeru"
year="2014"
title_original="パンチラ誘惑お姉さん"
actor_original="大橋未久"
actor="大橋未久(Miku Ohashi, 오하시 미쿠)"
title="MIDE-051 - パンチラ誘惑お姉さん [大橋未久] (2014)"
description="父子2人のむさ苦しかった生活。そんな家に就職活動で上京してきた従妹、未久ねえちゃんが泊まりにくることに!バラ色の共同生活は、チラリ連発のチンピク生活へ!食事中も、テレビ見てるときも、父の目を盗んで、僕にパンチラしてくる・・。萎えるヒマのない大橋未久との勃起生活をお楽しみください!
부자 2 명의 지저분 어려웠던 생활. 그런 집에 취직 활동에 상경 해 온 사촌 여동생, 未久 누나가 자러 오게! 장미 빛의 공동 생활은 살짝 연발 찐삐쿠 생활에! 식사 중에도, TV보고있을 때도, 아버지의 눈을 피해, 나에게 엿 해 온다 ··. 쇠약 틈없는 대교되지 않은 久과 발기 생활을 즐기세요!
The living life of two fathers' miserable weakness. A cousin who has been in Tokyo for a job hunting like that, Mr. Noboru will come to stay! A rosy collegiate life is a chirpy lump of chirping! Even during meals, when watching TV, I steal my father's eyes and I will panickle. Please enjoy the erection life with Morning Mai Ohashi with no wilting soil!"
copyright="https://www.moodyz.com/works/detail/mide051/"
source_size="4.92 Gib"
comment="From 4.92 GiB, To Hevc 10bit 720p 60fps low-quality - Vapoursynth Motion-Interpolation by Redfox"
## encoding
if [[ -e MIDE-051-encode.log ]];then
mv MIDE-051-encode.log "MIDE-051-encode-backup.$(date).log"; touch MIDE-051-encode.log
else
touch MIDE-051-encode.log
fi
vspipe --arg display_fps=60 \
--arg in_filename="/run/media/nietz/data_02/MIDE-051/MIDE-051.wmv" \
--y4m /home/nietz/.config/mpv/vapoursynth/mvtools.vpy - | \
ffmpeg -v info -thread_queue_size 1024 \
-i pipe:0 \
-i ~/redfox-logo.png \
-i "/run/media/nietz/data_02/MIDE-051/MIDE-051.wmv" \
-filter_complex "overlay=main_w-overlay_w-5:main_h-overlay_h-5:enable=between(t\,55\,60),drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill:enable=between(t\,55\,60),drawtext=fontfile=/home/nietz/.local/share/fonts/SpoqaHanSans_all/SpoqaHanSans_subset/SpoqaHanSansBold.ttf:text='\[무료자막배포 레드폭스 닷컴\] Subtitle\: \by yumekanaeru':fontcolor=#ae835a@0.8:fontsize=32:x=(w-tw)/2:y=(h/PHI)+8:enable=between(t\,55\,60)" \
-pix_fmt yuv420p10le \
-c:v libx265 \
-preset medium \
-x265-params crf=16:ctu=32:vbv-maxrate=2000:vbv-bufsize=3000:min_keyint=60:keyint=600:sao=0:strong-intra-smoothing=0:no-info=1 \
-c:a libopus -ac 2 -b:a 64k -vbr on -strict -2 \
/run/media/nietz/data_02/MIDE-051/test.mkv |&
tee /dev/tty >> MIDE-051-encode.log
## Muxing
if [[ -e MIDE-051-muxing.log ]];then
mv MIDE-051-muxing.log "MIDE-051-muxing-backup.$(date).log";touch MIDE-051-muxing.log
else
touch MIDE-051-muxing.log
fi
ffmpeg -v info -i test.mkv -i MIDE-051.kor.srt -c copy \
-metadata title="MIDE-051 - パンチラ誘惑お姉さん [大橋未久] (2014)" \
-metadata actor="大橋未久, Miku Ohashi, 오하시 미쿠" \
-metadata description="父子2人のむさ苦しかった生活。そんな家に就職活動で上京してきた従妹、未久ねえちゃんが泊まりにくることに!バラ色の共同生活は、チラリ連発のチンピク生活へ!食事中も、テレビ見てるときも、父の目を盗んで、僕にパンチラしてくる・・。萎えるヒマのない大橋未久との勃起生活をお楽しみください!
부자 2 명의 지저분 어려웠던 생활. 그런 집에 취직 활동에 상경 해 온 사촌 여동생, 未久 누나가 자러 오게! 장미 빛의 공동 생활은 살짝 연발 찐삐쿠 생활에! 식사 중에도, TV보고있을 때도, 아버지의 눈을 피해, 나에게 엿 해 온다 ··. 쇠약 틈없는 대교되지 않은 久과 발기 생활을 즐기세요!
The living life of two fathers' miserable weakness. A cousin who has been in Tokyo for a job hunting like that, Mr. Noboru will come to stay! A rosy collegiate life is a chirpy lump of chirping! Even during meals, when watching TV, I steal my father's eyes and I will panickle. Please enjoy the erection life with Morning Mai Ohashi with no wilting soil!"" \
-metadata copyright="https://www.moodyz.com/works/detail/mide051/" \
-metadata comment="From 4.92 GiB, To Hevc 10bit 720p 60fps low-quality - Vapoursynth Motion-Interpolation - by Redfox" \
-metadata:s:v language="jpn" \
-metadata:s:a language="jpn" \
-metadata:s:s:0 title="Korean-SRT" \
-metadata:s:s:0 language="kor" \
-disposition:s:s:0 default \
-strict -2 MIDE-051.mkv |&
tee /dev/tty | sed 's/.*\r//' >> MIDE-051-muxing.log
echo; fvpi MIDE-051.mkv
#!/bin/bash
# run as 'ffmpeg [...] /dev/null 2>/var/log/ffmpeg.log &' for background execution
# to grab all streams from the first input file, inlcuding attachments, use '-map 0'
# to grab all attachments from the first input file use '-map 0:t'
# to encode with 10 bits of colour depth use '-pix_fmt yuv420p10'
# to strip the final dot and extension from $x use '${x%.*}'
# if you need to reencode audio use Opus: '-c:a libopus -vbr on -compression_level 10 -b:a 128000' (64kbps per channel)
# to set all audio streams to 2 channels: '-ac 2' (note this will just copy over FL and FR channels without any mixing)
# to convert 5.1 sound to stereo for all audio streams with good volume levels: '-af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"'
# to encode in 720p with blackbanding use '-s hd720 -aspect 16:9' (this for 720p output; aspect adds the black bands)
##### NB: ffmpeg was programmed by a herd of baboons, so tty options have to be passed as an array instead of a string
# conveniency function printing help/usage information
usage() {
echo "Usage:"
echo "$0
--vaapi
--map-args (default: -map 0) (please pass them in single quotes)
--opus [bitrate]
--downmix-stereo
--outdir
-- final ffmpeg command script (for JAV)
...................
6. fvpi 스크립트 : 프리뷰 이미지를 뽑아내고, 텔레그램으로 해당 이미지 전송. 인코딩 오류 있는지 대략적으로 확인 후 시청 대기...
7. 오토메이션 완료 : emby, plex, kodi, 스마트 TV의 DNLA/UPNP 등으로 선택시청, MPAA XXX 등급 태그 이용 "자녀 보호 등급" 설정, 라이브러리 접속 제한 설정
7-1. xxxxxx 스크립트 :
$ xxxxx juy-455 (or $ xxxxx -l id_list.txt)
1+2+3+4+5+6 후. google-drive-ocamlfulse(or rcron)을 통해 구글드라이브/jav folder로 이동 라이브러리화 완료