กรกฎาคม 16, 2026, 04:06:57 AM *
ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
ข่าว: AVC เปิดเฟสและโซเชี่ยลใหม่ ช่วยกันกดไลค์ติดตามนะ
เวบเข้าสู่ปีที่ 17 แล้ว ท่านสามารถช่วยเหลือเวบได้โดยสมัคร VIP (ตลอดชีพ) อ่านคอมเมนท์จากผู้ใช้งานจริง ที่นี่
 
   หน้าแรก   ช่วยเหลือ เข้าสู่ระบบ สมัครสมาชิก  
0 สมาชิก และ 2 บุคคลทั่วไป กำลังดูหัวข้อนี้ « หน้าที่แล้ว ต่อไป »
หน้า: 1 2 [3] พิมพ์
ผู้เขียน หัวข้อ: มีใครทำSubtitle จาก AI แนะนำทีครับ  (อ่าน 3736 ครั้ง)
pictureuploadsex
AV Dedicator (VIP)
วุฒิสมาชิกเอวี
***
ออฟไลน์ ออฟไลน์

กระทู้: 450

rejuvenation massage


« ตอบ #20 เมื่อ: กรกฎาคม 02, 2026, 01:07:54 AM »

แก้เซ็น



### เซลล์ 1 ###

!nvidia-smi

### เซลล์ 2 ###

%%bash

apt-get install cuda-toolkit-13-0 -y
apt-get install zstd -y

wget https://github.com/Kruk2/jasna/releases/download/v0.7.2/jasna-linux.tar.zst.part-aa -q
wget https://github.com/Kruk2/jasna/releases/download/v0.7.2/jasna-linux.tar.zst.part-ab -q
wget https://github.com/Kruk2/jasna/releases/download/v0.7.2/jasna-linux.tar.zst.part-ac -q

cat \
    jasna-linux.tar.zst.part-aa \
    jasna-linux.tar.zst.part-ab \
    jasna-linux.tar.zst.part-ac \
> jasna-linux.tar.zst

tar --zstd -xf jasna-linux.tar.zst

chmod +x jasna


### เซลล์ 3 ###

import os

### เซลล์ 4 ###

os.environ.pop("PYTHONHOME", None)
os.environ.pop("PYTHONPATH", None)


### เซลล์ 5 ###

from google.colab import drive

drive.mount("/content/drive")


### เซลล์ 6 ###

video_name = "untitled"

input_video = f"/content/drive/MyDrive/Colab Notebooks/{video_name}.mp4"

jasna_video = f"/content/{video_name}_mosaic_removal_raw.mp4"

output_video = os.path.splitext(input_video)[0] + "_mosaic_removal.mp4"


### เซลล์ 7 ###

%%bash

set -e

if [ -d "/content/drive/MyDrive/Colab Notebooks/model_weights" ]; then
    cp -r "/content/drive/MyDrive/Colab Notebooks/model_weights" "./"
    echo "Restore model_weights from Google Drive"
fi


### เซลล์ 8 ###

!./jasna \
    --input "$input_video" \
    --output "$jasna_video" \
    --device cuda:0 \
    --max-clip-size 100 \
    --temporal-overlap 10 \
    --enable-crossfade


### เซลล์ 9 ###

%%bash

set -e

if [ ! -d "/content/drive/MyDrive/Colab Notebooks/model_weights" ]; then
    cp -r "./model_weights" "/content/drive/MyDrive/Colab Notebooks/"
    echo "Backup model_weights to Google Drive"
fi


### เซลล์ 10 ###

!ffmpeg -stats \
-hwaccel cuda \
-i "$jasna_video" \
-pix_fmt yuv420p \
-c:v h264_nvenc \
-preset p1 \
-rc vbr \
-cq 25 \
-b:v 0 \
-c:a aac \
-b:a 128k \
-movflags +faststart \
"$output_video" \
-y


### เซลล์ 11 ###

from google.colab import files

files.download(output_video)












« แก้ไขครั้งสุดท้าย: กรกฎาคม 13, 2026, 10:34:03 PM โดย pictureuploadsex » บันทึกการเข้า


