<noobaroo>
I feel like this is a super simple goal and I'm having way too much trouble with this
mccobsta2 has joined #ffmpeg
mccobsta has quit [Ping timeout: 256 seconds]
mccobsta2 is now known as mccobsta
<noobaroo>
Also another thing, I wish aaabbb was here but alas he is not, he gave me an md5 and sha256 command to use to make sure a conversion is truly lossless
<noobaroo>
Sadly I lost the command
<noobaroo>
I found `-f framemd5` on the website, but using it I get different outputs from flac->wavpack and also different outputs from png->lossless webp
e^pi-1 has quit [Quit: WeeChat 4.2.2]
<noobaroo>
im going to sleep so if you have an an answer for me, please message to me directly that way it doesn't get lost in chat history
MootPoot has quit [Quit: Connection closed for inactivity]
MetaNova has quit [Ping timeout: 246 seconds]
<MisterMinister>
Greetings and Salutations! Can filter chains be setup similar to "presets" and "tune" in libx264? e.g. "drawtext=text='Frame\: %{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh):font='Arial':fontsize=40:alpha=0.5:box=1:boxborderw=4,drawtext=text='':x=(w-tw)/2:y=(lh):fontsize=40:fontcolor=white:timecode='00\:00\:00\;00':timecode_rate=24000/1001' as -overlay 2
<JEEB>
the presets and tune in libx264 are actually just options within that library and your value is just passed to that library :)
<JEEB>
but no, there are no filter chain related variable shorthand registrations
lockywolf has quit [Remote host closed the connection]
lockywolf has joined #ffmpeg
noobaroo has quit [Quit: Konversation terminated!]
noobaroo has joined #ffmpeg
e^pi-1 has quit [Ping timeout: 260 seconds]
rvalue- has joined #ffmpeg
rvalue has quit [Ping timeout: 252 seconds]
rvalue has joined #ffmpeg
rvalue- has quit [Ping timeout: 246 seconds]
RetroPunk has quit [Quit: cya]
Raz- has joined #ffmpeg
rvalue- has joined #ffmpeg
Raz- has quit [Remote host closed the connection]
Raz- has joined #ffmpeg
rvalue has quit [Ping timeout: 256 seconds]
rvalue- is now known as rvalue
YuGiOhJCJ has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Wenbin_Chen__ has joined #ffmpeg
Wenbin_Chen_ has quit [Ping timeout: 252 seconds]
Nixkernal has quit [Read error: Connection reset by peer]
Nixkernal has joined #ffmpeg
e^pi-1 has joined #ffmpeg
Blacker47 has joined #ffmpeg
ppw has left #ffmpeg [#ffmpeg]
e^pi-1 has quit [Quit: WeeChat 4.2.2]
Wenbin_Chen_ has joined #ffmpeg
Wenbin_Chen__ has quit [Read error: Connection reset by peer]
e^pi-1 has joined #ffmpeg
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
lavaball has joined #ffmpeg
iliv has quit [Ping timeout: 272 seconds]
iliv has joined #ffmpeg
luc4 has joined #ffmpeg
bitoff has joined #ffmpeg
Tinos has joined #ffmpeg
stolen has quit [Quit: Connection closed for inactivity]
torque has quit [Remote host closed the connection]
wacko has quit [Ping timeout: 256 seconds]
wacko has joined #ffmpeg
staceee has quit [Read error: Connection reset by peer]
ursa-major has quit [Read error: Connection reset by peer]
brocellous has quit [Read error: Connection reset by peer]
atrius has quit [Remote host closed the connection]
tsujp has quit [Write error: Connection reset by peer]
samhza has quit [Read error: Connection reset by peer]
ninjin has quit [Remote host closed the connection]
noelle has quit [Remote host closed the connection]
ifreund has quit [Write error: Connection reset by peer]
samhza has joined #ffmpeg
staceee has joined #ffmpeg
ifreund has joined #ffmpeg
ursa-major has joined #ffmpeg
brocellous has joined #ffmpeg
tsujp has joined #ffmpeg
noelle has joined #ffmpeg
atrius has joined #ffmpeg
brocellous has quit [Remote host closed the connection]
ifreund has quit [Remote host closed the connection]
ursa-major has quit [Remote host closed the connection]
tsujp has quit [Remote host closed the connection]
atrius has quit [Remote host closed the connection]
noelle has quit [Remote host closed the connection]
samhza has quit [Remote host closed the connection]
staceee has quit [Remote host closed the connection]
mightysands has joined #ffmpeg
samhza has joined #ffmpeg
staceee has joined #ffmpeg
ifreund has joined #ffmpeg
tsujp has joined #ffmpeg
brocellous has joined #ffmpeg
noelle has joined #ffmpeg
ursa-major has joined #ffmpeg
ninjin has joined #ffmpeg
atrius has joined #ffmpeg
<mightysands>
I tried SVTAV1 with -crf 40, 35, 28, 24, 12 and 2, converting a video from 1080p to 480p and they all look identical. Anyone know what's up?
<mightysands>
I never had this with libx264, 265 or vp9
<mightysands>
I'm thinking something somewhere might be broken. Maybe I messed up when compiling?
lexano has joined #ffmpeg
<galad>
show the logs, probably there is something useful that will show what's going on
darkstardevx has joined #ffmpeg
<mightysands>
alright. I'll come back and run it later, output the STDERR to a file and paste it to a pastebin
<mightysands>
I gtg attend to some things in the meantime
mightysands has quit [Quit: ERC (IRC client for Emacs 27.2)]
darkstardevx has quit [Remote host closed the connection]
chiselfuse has quit [Ping timeout: 260 seconds]
chiselfuse has joined #ffmpeg
cc0_delthas has quit [Read error: Connection reset by peer]
cc0_delthas has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
xx has joined #ffmpeg
xx has quit [Remote host closed the connection]
xx has joined #ffmpeg
e^pi-1 has quit [Ping timeout: 255 seconds]
noobaroo has quit [Quit: Konversation terminated!]
noobaroo has joined #ffmpeg
billchenchina has joined #ffmpeg
SnakesAndStuff has quit [Ping timeout: 264 seconds]
waleee has joined #ffmpeg
e^pi-1 has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
Sakura`Kinomoto has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 240 seconds]
Ox7C5__ has joined #ffmpeg
kus has joined #ffmpeg
elfprince13 has joined #ffmpeg
<elfprince13>
if I apply the curves filter on an input stream of HDR .exr images, is the [0,1] normalization the same per frame if they have potentially different max values?
SystemError has quit [Remote host closed the connection]
SystemError has joined #ffmpeg
NaviTheFairy has quit [Ping timeout: 272 seconds]
jarthur has joined #ffmpeg
e^pi-1 has quit [Quit: WeeChat 4.2.2]
AbleBacon has joined #ffmpeg
Sakura`Kinomoto has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
Wenbin_Chen__ has joined #ffmpeg
Wenbin_Chen_ has quit [Read error: Connection reset by peer]
rsx has joined #ffmpeg
milkt has quit [Quit: leaving]
minimal has quit [Quit: Leaving]
mightysands has joined #ffmpeg
lusciouslover has quit [Ping timeout: 256 seconds]
lusciouslover has joined #ffmpeg
<mightysands>
that problem I mentioned earlier turned out to have just been me using -crf instead of -qp due to using an older version of ffmpeg lol
<mightysands>
problem solved once again by rtfm
<mightysands>
:P
waleee has joined #ffmpeg
noobaroo has quit [Quit: Konversation terminated!]
noobaroo has joined #ffmpeg
mightysands has quit [Ping timeout: 264 seconds]
rsx has quit [Quit: rsx]
mightysands has joined #ffmpeg
noobaroo has quit [Client Quit]
noobaroo has joined #ffmpeg
stolen has joined #ffmpeg
namazso has quit [Remote host closed the connection]
<mightysands>
So, if I have a 1920x1080 video file, in a visibly square frame with black bars on either side and top and bottom, while being labelled in ffprobe as having a DAR of 16:9, is that necessarily messed up metadata in the file? Because I've noticed that if I re-encode it with a DAR of 4:3, the borders change slightly to give the video a rectangular window more reminiscient of the 16:9 aspect ratio. But that seems wrong somehow
<mightysands>
because 4:3 should be almost square, and 16:9 should pretty clearly be a clearly horizontally long rectangle, no?
namazso has joined #ffmpeg
<galad>
ffmpeg tells you the DAR of the entire video, it has got no idea that there are black bars
<mightysands>
is that universal? Surely if a video file is originally in 4:3 ratio, and one re-encodes it to 16:9, the video player would put in black bars depending on the display playing the video, no?
<mightysands>
actually, I suppose ffmpeg has nothing to do with that process
bitoff has quit [Ping timeout: 272 seconds]
<another|>
the black bars are part of the video
<mightysands>
Any idea why it's framed like that? It seems really weird that someone would frame it to have bars on either side like this. My monitor is 4:3 and the video is a tv episode which originally aired in 4:3, but the video is encoded in 16:9, yet appears 4:3 in a "shrunken window" because of the black bars on each side
<mightysands>
I suppose cropping is the only solution? Other than finding a different video source?
<galad>
probably because the original format required a 16:9 resolution
<mightysands>
but did it? If they had to add bars on either axis, then changing it to 16:9 changes nothing visually, no?
<galad>
like bluray
<mightysands>
oh, I get it
<galad>
no, if they only added bars, nothing was stretched
<mightysands>
Right
<mightysands>
Guess I'll look into cropping with ffmpeg
<furq>
if it has bars on all four sides then it's because the person who made it isn't very good at it
<mightysands>
furq: Actually I think the one of the sets of bars might just be because it's a 16:9 re-encoding of a 4:3 video playing on an unexpectantly 4:3 monitor
<mightysands>
I'm just an edge case the encoder hadn't considered
<mightysands>
because who has a 4:3 monitor these days?
<mightysands>
:P
<mightysands>
good news is if I crop it right, I suppose no detail will be lost because nothing will be stretched
<furq>
well you'd have to reencode
<mightysands>
well yeah, but I'm doing this as part of degrading 1080p video to 480p anyway
<furq>
fair enough
<mightysands>
so, no detail past a desired point will be lost :D
<mightysands>
everything will be hunky dory
<mightysands>
Well learning to crop this is going to be fun
<mightysands>
all the examples online talk about preserving the aspect ratio, which isn't what I want in this case
<mightysands>
I'll figure it out
<furq>
you probably don't need to do anything if the sar is already 1:1
<mightysands>
the sar is 1:1 and the DAR is 16:9
<mightysands>
but because the video obviously used to be 4:3, and it has black bars on all sides, I'd want to convert it to 4:3 properly after getting rid of the vertical bars on the left and right sides
<mightysands>
unless that would stretch it?
alexherbo2 has joined #ffmpeg
<mightysands>
tricky
<another|>
cropdetect
<mightysands>
I tried cropdetect
<mightysands>
it did nothing
<mightysands>
it just played the video
<mightysands>
0 changes
<furq>
if it's from a pal/dvb source then you can setsar after cropping
<furq>
cropdetect prints the values for you to then use in crop
<furq>
note that sar is called par there because it's cool to be confusing
<mightysands>
I had the impression is runs a cropped version when you run ffplay with it
<furq>
whether that's the right thing to do depends how the video was created in the first place
<furq>
you'll just have to eyeball it i guess
<mightysands>
yeah cropdetect gave me some jank values. Running ffplay with those crop numbers just made it even smaller and shifted it all the way to the left of the screen
<squingly>
okay so uh, trying to figure out if there's a workaround here for my unbelievably stupid problem. it looks like ffmpeg has had support for decoding gifs for a very long time, but for some reason the 3.3.4 version of ffmpeg which my company redistributes with its software isn't working with gifs as an input format. -i <a gif file> gives "invalid data found when processing input" and -f gif gives "Unknown input format: 'gif'". Is there any
<squingly>
possible workaround for this other than redistributing a different version of ffmpeg? And why on earth is this a problem that's even possible?
<psykose>
it was compiled without gif support probably
<another|>
3.3.4 is incredibly old
<squingly>
yep, the company is incredibly old
<another|>
ffmpeg -formats | grep gif
<another|>
ffmpeg -codecs | grep gif
<squingly>
are- are there supposed to be only 7 formats
<squingly>
this ffmpeg might have been compiled with a laser focus
<psykose>
seems so
<another|>
>Date: Tue Sep 12 03:34:55 2017 +0200
<squingly>
it might be part of the build pipeline in such a way that I can get a change in to what it's compiled with... or it might have just been compiled once and then forgotten about forever lol
<squingly>
that might be a little harder to change due to organizational bs
<squingly>
I guess 7 years ago someone decided they didn't want to add a few megabytes to the download and a few dozen to the install size of our massive software suite, and now it's my problem
Tinos has quit [Ping timeout: 250 seconds]
Livio has joined #ffmpeg
Juest has quit [Ping timeout: 246 seconds]
<squingly>
they left the gif *codec* in
<squingly>
not sure if that helps
<BtbN>
useless without the format I think
<BtbN>
And 3.3.4 is horrendous. That's insecure and nobody can help you with it.
<squingly>
*Insecure?* Geez
Ox7C5__ has quit [Quit: Lost terminal]
<another|>
what did you expect? it's been more than 6 years
<BtbN>
Yeah, don't make it parse untrusted files. Plenty of bugs in parsers over the years.
<BtbN>
If that ffmpeg is parsing user supplied files, you have a problem.
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
<squingly>
fortunately it is not doing that lol
<squingly>
spooky though
billchenchina has quit [Quit: Leaving]
<CounterPillow>
wow ffmpeg developers write insecure code? I want my money back, go fix my 7 year old version
alexherbo2 has quit [Ping timeout: 250 seconds]
<furq>
publicly, not publically
<another|>
CounterPillow: Do you still have your receipt?
<furq>
cheers
<CounterPillow>
another|: I demand to speak to the manager
<squingly>
hehe
<squingly>
yeah no my company's priorities are, um, well, probably pretty industry-standard really
<squingly>
so, bad
<furq>
also is this channel even publicly logged any more
<furq>
i guess it's snappier than This channel might be publicly logged by some rando
SystemError has quit [Remote host closed the connection]
Vonter has quit [Ping timeout: 260 seconds]
<furq>
which is redundant on irc anyway
SystemError has joined #ffmpeg
<squingly>
oh, we also have avcodev-57.dll and avformat-57.dll here... I think they're untouched? I wonder how cursed it would be to use those directly
<BtbN>
define untouched
<furq>
probably equally
<squingly>
hehe
Vonter has joined #ffmpeg
<furq>
most likely those will only have the stuff that's listed by ffmpeg -codecs etc
<furq>
or perhaps definitely
<furq>
i don't think there's a way to restrict access to those other than just not building them
<squingly>
uh. how big are these files supposed to be
<squingly>
assuming they have everything
<furq>
at least 10MB i'd guess
<furq>
i don't have a shared build of that version to hand
<squingly>
you certainly shouldn't be expected to hehe
<furq>
funnily enough i do have 3.3.3 but it's a static build
rv1sr has quit []
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
<squingly>
okay yeah no I'm goofy this isn't gonna work
<squingly>
different question, how would I check if a given ffmpeg *dll* has support for a given format
thomas_D8 has quit [Ping timeout: 264 seconds]
Raz- has quit [Ping timeout: 264 seconds]
coldfeet has quit [Ping timeout: 256 seconds]
thomas_D8 has joined #ffmpeg
<JEEB>
squingly: first of all you should somewhere have the build logs for that thing that you're building to distribute
<JEEB>
but there are APIs to list demuxers and decoders
<JEEB>
if you really need to check that
<CounterPillow>
dare I say, you should even have the precise source code for it somewhere, to comply with the license
<squingly>
oh does the license require the full source code to be distributed with the thing
<squingly>
didn't realize that was how gpl worked
<CounterPillow>
if it's built as LGPL, you just have to be able to produce the LGPL'd part's source on request
<CounterPillow>
if it's built in GPL mode, then everything that links to it must be published as well under a compatible license to those who receive a binary
<squingly>
uh, yeah, no way it's that one
EmleyMoor has quit [Ping timeout: 264 seconds]
<JEEB>
squingly: technically that's the least problematic way so that people don't need to ask you for the source archive. but as long as the code is available according to the license (either LGPL or GPL, depending on whether someone did the deed of setting --enable-gpl in the configuration options :P)
<JEEB>
some modules require enable-gpl, as they link against GPL modules, but one can configure the license at any point.
<JEEB>
squingly: anyways, the FFmpeg build configuration should in general tell you whether the build was limited or not. then if you don't see something like disable-everything and enable-{demuxer,decoder}=xyz without gif in there, then if there were no additional requirements at that olden day for that, then if that version contained those demuxers and decoders, they should exist
EmleyMoor has joined #ffmpeg
<JEEB>
the configure process does log all of the enabled modules during its runtime, so if you have the build logs the stuff should be clearly visible there, too :P
<JEEB>
but finally yes, there are APIs to request and thus find specific modules in libavformat and libavcodec
SystemError has quit [Remote host closed the connection]
SystemError has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 260 seconds]
coldfeet has joined #ffmpeg
Muimi has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
thomas_D8 has quit [Ping timeout: 256 seconds]
<squingly>
as far as I can tell, whatever's responsible for building this highly restricted ffmpeg is outside of my view... augh
EmleyMoor has joined #ffmpeg
<ePirat>
Whats the reason streamcopy can't be used with filter_complex?
<JEEB>
because you don't get AVPackets from filter chains?
<ePirat>
right… I guess that means when I want something that messed with timestamps without re-encoding, it can't be an avfilter?
<JEEB>
indeed
<ePirat>
thats rather unfortunate
thomas_D8 has joined #ffmpeg
<JEEB>
if it's not something like image2(pipe) where you have the framerate AVOption, there's bit stream filters and the internal functionality of ffmpeg cli for poking timestamps in AVPackets if utilized via ffmpeg cli or so.
<ePirat>
JEEB, arent bsf's codec level and not container, so wouldnt allow me to mess with the timestamps?
<JEEB>
ePirat: they deal with AVPackets
<JEEB>
but yes they are in various cases limited to specific codecs
<JEEB>
like the dts2pts one being for H.264 and friends
<ePirat>
JEEB, what does ffmpeg cli has to offer for timestamps manipulations?
<JEEB>
itsoffset is one thing, but I know it is bugged for non-subtitles without -copyts due to either a weird requested behavior or just a plain bug
<JEEB>
you'd have to check yourself for anything else regarding speed changes etc
coldfeet has quit [Remote host closed the connection]
<ePirat>
thanks, thats already very helpful!
<JEEB>
basically the issue with itsoffset with video and audio without -copyts is that for whatever reason the offset you define is *also* taken into account when dragging the smallest start time to zero
<JEEB>
so if you have the stuff in the file start at pts 1.2s or whatever, and then you want to set itsoffset to current unix timestamp or whatever. the 1.2 and that unix timestamp get added together and all happily then minused off since the default behavior is to drag start of output to as close to pts=0 as possible
<JEEB>
(the whole dragging towards zero doesn't happen with copyts... or if the stream is a subtitle stream)
<ePirat>
fun…
jarthur_ has joined #ffmpeg
jarthur has quit [Ping timeout: 260 seconds]
thomas_D8 has quit [Ping timeout: 260 seconds]
<squingly>
JEEB: if you wouldn't mind, given that I am just a small child who knows nothing of the world that I have entered... where should I look for a tool to help me figure out if a given ffmpeg dll supports what I need?
<JEEB>
squingly: the build configuration string should get logged if you have the command line application. also there are symbols to get the configuration from each library, see libav{util,codec,format}/xyz.h (like avutil.h for avutil) which define functions like avutil_configuration(void) etc
<JEEB>
the avcodec and avformat headers also define similar things
<JEEB>
avformat and avcodec also have ways to get the result for specific (de)muxers or decoders
<squingly>
well, the ffmpeg dll I'm referring to here isn't actually related to the ffmpeg.exe or the avformat/avcodec I referred to previously, it's just *somewhere else* and I'm trying to figure out if it could be useful. I know that's probably super cursed but if you didn't expect something using 3.3.4 to be super cursed in other ways as well then idk. point is it's just a dll floating in the void.
<squingly>
neither the build nor my install have any other avformat/avcodec sitting around
<JEEB>
well there is no singular FFmpeg DLL :P
<JEEB>
you get separate libavcodec, libavformat, libavutil etc
<squingly>
well I guess someone shoved some stuff into a singular ffmpeg dll then lol
<JEEB>
but anyways, look a the symbols exposed and the headers, and then call those that would possibly give you the information you'd like to get
thomas_D8 has joined #ffmpeg
Livio has quit [Ping timeout: 252 seconds]
stolen has quit [Quit: Connection closed for inactivity]
Tinos has joined #ffmpeg
thomas_D8 has quit [Ping timeout: 252 seconds]
<squingly>
How is ffmpeg's backwards compatibility?
<BtbN>
What's the actual question?
<squingly>
uh-
<squingly>
like, if you dropped in a newer version of ffmpeg.exe to replace an ancient one, how likely would it be for things to break?
<BtbN>
depends entirely on what you're doing
<BtbN>
ever major version is free to break API
<squingly>
alright fair enough
<squingly>
probably no then
thomas_D8 has joined #ffmpeg
vlm has quit [Quit: Leaving]
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
elfprince13 has quit [Quit: Sleeeppz]
SystemError has quit [Ping timeout: 260 seconds]
<mightysands>
/quit
<mightysands>
lol
<mightysands>
\o/
mightysands has quit [Quit: ERC (IRC client for Emacs 27.2)]
<squingly>
one time I made that mistake with ns identify
<squingly>
while in a chat
<another|>
don't use identify. use sasl
SystemError has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
NaviTheFairy has joined #ffmpeg
Traneptora has joined #ffmpeg
SuicideShow has quit [Ping timeout: 256 seconds]
SuicideShow has joined #ffmpeg
Juest has quit [Ping timeout: 256 seconds]
Juest has joined #ffmpeg
<noobaroo>
Where is aaabbb
<noobaroo>
Does anyone else know the command to decode stuff to raw video and get sha256?
<furq>
-f hash
<CounterPillow>
Your IRC client has logs, use them
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
noobaroo has quit [Quit: Konversation terminated!]
drew has quit [Read error: Connection reset by peer]
drew has joined #ffmpeg
iliv has quit [Quit: "<paniq> you know when i walk out the door, there is plenty of stupid people. i open irc, there is plenty of intelligent people. so the choice comes easy."]
talismanick has quit [Remote host closed the connection]
relue has quit [Read error: Connection reset by peer]