ChanServ changed the topic of #ffmpeg to: Welcome to the FFmpeg USER support channel | Development channel: #ffmpeg-devel | Bug reports: https://ffmpeg.org/bugreports.html | Wiki: https://trac.ffmpeg.org/ | This channel is publically logged | FFmpeg 7.1.1 is released
Fiji has joined #ffmpeg
textmode has joined #ffmpeg
iive has quit [Quit: They came for me...]
\\Mr_C\\ has quit [Remote host closed the connection]
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ffmpeg
kasper93 has quit [Remote host closed the connection]
kasper93 has joined #ffmpeg
treefrob has quit [Ping timeout: 272 seconds]
lolok has quit [Ping timeout: 252 seconds]
treefrob has joined #ffmpeg
realies9 has joined #ffmpeg
realies has quit [Ping timeout: 276 seconds]
realies9 is now known as realies
Fiji has quit [Ping timeout: 244 seconds]
maxim_d33 has quit [Ping timeout: 252 seconds]
maxim_d33 has joined #ffmpeg
Juest has quit [Ping timeout: 252 seconds]
Juest has joined #ffmpeg
_whitelogger has joined #ffmpeg
ahc has joined #ffmpeg
MisterMinister has joined #ffmpeg
MisterMinister has quit [Remote host closed the connection]
MisterMinister has joined #ffmpeg
Muimi_ has joined #ffmpeg
yuckey2d5 has joined #ffmpeg
kepstin has quit [Ping timeout: 252 seconds]
kepstin has joined #ffmpeg
Muimi has quit [Ping timeout: 252 seconds]
yuckey2d has quit [Ping timeout: 272 seconds]
yuckey2d5 is now known as yuckey2d
cantelope has quit [Quit: Connection closed for inactivity]
bcheng has quit [Ping timeout: 252 seconds]
gordonfish has quit [Remote host closed the connection]
gordonfish has joined #ffmpeg
bcheng has joined #ffmpeg
flotwig has quit [Ping timeout: 276 seconds]
flotwig has joined #ffmpeg
MightyBOB has quit [Ping timeout: 260 seconds]
MightyBOB has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
Kei_N_ has quit [Remote host closed the connection]
Kei_N has joined #ffmpeg
textmode has quit [Quit: leaving]
Kei_N has quit [Ping timeout: 248 seconds]
Kei_N has joined #ffmpeg
System_Error has joined #ffmpeg
___nick___ has joined #ffmpeg
Shuriko has quit [Read error: Connection reset by peer]
<iconoclasthero>
secondly, is there some reason why i can't go directly from the ogg to m4b? (i.e., `ffmpeg -i file.opus -acodec copy file.opus.m4b`) Isn't m4b an mp4 container?
<iconoclasthero>
ffmpeg version N-116842-ga87a96105e Copyright (c) 2000-2024 the FFmpeg developers
<JEEB>
there might be specifics for sub-formats picked up by the extension
<JEEB>
so m4v, m4a and m4b extensions are registered as "ipod", "iPod H.264 MP4 (MPEG-4 Part 14)"
<JEEB>
it has its own codec tags listing
<JEEB>
which may or may not limit it to specific things
<iconoclasthero>
that's sort of what i'm gathering.
<iconoclasthero>
an m4b I'm looking at with mediainfo shows `Codec ID : M4A (M4A /isom/iso2)`
<BtbN>
that makes no sense, m4a is itself a container, which is just mp4 as well
<JEEB>
M4V and M4A ftyp entries are written into the header in MODE_IPOD
minimal has quit [Quit: Leaving]
<JEEB>
M4V if there's a video track, M4A if there's only video
<JEEB>
uhh, if there is no video for the latter
<iconoclasthero>
these are audio only.
<iconoclasthero>
well... there may be embedded covers, but no true video.
<BtbN>
so m4b has mp4 in mp4?
<JEEB>
no, it's just an ipod subset
cantelope has joined #ffmpeg
<JEEB>
with specific identifiers
<JEEB>
in the header
<JEEB>
as you can see the X/Y/Z in that print
<BtbN>
But why does it list m4a as codec ID then? Do they mean AAC by that?
<JEEB>
mediainfo calling it codec id is a bit lol
<JEEB>
since it's clearly the ftyp triplet
<furq>
i would guess anything that cares about the distinction won't play an opus-only mp4 anyway
<JEEB>
since there is a space after the M4{V,A} in the identifier since it's a four char identifier
<JEEB>
and yes
figushki has quit [Ping timeout: 268 seconds]
<JEEB>
that is most likely why the limitation is there in movenc
<JEEB>
it's meant for ipod-likes
<JEEB>
(probably made back when ipods were still on sale)
<iconoclasthero>
from an m4b: `Stream #0:0[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)`
<JEEB>
yes, apple utilized AAC for those things most likely
<JEEB>
since they started using it mid-2000s if not even earlier
<iconoclasthero>
i don't use mp4 containers, but the question of using opus in mp4 came up on the audiobookshelf discord ...
<furq>
it will work fine and for the most part you can just rename mp4 to m4a
<furq>
but certain vendors might choose to be needlessly finicky about it
<iconoclasthero>
that's what i did
<JEEB>
and you can just do `-f mp4`
<iconoclasthero>
and since i don't own apple products, i'm not particularly concerned.
<JEEB>
but
<furq>
me neither i'm just going off their reputation
<JEEB>
if people specifically want to create m4b files
<JEEB>
then they most likely want those to play
<JEEB>
so they should check whether those files are actually playable
<iconoclasthero>
well, apparenlty safari 18.? added opus support
<JEEB>
(in whatever plastic device they care about)
<JEEB>
yes, but that doesn't need the m4b extension I think? also I think apple is weird and only added opus support in some weird container of their own
<iconoclasthero>
" a single .caf file can theoretically save hundreds of years of recorded audio due to its use of 64-bit file offsets." makes me wonder how many hundreds of years audible would total.
<iconoclasthero>
so is there a way to retain the tags when going from opus/ogg to opus/mp4?
<iconoclasthero>
it keeps the chapter index, but that's about it.
figushki has joined #ffmpeg
rvalue has quit [Read error: Connection reset by peer]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
rvalue has joined #ffmpeg
figushki has quit [Ping timeout: 244 seconds]
JanC is now known as Guest3167
Guest3167 has quit [Killed (lithium.libera.chat (Nickname regained by services))]
JanC has joined #ffmpeg
zenstoic has joined #ffmpeg
figushki has joined #ffmpeg
figushki has quit [Client Quit]
figushki has joined #ffmpeg
figushki has quit [Ping timeout: 248 seconds]
yans has joined #ffmpeg
prekk has joined #ffmpeg
yans has quit [Ping timeout: 276 seconds]
yans has joined #ffmpeg
yans has quit [Read error: Connection reset by peer]
lavaball has quit [Remote host closed the connection]
figushki has joined #ffmpeg
figushki has quit [Ping timeout: 244 seconds]
figushki has joined #ffmpeg
figushki has quit [Ping timeout: 272 seconds]
figushki has joined #ffmpeg
<johnjaye>
is vp9 better than x264 for normal live-action i.e. non-animated video?
<johnjaye>
i saw a vp9/opus combo earlier and most youtube stuff is 264/aac
figushki has quit [Ping timeout: 252 seconds]
<johnjaye>
also i didn't even hesitate to put opus into an mp4 lol. i guess this is why i'm not on apple. although my mom has an iphone
<galad>
your mom's iphone will play opus is mp4 too ;)
<galad>
vp9 is a bit more efficient than h.264 in theory, but I don't think there isn't any encoder as fast and good as x264 out there, so it depends on how long you want to wait for each encode
<JEEB>
yea, I mostly utilized libvpx's vp9 encoder while dav1d's x86_64 10bit optimizations were not in
<JEEB>
but speed and ease of use wise x264 is a legend at this point
<JEEB>
need to see if SVT-AV1 ever starts optimizing the defaults for visual quality, they are merging various stuff in but seem to be keeping defaults on the metrics-love-this level
<JEEB>
which... may be sub-optimal as it may just lead to more and more cargo cult regarding its usage (such cargo cult will always occur, but it's easier to end up there if the defaults are not for visual)
figushki has joined #ffmpeg
<JEEB>
also I just thought of how soon it will be 20 years since I've first used x264... and then froze due to how close that would be now
<johnjaye>
i don't even know what all the encoding parameters mean like nr or me_range
<johnjaye>
i assume there's some kind of standards document about x264 that would explain it
<JEEB>
the whole idea with any sane encoder is that you don't need to care
<JEEB>
you have presets, you have tunes
<johnjaye>
i'm encoding with placebo right now. that's just what i do
<JEEB>
and default tune is JustFine, so then you can just focus on the big stick which is presets
stolen has joined #ffmpeg
<JEEB>
lol, even placebo by now is pretty fast
<JEEB>
although I just go veryslow
<JEEB>
it's 99% of the way there
<johnjaye>
should just call it superslow
<johnjaye>
i hate it when those types of things aren't symmetrical
<JEEB>
"nobody cares if it's done correctly so as we're trying to do it correctly we shall call it placebo"
<JEEB>
although with x264 it was mostly "up to 11 for those people who want to burn CPU cycles"
<johnjaye>
so this av1 thing is 50% better than libx264? wtf
<kepstin>
h264 is an _old_ video codec, even with a very optimized encode there's only so much it can do
<JEEB>
x264 is an encoder for AVC/H.264
<JEEB>
libvpx's vp9 encoder is an encoder for VP9
<JEEB>
SVT-AV1 or rav1e or libaom are encoders for AV1
<johnjaye>
does vlc use libplacebo?
<kepstin>
the thing about h264 is that basically everything can play it, there's a high quality free, fast encoder, and its compression is usually "good enough"
<johnjaye>
the description literally says it's a rewrite of mpv
<JEEB>
and yea, AVC was (mostly) standardized in 2003-2005, VP9 was standardized some time around HEVC/H.265 (2013). AV1 was standardized some time before VVC/H.266 (2018 I think? although I think it was FOSDEM 2018 where first hacking of rav1e happened)
<BtbN>
The available storage and bandwidth simply grew much faster than new video codecs manages to use the same CPU cycles for more compression
<haasn>
johnjaye: optionally
<BtbN>
So there is very little motivation to burn intense amounts of CPU time encoding, and have compatiblity issues in return
<JEEB>
johnjaye: it's a video rendering core which mpv also utilizes. I think VLC's master has a more proper libplacebo renderer, while 3.0 only has a partial one
<kepstin>
the reason to use something other than h264 is mostly if at your scale bandwidth/storage become enough concern that you're ok with spending more time using cpu to encode to save bandwidth.
<kepstin>
so... if you're youtube, basically
<JEEB>
BtbN: or you look at encoders like x265 and see the instability/inability to keep details
<kepstin>
and even youtube only does av1 encodes for videos one they hit a certain level of popularity/view count.
<JEEB>
(and then see how people disable larger block sizes etc to limit the encoder to H.264 sizes to compensate)
figushki has quit [Ping timeout: 248 seconds]
<johnjaye>
kudos to Lavc61.3.100 libx264 since that's what i'm using
<BtbN>
that does not contain any meaningful info about what libx264 version is in use
<BtbN>
Though it's basically "complete" since a long time
<BtbN>
very little notable changes these days
<johnjaye>
all i can say is what ffmpeg outputs. i think it's been awhile since i updated.
<johnjaye>
Stream #0:0: Video: h264 (avc1 / 0x31637661) is what it says rn
<BtbN>
well, that's also only natural when using libx264
<johnjaye>
anyway i should probably think of something smarter to say
<johnjaye>
like what are the best ffmpeg blog posts to read
<johnjaye>
but for now i'll just let these placebo encodes run. i'm trying to get a 30 minute podcast into 10MB since that is the file limit on discord.
<BtbN>
Just... remove the video?
<johnjaye>
that would be the intelligent way
<johnjaye>
i'm doing it the hard way
<johnjaye>
i.e. finding the optimal combo of fps, resolution, and macroblocking from -crf in the 40s that is optimal
<johnjaye>
apparently that is mono opus and 240p with -crf in the 35 range
zsoltiv_ has quit [Ping timeout: 248 seconds]
<johnjaye>
and maybe vp9
<BtbN>
for a podcast, the optimal fps would be 1/duration :D
Traneptora has quit [Quit: Quit]
lavaball has joined #ffmpeg
<johnjaye>
haha. well i'm still trying to figure out how to get a thumbnail in there
<johnjaye>
somehow i blundered into it by accidentally including 2 video streams
<johnjaye>
so the discord preview shows video 1 but then plays video 2
Traneptora has joined #ffmpeg
prekk has quit [Quit: prekk]
zenstoic has quit [Quit: Connection closed for inactivity]
cantelope has quit [Quit: Connection closed for inactivity]
lolok has quit [Quit: lolok]
ackyshake has quit [Ping timeout: 252 seconds]
cantelope has joined #ffmpeg
lolok has joined #ffmpeg
chiselfuse has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
xx has quit [Remote host closed the connection]
fling has joined #ffmpeg
xx has joined #ffmpeg
xx has quit [Remote host closed the connection]
xx has joined #ffmpeg
<johnjaye>
i think -crf 45 to 48 is the range where faces just become completely indistinguishable
priestman7819 has joined #ffmpeg
<johnjaye>
does ffmpeg have a split vid mode to play back 2 or more videos simultaneously?
<johnjaye>
or would i need to use a filter to overlay one video on another?
priestman7819 has quit [Ping timeout: 240 seconds]
<another|>
wdym by play?
<another|>
ffmpeg is not exactly a video player
Keshl has quit [Read error: Connection reset by peer]
Keshl_ has joined #ffmpeg
<johnjaye>
i meant ffplay
<johnjaye>
or a filter for ffmpeg that would just juxtapose 2 videos
<johnjaye>
unless maybe the overlay filter can do it and i'm not seeing how
<another|>
hstack, vstack
<another|>
or xstack
<johnjaye>
amazing. that worked.
<johnjaye>
ffmpeg filters can do anything
<BtbN>
keep in mind ffplay is not meant as a proper player, more as an example
<johnjaye>
right. i just use it to test the output since it's faster than using vlc
<johnjaye>
if vlc loaded faster i'd use it
<BtbN>
vlc loads virtually instantly?
<johnjaye>
well that fraction of a second may seem small. but when you do it a lot it adds up
<johnjaye>
it's more of a personal preference. i hate it when programs lag on startup or lag in general so maybe i'm a bit unique
<BtbN>
There is zero perceivable lag for either
<BtbN>
if at all, vlc is faster
<johnjaye>
idk maybe it's that i'm on windows
<johnjaye>
but it does feel a fraction of a second slower
<johnjaye>
but ffplay also quits easier with q and such
<johnjaye>
and prints the stats which i need anyway.
ackyshake has joined #ffmpeg
<johnjaye>
by the way are any of the books/tutorials about ffmpeg good?
<johnjaye>
amazon has a couple. i think i have one on a shopping list
Fiji has quit [Ping timeout: 252 seconds]
fling_ has joined #ffmpeg
fling has quit [Ping timeout: 264 seconds]
stolen has quit [Quit: Connection closed for inactivity]
ackyshake has quit [Ping timeout: 260 seconds]
fling_ is now known as fling
emanuele6 has joined #ffmpeg
coldfeet has quit [Quit: Lost terminal]
lavaball has quit [Remote host closed the connection]
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
chiselfuse has joined #ffmpeg
emanuele6 has quit [Read error: Connection reset by peer]
Shine_ has quit [Read error: Connection reset by peer]