#Anyone know a lossless way to encode bluray files?

88 messages · Page 1 of 1 (latest)

sand yarrow
#

Remux to what?

#

I’m assuming mp4 or mkv?

sand yarrow
#

It’s impossible for it to be actually lossless, but this should be visually lossless

#

ffmpeg -i input.extension -c:v libx265 -preset medium -crf 18 -x265-params aq-mode=3:no-sao=1 -pix_fmt yuv420p10le -c:a aac 512kbps output.mp4

#

@hexed void might have better args

#

I had some specifically for super high quality movies but I can’t find them rn

sand yarrow
sand yarrow
#

Visually lossless is high enough quality that you won’t be able to tell the difference

#

The highest quality it can possible get would be HUGE and very inefficient

hexed void
#
Film Maximum Overkill:
x265 --output-depth 10 --profile main10 --me star --subme 5 --rect --amp --max-merge 5 --no-early-skip --rskip 0 --bframes 16 --ref 6 --rc-lookahead 25 --crf 19.00 --limit-refs 0 --rd 6 --rdoq-level 2 --psy-rdoq 1.00 --no-sao

Anime Maximum Overkill:
x265 --output-depth 10 --profile main10 --me star --subme 5 --rect --amp --max-merge 5 --no-early-skip --rskip 0 --bframes 16 --ref 6 --rc-lookahead 25 --crf 20.00 --limit-refs 0 --rd 6 --psy-rd 1.50 --rdoq-level 2 --psy-rdoq 1.00 --aq-mode 3 --limit-sao

Film Slow:
x265 --preset slow --output-depth 10 --profile main10 --subme 4 --max-merge 5 --bframes 12 --ref 6 --lookahead-slices 0 --crf 19.00 --no-sao

Anime Slow:
x265 --preset slow --output-depth 10 --profile main10 --subme 4 --max-merge 5 --bframes 12 --ref 6 --lookahead-slices 0 --crf 20.00 --psy-rd 1.50 --aq-mode 3 --limit-sao
#

credit Lyra#4816

#

all of these are horribly slow tho so its probably not worth it if youre just reencoding something

#

if u actually want lossless then do lossless

hexed void
#

none of them are lossless

#

theyre just overly efficient

#

-c:v libx264 -preset medium -qp 0

#

whats the audio of your input encoded in

#

send the ffprobe output

#

as in ffprobe yourvideo

hexed void
#

run it in cmd

#

and replace "yourvideo" with your video path

hexed void
#

?

#

what did u type

hexed void
#

doesn't look like it

#

there's a stray - somewhere

hexed void
#

put it in quotes

#

ss?

#

i think u should be able to remux it to mkv like ffmpeg -i video -c copy out.mkv

#

mp4 would need ffmpeg -i video -c:a aac -b:a 384k -c:v copy out.mp4

#

remuxing itself doesnt affect quality

#

but all containers dont support all formats so you may need to reencode which can result in quality loss

#

whether the quality loss is noticeable or not is up to how you encode it

hexed void
#

384kbit/s is plenty for aac tho so you wont hear a difference

hexed void
#

i just sent them because frost asked

#

u should not be using them for this

#

those encode video using extremely slow but very efficient settings

#

which is not what u were asking for

#

think of it like this

#

the container (mp4, mkv, m2ts, etc) is like a cardboard box

#

the video itself is whats in that box

#

to move the items in the box to another box you dont need to modify the items right

#

EXCEPT if the items dont fit in the box youre trying to move them to

#

trying to put pcm audio into mp4 for example

#

the container does not affect the items

#

its just a box

#

thats all

#

yes

#

unless changing the container requires changing the format (ie. reencoding)

#

which can be done losslessly usually

#

but lossless files are also very big so you might not want to

#

tbh

#

just try it and see LOL

#

ffmpeg is gonna scream at you if the format and container are incompatible

#

in which case u can look up what formats to encode in instead

#

oh god

#

the input might be slightly corrupt but if it works fine then dw

#

rip

#

if u play it by running mpv in cmd like mpv video.m2ts u can probably see the same errors

#

if the original video is corrupt then not really

hexed void
#

source issue

hexed void
#

demuxing?

#

u literally just input it to ffmpeg

hexed void
#

demuxing is part of the process

#

idk why you'd wanna do it alone

#

you can by just outputting a raw bitstream

hexed void
#

you'll have to reencode the audio

#

so -c:v copy -c:a flac

#

flac because pcm is lossless so you probably don't wanna lose that quality

#

you can strip out the audio yeah but

#

if thats the case then fix your upscaler

#

nah

#

wtf are u using

#

then just do ffmpeg -i video-with-audio -c:v copy -an video-without-audio

#

and recombine with ffmpeg -i filtered -i video-with-audio -map 0:v -map 1:a -c copy out

hexed void
#

wait i typed that wrong oops

#

fixed

hexed void
#

yeah cause the audio is included in the video file

hexed void
#

you won't do the first step as it clearly didn't work

#

you then make an audio-less copy of that bluray which you filter

#

and then recombine the filtered one with the original clip's audio

stiff inlet
#

@sacred sparrow arent u dick deep into that sorta thing

onyx creek
#

Electron bad so ima make lossless cut in python

#

Ffmpeg cli wrapper sinistercontent

#

ffplay

#

Me when suckles cut isn’t functional