BtbN 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.0 is released
Hamzah has joined #ffmpeg
minimal has quit [Quit: Leaving]
Hamzah has quit [Client Quit]
Sketch has quit [Ping timeout: 246 seconds]
stkw0 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
stkw0 has joined #ffmpeg
Sketch has joined #ffmpeg
jb3 has quit [Quit: ZNC 1.8.2 - https://znc.in]
jb3 has joined #ffmpeg
Arokh has joined #ffmpeg
MrZeus has joined #ffmpeg
MrZeus__ has quit [Ping timeout: 276 seconds]
sugoi has quit [Ping timeout: 248 seconds]
lusciouslover has quit [Ping timeout: 248 seconds]
lusciouslover has joined #ffmpeg
lucasta has joined #ffmpeg
Hackerpcs has joined #ffmpeg
CarlFK has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
<Peetz0r> Hey. I have a bunch of plain old wave files with the wrong sample rate in their file headers. Is there an easy way to change the sample rate metadata without resampling everything?
kushal__ has quit [Read error: Connection reset by peer]
<aaabbb> Peetz0r: it's a simple enough format that you could do it with a python script or smoething. do you know what the correct sampe rate is?
<Peetz0r> yeah the files claim to be 16000 but I thought they're either 12000 or 11025
<aaabbb> you're 100% sure they're not 16khz?
<Peetz0r> but then I noticed that sox could do it easily. so I tried both, and 12000 sounds correct
<Peetz0r> yes I'm 100% sure
<Peetz0r> there's a bunch of files in 2 categories, converted from some weird propotary embedded format with a tool that is probably the wrong version. all of the files claim to be 16 khz. that's correct for one category, but the other one is very clearly wrong
<Peetz0r> either that or everyone was slurping helium during recording :p
<aaabbb> so i'm not sure if ffmpeg can do that, but you can certainly do it with a simple script
<aaabbb> actually
<aaabbb> no ffmpeg can do it easily
<Peetz0r> yeah I found that sox can just do it with `sox -r 12000 in.wav out.wav`
<aaabbb> just export it to raw pcm, then import (and convet to wave) with whatever the ight rate is
<furq> ffmpeg -i out.wav -f s16le - | ffmpeg -sample_rate 12000 -f s16le -i - out2.wav
<aaabbb> ^
<Peetz0r> I assume ffmpeg is not much harder, but ffmpeg does so many things that finding the right spot in the docs is hard
<aaabbb> that will destroy all metadata however, but it will work
<Peetz0r> anyway, thanks :)
<Peetz0r> yeah there wasn't any metadata to start with :)
<aaabbb> then furq's command will work, it does exactly what i described (export to raw pcm, then import)
<aaabbb> assuming 16-bit audio of course
<aaabbb> (s16le)
<Peetz0r> yep, it's s16le
<aaabbb> furq: i'm curious now if there's a way to do that with a single command with a filter chain
<aaabbb> ah, asetrate
<aaabbb> Peetz0r: so another way is possible "ffmpeg -i in.wav -af asetrate=12000 out.wav"
<aaabbb> which is probably right
sugoi has joined #ffmpeg
<Peetz0r> yes, that looks like what I was looking for :)
monkeybusiness has quit [Quit: IRCNow and Forever!]
<aaabbb> manpage says "Set the sample rate without altering the PCM data. This will result in a change of speed and pitch"
<furq> yeah that's easier for pcm
<aaabbb> also makes preseving metadata possible if desired
<furq> it should be easy enough to do it inplace though
<furq> not with ffmpeg obviously
<aaabbb> yeah if ffmpeg couldn't do it i would have written a quick perl or python script and put it in a paste
<Peetz0r> sox also can't do it in place
<aaabbb> do you wish to do it in-place?
<Peetz0r> nah I've already done what I needed :)
<furq> well i wrote a oneliner now so i'm going to post it in here anyway
<furq> printf "\xe0\x2e" | dd of=out.wav bs=1 seek=24 count=2 conv=notrunc
<aaabbb> a littl extra efficiency with bs=2 seek=12 count=1, to save a few microseconds ;)
Muimi__ has joined #ffmpeg
Sakura`Kinomoto has quit [Remote host closed the connection]
Sketch has quit [Ping timeout: 246 seconds]
Sakura`Kinomoto has joined #ffmpeg
Sketch has joined #ffmpeg
ossifrage has quit [Remote host closed the connection]
Suchiman has quit [Quit: Connection closed for inactivity]
Disavowed has quit [Quit: ZNC 1.8.2 - https://znc.in]
Disavowed has joined #ffmpeg
MrZeus has quit [Ping timeout: 252 seconds]
xx has quit [Ping timeout: 260 seconds]
ossifrage has joined #ffmpeg
jarrhed has quit [Ping timeout: 260 seconds]
jarrhed has joined #ffmpeg
lucasta has quit [Quit: Leaving]
Muimi__ has quit [Remote host closed the connection]
SystemError has quit [Remote host closed the connection]
txtsd has quit [Read error: Connection reset by peer]
Vonter has quit [Ping timeout: 276 seconds]
SystemError has joined #ffmpeg
Sketch has quit [Ping timeout: 246 seconds]
Vonter has joined #ffmpeg
microchip_ has quit [Quit: There is no spoon!]
microchip_ has joined #ffmpeg
anticw_ has quit [Remote host closed the connection]
anticw has joined #ffmpeg
Sketch has joined #ffmpeg
sugoi has quit [Ping timeout: 264 seconds]
jarthur has joined #ffmpeg
Sketch has quit [Ping timeout: 246 seconds]
Sketch has joined #ffmpeg
Vonter has quit [Ping timeout: 244 seconds]
Vonter has joined #ffmpeg
coldfeet has joined #ffmpeg
txtsd has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
rv1sr has joined #ffmpeg
deetwelve has joined #ffmpeg
lavaball has joined #ffmpeg
Warcop has quit [Ping timeout: 252 seconds]
coldfeet has joined #ffmpeg
vlm has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
Suchiman has joined #ffmpeg
chiselfuse has quit [Ping timeout: 260 seconds]
chiselfuse has joined #ffmpeg
Forza has quit [Ping timeout: 246 seconds]
mikehu44 has joined #ffmpeg
dkh has quit [Ping timeout: 252 seconds]
theobjectivedad has quit [Ping timeout: 276 seconds]
dkh has joined #ffmpeg
theobjectivedad has joined #ffmpeg
GingerGeek has quit [Ping timeout: 252 seconds]
GingerGeek has joined #ffmpeg
Hackerpcs has joined #ffmpeg
Forza has joined #ffmpeg
alexherbo2 has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
Blacker47 has joined #ffmpeg
kus has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
fling has joined #ffmpeg
Sakura`Kinomoto has quit [Remote host closed the connection]
nrg has quit [Quit: ZNC - https://znc.in]
nrg has joined #ffmpeg
xx has joined #ffmpeg
five6184803391 has joined #ffmpeg
fling has quit [Ping timeout: 260 seconds]
sugoi has joined #ffmpeg
sugoi has quit [Ping timeout: 252 seconds]
lavaball has quit [Ping timeout: 245 seconds]
iliv has joined #ffmpeg
Sakura`Kinomoto has joined #ffmpeg
kasper93 has quit [Remote host closed the connection]
kasper93 has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
arbitercoin has joined #ffmpeg
alexherbo2 has joined #ffmpeg
lavaball has joined #ffmpeg
SystemError has quit [Remote host closed the connection]
fling has joined #ffmpeg
Dagger has quit [Ping timeout: 265 seconds]
sugoi has joined #ffmpeg
Dagger has joined #ffmpeg
lucasta has joined #ffmpeg
sugoi has quit [Ping timeout: 272 seconds]
jagannatharjun has joined #ffmpeg
minimal has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 252 seconds]
EmleyMoor has joined #ffmpeg
SystemError has joined #ffmpeg
Suchiman has quit [Quit: Connection closed for inactivity]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
lavaball has quit [Quit: lavaball]
Tinky-Winky has joined #ffmpeg
rex has quit [Ping timeout: 246 seconds]
rex has joined #ffmpeg
Traneptora has joined #ffmpeg
vlm has quit [Quit: vlm]
sugoi has joined #ffmpeg
vlm has joined #ffmpeg
sugoi has quit [Ping timeout: 260 seconds]
Suchiman has joined #ffmpeg
Tinky-Winky has quit [Quit: Tinky-Winky]
rmaw has joined #ffmpeg
<rmaw> hi, new to using libav and am setting up an AVCodeContext. I want to set some encoder specific options using av_opt_set_xx. The header for the encoder I am using defines some AVOptions of AV_OPT_TYPE_CONST, and they have a name (https://pastebin.com/di8Ak7wP)
<rmaw> in the above, how can I set "profile" using the name, am I meant to av_opt_get() first to get the value from the const and then set them using av_opt_set_int using that value? or is there something i'm missing to be able to set the option by name of const value?
<rmaw> av_opt_set(codec_context,"profile","1",0) works
<rmaw> av_opt_set(codec_context,"profile","baseline",0) doesn't
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
sugoi has joined #ffmpeg
sugoi has quit [Ping timeout: 252 seconds]
HerbY_NL has joined #ffmpeg
<rmaw> nvm, looks like av_opt_find2 is the way
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has joined #ffmpeg
<DHE> you can also build an AVDictionary, fill it with the options, and then send the whole dictionary to one of them various codec functions
<DHE> that's the 3rd parameter to avcodec_open2. it will apply all the settings you specify as it opens
fling has quit [Ping timeout: 260 seconds]
ttys000_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ttys000 has joined #ffmpeg
vlm has quit [Quit: vlm]
five6184803391 has quit [Remote host closed the connection]
five6184803391 has joined #ffmpeg
jagannatharjun has quit [Quit: Connection closed for inactivity]
HerbY_NL has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CarlFK has quit [Read error: Connection reset by peer]
CarlFK2 has joined #ffmpeg
SystemError has quit [Remote host closed the connection]
acryo has quit [Quit: ZNC 1.8.2 - https://znc.in]
acryo has joined #ffmpeg
CarlFK2 has quit [Ping timeout: 252 seconds]
rvalue- has joined #ffmpeg
rvalue has quit [Ping timeout: 245 seconds]
rvalue- is now known as rvalue
lavaball has joined #ffmpeg
vlm has joined #ffmpeg
vlm has quit [Client Quit]
swamp_ has joined #ffmpeg
aljazmc has joined #ffmpeg
zmt01 has quit [Ping timeout: 260 seconds]
sugoi has joined #ffmpeg
vlm has joined #ffmpeg
<travisghansen> Anyone hang out around here that does professional services/consulting around ffmpeg?
Hikaru_ has joined #ffmpeg
kasper93 has quit [Remote host closed the connection]
<Hikaru_> i got an amd ryzen 9950x chip, and i no longer max out the cpu with when encoding to x264
<Hikaru_> what is the bottle neck?
<Hikaru_> it's like 49% cpu utilisation
<kepstin> probably a combination of size of the video and using encoding options that don't require a lot of cpu time per thread.
<kepstin> video encoding doesn't scale well to very large core counts - you're better off encoding multiple videos in parallel to use a big cpu like a 9950x
kasper93 has joined #ffmpeg
<Hikaru_> thats a good idea, i will try run multiple jobs
rv1sr has quit []
SystemError has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
sugoi has quit [Ping timeout: 260 seconds]
Haxxa has quit [Quit: Haxxa flies away.]
Haxxa has joined #ffmpeg
relue has joined #ffmpeg
relue has quit [Client Quit]
vampirefrog has quit [Quit: Leaving]
vampirefrog has joined #ffmpeg
Traneptora has quit [Quit: Quit]
stkw0 has left #ffmpeg [https://quassel-irc.org - Chat comfortably. Anywhere.]
arbitercoin has quit [Ping timeout: 255 seconds]
sugoi has joined #ffmpeg
hightower2 has joined #ffmpeg
rossome has quit [Quit: WeeChat 4.3.5]
rossome has joined #ffmpeg
aljazmc has quit [Quit: Leaving]
sugoi has quit [Ping timeout: 252 seconds]
lavaball has quit [Remote host closed the connection]
militantorc has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
sugoi has joined #ffmpeg
rossome has quit [Quit: WeeChat 4.4.1]
rossome has joined #ffmpeg
SuicideShow has quit [Ping timeout: 264 seconds]
SuicideShow has joined #ffmpeg
sugoi has quit [Ping timeout: 246 seconds]
bertieb has quit [Ping timeout: 272 seconds]
minimal has quit [Quit: Leaving]
alexherbo2 has quit [Remote host closed the connection]
bertieb has joined #ffmpeg
talismanick has joined #ffmpeg
sugoi has joined #ffmpeg
sugoi has quit [Ping timeout: 246 seconds]
sugoi has joined #ffmpeg
Hikaru_ has quit [Remote host closed the connection]
<rmaw> DHE: thank you
vincejv has quit [Remote host closed the connection]
five6184803391 has quit [Ping timeout: 245 seconds]