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
devinheitmuell-1 has quit [Ping timeout: 252 seconds]
flotwig has quit [Quit: ZNC - http://znc.in]
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg
intrac has joined #ffmpeg
_whitelogger has joined #ffmpeg
Traneptora has quit [Quit: Quit]
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
danielxhogan has quit [Ping timeout: 244 seconds]
danielxhogan has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
Fiji_ has joined #ffmpeg
jiffy__ has joined #ffmpeg
Fiji_ has quit [Read error: Connection reset by peer]
System_Error has quit [Ping timeout: 244 seconds]
System_Error has joined #ffmpeg
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
danielxhogan has quit [Ping timeout: 260 seconds]
danielxhogan has joined #ffmpeg
maxim_d33 has quit [Ping timeout: 244 seconds]
maxim_d33 has joined #ffmpeg
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
jmcantrell has quit [Ping timeout: 276 seconds]
jmcantrell has joined #ffmpeg
Shine_ has joined #ffmpeg
Shine_ has quit [Read error: Connection reset by peer]
lusciouslover has quit [Quit: \]
lusciouslover has joined #ffmpeg
danielxhogan has quit [Read error: Connection reset by peer]
EmleyMoor has quit [Ping timeout: 252 seconds]
danielxhogan has joined #ffmpeg
cantelope has quit [Quit: Connection closed for inactivity]
EmleyMoor has joined #ffmpeg
etra has quit [Ping timeout: 252 seconds]
jmcantrell has quit [Ping timeout: 265 seconds]
etra has joined #ffmpeg
etra has quit [Changing host]
etra has joined #ffmpeg
cantelope has joined #ffmpeg
etra has quit [Ping timeout: 260 seconds]
etra has joined #ffmpeg
etra has joined #ffmpeg
etra has quit [Changing host]
ja_02 has quit [Ping timeout: 276 seconds]
DiJuMx has joined #ffmpeg
etra has quit [Quit: ZNC 1.8.2 - https://znc.in]
etra has joined #ffmpeg
etra has joined #ffmpeg
etra has quit [Changing host]
etra has quit [Client Quit]
etra has joined #ffmpeg
etra has quit [Changing host]
etra has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
danielxhogan has quit [Ping timeout: 260 seconds]
danielxhogan has joined #ffmpeg
Richardcavell has joined #ffmpeg
<Richardcavell> Hello everyone. I'm trying to come up with a command line to do what I want. I want to take a .wav file, which has a single channel, and turn it into raw unsigned 8-bit.
<Richardcavell> This is what I have so far: ffmpeg -i input.wav -v warning -f u8 -acodec pcm_u8 output.raw
<Richardcavell> But ffmpeg is saying Guessed Channel Layout: stereo, and that's not what I want
<aaabbb> you should probably dither if you reduce it to 8-bit btw
System_Error has joined #ffmpeg
<aaabbb> if it's saying that it thinks it's stereo, then are you sure it's actually mono? or is it stereo with two identical channels?
<Richardcavell> Hmmm. I don't know.
MrHAPPY has joined #ffmpeg
<aaabbb> try this: ffmpeg -i input.wav -af 'aresample=ichl=mono:osf=u8:dither_method=triangular' output.wav
<aaabbb> oh wait you said raw
<aaabbb> then instead of output.wav, -f u8 -c:a pcm_u8 output.raw
<aaabbb> the output of "ffprobe input.wav" pasted to a paste site like bpa.st would be useful in determining if the input is really mono
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
HarshK23 has joined #ffmpeg
<Richardcavell> I'm getting errors
<Richardcavell> ffprobe seems to think it's stereo. I could be wrong.
<aaabbb> if it thinks it's stereo, then chances are it's stereo (even if it's effectively mono with two identical channels)
<Richardcavell> I have ffmpeg version 6.1.1 and it's giving me
<Richardcavell> Error applying option 'ich1' to filter 'aresample': Option not found
<aaabbb> ichl, not ich1 (lowercase L)
<Richardcavell> Okay. One more thing - I want the final bitrate to be 8192 bytes/second. Do I just put -ar 8192 in there?
<aaabbb> that's not something you can really do with a raw pcm stream unless you are ok with resampling it
<aaabbb> why can't you use a compressed format?
<aaabbb> btw to get more detailed info about the stereo channels: ffmpeg -i input.wav -af astats -f null - 2>&1 | nc termbin.com 9999
<aaabbb> that will output a link to a paste site
dxh has joined #ffmpeg
MrHAPPY has quit []
<Richardcavell> I'm bitbanging sound synthesis so I need it raw
<Richardcavell> it's a retrocomputing project
<Richardcavell> And yes, I want it resampled
<aaabbb> to get to 8192 bytes per second, or bits?
<Richardcavell> bytes
<aaabbb> that would be a resampling to 8192hz (8192 * 8 bits = 65536 bits/s which is 8192 bytes/s). do the filter: aresample=ichl=mono:osf=u8:osr=8192:dither_method=triangular
<aaabbb> note that you'll be limited to representing sound below 4khz
<Richardcavell> That's fine
<Richardcavell> So to summarise, I have ffmpeg -i input.wav -v warning -af 'aresample=ichl=mono:osf=u8:osr=8192:dither_method=triangular' -f u8 -ar 8192 -c:a pcm_u8 output.raw
<aaabbb> you can drop the -ar 8192
<Richardcavell> And that will produce unsigned 8 bit mono output as a raw file, correct?
<aaabbb> because osr=8192 does that
<aaabbb> it should, yes
<aaabbb> and actually it might be slightly more efficient to do ochl=mono instead of ichl=mono just because the latter probably inserts an extra filter before it
<aaabbb> ffmpeg -i input.wav -af 'aresample=ochl=mono:osf=u8:osr=8192:dither_method=triangular' -f u8 -c:a pcm_u8 output.raw
<aaabbb> that will mix the two channels together into mono, truncate it to 8 bit unsigned using triangular dither, and will resample to 8192hz, then will save as a raw 8-bit unsigned pcm stream
<aaabbb> you can also try it with other dither methods or with no dither to see what sounds best for you, but triangular with default strength is rarely bad
<Richardcavell> okay
<Richardcavell> Thanks for your help
ahc has joined #ffmpeg
xx has quit [Remote host closed the connection]
trillion_exabyte has quit [Ping timeout: 268 seconds]
trillion_exabyte has joined #ffmpeg
jiffy__ has quit [Ping timeout: 260 seconds]
coldfeet has joined #ffmpeg
lavaball has joined #ffmpeg
danielxhogan has quit [Remote host closed the connection]
danielxhogan has joined #ffmpeg
cantelope has quit [Quit: Connection closed for inactivity]
xx has joined #ffmpeg
rsx has joined #ffmpeg
jensen1 has quit [Quit: jensen1]
_whitelogger has joined #ffmpeg
Shine_ has joined #ffmpeg
derjanni has quit [Ping timeout: 260 seconds]
Richardcavell_ has joined #ffmpeg
sam113102 has joined #ffmpeg
jprjr_ has joined #ffmpeg
flotwig_ has joined #ffmpeg
flotwig_ has quit [Changing host]
flotwig_ has joined #ffmpeg
HarshK23_ has joined #ffmpeg
DvdKhl has joined #ffmpeg
Offsprin has joined #ffmpeg
derjanni has joined #ffmpeg
intrac2 has joined #ffmpeg
talisman` has joined #ffmpeg
HarshK23 has quit [Ping timeout: 260 seconds]
Arokh has quit [Ping timeout: 260 seconds]
HarshK23_ is now known as HarshK23
coldfeet has quit [Ping timeout: 260 seconds]
sam113101 has quit [Ping timeout: 260 seconds]
rossome has quit [Ping timeout: 260 seconds]
lavaball has quit [Ping timeout: 260 seconds]
dxh has quit [Ping timeout: 260 seconds]
lusciouslover has quit [Ping timeout: 260 seconds]
Richardcavell has quit [Ping timeout: 260 seconds]
intrac has quit [Ping timeout: 260 seconds]
flotwig has quit [Ping timeout: 260 seconds]
manwithluck has quit [Ping timeout: 260 seconds]
jprjr has quit [Ping timeout: 260 seconds]
faxmodem has quit [Ping timeout: 260 seconds]
acryo has quit [Ping timeout: 260 seconds]
talismanick has quit [Ping timeout: 260 seconds]
user24037 has quit [Ping timeout: 260 seconds]
MisterMinister has quit [Ping timeout: 260 seconds]
lockywolf has quit [Ping timeout: 260 seconds]
simpl_e has quit [Ping timeout: 260 seconds]
Offspring has quit [Ping timeout: 260 seconds]
jprjr_ is now known as jprjr
Offsprin is now known as Offspring
DvdKhl is now known as Arokh
acryo_ has joined #ffmpeg
sam113102 is now known as sam113101
coldfeet_ has joined #ffmpeg
lockywolf_ has joined #ffmpeg
user24037 has joined #ffmpeg
user24037 has quit [Changing host]
user24037 has joined #ffmpeg
lusciouslover has joined #ffmpeg
MisterMinister has joined #ffmpeg
simpl_e has joined #ffmpeg
faxmodem has joined #ffmpeg
Everything has joined #ffmpeg
rossome has joined #ffmpeg
SuicideShow has quit [Ping timeout: 245 seconds]
SuicideShow has joined #ffmpeg
lusciouslover has quit [Ping timeout: 260 seconds]
simpl_e has quit [Ping timeout: 260 seconds]
lusciouslover has joined #ffmpeg
dxh has joined #ffmpeg
bitbinge has joined #ffmpeg
Sketch has quit [Remote host closed the connection]
lemoniter has joined #ffmpeg
Sketch has joined #ffmpeg
dxh has quit [Ping timeout: 260 seconds]
HarshK23 has quit [Quit: Connection closed for inactivity]
YuGiOhJCJ has joined #ffmpeg
Mister_Magister_ has joined #ffmpeg
Mister_Magister has quit [Ping timeout: 260 seconds]
Mister_Magister_ is now known as Mister_Magister
lusciouslover has quit [Ping timeout: 260 seconds]
lusciouslover has joined #ffmpeg
lusciouslover has quit [Quit: \]
Some_Person has quit [Quit: ZNC 1.8.2 - https://znc.in]
Some_Person has joined #ffmpeg
coldfeet_ has quit [Quit: Lost terminal]
EmleyMoor has quit [Quit: Gateway shutdown]
EmleyMoor has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 248 seconds]
EmleyMoor has joined #ffmpeg
DiJuMx has quit [Quit: Leaving]
EmleyMoor has quit [Ping timeout: 276 seconds]
EmleyMoor has joined #ffmpeg
ahc has quit [Ping timeout: 252 seconds]
EmleyMoor has quit [Ping timeout: 268 seconds]
EmleyMoor has joined #ffmpeg
lusciouslover has joined #ffmpeg
_whitelogger has joined #ffmpeg
eniw has quit [Remote host closed the connection]
jiffy__ has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 260 seconds]
EmleyMoor has joined #ffmpeg
Everything has quit [Quit: leaving]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
bsFFFFFF has joined #ffmpeg
bsFFFFFF has quit [Ping timeout: 244 seconds]
ZLima12_ has quit [Remote host closed the connection]
ZLima12 has joined #ffmpeg
cantelope has joined #ffmpeg
bsFFFFFF has joined #ffmpeg
Xaldafax has joined #ffmpeg
OGU has quit [Ping timeout: 260 seconds]
minimal has joined #ffmpeg
minimal has quit [Remote host closed the connection]
minimal has joined #ffmpeg
jensen1 has joined #ffmpeg
jensen1 is now known as aqap
rsx has quit [Quit: rsx]
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ffmpeg
elvis_a_presley has quit [Quit: smoke-bomb ; grapple-hook]
elvis_a_presley has joined #ffmpeg
trillion_exabyte has quit [K-Lined]
minimal has quit [Remote host closed the connection]
minimal has joined #ffmpeg
marth64_ has quit [Remote host closed the connection]
Marth64 has joined #ffmpeg
minimal has quit [Read error: Connection reset by peer]
minimal has joined #ffmpeg
coldfeet has joined #ffmpeg
cantelope has quit [Quit: Connection closed for inactivity]
cantelope has joined #ffmpeg
Vonter has quit [Ping timeout: 265 seconds]
jmcantrell has joined #ffmpeg
dxh has joined #ffmpeg
bsFFFFFF has quit [Ping timeout: 252 seconds]
bsFFFFFF has joined #ffmpeg
bsFFFFFF has quit [Ping timeout: 260 seconds]
bsFFFFFF has joined #ffmpeg
jmcantrell has quit [Ping timeout: 272 seconds]
beastd has quit [Ping timeout: 265 seconds]
phantomics has joined #ffmpeg
phantomics__ has quit [Ping timeout: 248 seconds]
jmcantrell has joined #ffmpeg
microchip_ has quit [Quit: There is no spoon!]
microchip_ has joined #ffmpeg
jmcantrell has quit [Ping timeout: 265 seconds]
Shine_ has quit [Read error: Connection reset by peer]
prekk has joined #ffmpeg
xx has quit [Remote host closed the connection]
YuGiOhJCJ has joined #ffmpeg
xx has joined #ffmpeg
minimal has quit [Read error: Connection reset by peer]
minimal has joined #ffmpeg
coldfeet has quit [Quit: Lost terminal]
dcomp2 has joined #ffmpeg
dcomp has quit [Ping timeout: 252 seconds]
dcomp2 is now known as dcomp
minimal has quit [Read error: Connection reset by peer]
minimal has joined #ffmpeg
finsternis has joined #ffmpeg
Vonter has joined #ffmpeg
minimal has quit [Quit: Leaving]
prekk has quit []
lusciouslover has quit [Remote host closed the connection]
lusciouslover has joined #ffmpeg
bsFFFFFF has quit [Ping timeout: 260 seconds]
dxh has quit [Ping timeout: 260 seconds]
bitbinge has quit [Remote host closed the connection]
chiselfuse has quit [Remote host closed the connection]
bitbinge has joined #ffmpeg
chiselfuse has joined #ffmpeg
jmcantrell has joined #ffmpeg
de-facto has quit [Remote host closed the connection]
de-facto has joined #ffmpeg
danielxhogan has quit [Ping timeout: 272 seconds]
danielxhogan has joined #ffmpeg
bitbinge has quit [Remote host closed the connection]
bitbinge has joined #ffmpeg
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
danielxhogan has quit [Ping timeout: 272 seconds]
danielxhogan has joined #ffmpeg
jmcantrell has quit [Ping timeout: 244 seconds]
bitbinge has quit [Remote host closed the connection]
bitbinge has joined #ffmpeg
chair1 has joined #ffmpeg
Marth64[m] has joined #ffmpeg
Marth64 has quit [Ping timeout: 244 seconds]
<chair1> wassup! I've read that yuv444p10 can represent 8-bit RGB losslessly. which of BT.709 or BT.2020 do I choose? I'm generating a yuv4mpeg2. it says to write one "plane" at a time, how the hell do I do this in 10-bit? what about endianness, strides, padding etc.?
<chair1> my objective is to feed ffmpeg a y4m video so that it calculates PSNR and SSIM against another video
phantomics_ has joined #ffmpeg
phantomics has quit [Ping timeout: 252 seconds]
<chair1> if I decide to also use Netflix VMAF, it supports bit-depths 8, 10 and 12. it doesn't specify any of BT.709 nor BT.2020, I guess these maths are neutral if both videos are same color thing, then the result is deterministic-ish
bitbinge has quit [Quit: bitbinge]
jmcantrell has joined #ffmpeg
ahc has joined #ffmpeg
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
russellty has joined #ffmpeg
<chair1> honestly I don't care. trial and error. it doesn't matter. I will generate y4m one way, if it doesn't work, I try another way, until it works
<furq> you can feed rgb24 video directly into ffmpeg
<furq> it's slightly more annoying but it's less work than preconverting everything
<chair1> really? I'm totally okay with passing lots of parameters specifying width, height, framerate etc.
<chair1> excellent.
<furq> ./foo | ffmpeg -framerate 25 -video_size 1920x1080 -pixel_format rgb24 -f rawvideo -i - ...
<chair1> <3
<furq> it is annoying that the ffmpeg y4m stuff only supports yuv formats when it does a bunch of out of spec stuff already
<chair1> true
<chair1> I'm still happy I learned a little bit more about videos in the meanwhile
<chair1> such as that the p in 1080p means "progressive" and not "pixels" LOL
russellty has quit [Quit: russellty]
russellty has joined #ffmpeg
russellty has quit [Client Quit]
tranzistor has quit [Quit: lahko noč]
Mister_Magister has quit [Ping timeout: 248 seconds]
Mister_Magister_ has joined #ffmpeg
tranzistor has joined #ffmpeg
Mister_Magister_ is now known as Mister_Magister
_whitelogger has joined #ffmpeg
danielxhogan has quit [Read error: Connection reset by peer]
danielxhogan has joined #ffmpeg
lemoniter has quit [Ping timeout: 276 seconds]