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
chiselfuse has quit [Remote host closed the connection]
kts has quit [Read error: Connection reset by peer]
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
kts has joined #ffmpeg
zsoltiv__ has joined #ffmpeg
zsoltiv__ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
PanamaCity3003 has joined #ffmpeg
kts has quit [Ping timeout: 268 seconds]
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
kts has joined #ffmpeg
Creatore has joined #ffmpeg
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
<Creatore>
Is it possible to run both Vulkan and OpenCL video filters in the same command? I tried doing something like that sometime ago, but I get a "ffmpeg.exe just stopped working" pop-up.
zsoltiv_ has quit [Client Quit]
kts has quit [Ping timeout: 264 seconds]
Tinos has joined #ffmpeg
zsoltiv_ has joined #ffmpeg
nigetilly has joined #ffmpeg
shadowless has quit [Ping timeout: 264 seconds]
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
cmc has quit [Remote host closed the connection]
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
cmc has joined #ffmpeg
shadowless has joined #ffmpeg
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
kts has joined #ffmpeg
zsoltiv_ has quit [Client Quit]
zsoltiv_ has joined #ffmpeg
emanuele6 has quit [Ping timeout: 264 seconds]
zsoltiv_ has quit [Quit: Left]
zsoltiv_ has joined #ffmpeg
kts has quit [Ping timeout: 252 seconds]
zsoltiv_ has quit [Client Quit]
j45 has quit [Ping timeout: 268 seconds]
j45 has joined #ffmpeg
zsoltiv_ has joined #ffmpeg
stolen has quit [Quit: Connection closed for inactivity]
nigetilly has quit [Quit: Konversation terminated!]
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimal has joined #ffmpeg
hseg has joined #ffmpeg
lucasta has joined #ffmpeg
<hseg>
Hi! I'm splitting a video into per-chapter files, but my current approach of selecting the segments using -ss -to seems to get progressively slower for later chapters -- is it repeatedly scanning to reach the -ss timestamp again? Is there a better way of doing this?
e^pi-1 has quit [Quit: WeeChat 4.2.2]
lavaball has joined #ffmpeg
<furq>
hseg: yes it is and no there isn't unless you want to reencode
<furq>
probably better to use mkvmerge if possible
<hseg>
shame. mkvmerge?
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
<furq>
mkvmerge --split chapters:all
<furq>
but obviously that will only output mkv or webm
<hseg>
ah, yeah, that's often not enough for me
<hseg>
I use my current setup for mp3/mp4 as well
<hseg>
(also, sometimes I need to manually specify the timestamps, though it appears mkvmerge has facilities for that)
<hseg>
Any reason ffmpeg hasn't grown such a feature on its own? it's a seemingly low-hanging QoL improvement. OTOH, how common is this usecase really?
evilscreww has quit [Quit: Leaving]
<furq>
well it's common enough that mkvmerge has had it for years and i've used it before
<furq>
i guess the usual answer is that the workarounds aren't annoying enough for someone to figure out a nice interface for ffmpeg to do it
<hseg>
fair enough
<hseg>
and you definitely need to beware scope creep here -- thinking of how I'd merge this into ffmpeg suggests allowing creating streams out of timestamp segments on the fly and having multiple outputs -- definitely much more work than a simple "split into segments" script
zmt00 has quit [Read error: Connection reset by peer]
<furq>
there is already the segment muxer that does something similar
<furq>
but you'd need to somehow get chapter information from the demuxer to that automatically
<furq>
if you have some way of dumping chapter timestamps then i guess that's a better workaround
<furq>
by that i mean -segment_times
<hseg>
huh, yeah that could work! I already have an input file of timestamps, so I could use that to generate the inputs to -segment_times
<hseg>
looks fiddly enough I'll need to play with it a little, though, but it appears to fit into my usecase well enough to be an improvement
<hseg>
thanks!
coldfeet has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 264 seconds]
drew has left #ffmpeg [WeeChat 4.2.1]
bitbinge has quit [Remote host closed the connection]
EmleyMoor has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
ivanich has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
hseg has quit [Quit: WeeChat 4.2.2]
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
kts has quit [Ping timeout: 260 seconds]
iliv has quit [Ping timeout: 264 seconds]
peterLustig67 has quit [Remote host closed the connection]
peterLustig67 has joined #ffmpeg
upekkha has quit []
upekkha has joined #ffmpeg
acidtonic has joined #ffmpeg
<acidtonic>
If I pass av_frame to another thread and unref/free it there is that safe?
<acidtonic>
trying to track down tearing problems when the machine's threads get loaded. Can't tell if it's a synchronization problem or violation of memory ownership. I think my freeing the av_frame in the gtk rendering thread after done may be to blame.
trillion_exabyte has quit [Ping timeout: 264 seconds]
beaver has joined #ffmpeg
trillion_exabyte has joined #ffmpeg
yziquel has joined #ffmpeg
<yziquel>
Hi. A plain ./configure with no flags fails to build aviocat. What flags should I give configure to build aviocat ? If anyone knows...
<acidtonic>
After VERSION_MAJOR 60, av_find_best_stream now takes a const decoder arg, in my previous code I was passing that decoder to av_find_best_stream but now I am not sure what to do after calling av_find_best_stream with the const decoder pointer.
<acidtonic>
passing to avcoded_get_hw_config() I meant
yziquel has quit [Quit: Ping timeout (120 seconds)]
yziquel has joined #ffmpeg
gvg_ has quit [Ping timeout: 240 seconds]
gvg__ has quit [Ping timeout: 264 seconds]
peterLustig67 has quit [Ping timeout: 250 seconds]
hightower2 has joined #ffmpeg
HerbY_NL has joined #ffmpeg
AbleBacon has joined #ffmpeg
yziquel has quit [Quit: Ping timeout (120 seconds)]
lucasta has quit [Quit: Leaving]
Creatore has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coldfeet has joined #ffmpeg
gebra has quit [Quit: mostly reboot, or .. lost]
Creatore has quit [Ping timeout: 260 seconds]
Dotz0cat has quit [Ping timeout: 252 seconds]
q66 has quit [Ping timeout: 260 seconds]
jemius has joined #ffmpeg
q66 has joined #ffmpeg
minimal has quit [Quit: Leaving]
System_Error has quit [Remote host closed the connection]
bitbinge has joined #ffmpeg
Creatore has joined #ffmpeg
Creatore has quit [Ping timeout: 240 seconds]
<acidtonic>
I think I got my example down to just complaining of max delay reached, need to consume packet, RTP missed X packets.
<acidtonic>
I see people with command line usage solving that by changing the buffer size using -rtbufsize flag. How can I do this from the C API?
hightower2 has quit [Ping timeout: 252 seconds]
<BtbN>
I don't see anything building aviocat. The name also sounds like it's some leftover from a libav merge, so it's probably dead code.
Juesto has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
Juest has quit [Ping timeout: 240 seconds]
<another|>
make tools/aviocat
Juesto has quit [Ping timeout: 268 seconds]
<BtbN>
Hm, I guess the generic Makefile logic is enough
Juest has joined #ffmpeg
emanuele6 has quit [Ping timeout: 272 seconds]
AbleBacon has quit [Read error: Connection reset by peer]
System_Error has joined #ffmpeg
ivanich has joined #ffmpeg
<acidtonic>
I'm still struggling with trying to beat the error saying max delay reached with lots of tearing when it happens.
ivanich has quit [Remote host closed the connection]
<acidtonic>
Since I am using NV12 hardware decoding, a lot of the examples I see won't apply due to how I have to move memory between things...
<acidtonic>
here is my current code in a unit test with catch and opencv to show images... I get horrid frame tearing. https://pastebin.com/Up0qX6AU
<acidtonic>
sure I'm probably doing a lot wrong but any eyes or idea what to look at would help. valgrind is happy too
<acidtonic>
the top half of the image is good most of the time, every few frames the middle-to-bottom will repeat and I'll see those messages appear.
<acidtonic>
[rtsp @ 0x5588e1970550] max delay reached. need to consume packet (newline) RTP; missed 13-43 packets
<BtbN>
That reads to me like you're not reading packets fast enough
<acidtonic>
I'd agree but I'm lost as to what I'm doing in these tight loops around read_frame and packet.
<acidtonic>
my guess was one of these needs a retry loop or something, like EAGAIN
<BtbN>
Does it still say that if you do NOTHING?
<BtbN>
i.e. just unref the packet and move on?
superkuh has joined #ffmpeg
<BtbN>
Your processing might just be too slow
<acidtonic>
so skip the entire draw viewing part and just let it run faster, sure let me try
<BtbN>
just comment out the middle part of your main loop
<BtbN>
so it just fetches packets and unrefs them in a busy loop basically
<BtbN>
If that gets rid of the error, you're simply too slow
<acidtonic>
interesting, okay
<acidtonic>
commenting out the decode write part in the middle does seem to have it run without these messages
<acidtonic>
after a few minutes I get one saying missed 1 packets
<BtbN>
What is the source of that stream?
<BtbN>
It's not ffmpeg dumping out some file at lignting speed or something?
<acidtonic>
so with an empty loop does that mean something else is borked?
<acidtonic>
it's a PTZOptics studio pro
<superkuh>
Hi. I am using a Logitech c270 webcam with ffplay. It displays fine in vlc or cheese or guvcview. But in ffplay it lags out and freezes every few seconds and the console is constantly spamming, "[mjpeg @ 0x7f8d4c003c00] unable to decode APP fields: Invalid data found when processing input" which seems to be because logitech mjpeg is not really mjpeg https://stackoverflow.com/questions/55439184/getting-unable-to-decode-app-fields-while-playing-usb-webcam
<superkuh>
-stream-through-ff . Unfortunately that thread has no fixes. Is there a cli option I can pass to ignore the embedded stuff in the mjpeg stream?
<acidtonic>
could it be that I simply can't use this for 30-60fps 1920x1080 cameras?
<acidtonic>
I am trying to get hardware decoding since I have an application reading tons of rtsp streams, like 10-30 and cpu usage is killing me
<acidtonic>
but I absolutely can't have tearing images, so I'm stuck. it's faster with this until it tears then I need to revert back to have correct images
<BtbN>
You could benchmark how fast your decode_write function is
<BtbN>
if it takes longer than 16ms, you found the issue
alexrelis has joined #ffmpeg
<furq>
superkuh: you can at least silence the warnings with -v error
<acidtonic>
I now have a good page of missed packets on my null/loop test that's running. My machine is an I7 on linux at 1.18 load, why would I drop frames still?
<furq>
it's possible that the console spam itself is what causes the lag
<furq>
especially on windows
<superkuh>
furq, I have just tried that on your suggestion. It does not remove the freezes, unfortunately.
<superkuh>
I guess the solution is to use vlc until I can get a better uvc and mjpeg standards compliant camera.
<furq>
did you try -input_format h264
<superkuh>
[video4linux2,v4l2 @ 0x7f5d98000bc0] Cannot find a proper format for codec 'h264' (id 27), pixel format 'none' (id -1)
<superkuh>
It's certainly not in the listed modes.
<superkuh>
I suppose this weird stream in stream format is what causes vlc to suddenly start taking half my CPU after leaving the webcam mjpeg stream open for 20 hours.
hightower2 has joined #ffmpeg
<BtbN>
The error messagt might also be interpreted the other way around
five61848033 has quit [Remote host closed the connection]
<BtbN>
i.e. the whole delay seems to be for re-ordering. Which would then sound like new packets are not being fed in fast enough, and it returns whatever it has
<BtbN>
which would hint at a broken source
five61848033 has joined #ffmpeg
<acidtonic>
BtbN: was the broken source part for me? here's my output with no render -> https://pastebin.com/7eCtwgR3
Juest has quit []
<BtbN>
no
<acidtonic>
at 10fps 1920x1080 I'd expect almost none of these errors, yet non accelerated rendering doesn't tear but is slow.
<superkuh>
! I left it running in the background for a minute and the freezes went away.
<superkuh>
Okay. Okay. That's fine.
<BtbN>
There is a chance you are in fact reading too fast
Juest has joined #ffmpeg
<BtbN>
Have you tried just increasing the max_delay?
<BtbN>
The default seems to be 100000 and is in microseconds
Tano has quit [Quit: WeeChat 4.2.1]
HerbY_NL has joined #ffmpeg
<acidtonic>
really weird is if I set the camera to 1fps, I now get lots of weird errors from my ffmpeg test before it gets into the empty render loop
<superkuh>
Oh wow. ffplay is using up nearly all my ryzen 3600 cpu just playing the video.
<superkuh>
Nevermind.
welder has joined #ffmpeg
<welder>
Hi, I'm recording with ffmpeg -f pulse and last 1-2 seconds of audio are always cut, i tried recording mic and system sound, the result is the same, last seconds missing
<welder>
I'm on Debia stable, ffmpeg 5.1.4
<JEEB>
you may want to try out https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest , grab the GPL latest master non-shared one, extract to homedir and execute the binary with its full path (or in the same directory with `./ffmpeg` instead of just `ffmpeg`)
Creatore has joined #ffmpeg
vampirefrog has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BtbN>
Webcams are kinda notorious for returning stuff that's so broken it barely works at all
<BtbN>
My Logitech USB one also has an h264 output mode, to output 1080p. But its quality is so bad, 480p uncompressed looks better
<BtbN>
And the h264 decoder also outputs a constant stream of errors while dealing with it
Tano has joined #ffmpeg
TheSashmo has quit [Quit: Leaving...]
iive has joined #ffmpeg
whatsupdoc has quit [Quit: Connection closed for inactivity]
ttys000 has joined #ffmpeg
HerbY_NL has joined #ffmpeg
HerbY_NL has quit [Client Quit]
ossifrage_ is now known as ossifrage
Creatore has quit [Ping timeout: 260 seconds]
Creatore has joined #ffmpeg
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
iliv has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
s2r has left #ffmpeg [#ffmpeg]
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
Creatore1 has joined #ffmpeg
Creatore has quit [Ping timeout: 240 seconds]
Creatore1 is now known as Creatore
talismanick has joined #ffmpeg
talismanick has quit [Remote host closed the connection]
talismanick has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
Livio has joined #ffmpeg
talismanick has quit [Remote host closed the connection]
rv1sr has quit []
beaver has quit [Quit: « un roi, sans couronne »]
beaver has joined #ffmpeg
TheSashmo has joined #ffmpeg
jemius has quit [Quit: Leaving]
beaver has quit [Quit: (Lag: 116 (??) pitié …]
beaver has joined #ffmpeg
FlorianBad has quit [Quit: Konversation terminated!]
FlorianBad has joined #ffmpeg
FlorianBad has quit [Client Quit]
FlorianBad has joined #ffmpeg
Livio has quit [Ping timeout: 268 seconds]
travisghansen has quit [Quit: Ping timeout (120 seconds)]
travisghansen has joined #ffmpeg
Dotz0cat has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
jagannatharjun has quit [Quit: Connection closed for inactivity]
Creatore1 has joined #ffmpeg
Creatore has quit [Ping timeout: 260 seconds]
Creatore1 is now known as Creatore
HarshK23 has quit [Quit: Connection closed for inactivity]
Vonter has quit [Ping timeout: 268 seconds]
mrelcee has quit [Ping timeout: 264 seconds]
e^pi-1 has joined #ffmpeg
mrelcee has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
iliv has quit [Ping timeout: 260 seconds]
trillion_exabyte has quit [Read error: Connection reset by peer]
trillion_exabyte has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
minimal has joined #ffmpeg
SuicideShow has quit [Ping timeout: 260 seconds]
SuicideShow has joined #ffmpeg
alexrelis has quit [Quit: alexrelis]
emanuele6 has joined #ffmpeg
alexrelis has joined #ffmpeg
alexrelis has quit [Ping timeout: 268 seconds]
five61848033 has quit [Remote host closed the connection]