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
xx has quit [Ping timeout: 260 seconds]
talismanick has quit [Remote host closed the connection]
Hackerpcs has quit [Quit: Hackerpcs]
Hackerpcs has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
<echelon> hi
<echelon> i keep getting "not enough frames to estimate rate; consider increasing probesize"
<echelon> it's supposed to just grab input from x11grab that's supposed to be 1 fps
<echelon> i set -framerate 1, but i still get that message
iive has quit [Quit: They came for me...]
Hackerpcs has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
Hackerpcs has quit [Max SendQ exceeded]
kuba-orlik0397 has joined #ffmpeg
Hackerpcs has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
<echelon> anyone have experience doing low latency MJPEG?
Hackerpcs has joined #ffmpeg
Suchiman has quit [Quit: Connection closed for inactivity]
Hackerpcs has quit [Max SendQ exceeded]
Hackerpcs has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Apollyon has joined #ffmpeg
lexano has quit [Ping timeout: 264 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
deus0ww has quit [Ping timeout: 252 seconds]
deus0ww has joined #ffmpeg
beaver has quit [Quit: test de mon script speed_eth0.pl pour Irssi]
beaver has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
beaver has quit [Quit: affichage de la vitesse d'utilisation de eth0 dans la statusbar ok : (eth0: ↓45.14 ↑13.23 Mo/s). Test du lancement du script en autorun && fin …]
beaver has joined #ffmpeg
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
lemourin has joined #ffmpeg
rvalue- has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
rvalue has quit [Ping timeout: 268 seconds]
kuba-orlik0397 has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #ffmpeg
rvalue- is now known as rvalue
YuGiOhJCJ has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
waleee has quit [Ping timeout: 268 seconds]
Apollyon has quit [Ping timeout: 252 seconds]
brandon_ has joined #ffmpeg
Marz has left #ffmpeg [#ffmpeg]
KDDLB has quit [Read error: Connection reset by peer]
KDDLB9 has joined #ffmpeg
KDDLB9 has quit [Read error: Connection reset by peer]
KDDLB9 has joined #ffmpeg
NotWarcop has quit [Remote host closed the connection]
wallacer_ has joined #ffmpeg
wallacer has quit [Read error: Connection reset by peer]
wallacer_ has quit [Ping timeout: 260 seconds]
makidoll has quit [Quit: Gateway shutdown]
wallacer has joined #ffmpeg
makidoll has joined #ffmpeg
HarshK23 has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.0 - https://znc.in]
sihloo has joined #ffmpeg
echelon has quit [Ping timeout: 260 seconds]
echelon has joined #ffmpeg
jagannatharjun has joined #ffmpeg
vincejv has joined #ffmpeg
AbleBacon has quit [Read error: Connection reset by peer]
rv1sr has joined #ffmpeg
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
rpthms has quit [Remote host closed the connection]
rpthms has joined #ffmpeg
lavaball has joined #ffmpeg
a0z has joined #ffmpeg
Livio has joined #ffmpeg
<echelon> why can't i find a single example use case of mjpeg output with ffmpeg
<CounterPillow> -c:v mjpeg
<echelon> CounterPillow: these are my flags.. -f x11grab -video_size 1000x1000 -draw_mouse 0 -i :1 -map 0:v:0 -c:v mjpeg -preset ultrafast -framerate 2 -r 2 -tune animation -f mjpeg main.mjpeg
<echelon> it hasn't generated a single file, but ffmpeg is running
<CounterPillow> do you really want to use raw mjpeg as the container? Seems like a footgun
<furq> get rid of all of the options between -map 0:v:0 and -f mjpeg and move -framerate 2 before -i
<echelon> including '-c:v mjpeg'?
<CounterPillow> that can be inferred from -f mjpeg in this case
<echelon> i made a mistake by setting the wrong path in the container, but i see the file now
<echelon> it keeps growing in size and when i play it in vlc it speeds by really fast
<CounterPillow> because it's a raw mjpeg stream, it contains no information as to the timing of the frames
<echelon> is there away to make it not grow in size so that whenever a person opens the stream they only see the most recent frames?
coldfeet has joined #ffmpeg
<echelon> do i need to use ffserver?
<CounterPillow> ffserver is dead
<echelon> so what replaced it
<echelon> and how do i "wrap" the video so that it remains at a certain size?
<CounterPillow> Nothing, there are plenty of media streaming servers out there like mediamtx. The thing you're trying to do, feeding an mjpeg stream to presumably a browser that just thinks it's a regular jpeg as a livestream, is not really something to be done anymore in this day and age.
<echelon> video.js seems to support it
rv1sr has quit []
<CounterPillow> if you're already requiring clientside JS to play back the stream then using a real streaming protocol like HLS or WebRTC seems like a strictly superior option
<echelon> the problem with hls is latency, mjpeg seems ideal for near zero latency
<CounterPillow> webrtc
a0z has quit [Quit: Leaving]
<echelon> does ffmpeg support it?
<CounterPillow> ffmpeg supports acting as a producer for a multimedia server (like mediamtx) that implements it
kts has joined #ffmpeg
KDDLB9 is now known as KDDLB
<echelon> does mediamtx support multiple streams or does each stream require its own process?
xx has joined #ffmpeg
<CounterPillow> it supports multiple
<echelon> > Serve multiple streams at once in separate paths
<echelon> thanks
<echelon> can ffmpeg stream to a fifo/named pipe?
<CounterPillow> apparently yes https://ffmpeg.org/ffmpeg-protocols.html#pipe
billchenchina has joined #ffmpeg
<echelon> interesting, i wonder how i can leverage that over http
billchenchina has quit [Remote host closed the connection]
<CounterPillow> actually not sure if named pipes work, that just seems to do fd numbers
<echelon> ok
<CounterPillow> but writing to a pipe and then serving that to unsuspecting applications is generally not how livestreaming works
<echelon> yeah :/
kts has quit [Quit: Konversation terminated!]
<furq> that is sort of how it works
<furq> just not for browsers
Kei_N_ has joined #ffmpeg
<furq> how much latency is too much latency here
Kei_N has quit [Ping timeout: 260 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
kts has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
rv1sr has joined #ffmpeg
kts has quit [Quit: Konversation terminated!]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
stonerl has quit [Ping timeout: 264 seconds]
coldfeet has joined #ffmpeg
<echelon> furq: anything within a minute is good
<echelon> i've tried hls, but with every tweak it's been between 3-10 latency
nigetilly has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
beaver has quit [Quit: ]
kuba-orlik0397 has joined #ffmpeg
beaver has joined #ffmpeg
kepstin has quit [Remote host closed the connection]
kepstin has joined #ffmpeg
kepstin has quit [Remote host closed the connection]
kepstin has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
beaver_ has joined #ffmpeg
beaver has quit [Ping timeout: 260 seconds]
stonerl has joined #ffmpeg
nigetilly has quit [Quit: Konversation terminated!]
HerbY_NL has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
sgm has quit [Quit: sgm]
sgm has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BtbN> "within a minute" should be trivial, even with HLS
<BtbN> just don't use 30 second segments or something
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
System_Error has quit [Ping timeout: 260 seconds]
System_Error has joined #ffmpeg
waleee has joined #ffmpeg
rsx has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
talismanick has joined #ffmpeg
Tinos has joined #ffmpeg
Livio has quit [Ping timeout: 268 seconds]
wallacer has quit [Quit: No Ping reply in 180 seconds.]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
wallacer has joined #ffmpeg
housemate has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
vlm has joined #ffmpeg
BUSY has quit [Ping timeout: 264 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
System_Error has quit [Ping timeout: 260 seconds]
System_Error has joined #ffmpeg
housemate has quit [Quit: "I saw it in a TikTok video and thought that it was the smartest answer ever" ~AnonOps Radio [LOL]]
housemate has joined #ffmpeg
Livio has joined #ffmpeg
housemate has quit [Remote host closed the connection]
HerbY_NL has joined #ffmpeg
housemate has joined #ffmpeg
housemate has quit [Max SendQ exceeded]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
housemate has joined #ffmpeg
housemate has quit [Max SendQ exceeded]
System_Error has quit [Remote host closed the connection]
mrelcee has quit [Ping timeout: 272 seconds]
System_Error has joined #ffmpeg
mrelcee has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
rbdr has joined #ffmpeg
rbdr has quit [Quit: (Zzz)]
<intrac> hi, I'm using ffmpeg to stream to Twitch over rtmp. is there a way to make a stream end more gracefully, as just hitting 'q' on ffmpeg causes the stream on Twitch to pause, but still appears to show as live
<intrac> I'm not sure if this is an ffmpeg issue or Twitch, as I've seen it on other streams. but I think possibly when other streams drop out, rather than end properly
<intrac> is there some extra data that should be sent to let Twitch know the stream has finished?
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Suchiman has joined #ffmpeg
<kepstin> intrac: this post seems to discuss it: https://discuss.dev.twitch.com/t/how-to-end-twitch-stream-using-the-live-streaming-api/30674/2 - needs a 'deleteStream' command sent at the end of the rtmp stream. Not sure what's going on with ffmpeg regarding that.
housemate has joined #ffmpeg
<intrac> kepstin: thanks, I'll take a look
housemate has quit [Remote host closed the connection]
housemate has joined #ffmpeg
<intrac> I'm also getting random ffmpeg errors: "av_interleaved_write_frame(): End of file", "error writing trailer of rtmp://live.twitch ..."
s2r has joined #ffmpeg
<intrac> my current test is to loop a short video and audio file from ffmpeg with -stream_loop
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
<intrac> "It is currently impossible not to send deleteStream, I suspect it is trivial not to send it but nobody so far felt the need or saw the usefulness."
<intrac> so it looks like Ffmpeg sends that as default. maybe this is just Twitch not properly refreshing the web page
<intrac> I think I've seen this with other people's streams too
lexano has joined #ffmpeg
<intrac> possibly the av_interleaved_write_frame(): End of file issue is caused by Ffmpeg being compiled with librtmp: https://stackoverflow.com/a/63729262
<intrac> if Ffmpeg has been compiled with librtmp, is there any way to make it use its own version of rtmp instead of librtmp?
HerbY_NL has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbdr has joined #ffmpeg
fossdd has quit [Remote host closed the connection]
Mister_Magister has quit [Quit: bye]
fossdd_ has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
rbdr has quit [Quit: (Zzz)]
cosimone has joined #ffmpeg
housemate has quit [Read error: Connection reset by peer]
housemate has joined #ffmpeg
rbdr has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
<BtbN> If you are still using librtmp, there's your issue right there.
<BtbN> And no, that's a compile-time decision.
lucasta has joined #ffmpeg
beaver_ is now known as beaver
turlando has quit [Quit: No Ping reply in 180 seconds.]
turlando has joined #ffmpeg
lucasta has quit [Remote host closed the connection]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
sgm has quit [Quit: sgm]
sgm has joined #ffmpeg
rbdr has quit [Quit: :(]
theobjectivedad has quit [Read error: Connection reset by peer]
housemate_ has joined #ffmpeg
housemate has quit [Ping timeout: 268 seconds]
theobjectivedad has joined #ffmpeg
theobjectivedad has quit [Remote host closed the connection]
theobjectivedad has joined #ffmpeg
<intrac> BtbN: thanks for confirming
<BtbN> We should probably remove the librtmp code
minimal has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
acovrig601 has quit [Ping timeout: 255 seconds]
Suchiman has quit [Quit: Connection closed for inactivity]
housemate_ has quit [Quit: "I saw it in a TikTok video and thought that it was the smartest answer ever" ~AnonOps Radio [LOL]]
housemate has joined #ffmpeg
<intrac> BtbN: so that would force all builds to use Ffmpeg's own rtmp implementation?
<BtbN> well, yes
<BtbN> librtmp is just dead
<intrac> ok. just wasn't sure how it fits together :)
<intrac> is the rtmp code in ffmpeg a historic fork of librtmp, or entirely different?
housemate has quit [Ping timeout: 268 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Livio has quit [Ping timeout: 264 seconds]
Livio has joined #ffmpeg
militantorc has joined #ffmpeg
militantorc has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
<JEEB> intrac: it's separate
<JEEB> and to my knowledge it works, the only major difference is that options are not passed as part of the URL, but instead as AVOptions which can be set on the command line
acovrig601 has joined #ffmpeg
<JEEB> `ffmpeg -h protocol=rtmp` shows the options
militantorc has joined #ffmpeg
<intrac> JEEB: ah ok. I'll try setting a few things like the rtmp buffer size and see if that helps at all
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
buggyman has joined #ffmpeg
<bpmedley> echelon: Do you only need video in the browser?
<echelon> yes
buggyman has quit [Quit: Client closed]
<bpmedley> I didn't see it mentioned. You can use WebCodecs to decode H.264 NALU sent to the browser, I believe. That coupled with sending the decoded frames to a canvas via a WebWorker might work.
<echelon> is there a write up of how to do that somewhere?
lavaball has quit [Remote host closed the connection]
<bpmedley> echelon: I can give you the javascript to decode the nalu, if you want. You'd need to find or code a ffmpeg + media server solution to send the nalu, I would think.
<echelon> oh :/
<BtbN> You aren't seriously suggesting to implement a decoder in JavaScript?
<echelon> lol
<bpmedley> It's like 30 lines of code, at most.
<BtbN> For a video decoder?
<bpmedley> Want to see it?
<echelon> i'll have to hire somebody
<BtbN> It's either not a video decoder or nonsense
<BtbN> ah, WebCodec is just a decoder itself
<bpmedley> Yes
<BtbN> But why would you use that? Its advertised as "for video editors that need ultra low level access"
<bpmedley> Decodes a annexb avc1.42C02A stream.
<BtbN> for just playing a video, that seems horrible and will ruin most if not all hardware acceleration
coldfeet has joined #ffmpeg
<bpmedley> I've only tinkered with WebCodecs. I don't know many of the pros/cons of using WebCodecs as a viewer.
<BtbN> The whole point of that API seems to be to export the raw decoded frame to JavaScript as an array of pixels
<BtbN> That's automatically slow and resource intensive
housemate has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
vlm has quit [Quit: Leaving]
coldfeet has quit [Ping timeout: 272 seconds]
Tinos has quit [Ping timeout: 250 seconds]
Tinos has joined #ffmpeg
<CounterPillow> I don't see why you'd suggest this in any capacity when mediamtx will literally make a webrtc js+html page for you
<bpmedley> I've never used mediamtx
<CounterPillow> then I don't know why you'd suggest this in any capacity when webrtc is literally the low-latency web streaming standard and does not need writing your own custom inefficient player with webcodecs
beastd has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
<bpmedley> I guess because I was recently tinkering with sending nalu to the browser and haven't really used webrtc much.
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
HarshK23 has quit [Quit: Connection closed for inactivity]
rsx has quit [Quit: rsx]
HerbY_NL has joined #ffmpeg
brandon_ has quit [Remote host closed the connection]
Ozm has quit [Quit: Ozm]
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
housemate has quit [Quit: "I saw it in a TikTok video and thought that it was the smartest answer ever" ~AnonOps Radio [LOL]]
Warcop has joined #ffmpeg
housemate has joined #ffmpeg
AbleBacon has joined #ffmpeg
Livio has quit [Ping timeout: 240 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
lexano has quit [Remote host closed the connection]
housemate has quit [Quit: "I saw it in a TikTok video and thought that it was the smartest answer ever" ~AnonOps Radio [LOL]]
Livio has joined #ffmpeg
ferreum has quit [Quit: bye]
ferreum has joined #ffmpeg
militantorc has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
lavaball has joined #ffmpeg
Haxxa has quit [Quit: Haxxa flies away.]
Haxxa has joined #ffmpeg
militantorc has joined #ffmpeg
tomaw has quit [Remote host closed the connection]
tomaw_ has joined #ffmpeg
tomaw_ is now known as tomaw
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
militantorc has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
militantorc has joined #ffmpeg
cosimone has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ffmpeg
jagannatharjun has quit [Quit: Connection closed for inactivity]
kuba-orlik0397 has quit [Remote host closed the connection]
minimal has quit [Quit: Leaving]
kuba-orlik0397 has joined #ffmpeg
rv1sr has quit []
lexano has joined #ffmpeg
troyt has quit [Ping timeout: 272 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Suchiman has joined #ffmpeg
SuicideShow has quit [Ping timeout: 256 seconds]
SuicideShow has joined #ffmpeg
BUSY has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
Tinos has quit [Remote host closed the connection]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Livio has quit [Ping timeout: 256 seconds]
odrling has quit [Remote host closed the connection]
odrling has joined #ffmpeg
System_Error has quit [Ping timeout: 260 seconds]
militantorc has quit [Remote host closed the connection]
kuba-orlik0397 has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
kuba-orlik0397 has joined #ffmpeg
militantorc has joined #ffmpeg
natto has quit [Ping timeout: 252 seconds]
natto has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
iNKa has joined #ffmpeg
Brocker has quit [Ping timeout: 252 seconds]
icedice has joined #ffmpeg
<icedice> What's the command for downscaling with Mitchell?
<icedice> I have everything figured out except how to specify Mitchell
<icedice> Neither zscale nor sws_flags works for mitchell
<furq> icedice: scale=w=1920:h=1080:flags=bicubic:param0=1/3:param1=1/3 or zscale=w=1920:h=1080:f=bicubic:param_a=1/3:param_b=1/3
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Tinos has joined #ffmpeg