frankplow has quit [Read error: Connection reset by peer]
Nixkernal has quit [Ping timeout: 260 seconds]
Nixkernal_ has joined #ffmpeg
five618480 has quit [Remote host closed the connection]
five618480 has joined #ffmpeg
Nixkernal_ has quit [Read error: Connection reset by peer]
Nixkernal has joined #ffmpeg
Jhonny2x4 has joined #ffmpeg
fossdd has quit [Remote host closed the connection]
Ox7C5_ has quit [Quit: Lost terminal]
Jhonny2x4 has quit [Read error: Connection reset by peer]
yoo has quit [Remote host closed the connection]
yoo has joined #ffmpeg
LionEagle has joined #ffmpeg
yoo has quit [Ping timeout: 276 seconds]
yoo has joined #ffmpeg
function1 has quit [Ping timeout: 264 seconds]
tykling has joined #ffmpeg
<tykling>
o/
Nixkernal_ has joined #ffmpeg
<tykling>
I have a webcam where I get "Input #0, matroska,webm" over https and I am restreaming it to an RTSP server, this part works well. I would like to make ffmpeg exit when the webcam stops working for some reason (right now I am testing by rebooting the webcam and ffmpeg just keeps running and doesn't exit and doesn't resume once the webcam is back up)
<JEEB>
-rw_timeout XYZ before input for TCP-based things should work; the default I think is eternal?
<tykling>
oh, that sounds promising, will try right away, thanks!
<JEEB>
see `ffmpeg -h full |grep rw_timeout` which documents on which time level that timestamp is
Nixkernal has quit [Ping timeout: 252 seconds]
function1 has joined #ffmpeg
bitoff__ has quit [Remote host closed the connection]
ZedHedTed has quit [Remote host closed the connection]
ZedHedTed has joined #ffmpeg
Scorpi has joined #ffmpeg
Jhonny2x4 has joined #ffmpeg
<Scorpi>
Hi. Is it possible to define a style when generating .ass subtitles, e.g. when converting from SRT to ASS? Like with ffmpeg -i foo.srt -o foo.ass
<Scorpi>
sorry, without the -o
<tykling>
JEEB: it seems like with -rw_timeout 1000000 it does detect it when I reboot the camera, but ffmpeg doesn't exit, it outputs some errors like "[tls @ 0x55f1eb225c40] Error in the pull function." and "[matroska,webm @ 0x55f1eb020700] Read error at pos. 1159717 (0x11b225)" and then the webcam url followed by "Input/output error". But it still keeps running.
<tykling>
sorry I have to run to a stupid meeting but I will be back later, thanks!
<tykling>
wait! no it does work, I was piping to ffplay to see if/when it froze, and it was ffplay that kept running. thanks a bunch JEEB ! :)
navi has joined #ffmpeg
ZedHedTed has quit [Quit: leaving]
function1 has quit [Ping timeout: 256 seconds]
fossdd has joined #ffmpeg
fossdd has quit [Remote host closed the connection]
function1 has joined #ffmpeg
fossdd has joined #ffmpeg
Nixkernal_ has quit [Read error: Connection reset by peer]
Nixkernal has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
ZedHedTed has joined #ffmpeg
waleee has joined #ffmpeg
epony has joined #ffmpeg
Kei_N_ has joined #ffmpeg
Kei_N has quit [Ping timeout: 255 seconds]
Kei_N_ has quit [Read error: Connection reset by peer]
waeking has quit [Read error: Connection reset by peer]
waeking1 has joined #ffmpeg
Kei_N has joined #ffmpeg
Copy_of_nrg has joined #ffmpeg
nrg has quit [Ping timeout: 252 seconds]
Copy_of_nrg is now known as nrg
zsoltiv__ has joined #ffmpeg
zsoltiv_ has quit [Ping timeout: 256 seconds]
otoburb has quit [Quit: leaving]
Nixkernal has quit [Ping timeout: 264 seconds]
minimal has joined #ffmpeg
Nixkernal has joined #ffmpeg
vincejv has quit [Quit: Bye bye! Leaving for now...]
vincejv has joined #ffmpeg
Nixkernal has quit [Excess Flood]
Nixkernal has joined #ffmpeg
<Scorpi>
Too bad. If I read the source correctly, the subtile text style seems to be hardcoded in ass.h and can not be changed at runtime.
function1 has quit [Ping timeout: 264 seconds]
function1 has joined #ffmpeg
Dotz0cat has quit [Ping timeout: 255 seconds]
Dotz0cat has joined #ffmpeg
nrg has quit [Ping timeout: 264 seconds]
foul_owl has quit [Ping timeout: 240 seconds]
nrg has joined #ffmpeg
five618480 has quit [Remote host closed the connection]
omegatron has joined #ffmpeg
five618480 has joined #ffmpeg
Dotz0cat has quit [Ping timeout: 264 seconds]
Dotz0cat has joined #ffmpeg
nrg has quit [Ping timeout: 245 seconds]
Copy_of_nrg has joined #ffmpeg
Copy_of_nrg is now known as nrg
foul_owl has joined #ffmpeg
gnucode has joined #ffmpeg
<gnucode>
hello you smart people!
sonicrules1234 has quit [Remote host closed the connection]
<gnucode>
I've got a awesome ffmpeg project, that I could use some guidance on...So daily drive the Hurd on a T43. ffmpeg runs on it, and I can record my screen with it.
<gnucode>
I would like to record cool videos of my using the Hurd, to show others that it is actually a pretty viable OS.
<gnucode>
I would love these videos to have audio, but the Hurd currently lacks an audio stack.
<gnucode>
Is there a way that I can have the Hurd send screenshots (say 2 or 5 a second) to my linux machine, which will be simultaneously recording my voice. That way I can record cool Hurd videos and have audio in them.
<gnucode>
Any ideas where I should start?
<vlt>
gnucode: You could record audio on the linux box, video on hurd and later (use ffmpeg to) join both tracks. ¯\_(ツ)_/¯
<kepstin>
honestly? you'd probably be best off getting a video capture card and recording off the laptop's vga output (usb hdmi capture cards and vga→hdmi converters are both fairly easy to come by). Then use OBS to do your recording.
ivanich has joined #ffmpeg
sonicrules1234 has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
<kepstin>
as far as doing it all with ffmpeg cli… a tricky bit is that the ffmpeg cli tool is _not_ intended as a realtime video mixer (although the multithreading work being done recently in git makes it less bad), so you _will_ run into issues if you have ffmpeg on one system listening to a network source from another system if there's any interruptions or delays in the video delivery.
<kepstin>
if you do decide to go the screenshot route, easiest way is if you have a shared network filesystem, then you can use ffmpeg screen capture with the image2 muxer with the '-update' and '-atomic_writing' options, then on the image side the input can use the image2 demuxer with the '-loop' option (don't forget to also set '-framerate'), and it'll keep re-reading the image with the same filename.
<gnucode>
vlt: I actually tried that. But somehow the video got out of sync with the audio. :(
<gnucode>
I'm guessing the video had a really slow framerate. and I couldn't figure out how to tell ffmpeg how to combine them, but preserve the video framerate.
<kepstin>
yeah, mixing audio and video captured separately is a pain because different systems will never have clocks running at the exact same speed.
<kepstin>
ffmpeg preserves video framerate and timing by default, you don't need to do anything.
<gnucode>
kepstin: I can show you the resulting video. The audio and video are out of sync. :(
Dotz0cat has quit [Ping timeout: 256 seconds]
<kepstin>
the issue is that here you need to _not_ preserve timing, but instead adjust the speed to compensate for the different clocks.
<gnucode>
kepstin: My T43 does have a VGA slot. and my T410 Linux laptop has a VGA slot too...
<gnucode>
do I still need that video card?
<kepstin>
video output and video input are completely different things that require different devices
Dotz0cat has joined #ffmpeg
hjckr has quit [Remote host closed the connection]
MetaNova has quit [Ping timeout: 264 seconds]
hjckr has joined #ffmpeg
<gnucode>
ahh.
<gnucode>
How much do you suppose a video input device might cost? The T43 is has a VGA. The T410 (linux machine) does not have an HDMI port.
MetaNova has joined #ffmpeg
<kepstin>
usb capture devices that can do hdmi input are pretty cheap now. capture devices that support vga are a bit more rare, but converters that turn vga into hdmi aren't hard to find, and a cheap one will work fine as long as you don't need to capture vga text mode.
sss1 has joined #ffmpeg
Jhonny2x4 has quit [Quit: WeeChat 4.1.2]
<gnucode>
kepstin: can you send me a link to something that might work?
<BtbN>
the most simple one would be an elgato camlink
<BtbN>
it just pretends to be a webcam, and takes HDMI input
<BtbN>
There's also ultra-cheap clone devices on the usual sites, but the quality varies greatly
Vonter has quit [Ping timeout: 268 seconds]
Vonter has joined #ffmpeg
ivanich has joined #ffmpeg
emanuele6 has quit [Quit: kernel++]
emanuele6 has joined #ffmpeg
frankplow has joined #ffmpeg
MrZeus has joined #ffmpeg
MrZeus_ has joined #ffmpeg
MrZeus has quit [Ping timeout: 264 seconds]
jlc has quit [Ping timeout: 252 seconds]
jlc has joined #ffmpeg
rvalue has quit [Ping timeout: 264 seconds]
AbleBacon has joined #ffmpeg
rvalue has joined #ffmpeg
applecuckoo has joined #ffmpeg
Jhonny2x4 has quit [Read error: Connection reset by peer]
Jhonny2x4 has joined #ffmpeg
TheSashmo has joined #ffmpeg
yoo has joined #ffmpeg
LionEagle has joined #ffmpeg
stolen has quit [Quit: Connection closed for inactivity]
Haxxa has quit [Quit: Haxxa flies away.]
Haxxa has joined #ffmpeg
applecuckoo has quit [Quit: Time to work on something else]
fling has quit [Ping timeout: 240 seconds]
stolen has joined #ffmpeg
fling has joined #ffmpeg
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
sss1 has quit [Quit: WeeChat 4.1.1]
hightower2 has joined #ffmpeg
yoo has quit [Ping timeout: 252 seconds]
rv1sr has quit []
emanuele6 has quit [Read error: Connection reset by peer]
emanuele6 has joined #ffmpeg
bitbinge has joined #ffmpeg
bitbinge has quit [Remote host closed the connection]
cristian_c has quit [Remote host closed the connection]
emanuele6 has quit [Ping timeout: 268 seconds]
emanuele6 has joined #ffmpeg
adar is now known as satellite
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
cristian_c has joined #ffmpeg
Wenbin_Chen_ has joined #ffmpeg
Wenbin_Chen has quit [Remote host closed the connection]
ZedHedTed has quit [Remote host closed the connection]
ZedHedTed has joined #ffmpeg
zmt01 has quit [Read error: Connection reset by peer]
zmt01 has joined #ffmpeg
Wenbin_Chen_ has quit [Read error: Connection reset by peer]
Wenbin_Chen_ has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
realies has quit [Read error: Connection reset by peer]
realies has joined #ffmpeg
yoo has joined #ffmpeg
iive has joined #ffmpeg
Wenbin_Chen has joined #ffmpeg
Wenbin_Chen_ has quit [Ping timeout: 264 seconds]
stolen has quit [Quit: Connection closed for inactivity]
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
emmanuelux has joined #ffmpeg
Ogobaga has quit [Read error: Connection reset by peer]
Ogobaga has joined #ffmpeg
user03 has joined #ffmpeg
user03 is now known as gchound
Jhonny2x4 has quit [Read error: Connection reset by peer]
gchound has quit [Quit: WeeChat 3.8]
hardwire has quit []
gchound has joined #ffmpeg
Faely has quit [Ping timeout: 268 seconds]
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
Wenbin_Chen_ has joined #ffmpeg
Wenbin_Chen has quit [Read error: Connection reset by peer]
Ogobaga has quit [Quit: Konversation terminated!]
user03 has joined #ffmpeg
gchound has quit [Quit: Leaving]
user03 is now known as gchound
Ogobaga has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
Ogobaga has quit [Ping timeout: 264 seconds]
Ogobaga has joined #ffmpeg
FlorianBad has joined #ffmpeg
bitbinge has joined #ffmpeg
<FlorianBad>
So if I was to pick a single pair of video + audio codecs + container today in 2024 that best quality/bitrate for web browsers, what should I pick if I'm ok with supporting ~99% of users?
<FlorianBad>
that HAS*
<furq>
h264+aac in mp4
<furq>
that's the entire list
<sonicrules1234>
^
bitbinge has quit [Remote host closed the connection]
<furq>
same as it has been for the last decade
bitbinge has joined #ffmpeg
<furq>
and probably for the next one as well
<sonicrules1234>
av1 might make it there eventually
SuicideShow has quit [Ping timeout: 264 seconds]
<FlorianBad>
hmm, ok so not vp8/9 then? (which would be the only other to consider?)
<furq>
i think it will but it'll be a good few years before you can recommend it
<furq>
the only other option is vp9+opus in webm which is less well supported on mobile and on apple in general
<sonicrules1234>
Yeah
<furq>
it is slightly better but not so much that it's worth offering it as an alternative
<furq>
unless you're at youtube's scale
<furq>
and also you are youtube and you've invested a lot of money in vp9
<FlorianBad>
ok I see, and I'm assuming the quality difference between H264 and VP9 is not noticeable in a blind test?
SuicideShow has joined #ffmpeg
<FlorianBad>
ah, already just answer my question
<furq>
depends on a lot of things but x264 still performs well
<FlorianBad>
Because on one of my website it will be for music videos, so I'm trying to get best quality possible
<furq>
but also a lot of phones won't decode it in hardware
<furq>
whereas basically anything will hardware decode h264 now
LionEagle has quit [Ping timeout: 245 seconds]
<FlorianBad>
Ok, now what if I decide to make 2 formats then? (because after all the only extra work for me will be few extra lines of script for encoding what I upload) Would a good logic be: VP9+OPUS in WEBM for everything, except for all mobile devices, in which case H264+AAC in MP4?
<furq>
webm with fallback to mp4 makes sense
<furq>
but you should probably test x264 against libvpx first to see what the bitrate/quality tradeoff is like for your source material
<furq>
if you want archival quality 1080p then that's where x264 does best
<furq>
libvpx is pretty slow so if it only shaves off 100kbps or whatever then it's a bad deal
<FlorianBad>
But I will have to detect that with user-agent though, because I feed the video object manually via the MediaSource API
<FlorianBad>
ah! OK I See
<FlorianBad>
well then no I'll stick with mp4 only then
<FlorianBad>
Also I always wondered who will see the difference with a blind test... Many times there's a hype but in reality it's super hard to tell. I remember this blind test with stradivarius violins vs "good" today's violins, and none of the experts could tell :D