COLAB     OPENROUTER     ถอดซับ     แปลซับ     ฝังซับ     แก้เซ็น     ตรวจซับ     จัดซับ

https://gofile.io/d/aOZt8L

แปล subtitle เป็น ภาษาไทย

แปล ทุก คำ/ประโยค ห้าม แปล ข้าม คำ/ประโยค

แปล text เท่านั้น ห้าม แก้ไข index/timestamp เด็ดขาด

ห้าม มี อักษร อังกฤษ/จีน/ญี่ปุ่น เด็ดขาด

หมวดคำ สรรพนาม บุคคล 1 , 2 คำว่า "ฉัน" , "คุณ" เท่านั้น

หมวดคำ อนุภาค ห้าม คำว่า "ครับ" , "คะ" , "ค่ะ" เด็ดขาด

ห้าม คำ/พยัญชนะ/สระ ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 5 ครั้ง อยู่ใน index เดียวกัน

pictureuploadsex
AV Dedicator (VIP)
วุฒิสมาชิกเอวี
***
ออฟไลน์ ออฟไลน์

กระทู้: 450

rejuvenation massage


« ตอบ #21 เมื่อ: กรกฎาคม 11, 2026, 01:07:39 AM »

« แก้ไขครั้งสุดท้าย: กรกฎาคม 13, 2026, 11:40:06 PM โดย pictureuploadsex » บันทึกการเข้า


COLAB     OPENROUTER     ถอดซับ     แปลซับ     ฝังซับ     แก้เซ็น     ตรวจซับ     จัดซับ

https://gofile.io/d/aOZt8L

แปล subtitle เป็น ภาษาไทย

แปล ทุก คำ/ประโยค ห้าม แปล ข้าม คำ/ประโยค

แปล text เท่านั้น ห้าม แก้ไข index/timestamp เด็ดขาด

ห้าม มี อักษร อังกฤษ/จีน/ญี่ปุ่น เด็ดขาด

หมวดคำ สรรพนาม บุคคล 1 , 2 คำว่า "ฉัน" , "คุณ" เท่านั้น

หมวดคำ อนุภาค ห้าม คำว่า "ครับ" , "คะ" , "ค่ะ" เด็ดขาด

ห้าม คำ/พยัญชนะ/สระ ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 5 ครั้ง อยู่ใน index เดียวกัน

pictureuploadsex
AV Dedicator (VIP)
วุฒิสมาชิกเอวี
***
ออฟไลน์ ออฟไลน์

กระทู้: 450

rejuvenation massage


« ตอบ #22 เมื่อ: กรกฎาคม 11, 2026, 01:08:09 AM »

ตรวจซับ



https://www.python.org/downloads/windows/

ตรวจ ซับไตเติล มี ภาษา อังกฤษ/จีน/ญี่ปุ่น หรือไม่

คัดลอก & วาง โค้ด บน Notepad แล้ว บันทึก

Name = regex_foreign_language.py
Type = All Files
Encoding = UTF-8


python "regex_foreign_language.py"



import re

pattern = re.compile(
    r'[A-Z]'
    r'|[a-z]'
    r'|[\u4E00-\u9FFF]'
    r'|[\u3040-\u309F]'
    r'|[\u30A0-\u30FF]'
)

found = False
current_index = None

subtitle_name = "untitled_thai"

with open(f"{subtitle_name}.srt", "r", encoding="utf-8") as f:
    for line in f:
        line = line.strip()

        if line.isdigit():
            current_index = int(line)

        elif pattern.search(line):
            found = True
            print(f"Index {current_index}: {line}")

if not found:
    print("No English Language , No Chinese Language , No Japanese Language")


« แก้ไขครั้งสุดท้าย: กรกฎาคม 12, 2026, 01:09:48 AM โดย pictureuploadsex » บันทึกการเข้า


COLAB     OPENROUTER     ถอดซับ     แปลซับ     ฝังซับ     แก้เซ็น     ตรวจซับ     จัดซับ

https://gofile.io/d/aOZt8L

แปล subtitle เป็น ภาษาไทย

แปล ทุก คำ/ประโยค ห้าม แปล ข้าม คำ/ประโยค

แปล text เท่านั้น ห้าม แก้ไข index/timestamp เด็ดขาด

