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]
flotwig has quit [Quit: ZNC - http://znc.in]
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg
lolok has quit [Quit: lolok]
rv1sr has joined #ffmpeg
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
WaKaN has joined #ffmpeg
coldfeet has joined #ffmpeg
Piraty has joined #ffmpeg
pulec is now known as pulec_is_kut
pulec_is_kut is now known as Pulec_Is_Kut
Pulec_Is_Kut is now known as pulec
j45_ has joined #ffmpeg
j45 has quit [Ping timeout: 260 seconds]
j45_ is now known as j45
j45 has quit [Changing host]
j45 has joined #ffmpeg
LainIwakura has joined #ffmpeg
damian101 has joined #ffmpeg
Blacker47 has joined #ffmpeg
ShadowJK has quit [Ping timeout: 276 seconds]
ShadowJK has joined #ffmpeg
coldfeet has quit [Quit: Lost terminal]
flotwig has quit [Quit: ZNC - http://znc.in]
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg
Guest4 has joined #ffmpeg
Guest4 has quit [Quit: Client closed]
moviuro_ has joined #ffmpeg
evilscreww has quit [Quit: Leaving]
moviuro has quit [Ping timeout: 252 seconds]
LainIwakura has quit [Quit: Client closed]
minimal has joined #ffmpeg
kasper93 has joined #ffmpeg
Corroddity has quit [Ping timeout: 252 seconds]
coldfeet has joined #ffmpeg
johnjaye has quit [Ping timeout: 252 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
System_Error has quit [Read error: Connection reset by peer]
EmleyMoor has quit [Ping timeout: 245 seconds]
EmleyMoor has joined #ffmpeg
System_Error has joined #ffmpeg
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ffmpeg
CruxOfTheB has joined #ffmpeg
trillion_exabyte has quit [Ping timeout: 268 seconds]
trillion_exabyte has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
Shsl-Junko-POSER has joined #ffmpeg
cantelope has joined #ffmpeg
Shsl-Junko-POSER has quit [Quit: Client closed]
j45 has quit [Quit: ZNC 1.9.1 - https://znc.in]
j45 has joined #ffmpeg
j45 has quit [Changing host]
j45 has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
snoriman has quit [Quit: WeeChat 4.6.3]
CruxOfTheB has quit [Read error: Connection reset by peer]
Gardianer77 has joined #ffmpeg
<Gardianer77> Hello, i want to convert a rawvideo in .avi to vp9 and opus in a matroska mkv container. But with my command it doesn't work:
<Gardianer77> ffpmeg -i video.avi -c:v libvpx-vp9 -crf 30 -b:v 0 -c:a libopus -b:a 256k output.mkv
<Gardianer77> Result: Failed to initialize encoder: Invalid paramter ... and a lot more...
<kepstin> you've told it to set the video bitrate to '0'
<kepstin> what did you expect? it to magically encode the video into 0 bytes? :)
<Gardianer77> kepstin: https://trac.ffmpeg.org/wiki/Encode/VP9#compatibility in the section Constant Quality
<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> ok i will share
turlando has quit []
<Gardianer77> kepstin: https://pastebin.com/raw/pWz3hQ0T
<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]
rvalue- has joined #ffmpeg
rvalue has quit [Ping timeout: 244 seconds]
luser1 has quit [Quit: The Lounge - https://thelounge.chat]
luser1 has joined #ffmpeg
rvalue- is now known as rvalue
Shine_ has quit [Read error: Connection reset by peer]
Everything has quit [Quit: leaving]
coldfeet has quit [Quit: Lost terminal]
<JesusGod-Pope666> ffmpeg -i input.mp4 -c:v libaom-av1 -crf 30 -b:v 0 -cpu-used 4 -c:a libopus -b:a 128k -f mp4 output.mp4
<JesusGod-Pope666> Hmmmm
<another|> is that a question?
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)
<JesusGod-Pope666> Jpeg is no match for AVIF.
<JesusGod-Pope666> Did wonderful!
<JesusGod-Pope666> Anyone wants my settings?
<kepstin> something that might be interesting is a comparison vs a good modern jpeg encoder like jpegli
<JesusGod-Pope666> Actually on some levels AVIF sorts out issues.
Rena has joined #ffmpeg
<JesusGod-Pope666> Well I already did that.
<JesusGod-Pope666> And as said....
<JesusGod-Pope666> Jpeg loses clearly against AVIF.
<furq> well yeah jpeg is 33 years old
<JesusGod-Pope666> Here you go:
<JesusGod-Pope666> find . -type f | egrep -i '\.(png|jpe?g)$' | \
<JesusGod-Pope666> parallel avifenc -a tune=iq -q 60 -d 10 -y 444 -s 0 --ignore-xmp --ignore-exif {} {.}.avif -j all;
<JesusGod-Pope666> echo "✅ Conversion complete!"
<JesusGod-Pope666> find . -name "*.png" | # "*.png" "*.jpg" "*.jpeg" Singular
<JesusGod-Pope666> parallel avifenc -a tune=iq -q 60 -d 10 -y 444 -s 0 --ignore-xmp --ignore-exif {} {.}.avif -j all;
<JesusGod-Pope666> echo "✅ Conversion complete!"
<JesusGod-Pope666> find . -type f -iregex '.*\.\(png\)$' |
<JesusGod-Pope666> parallel avifenc -a tune=iq -q 60 -d 10 -y 444 -s 0 --ignore-xmp --ignore-exif {} {.}.avif -j all;
<JesusGod-Pope666> echo "✅ Conversion complete!"
<JesusGod-Pope666> find . -type f -iregex '.*\.\(png\|jpg\|jpeg\)$' |
<JesusGod-Pope666> parallel avifenc -a tune=iq -q 60 -d 10 -y 444 -s 0 --ignore-xmp --ignore-exif {} {.}.avif -j all;
<JesusGod-Pope666> echo "✅ Conversion complete!"
<JesusGod-Pope666> Same command 4 times.
<JesusGod-Pope666> Pretty much.
<JesusGod-Pope666> Pretty much does the same things, but have not settled on which one to keep. The last one seem to be the best.
<JesusGod-Pope666> But not sure with dependencies with a new system if one is better then another.
<JesusGod-Pope666> find . -type f -iregex '.*\.\(png\|jpg\|jpeg\)$' |
<JesusGod-Pope666> parallel avifenc -a tune=iq -q 60 -d 10 -y 444 -s 0 --ignore-xmp --ignore-exif {} {.}.avif -j all;
<JesusGod-Pope666> echo "✅ Conversion complete!"
<JesusGod-Pope666> You of cause need avifenc
<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.
<JesusGod-Pope666> You have 36.000 screenshots or so, done with the above settings, you can check them out.
<JesusGod-Pope666> I can tell you, I sliced around 90% of the size from the originals.
<JesusGod-Pope666> Amazing tech.
<JesusGod-Pope666> I was very surprised to see what it is able to do.... Like how in the world it makes them so small and keep all that data.
<JesusGod-Pope666> But you will need avifenc to use the above settings. It is compiled some place for download.... Or I do have them if it is needed.
<JesusGod-Pope666> I don't recall the link.
<JesusGod-Pope666> So these are the prime settings I use for any image for the website now. AVIF for the win!
<JesusGod-Pope666> And if you can tune the settings some more, by all means. But it is a pretty good start :)
<JesusGod-Pope666> I did boost it some on the QR codes. But overall 60 is a fine prime line for near everything else.
<JesusGod-Pope666> Now I just need to figure out the video settings.
YUiNA has quit [Remote host closed the connection]
YUiNA has joined #ffmpeg
five618480339176 has quit [Remote host closed the connection]
five618480339176 has joined #ffmpeg
YUiNA has quit [Remote host closed the connection]
function1 has quit [Quit: ZNC 1.8.2 - https://znc.in]
function1 has joined #ffmpeg
emmanuelux has joined #ffmpeg
blb has quit [Ping timeout: 265 seconds]
blb has joined #ffmpeg
minimal has quit [Quit: Leaving]
Sakura`Kinomoto has joined #ffmpeg
SakuraChan has quit [Ping timeout: 272 seconds]
SakuraChan has joined #ffmpeg
Sakura`Kinomoto has quit [Ping timeout: 272 seconds]
YUiNA has joined #ffmpeg
Kei_N has joined #ffmpeg
Kei_N_ has quit [Read error: Connection reset by peer]
treefrob has quit [Ping timeout: 244 seconds]
monkeystu has quit [Ping timeout: 272 seconds]
monkeystu has joined #ffmpeg
Marth64 has quit [Remote host closed the connection]
Marth64 has joined #ffmpeg
user24037 has quit [Ping timeout: 252 seconds]
Keshl_ has joined #ffmpeg
user24037 has joined #ffmpeg
sam113101 has quit [Read error: Connection reset by peer]
FlorianBad has quit [Read error: Connection reset by peer]
FlorianBad has joined #ffmpeg
sam113101 has joined #ffmpeg
Fiji has joined #ffmpeg
Jan\ has quit [Ping timeout: 252 seconds]
Keshl has quit [Ping timeout: 252 seconds]
APic has quit [Ping timeout: 272 seconds]
APic has joined #ffmpeg
acovrig601247 has quit [Ping timeout: 252 seconds]
tyzoid has quit [Ping timeout: 272 seconds]
beastd has quit [Ping timeout: 252 seconds]
kasper93 has quit [Quit: kasper93]
drew has quit [Ping timeout: 252 seconds]
beastd has joined #ffmpeg
drew has joined #ffmpeg
Fanfwe42 has quit [Ping timeout: 248 seconds]