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
rv1sr has quit []
<JesseTG> klaxa, I'm not sure that's what I'm looking for (that's for file I/O, not my issue here), but I appreciate the effort anyway.
DauntlessOne47 has joined #ffmpeg
Kei_N has quit [Read error: Connection reset by peer]
DauntlessOne4 has quit [Ping timeout: 276 seconds]
DauntlessOne47 is now known as DauntlessOne4
Kei_N has joined #ffmpeg
olndrxyz has quit [Ping timeout: 252 seconds]
DauntlessOne4 has quit [Ping timeout: 244 seconds]
olndrxyz has joined #ffmpeg
cryptic has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 265 seconds]
EmleyMoor has joined #ffmpeg
olndrxyz has quit [Read error: Connection reset by peer]
olndrxyz has joined #ffmpeg
ttys000 has quit [Read error: Connection reset by peer]
ttys000 has joined #ffmpeg
xx has quit [Ping timeout: 264 seconds]
olndrxyz has quit [Read error: Connection reset by peer]
olndrxyz has joined #ffmpeg
squeaktoy has joined #ffmpeg
rvalue has joined #ffmpeg
vincejv has quit [Ping timeout: 244 seconds]
olndrxyz has quit [Read error: Connection reset by peer]
olndrxyz has joined #ffmpeg
olndrxyz has quit [Remote host closed the connection]
olndrxyz has joined #ffmpeg
olndrxyz has quit [Read error: Connection reset by peer]
olndrxyz has joined #ffmpeg
olndrxyz has quit [Read error: Connection reset by peer]
olndrxyz has joined #ffmpeg
olndrxyz has quit [Remote host closed the connection]
minimal has quit [Quit: Leaving]
JesseTG has quit [Ping timeout: 252 seconds]
Vonter has quit [Read error: Connection reset by peer]
Vonter has joined #ffmpeg
Vonter has quit [Quit: WeeChat 4.4.4]
Vonter has joined #ffmpeg
harshilkhanna has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 265 seconds]
StephenLynx has quit [Quit: Leaving]
harshilkhanna has quit [Quit: Client closed]
nadhor has quit [Quit: Bye bye]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Jiggy has quit [Quit: Greenout]
Jiggy has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.1 - https://znc.in]
sihloo has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.1 - https://znc.in]
Jiggy has quit [Quit: Greenout]
Jiggy has joined #ffmpeg
sihloo has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #ffmpeg
rv1sr has joined #ffmpeg
xx has joined #ffmpeg
Sketch has quit [Remote host closed the connection]
Sketch has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 265 seconds]
Blacker47 has joined #ffmpeg
j45 has quit [Ping timeout: 276 seconds]
j45 has joined #ffmpeg
JanC has joined #ffmpeg
JanC is now known as Guest9592
Guest9592 has quit [Killed (platinum.libera.chat (Nickname regained by services))]
rsx has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 248 seconds]
deetwelve has quit [Quit: null]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
JesseTG has joined #ffmpeg
deetwelve has joined #ffmpeg
lavaball has joined #ffmpeg
Thurmond has joined #ffmpeg
<Thurmond> i have an annoying problem with a set of OGM files and my hope is that someone here can help me find a solution
<Thurmond> the original files are .ogms all with the same general layout: stream 0 (video) = ogg/mpeg. stream 1 (audio) = aac (English). Stream 2 (audio) = aac (Japanese). Stream 3 (subs) = English.
<Thurmond> these files play very smoothly in general, but have a couple of weaknesses, the most obvious being that the subs don't appear at the right times, if at all, when played.
<Thurmond> using ffmpeg to convert to mkv shows some of the underlying issues. no timestamps in the video stream (probably the cause of the subs not playing) and the audio streams are marked as Vorbis though ffmpeg says they are aac (and during the conversion it throws errors "not a vorbis packet")
<Thurmond> at any rate, using ffmpeg to convert from .ogm to .mkv is successful, and playback of the resulting mkv works in most respects (audio is fine, timing/content of subs are fine, video quality is good) EXCEPT...
Vonter has quit [Ping timeout: 244 seconds]
<Thurmond> in "panning" shots - say a slow upward crawl - the pan is choppy. it will jump and skip. it doesn't lose frames or do anything bad to the overall timing. it's just no longer a smooth pan.
<Thurmond> at first, I thought this was a weakness in VLC, so I got a copy of IINA and tried that, but the playback issues are exactly the same.
<Thurmond> SO...
rvalue has quit [Ping timeout: 265 seconds]
<Thurmond> suggestions on how to convert these files to another format (to resolve the timing issues) but without the jumpy playback?
<Thurmond> here's what I used to convert it:
Vonter has joined #ffmpeg
<Thurmond> ffmpeg -i input.ogm -map 0 -c:a aac -c:s copy -c:v libx264 -preset slower -crf 23 -maxrate 1M -bufsize 2M output.mkv
<xx> Thurmond: do you *have to* re-encode it?
<xx> why not just copy the streams into a mkv container
zsoltiv_ has quit [Ping timeout: 260 seconds]
<Thurmond> xx, result: [matroska @ 0x1277083c0] Can't write packet with unknown timestamp
<Thurmond> i think it will have to be converted to fix the missing timestamps
zsoltiv_ has joined #ffmpeg
rvalue has joined #ffmpeg
zsoltiv_ has quit [Ping timeout: 252 seconds]
lucasta has joined #ffmpeg
rex has quit [Ping timeout: 272 seconds]
Arokh has quit [Quit: //ThisShouldNeverHappen]
odrling has quit [Remote host closed the connection]
odrling has joined #ffmpeg
Arokh has joined #ffmpeg
Arokh has quit [Ping timeout: 265 seconds]
<xx> there's a way to do it but I don't remember
<iconoclasthero> i trimmed a .flac with ffmpeg -i whatever.flac -acodec copy -to 6:18 01-whatever.flac.
<iconoclasthero> while vlc seems to only play 6:18 of it, mediainfo,ffprobe are still reporting that it's 12:48. adding an -ss to it didn't help.
<iconoclasthero> is there some other way to fix this other than ffmpeg -i 01-whatever.flac 01-whatever-fixed.flac?
alexherbo2 has quit [Remote host closed the connection]
<xx> iconoclasthero: `ffmpeg -i 01-whatever.flac -c:a copy out.flac` again afterwards
<xx> ffmpeg can't get the time right on first pass, for whatever reason
<iconoclasthero> any discernable reason for the second copy or that's just waht works for you?
<xx> the 2nd copy makes ffmpeg actually recalculate the duration
<xx> it might matter where you put the -to in the argument list, you could try playing around with it, the order matters
Arokh has joined #ffmpeg
Arokh has quit [Ping timeout: 244 seconds]
<lavaball> i wanted to concat all the files! but i can't find the word conat in the man page. is there another i'm unaware of?
<lavaball> oh, never mind. man -k. got it.
Everything has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 265 seconds]
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
Traneptora has joined #ffmpeg
Arokh has joined #ffmpeg
EmleyMoor has joined #ffmpeg
Arokh has quit [Ping timeout: 252 seconds]
zsoltiv_ has joined #ffmpeg
rex has joined #ffmpeg
Marth64 has joined #ffmpeg
Arokh has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.1 - https://znc.in]
Arokh has quit [Client Quit]
Arokh has joined #ffmpeg
alexherbo2 has joined #ffmpeg
l4yer has quit [Ping timeout: 252 seconds]
trillion_exabyte has quit [Ping timeout: 246 seconds]
trillion_exabyte has joined #ffmpeg
rv1sr has quit []
Arokh has quit [Ping timeout: 252 seconds]
sihloo has joined #ffmpeg
l4yer has joined #ffmpeg
StephenLynx has joined #ffmpeg
lucasta has quit [Quit: Leaving]
alexherbo2 has quit [Remote host closed the connection]
Arokh has joined #ffmpeg
arkanoid has joined #ffmpeg
<arkanoid> Hello! I'm trying to give rtsp input to ffmpeg using "ffmpeg -i "rtsp://foo:bar@192.168.1.1/stream" -f null" but all I get is "[rtsp @ 0x76bd7820] Could not find codec parameters for stream 0 (Video: hevc, none): unspecified size"
<arkanoid> if I use "-c copy" I get "[null @ 0x7e8090] dimensions not set \n Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument"
<arkanoid> I don't understand what the error is saying to me. The same rtsp stream plays correctly in vlc
<arkanoid> what is the simplest ffmpeg line I can use to get rtsp stream and save to file, no transcoding, no, conversion
Arokh has quit [Quit: //ThisShouldNeverHappen]
nasso has joined #ffmpeg
l4yer has quit [Ping timeout: 248 seconds]
Arokh has joined #ffmpeg
rv1sr has joined #ffmpeg
Arokh has quit [Ping timeout: 244 seconds]
Arokh has joined #ffmpeg
<arkanoid> I don't understand why ffmpeg is looking for a decoder device if my pipeline wants copy
Unit640 has joined #ffmpeg
<Unit640> I tried to make a slideshow with ffmpeg but it ended up overwriting all my input images with the same image instead. The one time I didn't have backups of the data... hundreds of carefully sorted images. I didn't think that the `-i` flag would ever output to those images -- only use them as input... :/
<Unit640> (Slideshow exported as a video file.)
Arokh has quit [Quit: //ThisShouldNeverHappen]
Arokh has joined #ffmpeg
minimal has joined #ffmpeg
Arokh has quit [Ping timeout: 252 seconds]
Arokh has joined #ffmpeg
Arokh has quit [Ping timeout: 248 seconds]
Arokh has joined #ffmpeg
manwithluck has quit [Ping timeout: 252 seconds]
manwithluck has joined #ffmpeg
JanC has joined #ffmpeg
JanC is now known as Guest8798
Guest8798 has quit [Killed (mercury.libera.chat (Nickname regained by services))]
<arkanoid> can't succeed in the most trivial ops, moving to gstreamer
<arkanoid> what happened to ffmpeg? It used to be a reliable multimedia swiss army knife
<ops> excuse me?
<arkanoid> haha
<arkanoid> I expect "haha" user to show up now
<Thulinma> arkanoid: I'm not an ffmpeg dev, but AFAIK that means the RTSP description doesn't include the codec init data, which quite a few formats expect to find in the headers. RTSP does allow sending it as part of the video data as well, but perhaps it's not getting far enough for that. Does that help at all?
<ops> init data? is that like the moov atom?
<arkanoid> "ffmpeg -rtsp_transport tcp -i "$RTSP_URL" -c copy -f mpegts -y foo.ts" -> [h264_v4l2m2m @ 0x77f2c530] Could not find a valid device [h264_v4l2m2m @ 0x77f2c530] can't configure decoder [mpegts @ 0x7c0e40] dimensions not set Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
<arkanoid> Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 90k tbc
<arkanoid> why it wants a decoder, when I don't want to decode, just store
<Thulinma> ops: I like calling it "init data", but it's also often referred to as "codec private data". Some codecs need out-of-band information to initialize themselves for decoding. The moov atom does contain this stuff as well for MP4, but it's just a small part of it.
<ops> oh ok
Arokh has quit [Ping timeout: 265 seconds]
Everything has quit [Ping timeout: 272 seconds]
<Thulinma> arkanoid: I'm not sure. That's strange indeed - it's a weird decoder it's trying to open to, not the default on most systems as far as I'm aware.
<Thulinma> too*
l4yer has joined #ffmpeg
JanC has joined #ffmpeg
JanC has quit [Killed (erbium.libera.chat (Nickname regained by services))]
Arokh has joined #ffmpeg
wziko has joined #ffmpeg
Arokh has quit [Ping timeout: 265 seconds]
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
wziko has quit [Ping timeout: 265 seconds]
Blacker47 has joined #ffmpeg
rizino has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
rizino has joined #ffmpeg
jannau has joined #ffmpeg
<jannau> hej, do I misremember that it was documented that frame buffers for get_buffer*() should be over-allocated like update_frame_pool() does with 'size[i] + 16 + STRIDE_ALIGN - 1'?
Arokh has joined #ffmpeg
<jannau> looking at firefox VP9 crashes on arm64 caused by over reads in put_8tap_16h_34 and co when the frame size is a multiple of the page size like 1280x640
robobub has quit [Quit: Connection closed for inactivity]
lavaball has quit [Remote host closed the connection]
<JEEB> jannau: ah, a familiar name :) (just noticed your nick on the fedora asahi linux article)
Arokh has quit [Ping timeout: 265 seconds]
<jannau> JEEB: yes, that's taking most of my free time these days
<JEEB> :)
<JEEB> anyways, I recall overallocation was documented somewhere, but things like av_frame_get_buffer mostly talk of alignment
<JEEB> right, linesize
<JEEB> that would enable overallocation, but it does indeed take us back to the point of whether SIMD is supposed to be overreading
<JEEB> (once again, it was mentioned somewhere but on which level I'd have to check)
Arokh has joined #ffmpeg
<JEEB> could be packet buffers as opposed to frame buffers
<jannau> might be related to edge emulation but I forgot all details
<jannau> yes, it could be input what I remember. there FF_INPUT_BUFFER_PADDING_SIZE is clearly documented
<JEEB> is this btw repro'able with fftools?
<JEEB> or only in ffvp9 ripped into Firefox?
dv_ has quit [Quit: WeeChat 3.8]
rsx has quit [Quit: rsx]
<jannau> it repos with valgrind / ffmpeg if I remove the overallocation from update_frame_pool()
<jannau> the '+ 16' has been there since a long time. my git annotate is currently in 2005
<JEEB> :D
Arokh has quit [Quit: //ThisShouldNeverHappen]
Arokh has joined #ffmpeg
bitbinge has joined #ffmpeg
<jannau> based on the "FIXME 16" in https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/1e491e29c27cf6a6925666e4f4eac41b65e263d7 I'd assume this was never documnented
Arokh has quit [Ping timeout: 244 seconds]
lavaball has joined #ffmpeg
<jannau> it shouldn't be needed and it's and issue in either vp9 which switches not soon enough to edge emulation or in the neon asm which over reads too much
JanC_ has joined #ffmpeg
JanC has quit [Killed (calcium.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
sentriz has quit [Ping timeout: 252 seconds]
Arokh has joined #ffmpeg
sentriz has joined #ffmpeg
Arokh has quit [Ping timeout: 265 seconds]
minimal has quit [Quit: Leaving]
Arokh has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
wziko has joined #ffmpeg
Everything has joined #ffmpeg
wziko has quit [Ping timeout: 260 seconds]
System_Error has quit [Remote host closed the connection]
Arokh has quit [Ping timeout: 252 seconds]
wziko has joined #ffmpeg
Arokh has joined #ffmpeg
JanC_ has joined #ffmpeg
JanC is now known as Guest1677
Guest1677 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
Everything has quit [Ping timeout: 252 seconds]
wziko has quit [Ping timeout: 265 seconds]
Everything has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.1 - https://znc.in]
sihloo has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
CruxOfTheB has joined #ffmpeg
xx has quit [Remote host closed the connection]
xx has joined #ffmpeg
Everything has quit [Ping timeout: 265 seconds]
Everything has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 265 seconds]
Perflosopher has quit [Ping timeout: 260 seconds]
Perflosopher has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 248 seconds]
wziko has joined #ffmpeg
wziko has quit [Ping timeout: 264 seconds]
wziko has joined #ffmpeg
Marth64 has quit [Quit: Leaving]
wziko has quit [Ping timeout: 265 seconds]
<bcheng> Is there anyway to skip the av1_metadata bsf while doing an av1 encode? I just want the raw bitstream that came from the encoder, no need for any parsing/muxing
Marth64 has joined #ffmpeg
wziko has joined #ffmpeg
<BtbN> Pretty sure without it the resulting raw bitstream is unparseable, that's why the raw "encoder" inserts it
averne_ has joined #ffmpeg
averne has quit [Ping timeout: 252 seconds]
averne_ is now known as averne
wziko has quit [Ping timeout: 260 seconds]
<bcheng> What makes it unparseable?
<BtbN> https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/rawenc.c#L572 given it makes sure temporal delimiters are inserted, probably the lack of them
<bcheng> hm..
<bcheng> I'm trying to debug an encoder that's generating bad headers, which makes the av1_metadata bsf fail, so I can't get any output out of ffmpeg :/
wziko has joined #ffmpeg
<BtbN> Just comment it out when you're debugging anyway
<bcheng> sure... was hoping to not have to build it
<bcheng> I'm dealing with a cursed VAAPI on windows stack
<JesseTG> Is it possible to list the possible frame sizes of a video camera with the C interface? I'm implementing an API that allows clients to request webcam input of a specific size, but I want to pick something close enough if it's not supported.
CruxOfTheB has quit [Ping timeout: 252 seconds]
CruxOfTheB has joined #ffmpeg
<BtbN> Can ffmpeg list that at all?
bitbinge has quit [Remote host closed the connection]
Everything has quit [Quit: leaving]
mw1144 has joined #ffmpeg
<ePirat> JesseTG, BtbN, I am relatively sure avdevice has no way to do that.
<Unit640> I won't blame the ffmpeg developers for my lack of backups, but why would using anything as -i cause it to write to those under any circumstances?
<Unit640> I thought it was a safe command because the output was unrelated to the -i dir/files.
<JesseTG> ePirat, dang. Oh well, I guess I'll just have to fall back to whatever libavdevice says is the default and hope for the best
<JesseTG> Thanks anyway
<BtbN> Nothing should (and does, to my knowledge) ever write to the input file
<BtbN> it's not even opened for writing
<ePirat> Unit640, what is the command you ran?
<Unit640> ePirat: `ffmpeg -framerate 1/3 -i "/home/a/Desktop/tmp/nostalgia/*.png" -i "/home/a/Desktop/tmp/ambiance.mp3" -c:v libx264 -r 30 -pix_fmt yuv420p -vf "format=yuv420p" -shortest -loop 1 -c:a aac -b:a 192k -vf "scale=1280:720" -t 30 -y "/home/a/Desktop/test.mp4"`
<ePirat> you have a shell expansion in there
<BtbN> If you did not quote that *.png, that will expand to a lot more options, and all but the first one will be an output
<Unit640> I may have tried "/home/a/Desktop/tmp/nostalgia/"*.png before/after it when it didn't seem to work. Unsure when exactly the destruction happened.
<Unit640> (Of course, I have the photos still on many backups, but not carefully picked out and sorted like I had them in this dir.)
<BtbN> Well, shell expansion there just makes no sense, and _will_ cause all but the first file it expands to to be overwritten
JesseTG has quit [Quit: Leaving]
<BtbN> FFmpeg will just see ffmpeg -framerate 1/3 -i 1.png 2.png 3.png 4.png ...
<BtbN> so all but 1.png are outputs
<Unit640> In my mind, it meant "include all the PNG files from this dir".
<BtbN> Your shell does not agree with your mind I'm afraid
<Unit640> I hate the "shell expansion" stuff, frankly. It's caused me other similar issues recently.
<BtbN> FFmpeg has its own syntax if you want to turn a sequence of images into a video
<BtbN> Even if all those png images had an -i in front of them, it would not result in them turning into a video
<BtbN> Also, quoting it like you did here would just result in it not finding the literal "*.png" file
<Unit640> I think it still wouldn't have looked good even if it worked. I kind of want a smooth and very slightly "zoom-in" effect for the duration of each picture in the slideshow.
<Unit640> But I've searched in vain for a working and good video editor, although it seems like this should be scripted somehow.
<ePirat> also never use -y when tinkering with ffmpeg commands
<Unit640> Yeah, that -y did worry me a bit.
<BtbN> Yeah, without -y it'd just have asked you if you really want to overwrite your "input" pictures
<BtbN> Why did you put it then?
coldfeet has joined #ffmpeg
bitbinge has joined #ffmpeg
<Unit640> ChatGPT added it, but I noticed it and didn't remove it. (Of course I don't blindly run anything from it without carefully reading through it, but here I missed the shell expansion stuff.)
<Unit640> At worst I thought it'd give some syntax error.
<BtbN> It's possible to craft what you want with an ffmpeg cli, but it'd be a surprisingly huge commandline, with a huge filter_complex
LainExperiments has joined #ffmpeg
LainExperiments has quit [Client Quit]
mw1144 has quit [Quit: Client closed]
LainExperiments4 has joined #ffmpeg
SuicideShow has quit [Ping timeout: 260 seconds]
SuicideShow has joined #ffmpeg
Mister_Magister_ has joined #ffmpeg
Mister_Magister has quit [Ping timeout: 265 seconds]
Mister_Magister_ is now known as Mister_Magister
Traneptora has quit [Quit: Quit]
<ePirat> BtbN, even then zoompan can not do properly what it says on the tin
<BtbN> I'd probably use Davinci Resolve if I wanted a video like that. Though it seems insanely overkill
<ePirat> I think shotcut should be able to do it
lavaball has quit [Remote host closed the connection]
rv1sr has quit []
minimal has joined #ffmpeg
CruxOfTheB has quit [Ping timeout: 260 seconds]