ห้าม มี อักษร อังกฤษ/จีน/ญี่ปุ่น เด็ดขาด

หมวดคำ สรรพนาม บุคคล 1 , 2 คำว่า "ฉัน" , "คุณ" เท่านั้น

หมวดคำ อนุภาค ห้าม คำว่า "ครับ" , "คะ" , "ค่ะ" เด็ดขาด

ห้าม คำ/พยัญชนะ/สระ ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 5 ครั้ง อยู่ใน index เดียวกัน

pictureuploadsex
AV Dedicator (VIP)
วุฒิสมาชิกเอวี
***
ออฟไลน์ ออฟไลน์

กระทู้: 450

rejuvenation massage


« ตอบ #23 เมื่อ: กรกฎาคม 11, 2026, 01:08:45 AM »

จัดซับ



https://www.python.org/downloads/windows/

จัด ซับไตเติล แต่ละ บรรทัด ไม่เกิน 25 อักษร

คัดลอก & วาง โค้ด บน Notepad แล้ว บันทึก

Name = pythainlp_word_tokenize.py
Type = All Files
Encoding = UTF-8


python -m pip install pythainlp

python "pythainlp_word_tokenize.py"



import re

from pythainlp.tokenize import word_tokenize

MAX_LEN = 25

subtitle_name = "untitled_thai"

input_subtitle = f"{subtitle_name}.srt"
output_subtitle = f"{subtitle_name}_pythainlp.srt"


def wrap_thai(text, MAX_LEN):

    words = word_tokenize(text)

    lines = []
    current = ""

    for word in words:

        if len(current + word) <= MAX_LEN:
            current += word

        else:

            if current:
                lines.append(current)

            current = word

    if current:
        lines.append(current)

    return "\n".join(lines)


with open(input_subtitle, "r", encoding="utf-8-sig") as f:
    content = f.read()

blocks = re.split(r"\n\s*\n", content.strip())

new_blocks = []

for block in blocks:

    lines = block.splitlines()

    if len(lines) < 3:
        new_blocks.append(block)
        continue

    text = " ".join(
        line.strip()
        for line in lines[2:]
        if line.strip()
    )

    text = wrap_thai(text, MAX_LEN)

    new_blocks.append(
        f"{lines[0]}\n{lines[1]}\n{text}"
    )

with open(output_subtitle, "w", encoding="utf-8", newline="\n") as f:
    f.write("\n\n".join(new_blocks))

print(f"Saved: {output_subtitle}")


« แก้ไขครั้งสุดท้าย: กรกฎาคม 11, 2026, 02:29:38 AM โดย pictureuploadsex » บันทึกการเข้า


COLAB     OPENROUTER     ถอดซับ     แปลซับ     ฝังซับ     แก้เซ็น     ตรวจซับ     จัดซับ

https://gofile.io/d/aOZt8L

แปล subtitle เป็น ภาษาไทย

แปล ทุก คำ/ประโยค ห้าม แปล ข้าม คำ/ประโยค

แปล text เท่านั้น ห้าม แก้ไข index/timestamp เด็ดขาด

ห้าม มี อักษร อังกฤษ/จีน/ญี่ปุ่น เด็ดขาด

หมวดคำ สรรพนาม บุคคล 1 , 2 คำว่า "ฉัน" , "คุณ" เท่านั้น

หมวดคำ อนุภาค ห้าม คำว่า "ครับ" , "คะ" , "ค่ะ" เด็ดขาด

ห้าม คำ/พยัญชนะ/สระ ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 5 ครั้ง อยู่ใน index เดียวกัน

Hellossattaya
ปลิงควาย
*
ออฟไลน์ ออฟไลน์

กระทู้: 21


« ตอบ #24 เมื่อ: กรกฎาคม 11, 2026, 04:53:05 AM »

ดูขั้นตอนทำและเหนื่อยแท้ รอดูฟรีในบอร์ดดีกว่า
บันทึกการเข้า
หน้า: 1 2 [3] พิมพ์ 
« หน้าที่แล้ว ต่อไป »
กระโดดไป:  















AV Community Since 2009 : AVCollectors.com - Advertising please contact [email protected]