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
intrac has quit [Ping timeout: 276 seconds]
minimal has quit [Quit: Leaving]
intrac has joined #ffmpeg
jiffy__ has joined #ffmpeg
JanC has joined #ffmpeg
damian101 has joined #ffmpeg
damian101_ has quit [Ping timeout: 276 seconds]
bibble has quit [Quit: bibberly bobberly]
bibble has joined #ffmpeg
bibble has quit [Changing host]
bibble has joined #ffmpeg
Shine_ has joined #ffmpeg
JanC has quit [Ping timeout: 252 seconds]
JanC has joined #ffmpeg
kasper93 has quit [Remote host closed the connection]
JanC is now known as Guest8964
Guest8964 has quit [Killed (silver.libera.chat (Nickname regained by services))]
JanC has joined #ffmpeg
usagi_mimi has joined #ffmpeg
treefrob has joined #ffmpeg
damian101_ has joined #ffmpeg
damian101 has quit [Ping timeout: 276 seconds]
damian101 has joined #ffmpeg
damian101_ has quit [Ping timeout: 268 seconds]
bwu25 has joined #ffmpeg
Shine__ has joined #ffmpeg
Shine_ has quit [Ping timeout: 265 seconds]
damian101_ has joined #ffmpeg
damian101 has quit [Ping timeout: 252 seconds]
Shine__ has quit [Read error: Connection reset by peer]
damian101 has joined #ffmpeg
damian101_ has quit [Ping timeout: 276 seconds]
damian101_ has joined #ffmpeg
damian101 has quit [Ping timeout: 244 seconds]
damian101 has joined #ffmpeg
damian101_ has quit [Ping timeout: 276 seconds]
damian101_ has joined #ffmpeg
damian101 has quit [Ping timeout: 276 seconds]
maxim_d33 has quit [Ping timeout: 248 seconds]
maxim_d33 has joined #ffmpeg
jiffy__ has quit [Remote host closed the connection]
foul_owl has quit [Ping timeout: 260 seconds]
bwu25 has quit [Ping timeout: 252 seconds]
foul_owl has joined #ffmpeg
jmcantrell has quit [Ping timeout: 265 seconds]
Flat_ has joined #ffmpeg
Flat has quit [Ping timeout: 252 seconds]
JanC has quit [Ping timeout: 260 seconds]
JanC has joined #ffmpeg
bwu25 has joined #ffmpeg
Juest has quit [Ping timeout: 276 seconds]
Juest has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
xx has joined #ffmpeg
user_oreloznog has joined #ffmpeg
bwu25 has quit [Ping timeout: 252 seconds]
gothicserpent has quit [Quit: gothicserpent]
gothicserpent has joined #ffmpeg
five618480339176 has quit [Remote host closed the connection]
five618480339176 has joined #ffmpeg
damian101_ has quit [Remote host closed the connection]
cantelope has quit [Quit: Connection closed for inactivity]
Jan\ has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Quit: au revoir]
FrostKiwi has joined #ffmpeg
FrostKiwi has quit [Quit: Client closed]
Jan\ has joined #ffmpeg
realies9 has quit [Ping timeout: 244 seconds]
FrostKiwi has joined #ffmpeg
realies9 has joined #ffmpeg
<snoriman>
Ok, got some basic code setup to read from a RTSP stream and feed it into a decoder. Though whenever I feed the video stream data into the decoder using `avcodec_send_packet()` I get an error "invalid data found when processing input"
FrostKiwi has left #ffmpeg [#ffmpeg]
<snoriman>
Is there something special I need to do when reading from a rtsp stream? Or should it work identical to e.g. demuxing/decoding a mp4?
MisterMinister has quit [Ping timeout: 252 seconds]
lolok has joined #ffmpeg
MisterMinister has joined #ffmpeg
rsx has joined #ffmpeg
lavaball has joined #ffmpeg
Exa has quit [Quit: see ya!]
Exa has joined #ffmpeg
evilscreww has joined #ffmpeg
Everything has joined #ffmpeg
SuicideShow has quit [Ping timeout: 248 seconds]
SuicideShow has joined #ffmpeg
Sketch has quit [Remote host closed the connection]
Sketch has joined #ffmpeg
Shine_ has joined #ffmpeg
rv1sr has quit []
<ePirat>
snoriman, should just work, iirc
<ePirat>
did you check if your stream works fine with ffmpeg cli?
WaKaN has quit [Quit: WaKaN]
<snoriman>
ePirat: thanks, yeah it does work when I keep feeding packets. I'm just curious how to handle the situation where `avcodec_send_packet` returns a AVERROR_INVALIDDATA packet
<Gardianer77>
"To trigger this mode, you must use a combination of -crf and -b:v 0. Note that -b:v MUST be 0."
<kepstin>
oh, huh, yeah you did have the crf parameter too.
<kepstin>
please share the _complete_ ffmpeg output so we can see what the actual problem is
<kepstin>
(use a pastebin site)
<kepstin>
with raw video input, it might be a pixel format issue or something, which will have a message in the log
<Gardianer77>
I also have the same error if i use this by the way: ffmpeg -i video.avi -c:v libvpx-vp9 -crf 30 -b:v 2000k -c:a libopus -b:a 256k output.mkv
<Gardianer77>
The rawvideo is in 640x448
<kepstin>
i can't help you unless you share the complete output of the command which includes messages saying what the actual error is
<Gardianer77>
also same error with: ffmpeg -i video.avi -c:v libvpx-vp9 -crf 30 -b:v 2000k -c:a libopus -b:a 256k output.mkv
turlando has joined #ffmpeg
<kepstin>
ok, so the actual error is '[libvpx-vp9 @ 0x5612eb057a40] Additional information: g_timebase.den out of range [1..1000000000]' which can happen sometimes with the libvpx encode on input files with unusual vfr timebases :/
<kepstin>
one option you have is to convert the video to a constant framerate, e.g. with the 'fps' filter.
<kepstin>
honestly, i consider this to be a bug in ffmpeg's libvpx encoder wrapper :/
lavaball has joined #ffmpeg
rsx has quit [Quit: rsx]
<Gardianer77>
Thank you very much, the conversion works if i use -filter:v fps=60. If it is a bug, it was good this error happens to me
<Gardianer77>
Are there some negatives for the video conversation with using the filter fps?
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
Gardianer77 has quit [Quit: Gardianer77]
<kepstin>
if the framerate isn't exactly 60fps, the fps filter will adjust the timing of some frames, possibly inserting a duplicate frame to fill a gap or dropping a frame if they're too close together.
treefrob has quit [Ping timeout: 244 seconds]
jmcantrell has joined #ffmpeg
treefrob has joined #ffmpeg
bwu25 has joined #ffmpeg
bwu25 has quit [Client Quit]
user_oreloznog_ has joined #ffmpeg
user_oreloznog has quit [Ping timeout: 276 seconds]
lavaball has quit [Remote host closed the connection]
<JesusGod-Pope666>
Not sure.
<JesusGod-Pope666>
Trying to sort out the settings for making videos with AV1 with the same quality I did with the AVIF
<JesusGod-Pope666>
Is there a way to interpolate 60 fps as well?
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
<kepstin>
there's multiple different ways to interpolate framerate.
Rena has quit [Quit: $WITTY_QUIT_MESSAGE]
<kepstin>
you could think of the fps filter as being 'nearest neighbour'
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
xx has quit [Ping timeout: 264 seconds]
<JesusGod-Pope666>
seems ChatGBT is complaining that mp4 is not so.supported for AV1
<JesusGod-Pope666>
And opus
<BtbN>
what?
<JesusGod-Pope666>
Yea dunno what is up with that.
<kepstin>
i mean, you ask an automatic lie generator a question, you get lies as an answer, what do you expect?
<JesusGod-Pope666>
Dunno was trying to learn
<JesusGod-Pope666>
Or trying to learn
<JesusGod-Pope666>
So..... Any way I can have something fix all my videos into the same resolution for each of the videos with opus and AV1 in MP4
<kepstin>
yes, but why do you want to?
<JesusGod-Pope666>
?
<JesusGod-Pope666>
Why would I not.
<kepstin>
in general, doing a lossy re-encode of videos should be avoided, since each time it's done you lose quality
<BtbN>
Quality won't get better by that
<kepstin>
so if you have the space to keep the originals, that's always better
<JesusGod-Pope666>
No but I might save 50% space.
<furq>
it will also probably not save as much space as the percentage figure you read on a website implies
<furq>
yeah that one
<BtbN>
if you actually save 50% space, it'll look like shit
<furq>
it depends massively
<JesusGod-Pope666>
Well got 90% on the images.
<BtbN>
to preserve quality as much as possible, you need more bitrate, making the whole endeavour nearly pointless
<furq>
it is certainly not something you want to fully automate
<furq>
if you care at all about quality you'll want to check everything manually
<kepstin>
and how do the images look, did you check them all?
<JesusGod-Pope666>
Looks fine
<JesusGod-Pope666>
Got pretty neat results.
<kepstin>
(i've actually used jpeg-xl's lossless jpeg recompression a bit, which is kind of neat, but it typically only compresses to 70-90% of original jpeg file size)
<kepstin>
... given the level of comprehension you've just demonstrated i'm not sure i'd trust your ability to make objective comparisons of image quality.
<JesusGod-Pope666>
kepstin: I don't care I used days to test things. Combiled the jpegli and all that with help.
<JesusGod-Pope666>
kepstin: I don't care I used days to test things. Compiled the jpegli and all that with help.
<kepstin>
you do realize that the only differences between those commands is in how the 'find' command is being used to locate the files to re-encode, right?
<kepstin>
so they all produce _exactly the same_ compression level / image quality?
<JesusGod-Pope666>
You can look at the images on my webpage, PNG to AVIF. And doing JPG did badly compared to AVIF.
<JesusGod-Pope666>
kepstin: yes.....
<JesusGod-Pope666>
If you read what I wrote to it......
<kepstin>
so please stop spamming the channel with useless duplicated commands
<JesusGod-Pope666>
kepstin: shut up.
fling has quit [Ping timeout: 264 seconds]
<JesusGod-Pope666>
AVIF go go much lower in size with good results compared to JPG.
<JesusGod-Pope666>
AVIF even fixes some of the jpg noise if you do such conversions from jpeg to AVIF.
<BtbN>
i.e. it smushes stuff even more? Cause magically recovering lost info is impossible.
<JesusGod-Pope666>
So I made pretty much near everything into AVIF in my image page on my website.
<JesusGod-Pope666>
Not to bad on the smudges, some places it is a good thing.
<JesusGod-Pope666>
Smaller sizes, and fixes some issues, a win win situation.
<JesusGod-Pope666>
Again these are the settings I am using primary for the website pictures.
<JesusGod-Pope666>
You slice off a huge amount of size and it make some of it look better.
<JesusGod-Pope666>
The only bad side of it is the compability with old browsers.