vampirefrog has quit [Remote host closed the connection]
vampirefrog has joined #ffmpeg
<noobaroo>
Can I use "-c:a libfdk_aac -profile:a aac_he_v2 -vbr 3" ?
yrc has joined #ffmpeg
<noobaroo>
I'm getting an error saying vbr is unsupported, but I don't understand if that means it doesn't work at all, or if it's just saying that it's unstable
psykose has joined #ffmpeg
<noobaroo>
Because the conversion still works. Although I'm also unable to see the bitrate of the audio stream, so I really can't tell anything
fossdd has quit [Ping timeout: 264 seconds]
fossdd has joined #ffmpeg
iive has quit [Quit: They came for me...]
psykose has quit [Remote host closed the connection]
psykose has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
<Ramroc>
I am using this command to grab the screen with vaapi, and output a file, now all i want to do is add an overlay filter, of file background.mov, but i cant seem to do it
<Ramroc>
the thing is i keep getting this error: Impossible to convert between the formats supported by the filter 'Parsed_scale_vaapi_1' and the filter 'auto_scale_0'
brontosaurusrex has joined #ffmpeg
MootPoot has quit [Quit: Connection closed for inactivity]
<Ramroc>
the thing is i keep getting this error: Impossible to convert between the formats supported by the filter 'Parsed_scale_vaapi_1' and the filter 'auto_scale_0'
<JEEB>
since you're dealing with hw formats the automagic scaler logic is mostly being less useful than it could be
<JEEB>
since the scale filter cannot do anything to hw formats :P
<JEEB>
`-noauto_conversion_filters` should give you the actual error
<JEEB>
also add `-v verbose` since that's the last non-spamming log level
<BtbN>
It just got customary to install those on graphics cards. But it's not the GPU
<Ramroc>
oh i see
<Ramroc>
its a dedicated chip
<BtbN>
Dedicated silicon at least, yeah
<BtbN>
I'd imagine most modern cards put it on the same die as the GPU
<BtbN>
But it means that it cannot be updated, since all functionality is burned into silicon. It's as good/bad as it is
<Ramroc>
video engineering is pretty complex
<Ramroc>
:D
<BtbN>
AMD historically had quite poor hardware encoders. They only got okayish in the latest generation
<BtbN>
And you also need to tune them A LOT, the default paramters of hevc_vaapi are poor
peac has joined #ffmpeg
<Ramroc>
i am trying to setup a stream using, screen capture with kmsgrab, videos i have to overlay as background, and stream it
<Ramroc>
also i want to fade elements in and out, and i am thinking of putting everything as input and switching them on/off on the fly with zmq than ffmpeg supports
<BtbN>
Sounds like you are looking for OBS, not ffmpeg
<Ramroc>
the thing is i want to do it programatically. i am using golang and i have found a wrapper for ffmpeg
<BtbN>
OBS can be remote controlled, and it's MUCH better suited for dynamic stuff like that
<Ramroc>
all this would respond to messages from an api. so i would setup my api with golang, and start ffmpeg process with the wrapper within the code
<Ramroc>
i will look into obs
<BtbN>
the moment you want to dynamically modify elements, using ffmpeg becomes a royal pain. It's possible, but not something I'd want to do
<Ramroc>
isnt zmq supported well?
<BtbN>
only to send commands that already exist
<BtbN>
adding/removing and moving around elements is not something you can just do
<BtbN>
while it's one of the main points of OBS
kasper93_ is now known as kasper93
<BtbN>
What you're doing just sounds like a poor re-invention of OBS to me
<Ramroc>
i could add all my inputs (which are fixed, i know them beforehand) and just enable/disable whatever i want on demand with zmq
<Ramroc>
wont this work?
<BtbN>
I don't think you can dynamically turn off or on inputs with ffmpeg.c, no
<Ramroc>
i wont turn the inputs off, i will enable filters on them, to set alpha to 0
<Ramroc>
i don't know how performant this will be though
<BtbN>
Sounds more and more like re-inventing OBS in an incredibly painful way :D
<Ramroc>
if it is performant i don't mind. i need low latency for streaming
<Ramroc>
it starts the process for you with the arguments you provide
<Ramroc>
if obs accepts command line arguments like ffmpeg it should be possible
<BtbN>
It does not
<peac>
you would start obs programmatically with its project file and then talk to its api to control stuff dynamically
<BtbN>
Well, it surely has some cli arguments, but it's not ffmpeg.
<Ramroc>
also does obs offer a convenient way to record the desktop? basically what i do with kmsgrab
<BtbN>
Everything you described sounds like everything OBS was designed for...
<Ramroc>
(want it do work on a headless environment though, as this will work within docker)
<BtbN>
OBS does not run headless, no.
<BtbN>
You can probably hide its UI though
<peac>
you should be able to make your docker container access X in order to do so yes
<BtbN>
well, you don't normally want to run anything that does graphics-stuff in docker
<Ramroc>
one way people do that is they start x virtual framebuffer, so applications like ffmpeg can record the "screen"
<Ramroc>
so i guess obs would work too using xvfb
Haripesch has quit [Ping timeout: 250 seconds]
<BtbN>
OBS needs working and fast OpenGL acceleration
<BtbN>
so it'd probably be rather upset about xvfb
<peac>
BtbN: you totally can and it's a valid usecase for docker containers. some examples of how to run graphical apps in docker here https://github.com/jessfraz/dockerfiles
<BtbN>
Cause it's rather messy, and get inctredibly ugly, since you need to copy components of the host driver into the container, and hope there's no ABI break
sonicrules1234 has joined #ffmpeg
fossdd has joined #ffmpeg
<BtbN>
rodeo: why would you use a CLI wrapper for the OBS api, when you can just talk to its API directly?
<peac>
it's not messy if you're working on an os you want to touch the least possible and keep everything contained with its own concerns, basically what docker was made for
FH_thecat has joined #ffmpeg
sonicrules1234 has quit [Remote host closed the connection]
<BtbN>
The thing is, you _cannot_ contain it
<rodeo>
laziness I guess
sonicrules1234 has joined #ffmpeg
<Ramroc>
would obs work in docker without xvfb, if i try to do something like kmsgrab (the equivalent) basically read from the linux framebuffer?
FH_thecat has quit [Remote host closed the connection]
<BtbN>
OBS uses OpenGL/D3D11 to do pretty much everything. It will not work in docker without a lot of ugly hacking around
<BtbN>
every time I dealt with it, it was a stupid mess, having to copy random files from the host, and then having a 50/50 chance the guest OS likes them or not
<Ramroc>
this apparently is x11 in docker with gpu acceleration
<Ramroc>
it uses xwayland
<BtbN>
a simple 9k line long monster lol
<peac>
if docker is a requirement, what else do you suggest ?
<BtbN>
Not using docker for any graphical stuff
<Ramroc>
also does obs need interaction with its ui to setup?
<BtbN>
For the initial setup, definitely
<Ramroc>
can i just start the process and configure everything with its api somehow?
<BtbN>
after that, not really
<Ramroc>
normally the files i want to use, are known beforehand, my background video, my picture in picture video etc, so i can also give it a config file i have written for the initial setup if possible
<peac>
you would setup everything in obs and save the project before hand, that would be your config parameters for the project
<BtbN>
In theory you CAN do absolutely everything via its API
<BtbN>
But then you need to ensure it's in some kind of known state before you start setting it up
<BtbN>
And it's a lot of code for what's just a few clicks that you then never need to do again
fossdd has quit [Ping timeout: 256 seconds]
fossdd has joined #ffmpeg
<Ramroc>
i see, good
<Ramroc>
my biggest problem still is the docker and hardware acceleration issue, either with ffmpeg or obs.
<peac>
what's your hardware ?
<Ramroc>
nvidia quadro as the gpu and i9 intel cpu
<peac>
maybe check #docker
<peac>
you'll need to detail that you want to try running obs studio in docker and pass your quadro
hamzah has joined #ffmpeg
<hamzah>
Hi, I am working on this issue on github: https://github.com/ffvvc/FFmpeg/issues/20. But have run into some difficulty, I'd like some pointers if possible, as I am stuck. Any guidance is appreciated.
<hamzah>
Thanking you in advance.
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ffmpeg
<BtbN>
not sure what that repo is, but it's not FFmpeg, but some fork of it
<BtbN>
And the stuff in that issue also looks specific to the fork, so this is not the right place to ask questions about it
fossdd has quit [Ping timeout: 255 seconds]
<galad>
BtbN: that's the repo where FFmpeg VVC decoder is being worked on
<BtbN>
Yeah, I don't think any of the developers are in here or in -devel
<peac>
what would be good replacements of ffserver ?
<hamzah>
I see, thanks
catsoften_ has joined #ffmpeg
catsoften has quit [Read error: Connection reset by peer]
catsoften_ is now known as catsoften
rvalue has quit [Ping timeout: 272 seconds]
<JEEB>
BtbN: at least one of the maintainers of ffvvc is on IRC
<JEEB>
frankplow I think is one of them
sonicrules1234 has quit [Ping timeout: 260 seconds]
<JEEB>
nuo mi pops up rarely but he has done that
<BtbN>
I'd still strongly recommend other channels for communication with them
<BtbN>
issues on that very repo seem like a good place
<frankplow>
Hi Hamzah, yes I think you sent me a message last week
<BtbN>
Or straight up send a mail to ffmpeg-devel
<frankplow>
Please keep in mind IRC does not work like other chat platforms you might be used to in that you have to stay online in order to receive messages -- I wasn't able to reply to your direct message