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
Haxxa has joined #ffmpeg
LunaLovegood has quit [Ping timeout: 255 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
kuba-orlik0397 has joined #ffmpeg
HarshK23 has quit [Quit: Connection closed for inactivity]
lavaball has quit [Remote host closed the connection]
lucasta has joined #ffmpeg
ferreum has quit [Quit: bye]
ferreum has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
YuGiOhJCJ has joined #ffmpeg
minimal has quit [Quit: Leaving]
function1 has quit [Ping timeout: 255 seconds]
function1 has joined #ffmpeg
waleee has quit [Ping timeout: 252 seconds]
jarthur has quit [Ping timeout: 260 seconds]
jarthur_ has joined #ffmpeg
lucasta has quit [Remote host closed the connection]
tranzistor has quit [Ping timeout: 260 seconds]
tranzistor has joined #ffmpeg
kuba-orlik0397 has quit [Read error: Connection reset by peer]
kuba-orlik0397 has joined #ffmpeg
jarthur_ has quit [Quit: jarthur_]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
ahc has joined #ffmpeg
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
lemourin has joined #ffmpeg
yans has quit [Remote host closed the connection]
rex has joined #ffmpeg
<rex> hi y'all. I'm struggling to copy the language tags and the chapters when converting a bluray to a mkv
<rex> This is the command I'm trying: ffmpeg -i bluray:folder -map 0:0 -map 0:5 -map 0:s -map_chapters 0 -map_metadata 0 -c copy -movflags use_metadata_tags -vf scale=1280:-2 -c:v libsvtav1 -crf 45 -preset 8 -g 120 -pix_fmt yuv420p -c:a libopus -b:a 64k -ac 2 ~/output.mkv
<rex> but when I open output.mkv I don't see chapters or the language tags
jarthur has joined #ffmpeg
jarthur has quit [Quit: jarthur]
Suchiman has quit [Quit: Connection closed for inactivity]
nitrix has quit [Quit: ZNC 1.8.2 - https://znc.in]
nitrix has joined #ffmpeg
jarthur has joined #ffmpeg
jarthur has quit [Client Quit]
jarthur has joined #ffmpeg
jarthur has quit [Quit: jarthur]
lexano has joined #ffmpeg
jarthur has joined #ffmpeg
<{{{{{}}}}}> so i've tried these two options:
<{{{{{}}}}}> ffmpeg -f v4l2 -i /dev/video0 -c:v libx264  -preset ultrafast -f tee -map 0:v  "live.mp4|rtsp://127.0.0.1:8554/cam"
<{{{{{}}}}}> ffmpeg -f v4l2 -i /dev/video0 -c:v libx264  -preset ultrafast -f tee -map 0:v  "live.mp4|[f=rtsp] rtsp://127.0.0.1:8554/cam"
<{{{{{}}}}}> what am i doing wrong
<{{{{{}}}}}> i wanted it to tee/output only video to live.mp4 as a file and rtsp
<{{{{{}}}}}> eventually i want it to also segment,no idea where i'd define that either
housemate has joined #ffmpeg
HarshK23 has joined #ffmpeg
FlorianBad has quit [Remote host closed the connection]
FlorianBad has joined #ffmpeg
<Curid> {{{{{}}}}}: what's the goal, are you making a VMS?
jarthur has quit [Quit: jarthur]
Javabean has quit [Quit: well, shoot]
NaviTheFairy has quit [Quit: Oh no. A thing broke.]
NaviTheFairy has joined #ffmpeg
Javabean 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]]
xx has joined #ffmpeg
Icedream has quit [Quit: A lol made me boom.]
Icedream has joined #ffmpeg
Hobbyboy has quit [Quit: The BNC has broken!]
Hobbyboy has joined #ffmpeg
coldfeet has joined #ffmpeg
AbleBacon has quit [Read error: Connection reset by peer]
<bpmedley> {{{{{}}}}}: May I ask why you don't want to use mediamtx to do the mp4 segmenting?
lavaball has joined #ffmpeg
Tinos has quit [Ping timeout: 250 seconds]
coldfeet has quit [Remote host closed the connection]
ahc has quit [Ping timeout: 268 seconds]
theobjectivedad has quit [Ping timeout: 260 seconds]
theobjectivedad has joined #ffmpeg
nigetilly has joined #ffmpeg
<{{{{{}}}}}> bpmedley, because i didn't know it can do that lol
<{{{{{}}}}}> i'm new to this, everyone assumes i know stuff lol
<bpmedley> {{{{{}}}}}: All mentioned it a few hours ago.
<bpmedley> *I mentioned
<bpmedley> If you download the mediamtx release, edit the .yml file and change recording to yes.
nigetilly has quit [Ping timeout: 252 seconds]
<Curid> I have a script you can use to generate a static site to view the recordings https://codeberg.org/Curid/vps-video-viewer/src/branch/master/vps-video-viewer.sh
<{{{{{}}}}}> bpmedley, when i say segmenting, i meant record video files every N minutes using files with a date-time stamp in the name
<{{{{{}}}}}> the recording should be a "tee" of what i'm serving on rtmp
<{{{{{}}}}}> Curid, i don't know what a vms is, i'm just trying to capture video from /dev/video0, serve it over rtmp and also keep a timestampped+rotated archive of videos
<bpmedley> {{{{{}}}}}: mediamtx worked for me and rtmp, did you look over the recording options, in the .yml?
<{{{{{}}}}}> bpmedley, no i just noticed them. i only heard of mediamtx earlier today
housemate has joined #ffmpeg
<{{{{{}}}}}> bpmedley, you're a life saver mate, it seems to be working!
<bpmedley> Nice!!
<{{{{{}}}}}> i don't have to write wonky scripts now lol
<{{{{{}}}}}> tyvm
housemate has quit [Client Quit]
KDDLB has quit [Quit: The Lounge - https://thelounge.chat]
<Curid> you don't need nginx-rtmp either now btw
KDDLB has joined #ffmpeg
HerbY_NL has joined #ffmpeg
<{{{{{}}}}}> Curid, thanks, yeah, it seems to be working fine on it's own
Tinos has joined #ffmpeg
<{{{{{}}}}}> although 10min = 1GB is rough lol. maybe i can play with the bitrate and resolution
<Curid> or only record when there is something interesting to record
<Curid> wait, 10min = 1GB is 1.7MB/second
<Curid> are you recording raw video or something?
<Curid> should be like 300x smaller
<furq> i think it should probably be more than 44kbps
KaitoDaumoto has quit [Ping timeout: 268 seconds]
<{{{{{}}}}}> i didn't specify a bitrate but i did specify libx264
<{{{{{}}}}}> ffmpeg -f v4l2 -i /dev/video0 -c:v libx264  -preset ultrafast -f rtsp rtsp://127.0.0.1:$RTSP_PORT/cam
<Curid> nvm MB/s is normal https://support.google.com/youtube/answer/1722171?hl=en#zippy=%2Cvideo-codec-h%2Cbitrate
<Curid> `-preset ultrafast` uses more space right?
<furq> not necessarily
<furq> but you shouldn't use it unless you really have to
<{{{{{}}}}}> should i avoid a preset alltogether or would 'slow' be ideal?
<furq> depends how fast your cpu is
<furq> use the slowest one that can still hit realtime and isn't burdensome to have running all the time
<furq> then change -crf and -maxrate/-bufsize to control the bandwidth
Ox7C5 has joined #ffmpeg
<{{{{{}}}}}> i assumed faster meant more cpu usage
<furq> no it means more fps
function1 has quit [Ping timeout: 246 seconds]
function1 has joined #ffmpeg
rv1sr has joined #ffmpeg
housemate has joined #ffmpeg
housemate has quit [Remote host closed the connection]
coldfeet has joined #ffmpeg
rvalue- has joined #ffmpeg
rvalue has quit [Ping timeout: 268 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
rvalue- is now known as rvalue
kuba-orlik0397 has joined #ffmpeg
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kei_N has quit [Read error: Connection reset by peer]
Kei_N has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Forza has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Forza has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
xx has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Some_Person has quit [Quit: ZNC 1.8.2 - https://znc.in]
kuba-orlik0397 has quit [Remote host closed the connection]
Some_Person has joined #ffmpeg
kuba-orlik0397 has joined #ffmpeg
chainik has quit [Quit: (╯°□°)╯︵ ┻━┻]
housemate has joined #ffmpeg
BSaboia has quit [Quit: ZNC - https://znc.in]
BSaboia 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]
s55 has quit [Read error: Connection reset by peer]
l4yer has quit [Remote host closed the connection]
Suchiman has joined #ffmpeg
s55 has joined #ffmpeg
housemate has quit [Read error: Connection reset by peer]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
l4yer has joined #ffmpeg
mrelcee has quit [Ping timeout: 246 seconds]
housemate has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
<rex> I'm sorry, I lost my internet connection, if someone answered please repost
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
housemate has quit [Read error: Connection reset by peer]
housemate has joined #ffmpeg
waleee has joined #ffmpeg
iliv 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]]
mrelcee has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
emanuele6 has quit [Remote host closed the connection]
vlm has joined #ffmpeg
emanuele6 has joined #ffmpeg
waleee has quit [Ping timeout: 256 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
lavaball has joined #ffmpeg
kuba-orlik0397 has joined #ffmpeg
rsx has joined #ffmpeg
Sakura`Kinomoto has quit [Remote host closed the connection]
realies has quit [Quit: ~]
realies has joined #ffmpeg
Sakura`Kinomoto has joined #ffmpeg
coldfeet has quit [Quit: leaving]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
function1 has quit [Ping timeout: 256 seconds]
<rex> thx realies, too bad I didn't miss an answer :(
<realies> rex, you can try a LLM: ffmpeg -i bluray:folder -map 0:0 -map 0:5 -map 0:s -map_chapters 0 -map_metadata 0 -c copy -movflags use_metadata_tags -vf scale=1280:-2 -c:v libsvtav1 -crf 45 -preset 8 -g 120 -pix_fmt yuv420p -c:a libopus -b:a 64k -ac 2 -metadata:s:a:0 language=eng -metadata:s:v:0 language=eng -metadata:s:s:0 language=eng ~/output.mkv
<realies> > Explicitly set the language metadata for each stream using -metadata:s:a:0 language=eng, -metadata:s:v:0 language=eng, and -metadata:s:s:0 language=eng.
<realies> > Ensure chapters are mapped using -map_chapters 0.
vincejv has quit [Remote host closed the connection]
<rex> what's an LLM?
<rex> I have map_chapters 0 in the command
<furq> there's an open bug report for chapter support in the bluray demuxer
<furq> so i guess it doesn't work
<rex> I see
<rex> then this is also why the tags aren't copied?
<furq> mkvtoolnix will do it
<furq> probably
<rex> realies: thx but manual setting is not an option since there are a lot of different subtitles with different languages
<realies> rex, large language model, like llama3, claude, gpt
<rex> oh you meant to ask an ai
<realies> check if the other tool furq mentioned can do it, otherwise you might have to script something to read the chapters and create the parameters for the command
<realies> sure, ask an 'ai'
<realies> it's more like a large text dictionary with some attention and relational capacity :)
<rex> I will look into mkvtoolnix, thx
<furq> you should be able to use the bluray as an external chapter source in mkvtoolnix
<furq> the metadata might be more complicated
function1 has joined #ffmpeg
<rex> is the bluray format so complicated? To me a as a user it seems like a trivial/common task
five618480330 has joined #ffmpeg
<furq> the bug report hasn't been looked at for 10 years
<furq> so i guess it's just nobody has cared enough
five61848033 has quit [Ping timeout: 268 seconds]
five618480330 is now known as five61848033
<rex> I see
<rex> thx a lot I wasted so much time googling and trying parameters
System_Error has quit [Ping timeout: 260 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
<rex> oh mkvtoolnix can only remux? I would need to run ffmpeg afterwards again?
<furq> that's why i said to use it as an external chapter source
<rex> oh now I get it
<furq> so you can add the chapters to the file you already encoded
System_Error has joined #ffmpeg
<rex> ok
<dostoyevsky2> Are there cheap codecs you could reencode a video to (e.g. at the expense of using more disk space), if you have limited cpu and no hardware acceleration?
<furq> limited cpu for encoding or decoding
<dostoyevsky2> well, lets say you wanted to use "-ss" and "-t" to extract something from an mp4 file... for those options to work accurately you'd need to reencode the video, so the mp4 decoding you cannot change but for the target you could maybe use an encoder that doesn't demand a lot of the cpu
<furq> you're probably better off just using different x264 options
<CounterPillow> -preset veryfast or -preset ultrafast
<furq> or use whatever that thing is called that only reencodes the first and last gop and copies the rest
<furq> or do that manually but that's tricky to get right
coldfeet has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
<dostoyevsky2> I guess h.264 is the fastest encoder (I guess hw decoding is more common though) these days because it has so much support in hardware and even with just x264 it's optimized for the latest SIMD operations
<furq> mostly because it has good multithreading and the older codecs don't
<furq> but also those things
HerbY_NL has joined #ffmpeg
<dostoyevsky2> Ah, I thought that every codec works like: Chunk the video, and then use that compression on that block of video, which is inherently easy to parallelize (working on several chunks at the same time)... but I guess it can be hairy in practice if the old codecs weren't really written with multiple cores in mind
minimal has joined #ffmpeg
<dostoyevsky2> I do remember though that sometimes videos seem to chunk dynamically when the frame to frame differences become too large, e.g. when the scene changes... so that way of chunking would be harder to parallelize
Livio has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kuba-orlik0397 has joined #ffmpeg
SkizNet has quit [Ping timeout: 264 seconds]
five618480333 has joined #ffmpeg
five61848033 has quit [Ping timeout: 240 seconds]
five618480333 is now known as five61848033
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
elvis_a_presley has quit [Quit: smoke-bomb ; grapple-hook]
elvis_a_presley has joined #ffmpeg
lucasta has joined #ffmpeg
realies has quit [Quit: ~]
Vonter has joined #ffmpeg
Livio has quit [Ping timeout: 252 seconds]
mven974 has joined #ffmpeg
System_Error has quit [Quit: Leaving]
mven97 has quit [Ping timeout: 240 seconds]
mven974 is now known as mven97
System_Error has joined #ffmpeg
HerbY_NL has joined #ffmpeg
HerbY_NL has quit [Client Quit]
HerbY_NL has joined #ffmpeg
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…]
realies has joined #ffmpeg
lucasta has quit [Remote host closed the connection]
lmat has quit [Ping timeout: 240 seconds]
jarthur has joined #ffmpeg
Narrat has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
rsx has quit [Quit: rsx]
HerbY_NL 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
AbleBacon has joined #ffmpeg
jarthur has quit [Ping timeout: 260 seconds]
Livio has joined #ffmpeg
jarthur has joined #ffmpeg
sm1999 has quit [Quit: WeeChat 4.4.0-dev]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
sm1999 has joined #ffmpeg
Risk64 has joined #ffmpeg
iliv has quit [Ping timeout: 252 seconds]
Risk64 has quit [Quit: Risk64]
xerox has quit [Ping timeout: 252 seconds]
xerox has joined #ffmpeg
Polochon_street has quit [Quit: ZNC 1.9.0 - https://znc.in]
Polochon_street has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
halvut has joined #ffmpeg
function1 has quit [Ping timeout: 264 seconds]
function1 has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Muimi has joined #ffmpeg
HerbY_NL has joined #ffmpeg
minimal has quit [Quit: Leaving]
darkapex has quit [Remote host closed the connection]
darkapex has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
emanuele6 has quit [Read error: Connection reset by peer]
emanuele6 has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
Galisma has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
halvut has quit [Ping timeout: 252 seconds]
sentriz has quit [Read error: Connection reset by peer]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
sentriz has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
Galisma has quit [Quit: Konversation terminated!]
sentriz has quit [Ping timeout: 255 seconds]
sentriz has joined #ffmpeg
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
function1 has quit [Ping timeout: 252 seconds]
rv1sr has quit []
vlm has quit [Quit: Leaving]
function1 has joined #ffmpeg
SuicideShow has quit [Ping timeout: 246 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
jtgd has quit [Ping timeout: 268 seconds]
SuicideShow has joined #ffmpeg
yans has joined #ffmpeg
SkizNet has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
xoip has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
quidnunc has joined #ffmpeg
GNU_world has joined #ffmpeg
archivist99 has quit [Ping timeout: 264 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
function1 has quit [Ping timeout: 264 seconds]
function1 has joined #ffmpeg
squeaktoy has quit [Ping timeout: 268 seconds]
squeaktoy has joined #ffmpeg
quidnunc has quit [Remote host closed the connection]
jarthur has quit [Quit: jarthur]
Livio has quit [Ping timeout: 264 seconds]
kuba-orlik0397 has quit [Remote host closed the connection]
kuba-orlik0397 has joined #ffmpeg
yans has quit [Quit: Let us play... Hide and Slay!]
Ox7C5 has quit [Quit: Lost terminal]
Muimi has joined #ffmpeg
mrelcee has quit [Ping timeout: 256 seconds]