[Home] [Catalog] [Search] [Inbox] [Write PM] [Admin]
[Return] [Bottom]

Posting mode: Reply

(for deletion)
  • Allowed file types are: gif, jpg, jpeg, png, bmp, swf, webm, mp4
  • Maximum file size allowed is 50000 KB.
  • Images greater than 200 * 200 pixels will be thumbnailed.





File: guruguru_medoi.jpg
(176 KB, 640x480)[ImgOps]
180829
I was going to ask this to staff-san directly but I figured out a thread is better for preservation of knowledge

I used the below ffmpeg cmd script (created by AI) for some anime and it worked fine, but for the one I'm trying right now it placed the subtitle at wrong location and made the text very small for some reason. Probably because they are in some weird DVD-based format.

@echo off
setlocal enabledelayedexpansion

for %%F in ("*.mkv") do (
set "name=%%~nF"
set "out=!name!.mp4"

echo.
echo ===== Processing "%%~nxF" =====

ffmpeg -y ^
-i "%%~fF" ^
-filter_complex "[0:v][0:s:0]overlay" ^
-map 0:v ^
-map 0:2 ^
-c:v libx264 -pix_fmt yuv420p -preset slow -crf 22 ^
-c:a aac -b:a 128k ^
-movflags +faststart ^
"!out!"

if errorlevel 1 (
echo ERROR: Encode failed.
) else (
echo Done: "!out!"
)
)

endlocal


If there is a script you have been using to convert torrent'd mkv anime to lo-res mp4 while burning the subs in, or any useful tutorial links, plz share (´人`)
>>
:dizzy::dizzy::dizzy::dizzy:
i... um, script? buts its pictures!
:dizzy::dizzy::dizzy::dizzy:
>>
I do the transcodes 4 Heyuri Cytube. I use HandBrake, and the settings I generally use are:

Format
Format: MP4
Web optimized: enabled
Align A/V start: enabled
Passthru common metadata: enabled
Display size: automatic
Dimensions
Cropping: None
Resolution limit: 480p NTSC SD
Anamorphic: automatic
Optimal size: enabled
Filters
All off unless there's telecine/interlacing issues (typical on unaltered DVD rips) or too much noise (typical on BDs of cel era anime - noise is difficult to compress and bloats ur resulting file sizes, so it's best to smooth it out while trying to retain as much of the actual content detail as possible). Filters drastically slow down the whole process so I prefer to avoid them
Video
Video encoder: H.264
Framerate: Same as source, variable framerate
Color range: Same as source
Encoder options
Encoder preset: Slow (depends on how l33t ur CPU is and how long u can tolerate - the slower it is, the better job it does of compressing, but there is a point of diminishing returns)
Encoder tune: Animation (fast decode disabled)
Encoder profile: Main
Encoder level: 3.1
Quality
Constant Quality: 22 RF (depends on the show)
Audio
AAC, 160 kbps, stereo, auto
Subtitles
Burn in: enabled (browsers don't natively support softsubs, so u have to burn them in to make it hardsubbed)
Note: HandBrake does a shitty job of burning-in VOBSUB subs (image-based DVD subtitles) if the source uses non-square pixels, which DVD sources usually do. They always appear offset in the final result, especially for 4:3 shows. That's why sometimes I'll go for the OCR'd SSA subs, but that means u'll lose all the typesetting and positional info if the release group/individual didn't fix it up themselves. It's preferable to just find a release with really nice subs instead


[Top]
Delete post: []
First
[0]
Last