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 []
MRiddickW has joined #ffmpeg
<KillerWasp>
if i use av_image_alloc() in a AVFrame variable, is enough with av_frame_free?
<KillerWasp>
i'm get complains with valgrind.
<johnjaye>
what are all these things in the tools/ folder like pktdumper and aviocat?
<johnjaye>
i don't see them in any linux package
<johnjaye>
i guess AVOptions are key=value with : separation. which explains the filter-complex syntax
<KillerWasp>
also i get segfault from av_write_trailer, and valgrind don't say anything related to a user error, like itself die in segfault with a 0x18 value (24 value).
bibble has quit [Quit: bibberly bobberly]
bibble has joined #ffmpeg
iive has quit [Quit: They came for me...]
Arokh has joined #ffmpeg
cmc has quit [Remote host closed the connection]
cmc has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
YuGiOhJCJ has joined #ffmpeg
<Trel>
If I have an MKV say in.mkv, and it has an audio, video, and subtitle stream, and I want to replace the subtitle stream, what's the correct way to do that so it replaces it vs adds a second subtitle stream?
tokyovigilante has joined #ffmpeg
ferreum has quit [Quit: bye]
ferreum has joined #ffmpeg
<johnjaye>
you can use map to explicitly control what streams are in the result. but use s not a or v
<Trel>
That's what I've been doing. But I was hoping there was some way I could be consistant because the number would change depending on how many subtitle streams the source has
<johnjaye>
e.g. -map 0 -map -0:s selects all streams from the first input but excludes subtltes
<Trel>
I guess it's a case of if it's working it's "a" right method?
tokyovigilante has quit [Ping timeout: 248 seconds]
<johnjaye>
dunno but i'd guess if there is a way it would be with a filtergraph
tokyovigilante has joined #ffmpeg
<johnjaye>
this stackexchange answer suggests you hack your way through by brute force
<johnjaye>
i.e. parse the output of ffprobe to figure out the stream index
<johnjaye>
KillerWasp: idk, I think it's just ask and hope that Jeeb or furq are around to answer
<johnjaye>
i have no idea how rtmp urls work so it sounds like you're doing pretty well so far
Hackerpcs has joined #ffmpeg
<johnjaye>
curiously the title of the -devel channel says if you want to "develop with libav then to ask here
Hackerpcs has quit [Max SendQ exceeded]
<Marth64>
KillerWasp: What are you trying to do? Surrounding code, context, or CLI command?
<johnjaye>
Marth64: while we're waiting, just to clarify, ffmpeg can stream audio and video over the network? that's what it seems like the doc is saying
<johnjaye>
i see icecast is on the list of protocols lol.
<Marth64>
yes, there are different protocols available to use
<johnjaye>
i think i tried setting up an icecast server one time but failed. couldn't get the guides to work on my system
<Marth64>
ffmpeg -protocols and ffmpeg -muxers will reveal what is available in your build
Hackerpcs has joined #ffmpeg
<johnjaye>
that's kind of incredible
<johnjaye>
i mean. why use obs at all. why not stream directly to twitch using ffmpeg and some grabbing tools
<furq>
obs is much better at capturing and dealing with dropouts and disconnects
<johnjaye>
well. i was only half kidding there. also what's up
<johnjaye>
as i read more documentation pages i see ffmpeg does more and more crazy stuff.
<johnjaye>
the fact it can grab my screen is crazy by itself
<johnjaye>
it took me days to realize I can't give multiple -vf options on the command line
<Marth64>
you can assign multiple filterchains to different streams
<Marth64>
well, one filterchain per stream. but you can specify multiple filters yes
<Marth64>
and there is -filter_complex
<johnjaye>
i was trying to use the drawtext filter at different times in the same video so i guess that would be the stream
<johnjaye>
e.g. ffmpeg -i video.mp4 -vf drawtext.... -vf drawtext.....
<johnjaye>
but only the last one is used as you say
<johnjaye>
this is one of those times i wish i knew C better. because it feels like all this complicated filter_complex syntax is just an interpretation layer for the AV* data structures in the actual code.
<johnjaye>
i'm not sure if you mean a literal + there
<Marth64>
drawtext=[...your other drawtext optoins...]:enable='between(t,0,5)+between(t,10,20)'
<Marth64>
yes
<johnjaye>
but yes i'm using between to time them
<johnjaye>
so each phrase is on screen for 3-5 seconds
rvalue- has joined #ffmpeg
<furq>
sounds like you actually want subtitles
rvalue has quit [Ping timeout: 255 seconds]
<johnjaye>
actually it's credits. so the position is changing
<johnjaye>
but i did see there was a filter for that
<johnjaye>
still subtitles might have been the easier approach
<johnjaye>
there's a cryptic line about * being AND and + being OR. is that what the + means?
<johnjaye>
on ffmpeg-utils.html that is
<furq>
yes
<furq>
between returns 0 or 1, enable expects 0 or 1
rvalue- is now known as rvalue
<furq>
or rather 0 or >0
<johnjaye>
oh i see. since they don't overlap it won't equal 2.
<Marth64>
huh...smart use case
<Marth64>
never thought to use ffmpeg to roll credits
<johnjaye>
well i figured it would be a good way to learn ffmpeg
<furq>
you can have moving subtitles with ass
<Marth64>
yeah thats a good one
<furq>
that would probably be less complicated than 200 drawtexts
<johnjaye>
only now i have about 20 different drawtext filters in a row. each one with a long line about where to put it and exactly what font file to use.
<Marth64>
i think it supports a text file
<Marth64>
this example is there drawtext="fontsize=20:fontfile=FreeSerif.ttf:textfile=CREDITS:y=h-20*t"
<johnjaye>
yes indeed!
<johnjaye>
yes that's the one i copied
<johnjaye>
except fontfile is more like /Windows/fonts/myfontname.ttf repeated 20 times
<johnjaye>
also all the examples with single quotes don't work on windows. windows doesn't care about single quotes. only doubles. XD