Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
holgersson has quit [Quit: “Format C:........[Done]“]
holgersson has joined #ffmpeg
clarkh_ has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
jagannatharjun has joined #ffmpeg
junaid_ has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
rv1sr has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
Fischmiep has quit [Ping timeout: 255 seconds]
Fischmiep has joined #ffmpeg
markizano has quit [Ping timeout: 258 seconds]
duderonomy has quit [Read error: Connection reset by peer]
vampirefrog has joined #ffmpeg
duderonomy has joined #ffmpeg
ivanich has joined #ffmpeg
kurosu has joined #ffmpeg
Nixkernal has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
colona has quit [Ping timeout: 255 seconds]
colona has joined #ffmpeg
sayurc has quit [Quit: WeeChat 4.0.5]
Shuriko has quit [Ping timeout: 248 seconds]
clarkh_ has quit [Quit: Connection closed for inactivity]
raven has joined #ffmpeg
Kroko has joined #ffmpeg
Kroko has quit [Remote host closed the connection]
Kroko has joined #ffmpeg
raven has quit [Client Quit]
Kroko has quit [Remote host closed the connection]
junaid_ has joined #ffmpeg
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AbleBacon has quit [Read error: Connection reset by peer]
junaid_ has quit [Remote host closed the connection]
lavaball has joined #ffmpeg
vtorri64 has joined #ffmpeg
darkapex has quit [Ping timeout: 258 seconds]
darkapex has joined #ffmpeg
Guest33 has joined #ffmpeg
<Guest33>
hello
Guest33 has quit [Client Quit]
Volgaar has joined #ffmpeg
junaid_ has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
madwoota has quit [Remote host closed the connection]
madwoota has joined #ffmpeg
madwoota has quit [Changing host]
madwoota has joined #ffmpeg
Blacker47 has joined #ffmpeg
junaid_ has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
clarkh has joined #ffmpeg
countach202020 has quit [Ping timeout: 245 seconds]
navi has joined #ffmpeg
bitbinge has joined #ffmpeg
FH_thecat has joined #ffmpeg
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg
vtorri64 has quit [Ping timeout: 255 seconds]
minimal has joined #ffmpeg
rsx has joined #ffmpeg
palasso has joined #ffmpeg
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg
Kroko has joined #ffmpeg
beaver has joined #ffmpeg
palasso has quit [Quit: I am not a quitter!]
bitbinge has quit [Ping timeout: 252 seconds]
waleee has joined #ffmpeg
junaid_ has joined #ffmpeg
gust82 has quit [Remote host closed the connection]
gust82 has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
Shine_ has joined #ffmpeg
countach202020 has joined #ffmpeg
Jan\ has quit [Read error: Connection reset by peer]
derpydoo has joined #ffmpeg
bitbinge has joined #ffmpeg
vlm has joined #ffmpeg
Kroko has quit [Remote host closed the connection]
markizano has joined #ffmpeg
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg
Mudb0y_ has quit [Quit: quit]
Mudb0y has joined #ffmpeg
Shine_ has quit [Read error: Connection reset by peer]
junaid_ has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
five6184 has quit [Remote host closed the connection]
five6184 has joined #ffmpeg
hightower3 has joined #ffmpeg
hightower2 has quit [Ping timeout: 258 seconds]
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
ivanich has quit [Ping timeout: 264 seconds]
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #ffmpeg
Shine_ has joined #ffmpeg
Shine_ has quit [Ping timeout: 258 seconds]
Kruppt has joined #ffmpeg
waleee has quit [Ping timeout: 272 seconds]
luc4 has joined #ffmpeg
waleee has joined #ffmpeg
Volgaar has quit [Remote host closed the connection]
Volgaar has joined #ffmpeg
waleee has quit [Ping timeout: 252 seconds]
countach202020 has quit [Ping timeout: 258 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
duderonomy has joined #ffmpeg
rsx has quit [Quit: rsx]
AbleBacon has joined #ffmpeg
l4yer has quit [Ping timeout: 258 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
bitbinge has quit [Ping timeout: 252 seconds]
luc4 has quit [Ping timeout: 264 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
junaid_ has joined #ffmpeg
bitbinge has joined #ffmpeg
<vlt>
Hello everyone :) From -filter:v drawtext=text=foo:box=1:boxw=200 I get "Error loading value for option 'oxw' from file '300'". This is "ffmpeg version 6.0-static". Any idea what might be going on here?
junaid_ has quit [Remote host closed the connection]
dgcampea has quit [Remote host closed the connection]
<vlt>
(correction: I get the same number in the error mesage as the specified boxw parameter.)
[R]x has quit [Quit: One of God's own prototypes : a high powered mutant of some kind never even considered for mass production. Too weird to live and too rare to die.]
ishanjain has quit [Quit: Peace.]
faxmodem has quit [Quit: so long and thanks for all the fish]
low-key has quit [Read error: Connection reset by peer]
haasn has quit [Ping timeout: 245 seconds]
low-key has joined #ffmpeg
Ekho has joined #ffmpeg
haasn has joined #ffmpeg
Kruppt has quit [Read error: Connection reset by peer]
ParkerR has joined #ffmpeg
<manwithluck>
I brought cheap $130 moto g22 a while back, and it has moderate samsung camera sensor from samsung a23
<manwithluck>
so the sensor is good, and opencamera records at default around 16-18mbit h264
duderonomy has joined #ffmpeg
<manwithluck>
but the video is really very bad by any standard, basically it all looks like passed via smooth edge filter, which are both anyway disabled in camera 2 api in opencamera
<manwithluck>
so I saw on facebook many people record videos like this, with just huge shining smoothed white edges on grass, for example
<manwithluck>
while photos are excellent, especially during day, outdoors, they are very good
<manwithluck>
very high res, and as for modern sensor it's ok
<manwithluck>
so I wanted to say, that mobiles have this cheap encoder but they have enough power to encode in software
<manwithluck>
like 8 cores should be enough I guess for average encoded and it should be better then this very crappy hardware encoder
<manwithluck>
you know any x264 android recorder, just like players who use ffmpeg instead of soc api
Muimi has joined #ffmpeg
<manwithluck>
like i know it's not much power in this mediatek
<manwithluck>
but this hardware one is poorer than x264 cpu power of this phone
emanuele6 has joined #ffmpeg
Shine_ has joined #ffmpeg
<manwithluck>
I am reading this camera support it somewhat says maybe it can capture raw frames
<manwithluck>
but I guess android not really supporting it, such a shame, they dont want to show their codec is $0.5
<manwithluck>
actually it was $10 up for this camera
Vonter has joined #ffmpeg
junaid_ has joined #ffmpeg
Capstan has joined #ffmpeg
<Trel>
Are you just trying to convert video on Android or are you trying to get the camera to encode differently, because if it's the former, I have an answer for you.
<Trel>
(The answer being F-Droid to install Termux, then install ffmpeg in Termux)
Capstan has quit [Quit: Client closed]
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
billchenchina has quit [Remote host closed the connection]
billchenchina has joined #ffmpeg
<vlt>
vlt: The boxw option from the documentation was just recently (2023-05) added to vf_drawtext.c, your 6.0 release is from 2023-02.
lusciouslover has quit [Remote host closed the connection]
lusciouslover has joined #ffmpeg
clarkh1 has joined #ffmpeg
lusciouslover has quit [Ping timeout: 240 seconds]
clarkh has quit [Ping timeout: 260 seconds]
junaid_ has quit [Ping timeout: 252 seconds]
lavaball has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 255 seconds]
junaid_ has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
lusciouslover has joined #ffmpeg
billchenchina has quit [Remote host closed the connection]
waleee has joined #ffmpeg
Haripesch has quit [Quit: Client closed]
Haripesch has joined #ffmpeg
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ffmpeg
five6184 has quit [Remote host closed the connection]
five6184 has joined #ffmpeg
yazooq has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
emanuele6 has quit [Quit: WeeChat 4.0.5]
___nick___ has joined #ffmpeg
emanuele6 has joined #ffmpeg
Sakura`Kinomoto has quit [Ping timeout: 240 seconds]
<ishan>
hi
<ishan>
I had asked this earlier but it got lost. Is there any thing I can do with ffmpeg here to correct video duration? this is important video data for me and the nvr some how made a mess. :/ http://pastie.org/p/6MW91khzMfGsHXRknP5nyV/raw
<ishan>
At the top, it says video length is 50 minutes when it's actually ~5 minutes
Sakura`Kinomoto has joined #ffmpeg
<BtbN>
What output is that? A lot of stuff just guesses duration based on average bitrate and file size
<BtbN>
which can fail spectacularily
<ishan>
BtbN: This is output from mediainfo. VLC and all the other players I have used report this as a 50 minute video
lusciouslover has quit [Ping timeout: 245 seconds]
<ishan>
but the image quality after converting to jpg and back is not slightly worse
<BtbN>
And how did this file come to be?
<BtbN>
pointlessly transcoding the video, twice, will trash the quality, yes
<ishan>
BtbN: I am still not sure. I use shinobi as NVR. It's using ffmpeg version 4.4.2-0ubuntu0.22.04.1 and it runs ffmpeg like this http://pastie.org/p/6aGuNsVNeG56bZoQl634qu
<ishan>
it has been outputting videos like this for last few weeks
<BtbN>
Google says to add -fps_mode drop as output option (after the -i) if that happens. Though it worked without for me many times before.
<ishan>
Tried adding '-fps_mode drop' and still the same
<BtbN>
Then I'd guess your input file is somehow damaged
<BtbN>
If there is no audio in there that has to stay in sync, you can extract the raw h264 stream, and then mux it again. Just need to manually take note of the framerate.
<ishan>
there is audio and it's okay even if it's a out of sync by a second
<BtbN>
that guide instructs you to re-encode the video _twice_, which is just bad and bad advice
<ishan>
oh okay
<ishan>
BtbN: Can you share the commands please ? I have no idea what you meant exactly
<BtbN>
I don't have any ready made commands
<ishan>
Okay i'll look it up
<BtbN>
Does -reset_timestamps 1 as output option work?
<ishan>
ran `ffmpeg -i 2023-10-03T08-15-01.mp4 -fps_mode drop -reset_timestamps 1 -map 0 -c copy output.mp4` and it does not
<BtbN>
Hm, you need to pass it to the ffmpeg process creating the m3u8 it seems
<BtbN>
so that each segment has valid timestamps on its own
<BtbN>
You can probably craft something with the setts bitstream filter as well. Like, substract the first timestamp from all timestamps.
<ishan>
thank you but for now I am trying to fix the ~18 hours of videos I really want. I am not forking/messing with shinobi for this, not right now any way. if shinobi continues to give too much trouble then i'll probably switch to some thing else
<BtbN>
So setts=ts=TS-STARTPTS
<BtbN>
for both audio and video
<ishan>
extracting h264 data, putting it back into mp4 and then adding audio completely wrecks audio synchronisation. I thought it would be a second or two off but nope, it's 5-8 seconds off. Original video was 4m59s this video is 5m
<ishan>
But the video quality looks okay so this is much more preferably
<ishan>
preferable
<ishan>
Thank you BtbN!
<BtbN>
you want to always have -c copy, in every command
<BtbN>
not specifying it will re-encode and degrade the quality, potentially a lot
<furq>
i was going to suggest -i foo.mp4 -c:v copy -c:a aac bar.mp4 since mediainfo is showing the audio stream as having the wrong duration
<furq>
which isn't ideal but if you're going to reencode the audio anyway
Faely has quit [Remote host closed the connection]
<ishan>
furq: audio stream has the right timestamp of 4m59s. I ran ffmpeg -i 2023-10-03T08-15-01.mp4 -c:v copy -c:a aac new.mp4 and new.mp4 video duration is still 50 minutes
Faely has joined #ffmpeg
<furq>
fun
<ishan>
audio from these cameras is not super great any way because of wind but I still want to retain it if I can so reencoded or out of sync, it's okay. video was most important
<BtbN>
Maybe try this whole thing with not-4.4?
<BtbN>
Maybe it just works if you use an up to date version
<ishan>
BtbN: Oh right sorry. ffmpeg 4.4 is on the shinobi machine. I am running all these commands with ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
<BtbN>
that's still over half a year old at this point
<ishan>
Okay then i'll update and try again
<ishan>
arch has ffmpeg-2:6.0-13. i'll update to it and retry
Vonter has quit [Ping timeout: 258 seconds]
<BtbN>
that still looke liks 6.0 to me. Not sure what 13 means
<BtbN>
you'll want latest master
<BtbN>
Chances aren't too great that it works on master though, vs. 6.0
<BtbN>
I'm not aware of any major changes with timestamp handling
<ishan>
-13 comes from some arch linux versioning scheme
<ishan>
Okay then I'd rather not try right now.. I have too many tabs open. there is a new nvidia driver update, linux kernel update and It'll probably force me to reboot machine :/
kurosu has joined #ffmpeg
waleee has quit [Ping timeout: 258 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ishan>
Shinobi devs suggested, in the recorder settings I set audio to aac from copy and now it's outputting videos with correct duration of 5 minutes
duderonomy has joined #ffmpeg
jemius has joined #ffmpeg
<BtbN>
The aac encoder in 4.4 is pretty bad though, so make sure to throw enough bitrate at it
<furq>
did it get improved much since 4.4
<BtbN>
Yeah
<ishan>
i'll upgrade ffmpeg on that machine
Arokh has quit [Quit: //ThisShouldNeverHappen]
Arokh has joined #ffmpeg
waleee has joined #ffmpeg
jemius has quit [Quit: Leaving]
derpydoo has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ffmpeg
navi has quit [Quit: WeeChat 4.0.4]
vampirefrog has quit [Ping timeout: 264 seconds]
madwoota has quit [Ping timeout: 272 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
minimal has quit [Quit: Leaving]
duderonomy has joined #ffmpeg
\\Mr_C\\ has joined #ffmpeg
madwoota has joined #ffmpeg
madwoota has quit [Changing host]
madwoota has joined #ffmpeg
HarshK23 has quit [Quit: Connection closed for inactivity]
countach202020 has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
whupdup has quit [Quit: Going offline, see ya! (www.adiirc.com)]
kurosu has quit [Quit: Connection closed for inactivity]