|
หัวข้อ: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 18, 2025, 09:51:35 AM ไปหาค้นในกูเกิ้ล AI subtitle generator มีเยอะทั้งออนไลน์และโปรแกรม ส่วนใหญ่ไม่ฟรี
ซับไทยมันก็ไม่ได้มีทุกเรื่องเลยต้องทำเอง ตอนนี้กำลังว่าจะลองทำ AI Voice to Text น่าจะง่ายกว่า ส่วนใหญ่ฟรีด้วย หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 18, 2025, 11:32:35 AM ผมลองเทสแปลบนเว็บฟรี30นาทีโดยแปลงไฟล์TS=Mp3/128kbps คุณภาพมันก็ใช้ได้อยู่พอๆกับเว็บแมว
ดูในยูทูปเห็นมีซอฟต์แวร์ฟรีด้วย (https://i.ibb.co/W007DPD/01.png) (https://ibb.co/HCCRNxN) (https://i.ibb.co/KG8kctx/02.png) (https://ibb.co/n0KvqXM) (https://i.ibb.co/1ddtwZq/03.png) (https://ibb.co/TbbxFc8) (https://i.ibb.co/TmWVRgx/04.png) (https://ibb.co/0hsgZGR) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: อบเชยเฉยๆ ที่ มกราคม 18, 2025, 11:39:44 AM https://www.avcollectors.com/board/index.php?topic=238237.0
หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 18, 2025, 11:42:12 AM https://www.avcollectors.com/board/index.php?topic=238237.0 ขอบคุณครับ พอดีผมค้นหาจาก https://www.avcollectors.com/search/ ไม่เจอเลยตั้งเองหัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: WCHA4 ที่ มกราคม 18, 2025, 12:09:02 PM ทำซับ VR นี่ไม่ได้ยุ่งยากขนาดนั้น ลองเอาซับ srt ทั่วไปไปใส่ มันก็ขึ้นแล้ว
แต่คนทำกลับน้อยมาก หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: อบเชยเฉยๆ ที่ มกราคม 18, 2025, 12:16:07 PM ทำซับ VR นี่ไม่ได้ยุ่งยากขนาดนั้น ลองเอาซับ srt ทั่วไปไปใส่ มันก็ขึ้นแล้ว แต่คนทำกลับน้อยมาก คนใช้ VR ก็ไม่ได้เยอะขนาดนั้น หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 18, 2025, 02:17:26 PM ทำซับ VR นี่ไม่ได้ยุ่งยากขนาดนั้น ลองเอาซับ srt ทั่วไปไปใส่ มันก็ขึ้นแล้ว งมเล่นมาหลายชั่วโมง อย่างผมว่ามันแปลแปลกๆ ก็อย่างว่าของฟรี สงสัยต้องเสียเงินแล้วแต่คนทำกลับน้อยมาก (https://i.ibb.co/SVKctH8/Screenshot-2025-01-18-141042.png) (https://ibb.co/RQCN3tm) (https://i.ibb.co/0nYRzMh/Screenshot-2025-01-18-141055.png) (https://ibb.co/K5Vp8qF) (https://i.ibb.co/rvDyFVp/Screenshot-2025-01-18-141114.png) (https://ibb.co/DL0KzZM) (https://i.ibb.co/xLLFccD/Screenshot-2025-01-18-141129.png) (https://ibb.co/YQQ0KK3) free image upload (https://imgbb.com/) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 18, 2025, 08:20:17 PM ล่าสุดน่าจะดีสุดในบรรดาของฟรีแล้ว แต่ก็ห่วยแตกอยู่ดี ยอมเสียตังสามร้อยต่อเดือนคุ้มกว่า
(https://i.ibb.co/y8m0B9Q/Screenshot-2025-01-18-201616.png) (https://ibb.co/Q679jgK) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: eik ที่ มกราคม 28, 2025, 10:09:56 PM ล่าสุดน่าจะดีสุดในบรรดาของฟรีแล้ว แต่ก็ห่วยแตกอยู่ดี ยอมเสียตังสามร้อยต่อเดือนคุ้มกว่า (https://i.ibb.co/y8m0B9Q/Screenshot-2025-01-18-201616.png) (https://ibb.co/Q679jgK) สอบถามหน่อยครับ ใช้เว็บไหนหรอครับอยากลองดูบ้างครับ หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: YEDKUNG ที่ มกราคม 28, 2025, 11:27:31 PM ลองดูกระทู้ผมนะครับ ทุกวันนี้ผมก็ยังใช้อยู่เรื่อยๆ ถ้าหนังใหม่ๆไม่มีคนแปลมันก็ตรงดีครับ แต่ไม่มาก อยู่ที่ว่านักแสดงพูดชัดเจนไหม และไม่ต้องมานั่งแก้ TF ด้วย หลังแปลก็ใช้ได้ทันที มันจะแยกออกมาให้ 2 ไฟล์ ไฟล์ซับต้นฉบับ กับ ซับภาษาที่เราเลือก
https://www.avcollectors.com/board/index.php?topic=241256.0 หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 31, 2025, 03:38:36 AM ล่าสุดน่าจะดีสุดในบรรดาของฟรีแล้ว แต่ก็ห่วยแตกอยู่ดี ยอมเสียตังสามร้อยต่อเดือนคุ้มกว่า (https://i.ibb.co/y8m0B9Q/Screenshot-2025-01-18-201616.png) (https://ibb.co/Q679jgK) สอบถามหน่อยครับ ใช้เว็บไหนหรอครับอยากลองดูบ้างครับ มันก็ใช้OpenAI Whisperเหมือนเดิมแต่มันรันผ่านเซิร์ฟของgoogle ซึ่งมันจะไวมากกว่าทำบนคอมที่สเปคการ์ดจอไม่แรง https://github.com/openai/whisper https://www.youtube.com/watch?v=wT34nynJYjY แต่AIของตัวเสียตังกระทู้บนผมว่ามันแปลแม่นกว่า หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Onnuiko ที่ มกราคม 31, 2025, 12:16:17 PM ลองดูกระทู้ผมนะครับ ทุกวันนี้ผมก็ยังใช้อยู่เรื่อยๆ ถ้าหนังใหม่ๆไม่มีคนแปลมันก็ตรงดีครับ แต่ไม่มาก อยู่ที่ว่านักแสดงพูดชัดเจนไหม และไม่ต้องมานั่งแก้ TF ด้วย หลังแปลก็ใช้ได้ทันที มันจะแยกออกมาให้ 2 ไฟล์ ไฟล์ซับต้นฉบับ กับ ซับภาษาที่เราเลือก ได้ลองแล้วถือว่าใช้ได้เลยแปลได้เกิบเท่าOpenAI Whisper model ใหญ่สุด ข้อดีคือแปลไวสุดๆและไม่ต้องมาแปลงเป็นไทยอีกรอบมีให้ครบเลย แต่เสียดายอัพเดทล่าสุดแค่ปี23https://www.avcollectors.com/board/index.php?topic=241256.0 หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ พฤษภาคม 31, 2026, 10:21:25 PM !ls "/content/"
!ls "/content/drive/MyDrive/Colab Notebooks" from google.colab import drive drive.mount("/content/drive", force_remount=True) from google.colab import files files.download(output_subtitle) subtitle_name = "untitled" input_subtitle = f"/content/{subtitle_name}.srt" output_subtitle = f"/content/{subtitle_name}_thai.srt" หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 01, 2026, 12:05:17 AM แปล subtitle เป็น ภาษา ไทย
แปล ทุก ประโยค ห้าม แปล ข้าม ประโยค แปล text อย่างเดียว ห้าม แก้ไข index/timestamp เด็ดขาด ห้าม อักษร อังกฤษ/จีน/ญี่ปุ่น/เกาหลี อยู่ใน ผลลัพธ์ เด็ดขาด หมวดคำ สรรพนาม บุคคล 1 , 2 คำว่า "ฉัน" , "คุณ" เท่านั้น หมวดคำ อนุภาค ห้าม คำว่า "ครับ" , "คะ" , "ค่ะ" เด็ดขาด ห้าม คำ/พยัญชนะ/สระ ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 5 ครั้ง อยู่ใน index เดียวกัน บรรทัด ยาวกว่า 20 อักษร ขึ้น บรรทัด ใหม่ อยู่ใน index เดียวกัน หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 24, 2026, 06:07:03 PM ffmpeg -i untitled.mp4 -vn -ar 16000 -ac 1 untitled.flac i คือ input vn คือ video none ar คือ audio rate ac คือ audio channel (https://i.postimg.cc/L2xNzbBJ/google-colab-faster-whisper-(8).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 24, 2026, 06:07:09 PM https://colab.research.google.com (https://colab.research.google.com) (https://i.postimg.cc/zNp8XQTt/colab-(1).jpg) (https://i.postimg.cc/szKsDL58/colab-(2).jpg) (https://i.postimg.cc/QDShxzcz/colab-(3).jpg) (https://i.postimg.cc/4GwsN0pq/colab-(4).jpg) (https://i.postimg.cc/C0JSL2bQ/colab-(5).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 24, 2026, 06:07:15 PM https://openrouter.ai (https://openrouter.ai) (https://i.postimg.cc/D757xKvT/openrouter-(1).jpg) (https://i.postimg.cc/pPkPstWR/openrouter-(2).jpg) (https://i.postimg.cc/Mztz986z/openrouter-(3).jpg) (https://i.postimg.cc/qpQp1dJJ/openrouter-(4).jpg) (https://i.postimg.cc/GbzbX1L9/openrouter-(5).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 24, 2026, 06:07:21 PM ถอดซับ (https://i.postimg.cc/xY4QLbxc/thxds-b.jpg) ### เซลล์ 1 ### !nvidia-smi ### เซลล์ 2 ### !pip install faster-whisper -q ### เซลล์ 3 ### import os from faster_whisper import WhisperModel ### เซลล์ 4 ### from google.colab import drive drive.mount("/content/drive", force_remount=True) ### เซลล์ 5 ### input_audio = "/content/drive/MyDrive/Colab Notebooks/untitled.flac" output_subtitle = os.path.splitext(input_audio)[0] + ".srt" ### เซลล์ 6 ### print("Loading model...") model = WhisperModel( "large-v3", device="cuda", compute_type="float16" ) print("Start transcribing...") segments, info = model.transcribe( input_audio, language="ja", condition_on_previous_text=False, temperature=0, hallucination_silence_threshold=0.1, word_timestamps=True, beam_size=1 ) print("Writing srt...") def fmt(t): h = int(t // 3600) m = int((t % 3600) // 60) s = int(t % 60) ms = int((t - int(t)) * 1000) return f"{h:02}:{m:02}:{s:02},{ms:03}" with open(output_subtitle, "w", encoding="utf-8") as f: i = 1 for segment in segments: if segment.words: first_word = segment.words[0] last_word = segment.words[-1] start = first_word.start end = last_word.end else: start = segment.start end = segment.end text = segment.text.strip() if not text: continue f.write(f"{i}\n") f.write(f"{fmt(start)} --> {fmt(end)}\n") f.write(f"{text}\n\n") print( f"[{i}] " f"{fmt(start)} --> " f"{fmt(end)} " f"{text}" ) i += 1 print("Saved:", output_subtitle) ### เซลล์ 7 ### from google.colab import files files.download(output_subtitle) (https://i.postimg.cc/cZHZKcc5/thxds-b-(1).jpg) (https://i.postimg.cc/Yk9k4xxs/thxds-b-(2).jpg) (https://i.postimg.cc/MxTxcYY4/thxds-b-(3).jpg) (https://i.postimg.cc/jK5KWhhB/thxds-b-(4).jpg) (https://i.postimg.cc/HHxHJt2G/thxds-b-(5).jpg) (https://i.postimg.cc/fZLZ3vvG/thxds-b-(6).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 24, 2026, 06:20:24 PM แปลซับ (https://i.postimg.cc/wg8YBbvf/paels-b.jpg) ### เซลล์ 1 ### !pip install requests -q ### เซลล์ 2 ### import os import re import requests from textwrap import dedent ### เซลล์ 3 ### from google.colab import drive drive.mount("/content/drive", force_remount=True) ### เซลล์ 4 ### input_subtitle = "/content/drive/MyDrive/Colab Notebooks/untitled.srt" output_subtitle = os.path.splitext(input_subtitle)[0] + "_thai.srt" ### เซลล์ 5 ### OPENROUTER_API_KEY = "YOUR_API_KEY" MODEL = "google/gemini-3.1-pro-preview" BATCH_SIZE = 5000 ### เซลล์ 6 ### with open(input_subtitle, "r", encoding="utf-8") as f: srt_text = f.read() blocks = re.split(r"\n\s*\n", srt_text.strip()) subs = [] for block in blocks: lines = block.splitlines() if len(lines) < 3: continue subs.append({ "index": lines[0].strip(), "timestamp": lines[1].strip(), "text": " ".join(line.strip() for line in lines[2:]) }) print("Loaded:", len(subs), "blocks") ### เซลล์ 7 ### translated_texts = {} for start in range(0, len(subs), BATCH_SIZE): batch = subs[start:start + BATCH_SIZE] source_text = "\n".join( f"[{item['index']}] {item['text']}" for item in batch ) prompt = dedent(f""" แปล subtitle เป็น ภาษา ไทย แปล ทุก ประโยค ห้าม แปล ข้าม ประโยค แปล text อย่างเดียว ห้าม แก้ไข index/timestamp เด็ดขาด ห้าม อักษร อังกฤษ/จีน/ญี่ปุ่น/เกาหลี อยู่ใน ผลลัพธ์ เด็ดขาด หมวดคำ สรรพนาม บุคคล 1 , 2 คำว่า "ฉัน" , "คุณ" เท่านั้น หมวดคำ อนุภาค ห้าม คำว่า "ครับ" , "คะ" , "ค่ะ" เด็ดขาด ห้าม คำ/พยัญชนะ/สระ ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 5 ครั้ง อยู่ใน index เดียวกัน ห้าม บรรทัด ซ้ำ ๆๆๆ ติด ๆๆๆ มากกว่า 1 ครั้ง อยู่ใน index เดียวกัน บรรทัด ยาวกว่า 30 อักษร ขึ้น บรรทัด ใหม่ อยู่ใน index เดียวกัน {source_text} """) response = requests.post( "https://openrouter.ai/api/v1/chat/completions (https://openrouter.ai/api/v1/chat/completions)", headers={ "Authorization": f"Bearer {OPENROUTER_API_KEY}", "Content-Type": "application/json", }, json={ "model": MODEL, "messages": [{"role": "user", "content": prompt}], "temperature": 0, "max_tokens": 200000, "thinking_budget": "0" }, timeout=2000 ) response.raise_for_status() result = response.json() choice = result["choices"][0] raw_content = choice["message"]["content"].strip() match = re.findall(r"\[(\d+)\]\s*(.*?)(?=\[\d+\]|\Z)", raw_content, re.S) expected_count = len(batch) found_count = len(match) for index, text in match: translated_texts[index] = text.strip() batch_start, batch_end = start + 1, min(start + BATCH_SIZE, len(subs)) usage = result.get("usage", {}) details = usage.get("completion_tokens_details", {}) reasoning_tokens = details.get("reasoning_tokens", 0) print() print(f"HTTP status: {response.status_code} {response.reason}") print(f"Model: {result.get('model')}") print(f"Provider: {result.get('provider')}") print(f"Prompt tokens: {usage.get('prompt_tokens', 0)}") print(f"Completion tokens: {usage.get('completion_tokens', 0)}") print(f"Reasoning tokens: {reasoning_tokens}") print(f"Finish reason: {choice.get('finish_reason')}") print(f"Native finish reason: {choice.get('native_finish_reason')}") print(f"Expected: {expected_count}, Found: {found_count}") print(f"Done: {batch_start}-{batch_end}") print() print(f"Raw response: {repr(raw_content)}") print() ### เซลล์ 8 ### output = [] for item in subs: output.append(item["index"]) output.append(item["timestamp"]) output.append(translated_texts.get(item["index"], item["text"])) output.append("") with open(output_subtitle, "w", encoding="utf-8") as f: f.write("\n".join(output)) print("Saved:", output_subtitle) ### เซลล์ 9 ### from google.colab import files files.download(output_subtitle) (https://i.postimg.cc/TfMvPHwL/paels-b-(1).jpg) (https://i.postimg.cc/7w8rLQ62/paels-b-(2).jpg) (https://i.postimg.cc/3Y5QwbRD/paels-b-(3).jpg) (https://i.postimg.cc/npbfLwz9/paels-b-(4).jpg) (https://i.postimg.cc/YMKBSy91/paels-b-(5).jpg) (https://i.postimg.cc/z8ZYfPBC/paels-b-(6).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ มิถุนายน 24, 2026, 06:21:16 PM ฝังซับ (https://i.postimg.cc/NYXSVtW6/f-ngs-b.jpg) ### เซลล์ 1 ### !nvidia-smi ### เซลล์ 2 ### !pip install pysubs2 -q !wget https://raw.githubusercontent.com/google/fonts/main/ofl/prompt/Prompt-Regular.ttf (https://raw.githubusercontent.com/google/fonts/main/ofl/prompt/Prompt-Regular.ttf) -q \ -O /usr/share/fonts/truetype/Prompt-Regular.ttf !fc-cache -fv ### เซลล์ 3 ### import pysubs2 ### เซลล์ 4 ### from google.colab import drive drive.mount("/content/drive", force_remount=True) ### เซลล์ 5 ### video_name = "untitled" input_video = f"/content/drive/MyDrive/Colab Notebooks/{video_name}.mp4" input_subtitle = f"/content/drive/MyDrive/Colab Notebooks/{video_name}_thai.srt" output_video = f"/content/drive/MyDrive/Colab Notebooks/{video_name}_hardsub.mp4" ### เซลล์ 6 ### pysubs2_subtitle = pysubs2.load(input_subtitle, encoding="utf-8") for line in pysubs2_subtitle: line.style = "Default" pysubs2_subtitle.styles["Default"].fontname = "Prompt" pysubs2_subtitle.styles["Default"].fontsize = 25 pysubs2_subtitle.styles["Default"].outline = 1 pysubs2_subtitle.styles["Default"].shadow = 0 with open(f"/content/{video_name}_temp.ass", "w", encoding="utf-8") as f: f.write(pysubs2_subtitle.to_string(format_="ass")) ### เซลล์ 7 ### !ffmpeg -stats \ -hwaccel cuda \ -i "{input_video}" \ -vf "ass=/content/{video_name}_temp.ass" \ -c:v h264_nvenc \ -preset p1 \ -rc vbr \ -cq 25 \ -b:v 0 \ -c:a copy \ -movflags +faststart \ "{output_video}" \ -y ### เซลล์ 8 ### from google.colab import files files.download(output_video) (https://i.postimg.cc/vykC3TSZ/f-ngs-b-(1).jpg) (https://i.postimg.cc/LSw-GN50X/f-ngs-b-(2).jpg) (https://i.postimg.cc/J8vSP0d0/f-ngs-b-(3).jpg) (https://i.postimg.cc/B3kRMbwX/f-ngs-b-(4).jpg) (https://i.postimg.cc/KbwCJjs1/f-ngs-b-(5).jpg) (https://i.postimg.cc/hn6Npv3Q/f-ngs-b-(6).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ กรกฎาคม 02, 2026, 01:07:54 AM แก้เซ็น (https://i.postimg.cc/BJRgby25/kae-se-n.jpg) ### เซลล์ 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 (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 (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 (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", force_remount=True) ### เซลล์ 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) (https://i.postimg.cc/s3MmVyGf/kae-se-n-(1).jpg) (https://i.postimg.cc/CwR7FYn5/kae-se-n-(2).jpg) (https://i.postimg.cc/gGxsYdLr/kae-se-n-(3).jpg) (https://i.postimg.cc/dJh6qvZ7/kae-se-n-(4).jpg) (https://i.postimg.cc/TTK0RG5m/kae-se-n-(5).jpg) (https://i.postimg.cc/4XYPJZHz/kae-se-n-(6).jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ กรกฎาคม 11, 2026, 01:07:39 AM google/gemini-3.1-pro-preview (https://i.postimg.cc/nnV0LHGb/paels-b-hn-ng-re-xng-khanwn-rakha.jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ กรกฎาคม 11, 2026, 01:08:09 AM google/gemini-3.1-flash-lite (https://i.postimg.cc/GdvK9rcb/gemini-3-1-flash-lite.jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ กรกฎาคม 11, 2026, 01:08:45 AM ตรวจซับ (https://i.postimg.cc/QMgBkQKp/python-3-11-1.jpg) https://www.python.org/downloads/windows/ (https://www.python.org/downloads/windows/) ตรวจ ซับไตเติล มี ภาษา อังกฤษ/จีน/ญี่ปุ่น หรือไม่ คัดลอก & วาง โค้ด บน Notepad แล้ว บันทึก Name = regex_foreign_language.py Type = All Files Encoding = UTF-8 python "regex_foreign_language.py" (https://i.postimg.cc/js6pzJTD/regex-foreign-language.jpg) 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") (https://i.postimg.cc/yVhMFSK3/regex-foreign-language-py.jpg) หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: Hellossattaya ที่ กรกฎาคม 11, 2026, 04:53:05 AM ดูขั้นตอนทำและเหนื่อยแท้ รอดูฟรีในบอร์ดดีกว่า [ฮ่าๆ]
หัวข้อ: Re: มีใครทำSubtitle จาก AI แนะนำทีครับ เริ่มหัวข้อโดย: pictureuploadsex ที่ กรกฎาคม 17, 2026, 11:01:00 PM (https://i.postimg.cc/qp3Zr35d/upstream-idle-timeout-exceeded-(1).jpg) (https://i.postimg.cc/MzQrwQF6/upstream-idle-timeout-exceeded-(2).jpg)
AV Community Since 2009 : AVCollectors.com - Advertising please contact [email protected] |