Suchiman has quit [Quit: Connection closed for inactivity]
vincejv has joined #ffmpeg
vincejv has quit [Remote host closed the connection]
vincejv has joined #ffmpeg
vincejv has quit [Remote host closed the connection]
vincejv has joined #ffmpeg
FH_thecat has quit [Quit: Leaving]
JanC has joined #ffmpeg
YuGiOhJCJ has joined #ffmpeg
Tinos has joined #ffmpeg
e^pi-1 has quit [Quit: WeeChat 4.2.2]
e^pi-1 has joined #ffmpeg
MootPoot has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five618480336 has joined #ffmpeg
e^pi-1 has quit [Quit: WeeChat 4.2.2]
e^pi-1 has joined #ffmpeg
AbleBacon has quit [Read error: Connection reset by peer]
e^pi-1 has quit [Quit: WeeChat 4.2.2]
e^pi-1 has joined #ffmpeg
e^pi-1 has quit [Client Quit]
e^pi-1 has joined #ffmpeg
SystemError has quit [Remote host closed the connection]
SystemError has joined #ffmpeg
e^pi-1 has quit [Quit: WeeChat 4.2.2]
e^pi-1 has joined #ffmpeg
FH_thecat has joined #ffmpeg
nadhor has quit [Read error: Connection reset by peer]
e^pi-1 has quit [Quit: WeeChat 4.2.2]
e^pi-1 has joined #ffmpeg
e^pi-1 has quit [Client Quit]
e^pi-1 has joined #ffmpeg
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
JanC has quit [Ping timeout: 240 seconds]
mccobsta4 has joined #ffmpeg
mccobsta has quit [Ping timeout: 264 seconds]
mccobsta4 is now known as mccobsta
FH_thecat has quit [Quit: Leaving]
MootPoot has quit [Quit: Connection closed for inactivity]
zsoltiv_ has quit [Ping timeout: 256 seconds]
zsoltiv_ has joined #ffmpeg
xx has joined #ffmpeg
FH_thecat has joined #ffmpeg
Traneptora has quit [Quit: Quit]
Tinos has quit [Remote host closed the connection]
vlm has joined #ffmpeg
beaver has quit [Quit: strace non concluant]
beaver has joined #ffmpeg
<ppw>
what's the rationale behind the new versioning?
rv1sr has joined #ffmpeg
<JEEB>
what versioning?
<ppw>
the versioning of ffmpeg
<psykose>
it didn't change?
lavaball has joined #ffmpeg
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
<ppw>
I can't be the only one under the impression that the release cadency of major versions has increased drastically.
Tinos has joined #ffmpeg
Raz- has joined #ffmpeg
e^pi-1 has quit [Ping timeout: 256 seconds]
Raz- has quit [Ping timeout: 260 seconds]
Raz- has joined #ffmpeg
Suchiman has joined #ffmpeg
catsoften_ has joined #ffmpeg
catsoften has quit [Ping timeout: 268 seconds]
catsoften_ is now known as catsoften
theobjectivedad has quit [Ping timeout: 268 seconds]
e^pi-1 has joined #ffmpeg
theobjectivedad has joined #ffmpeg
Blacker47 has joined #ffmpeg
Muimi has joined #ffmpeg
SystemError has quit [Remote host closed the connection]
SystemError has joined #ffmpeg
MajorBiscuit has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 246 seconds]
Muimi has quit [Remote host closed the connection]
Keshl has quit [Ping timeout: 256 seconds]
Muimi has joined #ffmpeg
mightysands has joined #ffmpeg
Keshl has joined #ffmpeg
gesto has joined #ffmpeg
<mightysands>
Anyone have any wisdom on aspect ratios?
<gesto>
Hello! Googlin around i don't yet understand if ffmpeg can show a progress bar or an ETA or not, can someone tell me?
<JEEB>
not a progress bar, but the default incantation should tell you how far it got and update that line
<mightysands>
I have this one video. FFprobe says it's 1920:1080 and with a SAR of 1:1 and a DAR of 16:9, but it has black bars on the top and bottom as well as the sides of the screen, and I don't usually get bars at the sides like that with other videos in this resolution
<mightysands>
So it looks like I'm watching it in a little window when I play it
<mightysands>
I thought degrading it to 640x480 using -vf scale and setting the DAR to 4:3 would fix it for my monitor (4:3) but it just made the window smaller and look 16:9
<ppw>
sounds like cropping is in order
<mightysands>
the weird thing though is that untouched, the original file, which ffprobe SAYS is 16:9, plays in a 4:3 window
<mightysands>
and when I re-encode it to tell it to do 4:3, it's clearly in a 16:9 window
<mightysands>
colour me confused
<ppw>
funky metadata perhaps?
<mightysands>
maybe. I'm not sure
<mightysands>
square window: says it's 16:9 at 1920x1080
<mightysands>
rectangular window: says it's 4:3 at 640x480
<ppw>
what says it? mpv?
<mightysands>
ffprobe
<mightysands>
the video stream portion of the output
<ppw>
maybe remux to a new container
<mightysands>
by changing the DAR to 3:1 or 3:2 or something like that, I think I got rid of the top and bottom bars, but the side bars still persisted
<mightysands>
maybe changing it to 3:3 would fix it??
<ppw>
that's just 1
<mightysands>
yeah, I was gonna say
<ppw>
but 3:2 sounds like telecine?
<gesto>
thanks JEEB
<mightysands>
I'm not familiar with telecine
<mightysands>
maybe -scale could help?
<mightysands>
in the original format, it's the perfect shape, it's just too small
<ppw>
I use this to do a "lossless" rescale and fix the sar/dar in the process
<mightysands>
I just double checked
<mightysands>
setting the DAR to 3:2 does nothing
MajorBiscuit has quit [Ping timeout: 240 seconds]
<mightysands>
but setting it to 3:1 eliminates the bars at the top and bottom
<ppw>
maybe you actually do need to do just a crop
<ppw>
can you open it up in a video editor or something?
<mightysands>
doesn't that involve counting pixels?
<mightysands>
that sounds complex
<ppw>
you could do an autocrop
<mightysands>
idk, surely doing it at the container level with -scale is safer, no?
<ppw>
I guess
Gaboradon has joined #ffmpeg
<mightysands>
JEEB: you know anything about rescaling and aspect ratios?
<mightysands>
btw ppw, was that your bash? very tight
<ppw>
uh, thanks?
<mightysands>
yes
hightower3 has joined #ffmpeg
<mightysands>
I'm not really sure how to tell what the right thing to do is
<mightysands>
while encoding, it says the SAR is 9:4 and the DAR is 3:1, even though I told it to keep SAR as 1 and DAR as 4:3. I'm guessing it's different because I'm converting a 1920x1080 video t 640x480?
<ppw>
it really should not be doing that if you set it
<ppw>
something isn't mathing here
<mightysands>
then once it's done encoding, I run ffprobe on it
<mightysands>
and it says SAR is 1:1 and DAR is 5:4
<mightysands>
(I tried changing the aspect ratio to 720x576 now)
<ppw>
ok but that makes sense
<ppw>
because 720:576 = 5:4
<mightysands>
okay, good
<mightysands>
so something is mathing at least
<mightysands>
but what's strange to me is the different SAR and DAR reading during encoding
<mightysands>
because it differs from both the input & and the output
<ppw>
-loglevel verbose ought to give more insight into how it's changing the aspect ratios
<mightysands>
I'll try that
Tinos has joined #ffmpeg
<mightysands>
trying it with 640:480 again
<mightysands>
while it's encoding it now says "640x480 (0x0) [SAR 9:4 DAR 3:1]"
<mightysands>
also as an aside, using libsvt1av1 1.8.0, it says "--enable-qm" is an unrecognised option?
e^pi-1 has quit [Ping timeout: 256 seconds]
JanC has joined #ffmpeg
JanC has quit [Ping timeout: 268 seconds]
e^pi-1 has joined #ffmpeg
Ox7C5 has quit [Ping timeout: 246 seconds]
MajorBiscuit has joined #ffmpeg
Traneptora has joined #ffmpeg
Traneptora has quit [Quit: Quit]
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sm1999 has quit [Quit: WeeChat 4.3.0-dev]
sm1999 has joined #ffmpeg
JanC has joined #ffmpeg
JanC_ has joined #ffmpeg
JanC is now known as Guest4162
JanC_ is now known as JanC
Guest4162 has quit [Read error: Connection reset by peer]
CheckMyBrain has quit [Quit: Connection closed for inactivity]
JanC has quit [Read error: Connection reset by peer]
JanC has joined #ffmpeg
JanC has quit [Ping timeout: 246 seconds]
luc4 has joined #ffmpeg
Traneptora has joined #ffmpeg
<luc4>
Hello! I would like to use the concat feature of ffmpeg to concatenate h264 videos without re-encoding. I know this means I need to ensure videos have compatible streams. Which properties of h264 streams must match? I would guess profile, level and time base. Anything else? Thanks!
JanC has joined #ffmpeg
JanC has quit [Excess Flood]
JanC has joined #ffmpeg
waleee has joined #ffmpeg
JanC has quit [Ping timeout: 255 seconds]
<kepstin>
luc4: it's annoyingly complicated; it's possible that even videos with the same profile and level might not have compatible initialization data; the usual issue with that is that the video just stops playing at the concat point (sometimes only on certain players).
<kepstin>
x264 for example has a special option that causes it to generate concatenation-friendly video fragments - iirc it causes it to include initialization data for all possible encoder features at the selected profile/level even if they're not used in the current encode.
<BtbN>
basically, the extradata has to match exactly
<BtbN>
ffmpeg/ffprobe prints it as a small hex-dump, so you can compare
<BtbN>
timebase is not something the codec is involved with. That gets annoying on a different layer
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
waleee has quit [Quit: WeeChat 4.1.2]
ppw has left #ffmpeg [#ffmpeg]
saste has joined #ffmpeg
<luc4>
kepstin, BtbN: thanks. That is exactly what is happening to me. The video stops for some players. I need to concat 3 videos, 2 of which are produced with ffmpeg using x264, the other comes from an app I'm writing on Android, so I have less control.
<BtbN>
I'd just tell that app to overkill on the quality, and transcode it
<luc4>
BtbN: can I dump extradata from existing videos? I see this dump_extra param.
<BtbN>
hmm? Just run ffmpeg or ffprobe on it
<luc4>
BtbN: re-encoding is difficult, there are tens of videos to re-encode in a small amount of time.
<BtbN>
If this is on a phone, with a hwenc, you have no other choice. You simply do not have enough control over it.
<luc4>
BtbN: exaclty, there is some control, but not much. But I can tweak the other two videos to match.
<BtbN>
Except you can only tweak them for one singular device
<BtbN>
the next phone/os update could break it again
<luc4>
BtbN: I only have one device.
<luc4>
not a problem, I will change those two videos
<BtbN>
well, then you'll need to try to somehow match it exactly
<luc4>
exactly
<BtbN>
There is no recipe how to do that though. You might have to dive into the h264 spec, understand the extradata structure, and then dive into x264 code and find out if and how it can match what the device does
<luc4>
So the params printed by ffprobe are insufficient?
<BtbN>
hm?
<BtbN>
I just said that ffmpeg prints the extradata as hexdump
<luc4>
BtbN: yes, but do you mean it prints those params when it encodes or can I print those params on an existing video?
<BtbN>
ffprobe rarely encodes :D
<BtbN>
Just run ffprobe or ffmpeg on any video, and see
cmp_ has quit [Quit: Client closed]
Blacker47 has joined #ffmpeg
kus has joined #ffmpeg
<luc4>
BtbN: I'll do many attempts :-) thanks for your help!
<kepstin>
i'd honestly recommend re-encoding anyways; the hardware encoders on phones are notorious for using unnecessarily high bitrates for the level of quality they output, and x264 can do a lot better
luc4 has quit [Ping timeout: 255 seconds]
MajorBiscuit has quit [Quit: WeeChat 4.2.1]
beaver has quit [Quit: Escalation de privilèges par voie humaine, le (nouveau) danger des logiciels libres]
e^pi-1 has quit [Quit: WeeChat 4.2.2]
minimal has joined #ffmpeg
beaver has joined #ffmpeg
saste has quit [Ping timeout: 240 seconds]
<noobaroo>
I really wish "ffmpeg -h encoder=" would actually show all options
<DeHackEd>
it shows encoder specific options. you can't really tell which generic options it supports.
<iconoclasthero>
so the short answer is that tagging is format specific and i should be using cli tools that are for that specific format unless i use a non-bash tool like mutagen.
<galad>
probably better to set the extension to .m4b or .m4a
<iconoclasthero>
well, yes. i'm starting with an m4a
<galad>
it's just that ffmpeg doesn't support all the iTunes-style tags in mp4/m4a/m4b
<sonicrules1234>
You need -c:v copy in there too if doing video
<iconoclasthero>
that's what "ffmpeg metadata support is quite limited" meant to me.
<galad>
for mp4, yes, maybe it's better on other formats
<iconoclasthero>
ok.
<iconoclasthero>
i'm scraping m4as from a website and i wanted to put some titles on them in m4a format when they were downloaded (since that's where i'm going to have the titles in the first place)
<iconoclasthero>
i don't want to convert stuff then since it takes time and thus can't use opustags like i normally would.
<iconoclasthero>
thanks @sonicrules1234, no video
<iconoclasthero>
but thanks @galad, i think i can get this to work.
<galad>
ffmpeg will remux, so if there was already some metadata that isn't supported by ffmpeg, it will be removed too
<iconoclasthero>
looks to be empty
<iconoclasthero>
you mentioned itunes
<iconoclasthero>
aside from the fact that i abhor the entire iEcosystem and don't use anything remotely apple related, how much does that matter?
<galad>
it matters because it's the metadata format commonly used in mp4
<iconoclasthero>
i saw on the superuser post something about what device this will be used on and the short answer is none, it's just being tagged and then ffmpeg will eventually convert it to 17 kb/s opus
<galad>
apple was the first to start selling .m4a, and they defined a complete list of metadata
<galad>
but if you are going to use only title and author, it won't matter
<furq>
the itunes tags are de facto standard for m4a anyway
<furq>
but they're relatively uncommon tags
* galad
hugs the "Codirector" tag
<iconoclasthero>
jesus
<iconoclasthero>
what is the artist/author tag for m4a?
<furq>
in ffmpeg it's probably just artist
ivanich has quit [Read error: Connection reset by peer]
ivanich has joined #ffmpeg
Wenbin_Chen_ has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
Wenbin_Chen__ has quit [Ping timeout: 260 seconds]
s55 has quit [Read error: Connection reset by peer]
s55 has joined #ffmpeg
<noobaroo>
DeHackEd But I have to search the internet for so many options, I definitely can't list them all off the type of my head but most recently it took me like 10 minutes of googling to find the quality-speed tradeoff for wavpack
<noobaroo>
It's "-compression_level" and I think it supports a value from 1-8, but honestly not sure because there is absolutely no documentation
<noobaroo>
Also there's "-profile" setting in mpeg4/libxvid. All encodes are in Simple profile by default and I had no idea there was anything else, until recently I found out "Advanced Simple" can be enabled by "-profile 15"
s55 has quit [Ping timeout: 268 seconds]
<noobaroo>
Other than that, It's extremely difficult to know whether to use "-vbr", "-q:a/-q:v" "-global_quality:v/a" "-crf" "-qp" and most stuff I can find from google, but I still can't find how to set quality level for mpeg2_qsv
s55 has joined #ffmpeg
<noobaroo>
it shows under `-h encoder=' -preset option and that is a common shared option of many encoders
<noobaroo>
So I don't think it's just a matter of omitting global options or whatever, its all just entirely random it seems what it does/doesn't include
<furq>
it definitely is that
<furq>
-preset is a private option that happens to be used by a bunch of codecs
<furq>
and this is a longstanding wish that nobody wants to implement
<another|>
best option is to read the code
<another|>
unfortunately
<furq>
well at least you said unfortunately
<noobaroo>
I tried, but I'm unable to understand
<noobaroo>
Can you point me in the right direction how to read the code? Maybe the right .c file to start
<furq>
at least -vbr is only for fdk and -crf is only for a few external libraries that document what it does themselves
<furq>
and in general -q is for builtin lossy codecs and -compression_level is for lossless codecs
<another|>
noobaroo: no. it varies
<furq>
but what the scales are is a mystery
<furq>
with that said i have no idea why you'd want to use mpeg2_qsv
<furq>
or mpeg4 or xvid for that matter
s55 has quit [Ping timeout: 268 seconds]
five618480336 has quit [Remote host closed the connection]
FlorianBad has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
SystemError has quit [Ping timeout: 260 seconds]
lavaball has quit [Remote host closed the connection]
SystemError has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
FlorianBad has joined #ffmpeg
FlorianBad has quit [Remote host closed the connection]
FlorianBad has joined #ffmpeg
s55 has joined #ffmpeg
waleee has joined #ffmpeg
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
JanC has joined #ffmpeg
JanC_ has joined #ffmpeg
mightysands has quit [Quit: ERC (IRC client for Emacs 27.2)]
JanC is now known as Guest1714
JanC_ is now known as JanC
Guest1714 has quit [Ping timeout: 260 seconds]
JanC has joined #ffmpeg
JanC is now known as Guest7690
Guest7690 has quit [Killed (iridium.libera.chat (Nickname regained by services))]
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
JanC has quit [Client Quit]
JanC has joined #ffmpeg
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
JanC has quit [Ping timeout: 256 seconds]
Muimi has joined #ffmpeg
JanC has joined #ffmpeg
JanC_ has joined #ffmpeg
JanC is now known as Guest8330
Guest8330 has quit [Killed (lead.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
JanC has quit [Ping timeout: 255 seconds]
JanC_ has joined #ffmpeg
JanC_ is now known as JanC
kasper93 has quit [Ping timeout: 246 seconds]
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
vlm has quit [Quit: Leaving]
iive has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
rv1sr has quit []
kus has quit [Ping timeout: 268 seconds]
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
SystemError has quit [Remote host closed the connection]
SystemError has joined #ffmpeg
Haxxa has quit [Quit: Haxxa flies away.]
kasper93 has joined #ffmpeg
Haxxa has joined #ffmpeg
JanC has quit [Ping timeout: 255 seconds]
Ox7C5 has quit [Quit: Lost terminal]
shibboleth has joined #ffmpeg
kasper93 has quit [Ping timeout: 260 seconds]
Raz- has quit [Ping timeout: 240 seconds]
\\Mr_C\\ has joined #ffmpeg
whatsupdoc has quit [Quit: Connection closed for inactivity]
shibboleth has quit [Quit: shibboleth]
Tinos has quit [Remote host closed the connection]
ivanich has joined #ffmpeg
Wenbin_Chen__ has joined #ffmpeg
Wenbin_Chen_ has quit [Read error: Connection reset by peer]
ivanich has quit [Quit: Konversation terminated!]
ivanich has joined #ffmpeg
<noobaroo>
furq For old hardware. I don't archive in these formats
<noobaroo>
Does anyone know why the colors are quite often off by a few shades when I take screenshots with ffmpeg?
<noobaroo>
I think it even happens with lossless webp.
Corroddity has quit [Quit: WeeChat 4.2.1]
<noobaroo>
I'm sure it's something simple. When I take a screenshot with mpv, that uses ffmpeg to do so, the colors are right, and then I do the exact same screenshot with ffmpeg directly and the colors are off
<noobaroo>
Sometimes (cant remember which format) it will warn me that colors might be off due to YUV->RGB conversion or something like that, but usually when it says this the colors are actually fine and often times when it DOESNT say it, the colors off
<noobaroo>
And this time I took a avif screenshot with libaom-av1 and the colors are off, vid is yuv420p, output is yuv420p avif
Traneptora has quit [Quit: Quit]
<noobaroo>
Yeah, I just tested and taking it with mpv on command line its fine
<noobaroo>
And I know it uses ffmpeg because it says: [ffmpeg] libaom-av1: Neither bitrate nor constrained quality specified, using default CRF of 32
<noobaroo>
aaabbb do you know?
waleee has quit [Quit: WeeChat 4.1.2]
ivanich has quit [Remote host closed the connection]
hightower3 has quit [Quit: Leaving]
ivanich has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
beaver has quit [Quit: /save && /reload]
JanC has joined #ffmpeg
beaver has joined #ffmpeg
SystemError has quit [Remote host closed the connection]
hussein1_ has quit [Remote host closed the connection]
hussein1_ has joined #ffmpeg
SystemError has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
kasper93 has joined #ffmpeg
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
SystemError has quit [Ping timeout: 260 seconds]
SuicideShow has quit [Ping timeout: 272 seconds]
SuicideShow has joined #ffmpeg
squeaktoy has quit [Ping timeout: 260 seconds]
squeaktoy has joined #ffmpeg
SystemError has joined #ffmpeg
turdle has quit [Remote host closed the connection]
beaver has quit [Remote host closed the connection]
Wenbin_Chen__ has quit [Read error: Connection reset by peer]
Wenbin_Chen__ has joined #ffmpeg
turdle has joined #ffmpeg
Corroddity has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]