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
<Trel> johnjaye: I was trying to improve this, I have two versions of this script, a convert and a mux https://termbin.com/2h8k
<johnjaye> i see. that's more complex than anything i've written with ffmpeg so far lol
<johnjaye> although i'm more trying to get complicated filter_complex expressions somewhat manageable
<johnjaye> pro tip: you might want to a put a description of what it does so you'll remember in a few years why you wrote it!
ursa has quit [Ping timeout: 260 seconds]
makidoll3 has joined #ffmpeg
makidoll has quit [Remote host closed the connection]
makidoll3 is now known as makidoll
Marth64 has joined #ffmpeg
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #ffmpeg
yans has joined #ffmpeg
EmleyMoor has joined #ffmpeg
kasper93 has quit [Remote host closed the connection]
MRiddickW has quit [Quit: MRiddickW]
Everything has quit [Quit: leaving]
nigetilly has joined #ffmpeg
nigetilly has quit [Client Quit]
haritz has quit [Ping timeout: 276 seconds]
haritz has joined #ffmpeg
<KillerWasp> i get a segfault in av_write_trailer(), L1253: AVPacket *const pkt = si->parse_pkt;
<KillerWasp> 'si' are get from "FFFormatContext *const si = ffformatcontext(s);"
<KillerWasp> i don't know if this is now a #ffmpeg-devs
\\Mr_C\\ has quit [Remote host closed the connection]
Traneptora has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.1 - https://znc.in]
sihloo has joined #ffmpeg
StephenLynx has quit [Quit: Leaving]
Hackerpcs has quit [Quit: Hackerpcs]
<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> and i'd understand everything immediately if I just read the code
<Marth64> but there is easier way
<Marth64> drawtext=enable='between(t,0,5)+between(t,10,20)'
<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
<johnjaye> ah i see. it has a \pos tag for position.
<johnjaye> by the way idk if you guys build the windows release or not.
<johnjaye> but the error message for a missing font file is very confusing. it refers to fontconfig when that has nothing to do with it afact
<johnjaye> if i change myfile.ttf to blargh.ttf instead of telling me blargh.ttf doesn't exist it just says something about fontconfig
<furq> the windows builds still use fontconfig
<furq> they usually static link it
<furq> and generally on windows i would just copy the ttf to cwd because otherwise it was a nightmare
<johnjaye> i'm on my laptop now so i don't have it handy. but the message definitely did not communicate that the file was missing
<johnjaye> instead i started trying to figure out how to get fontconfig on windows
<johnjaye> ah i see
tokyovigilante has quit [Ping timeout: 245 seconds]
<furq> i think freetype depends on fontconfig so you have to build it for windows anyway
<furq> so you might as well link it into ffmpeg
<johnjaye> i didn't realize all these libraries had windows ports. either way most of the error messages are just greek to me
<johnjaye> but thanks for the tips!
<johnjaye> just 10 or so complicated drawtext filters to go until i'm done with this project
rex has quit [Ping timeout: 260 seconds]
rv1sr has joined #ffmpeg
tokyovigilante has joined #ffmpeg
Marth64 has quit [Quit: Leaving]
sewn has quit [Remote host closed the connection]
Forza has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Forza has joined #ffmpeg
sewn has joined #ffmpeg
evilscreww has joined #ffmpeg
lexano has quit [Ping timeout: 265 seconds]
rex has joined #ffmpeg
lexano has joined #ffmpeg
tokyovigilante_ has joined #ffmpeg
tokyovigilante has quit [Ping timeout: 260 seconds]
tokyovigilante_ is now known as tokyovigilante
ursa has joined #ffmpeg
Krusher has joined #ffmpeg
gvg has quit [Ping timeout: 260 seconds]
coldfeet has joined #ffmpeg
kepstin has quit [Remote host closed the connection]
kepstin has joined #ffmpeg
kasper93 has joined #ffmpeg
evilscreww has quit [Ping timeout: 250 seconds]
ursa has quit [Ping timeout: 260 seconds]
ursa has joined #ffmpeg
blb has quit [Ping timeout: 252 seconds]
blb has joined #ffmpeg
lavaball has joined #ffmpeg
rsx has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 265 seconds]
EmleyMoor has joined #ffmpeg
kron has quit [Quit: kron]
kron has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 252 seconds]
Krusher has quit [Ping timeout: 252 seconds]
EmleyMoor has joined #ffmpeg
kuba-orlik0397 has quit [Quit: The Lounge - https://thelounge.chat]
kuba-orlik03975 has joined #ffmpeg
crossby1004 has joined #ffmpeg
jemius has joined #ffmpeg
coldfeet has quit [Quit: Lost terminal]
pah is now known as pa
evilscreww has joined #ffmpeg
Sketch has quit [Ping timeout: 245 seconds]
evilscreww has quit [Read error: Connection reset by peer]
Sketch has joined #ffmpeg
StephenLynx has joined #ffmpeg
rsx has quit [Quit: rsx]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
coldfeet has joined #ffmpeg
makidoll has quit [Quit: Ping timeout (120 seconds)]
makidoll has joined #ffmpeg
sihloo has quit [Read error: Connection reset by peer]
minimal has joined #ffmpeg
sihloo has joined #ffmpeg
gchound has joined #ffmpeg
gchound has quit [Client Quit]
gchound has joined #ffmpeg
sihloo has quit [Read error: Connection reset by peer]
sihloo has joined #ffmpeg
Krusher has joined #ffmpeg
Marth64 has joined #ffmpeg
stolen has joined #ffmpeg
coldfeet has quit [Quit: Lost terminal]
DauntlessOne4 has quit [Ping timeout: 244 seconds]
Narrat has joined #ffmpeg
cryptic has quit [Ping timeout: 245 seconds]
DauntlessOne4 has joined #ffmpeg
makidoll has quit [Quit: Ping timeout (120 seconds)]
iive has joined #ffmpeg
emmanuelux has quit [Read error: Connection reset by peer]
Krusher has quit [Quit: Leaving]
crossby1004 has quit [Ping timeout: 252 seconds]
<KillerWasp> hi
Muimi has joined #ffmpeg
Sketch has quit [Ping timeout: 248 seconds]
zsoltiv_ has joined #ffmpeg
crossby1004 has joined #ffmpeg
crossby1004 has quit [Ping timeout: 252 seconds]
hjckr has quit [Ping timeout: 244 seconds]
crossby1004 has joined #ffmpeg
crossby1004 has quit [Ping timeout: 245 seconds]
lavaball has quit [Remote host closed the connection]
HarshK23 has quit [Quit: Connection closed for inactivity]
crossby1004 has joined #ffmpeg
stolen has quit [Quit: Connection closed for inactivity]
wziko has joined #ffmpeg
coldfeet has joined #ffmpeg
Dagger has quit [Ping timeout: 276 seconds]
Dagger has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
raccct has joined #ffmpeg
Thulinma has quit [Read error: Connection reset by peer]
Thul has joined #ffmpeg
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
lavaball has joined #ffmpeg
beastd has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
beastd has joined #ffmpeg
Muimi has joined #ffmpeg
Everything has joined #ffmpeg
wziko has quit [Ping timeout: 265 seconds]
raccct has quit [Ping timeout: 256 seconds]
jtgd has quit [Quit: WeeChat 4.4.3]
jtgd has joined #ffmpeg
chandash has joined #ffmpeg
Fischmiep has quit [Ping timeout: 260 seconds]
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
five61848033917 has joined #ffmpeg
Fischmiep has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
Dagger has quit [Ping timeout: 260 seconds]
Fischmiep has quit [Remote host closed the connection]
Fischmiep has joined #ffmpeg
Dagger has joined #ffmpeg
Marth64 has quit [Quit: Leaving]
hitman82 has joined #ffmpeg
rv1sr has quit []
Vonter has quit [Ping timeout: 245 seconds]
Marth64 has joined #ffmpeg
Vonter has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
Sketch has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
wziko has joined #ffmpeg
hitman82 has left #ffmpeg [#ffmpeg]
mven97 has quit [Quit: Goodbye.]
swamp_ has joined #ffmpeg
zmt00 has joined #ffmpeg
zmt01 has quit [Ping timeout: 245 seconds]
swamp_ has quit [Ping timeout: 265 seconds]
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
lemourin has joined #ffmpeg
mven97 has joined #ffmpeg
gchound has quit [Quit: WeeChat 4.1.1]
ewomer has quit [Quit: WeeChat 4.4.3]
Everything has quit [Ping timeout: 276 seconds]
Everything has joined #ffmpeg
jemius has quit [Quit: Leaving]
lavaball has quit [Remote host closed the connection]
CounterPillow has quit [Quit: Bye.]
Muimi has joined #ffmpeg
Muimi has quit [Client Quit]
CounterPillow has joined #ffmpeg
Narrat has quit [Quit: They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.]
crossby1004 has quit [Quit: leaving]
SuicideShow has quit [Ping timeout: 245 seconds]
SuicideShow has joined #ffmpeg