Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6957d2e8-b738-8008-987a-09a5d9f29bc8
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: That error is because of this combo: === That error is because of this combo: * -qp 0 = lossless * -profile:v high = forces “High” profile x264 refuses that: “high profile doesn't support lossless”. For lossless, x264 switches to a different profile (typically High 4:4:4 Predictive) automatically. When you force high, it can’t. ===== Use this: ===== <syntaxhighlight lang="bash">ffmpeg -i "NEA MADALIN E DRAG QUEEN ACUM [P9gZEDOz9eE].mkv" -filter_complex \ "[0:v]trim=start=62.2:end=133.2,setpts=PTS-STARTPTS[v]; \ [0:a]atrim=start=62.2:end=133.2,asetpts=PTS-STARTPTS[a]" \ -map "[v]" -map "[a]" \ -c:v libx264 -preset veryslow -qp 0 -pix_fmt yuv420p \ -c:a libopus -b:a 160k -ar 48000 -ac 2 \ clip_01_0102p2-0213p2.mkv </syntaxhighlight> That will cut exactly (including milliseconds) and keep video lossless. ===== Even though your pixel format stays yuv420p, a lossless x264 encode often signals a profile like High 4:4:4 Predictive. Some hardware players (TVs/phones) may not like that, even if VLC/mpv do. ===== If you want maximum compatibility while still being visually indistinguishable from the source, do this instead: <syntaxhighlight lang="bash">ffmpeg -i "NEA MADALIN E DRAG QUEEN ACUM [P9gZEDOz9eE].mkv" -filter_complex \ "[0:v]trim=start=62.2:end=133.2,setpts=PTS-STARTPTS[v]; \ [0:a]atrim=start=62.2:end=133.2,asetpts=PTS-STARTPTS[a]" \ -map "[v]" -map "[a]" \ -c:v libx264 -crf 16 -preset slow -pix_fmt yuv420p -profile:v high -level 4.0 \ -c:a libopus -b:a 160k -ar 48000 -ac 2 \ clip_01_0102p2-0213p2.mkv </syntaxhighlight> ===== Just change 62.2 / 133.2 to e.g. 62.237 / 133.041. ===== If you send the ms-precise times for the other 3 clips, I’ll spit out all 4 final commands in the same style.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)