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
crossby1004 has joined #ffmpeg
crossby1004 has quit [Client Quit]
five618480339173 has joined #ffmpeg
five61848033917 has quit [Ping timeout: 245 seconds]
five618480339173 is now known as five61848033917
Unit640 has quit [Quit: Leaving]
ewomer has quit [Quit: WeeChat 4.4.2]
ewomer has joined #ffmpeg
wobbol has quit [Ping timeout: 245 seconds]
<MisterMinister> BtbN: when running 32 cameras on the same saerver every core counts ))
iive has quit [Quit: They came for me...]
lusciouslover has quit [Ping timeout: 264 seconds]
lusciouslover has joined #ffmpeg
ewomer has quit [Read error: Connection reset by peer]
Muimi has joined #ffmpeg
Muimi has quit [Client Quit]
psykose has quit [Remote host closed the connection]
psykose has joined #ffmpeg
intrac has quit [Ping timeout: 252 seconds]
EmleyMoor has quit [Ping timeout: 252 seconds]
intrac has joined #ffmpeg
Marth64 has quit [Quit: Leaving]
iconoclasthero has quit [Ping timeout: 264 seconds]
iconoclasthero has joined #ffmpeg
ShadowJK has joined #ffmpeg
ShadowJK has quit [Remote host closed the connection]
ShadowJK has joined #ffmpeg
rex has quit [Ping timeout: 260 seconds]
rex has joined #ffmpeg
Marth64 has joined #ffmpeg
StephenLynx has quit [Quit: Leaving]
Suchiman has quit [Quit: Connection closed for inactivity]
nitrix is now known as nitrix-or-treat
MisterMinister has quit [Remote host closed the connection]
emmanuelux has quit [Quit: au revoir]
Blacker47 has joined #ffmpeg
nitrix-or-treat is now known as nitrix
FH_thecat has quit [Quit: Leaving]
rv1sr has joined #ffmpeg
pyre has quit [Read error: Connection reset by peer]
pyre has joined #ffmpeg
FH_thecat has joined #ffmpeg
DPA has quit [Ping timeout: 252 seconds]
cmc has quit [Remote host closed the connection]
cmc has joined #ffmpeg
lavaball has joined #ffmpeg
j45 has quit [Ping timeout: 248 seconds]
j45 has joined #ffmpeg
Suchiman has joined #ffmpeg
x_x has joined #ffmpeg
lusciouslover has quit [Ping timeout: 260 seconds]
lusciouslover has joined #ffmpeg
Sketch has quit [Ping timeout: 260 seconds]
evilscrewws has joined #ffmpeg
microlappy has joined #ffmpeg
Teraii_ has joined #ffmpeg
Teraii has quit [Ping timeout: 252 seconds]
Teraii_ is now known as Teraii
lavaball has quit [Remote host closed the connection]
Sketch has joined #ffmpeg
microlappy has quit [Quit: Konversation terminated!]
lavaball has joined #ffmpeg
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ffmpeg
duskmoss has quit [Ping timeout: 260 seconds]
x_x has quit [Remote host closed the connection]
duskmoss has joined #ffmpeg
x_x has joined #ffmpeg
delthas has joined #ffmpeg
ewomer has joined #ffmpeg
Sketch has quit [Ping timeout: 264 seconds]
ewomer has quit [Quit: WeeChat 4.4.2]
Sketch has joined #ffmpeg
MoC has joined #ffmpeg
jprjr has quit [Ping timeout: 248 seconds]
jprjr has joined #ffmpeg
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
nigetilly has joined #ffmpeg
rvalue has left #ffmpeg [#ffmpeg]
rvalue has joined #ffmpeg
zsoltiv_ has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
mikehu44 has quit [Ping timeout: 248 seconds]
minimal has joined #ffmpeg
ewomer has joined #ffmpeg
turlando has quit [Ping timeout: 252 seconds]
faxmodem has quit [Quit: so long and thanks for all the fish]
faxmodem has joined #ffmpeg
turlando has joined #ffmpeg
mikehu44 has joined #ffmpeg
faxmodem has quit [Quit: so long and thanks for all the fish]
faxmodem has joined #ffmpeg
<BtbN> yes? And why then waste an entire core to run some simple logo fade-in via a browser?
mikehu44 has quit [Ping timeout: 245 seconds]
nigetilly has quit [Quit: Konversation terminated!]
turlando has quit [Ping timeout: 272 seconds]
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg
Dotz0cat has quit [Ping timeout: 245 seconds]
lucasta has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
StephenLynx has joined #ffmpeg
evilscrewws has quit [Quit: Leaving]
System_Error has joined #ffmpeg
MoC has quit [Quit: Konversation terminated!]
iive has joined #ffmpeg
lavaball has joined #ffmpeg
ewomer has quit [Quit: WeeChat 4.4.2]
Sketch has quit [Ping timeout: 260 seconds]
JanC has joined #ffmpeg
JanC is now known as Guest1081
Guest1081 has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
ewomer has joined #ffmpeg
ewomer has quit [Client Quit]
ewomer has joined #ffmpeg
Sketch has joined #ffmpeg
lucasta has quit [Quit: Leaving]
Dagger has quit [Ping timeout: 265 seconds]
Dagger has joined #ffmpeg
ewomer has quit [Quit: WeeChat 4.4.2]
ewomer has joined #ffmpeg
Sketch has quit [Ping timeout: 272 seconds]
coldfeet has joined #ffmpeg
ewomer has quit [Quit: WeeChat 4.4.2]
Sketch has joined #ffmpeg
jemius has joined #ffmpeg
llyyr has quit [Quit: Quit]
yans has joined #ffmpeg
Sketch has quit [Ping timeout: 245 seconds]
vincejv has quit [Ping timeout: 265 seconds]
llyyr has joined #ffmpeg
Sketch has joined #ffmpeg
nrg has quit [Quit: ZNC - https://znc.in]
nrg has joined #ffmpeg
Sketch has quit [Ping timeout: 245 seconds]
Sketch has joined #ffmpeg
vlm has quit [Ping timeout: 265 seconds]
vincejv has joined #ffmpeg
bitbinge has joined #ffmpeg
peppi has joined #ffmpeg
<peppi> hello
<peppi> I'm running a script that calls ffmpeg. It looks like this:
<peppi> gphoto2 --stdout --set-config liveviewsize=0 --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 -s:v 1920x1080 -r 80 -r 25 /dev/video1
<peppi> I'm doing a top and I see the ffmpeg is using 25% of the cpu. Is there any way to reduce the CPU by moving computing to the GPU? Or how do I reduce the cpu usage while using ffmpeg?
crossby1004 has joined #ffmpeg
dakforever has joined #ffmpeg
Dotz0cat has joined #ffmpeg
vlm has joined #ffmpeg
j45 has quit [Quit: ZNC 1.8.2 - https://znc.in]
<another|> not really. you might be able to use hw decoding but whether that would help is dubious
j45 has joined #ffmpeg
<BtbN> scaling something to 1080p just is cpu intensive
<BtbN> Also, you got two contradictory -r arguments
<peppi> BtbN, oh ya?
<peppi> another|, how could I test hardware decoding?
<BtbN> GPUs are much better at scaling, but shoveling data to and from them is so slow that it's hardly worth it
<BtbN> hardware decoding depends entirely on what the input is. And that's not very obvious from the commandline
<BtbN> no clue what gphoto outputs
<peppi> perhaps the output would help? https://paste.centos.org/view/5774b05c
<BtbN> mjpeg can be hardware decoded, but it's usually not that intense
<BtbN> The majority of the work will be converting the pixel format and scaling
<peppi> BtbN, you said I have contradictory -r arguments? is that -r80 and -r25?
<BtbN> yes
<BtbN> Can't obviously be two different rates at the same time
Sketch has quit [Ping timeout: 252 seconds]
catsoften has quit [Ping timeout: 260 seconds]
Muimi has joined #ffmpeg
<peppi> ya ok
jemius has quit [Quit: Leaving]
Sl4yer has joined #ffmpeg
ewomer has joined #ffmpeg
l4yer has quit [Ping timeout: 276 seconds]
<peppi> so my camera only outputs to 512x288 should I even bother up scaling it?
darkapex has quit [Ping timeout: 252 seconds]
<peppi> I changed it to:
darkapex has joined #ffmpeg
<peppi> gphoto2 --stdout --set-config liveviewsize=0 --capture-movie | ffmpeg -f mjpeg -i pipe:0 -vcodec rawvideo -pix_fmt yuv420p -r 25 -threads 0 -f v4l2 /dev/video1
<BtbN> Also -vcodec is deprecated since over a decade, use -c:v instead. It makes no functional difference though.
<peppi> gphoto2 --stdout --set-config liveviewsize=0 --capture-movie | ffmpeg -f mjpeg -i pipe:0 -c:v rawvideo -pix_fmt yuv420p -r 25 -threads 0 -f v4l2 /dev/video1
<peppi> vs
<peppi> gphoto2 --stdout --set-config liveviewsize=0 --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 -s:v 1920x1080 -r 80 -r 25 /dev/video1
Sketch has joined #ffmpeg
<peppi> so no scaling I guess
<beastd> peppi: What are you doing with that command line?
<peppi> not sure if I need to yet
<peppi> beastd, I'm streaming video from my "webcam" then using it on my computer for video calls
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
Sl4yer has quit [Ping timeout: 248 seconds]
<beastd> dunno. not sure how it all works, but I would guess that scaling will happen as required in the software that is presenting the video call. so i probably wouldn't scale beforehand.
ewomer has quit [Quit: WeeChat 4.4.2]
coldfeet has quit [Remote host closed the connection]
<peppi> what's up with the Deprecated pixel format?
x_x has quit [Ping timeout: 260 seconds]
<BtbN> The j pixel formats don't exist anymore. Latest ffmpeg version removed them
x_x has joined #ffmpeg
<BtbN> they're really just their non-j counterpart and a full range color flag
<peppi> how would I fix the warning?
<peppi> gphoto2 --stdout --set-config liveviewsize=0 --capture-movie | ffmpeg -f mjpeg -i pipe:0 -c:v rawvideo -pix_fmt yuv420p -r 25 -threads 0 -f v4l2 -s:v 1920x1080 /dev/video1
<peppi> looks like I have to upscale
<StephenLynx> ok, im getting EOF reading frames from a video before the video ends.
<StephenLynx> it's a mp4
<StephenLynx> one video stream Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 540x540, 237 kb/s, 40 fps, 40 tbr, 90k tbn, 160k tbc (default)
<StephenLynx> any ideas?
<Marth64> post full logs and commands
<StephenLynx> its C++
<StephenLynx> i dont get anything as far as logs go.
<StephenLynx> im using av_read_frame, then I check inputFrame->best_effort_timestamp and if is not on the point I want, I loop again back to read_frame
<StephenLynx> i dont seem to be able to get anything around past half.
<StephenLynx> on a 50s video.
manwithluck has quit [Ping timeout: 252 seconds]
Sketch has quit [Ping timeout: 276 seconds]
manwithluck has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<beastd> StephenLynx: are you corectly converting best_effort_timestamp to seconds?
<StephenLynx> im comparing against the timestamp I use on av_seek_frame beastd
<StephenLynx> and they seem to be on the same scale.
<StephenLynx> 1st step is to use seek_frame so I jump to a keyframe before the part I want. 2nd step is to ignore frames on the loop that haven't reached the point I wanted.
l4yer has joined #ffmpeg
<StephenLynx> valgrind doesn't report issues, gdb doesn't report issues.
faxmodem has quit [Quit: so long and thanks for all the fish]
<peppi> I'm trying to turn on hardware acceleration on my AMD gpu but it's not working :(
faxmodem has joined #ffmpeg
<BtbN> You can't just "turn on hardware acceleration" for random things
Sketch has joined #ffmpeg
<peppi> BtbN, yes well I upscaling is running my cpu at 25%+
<BtbN> That's normal for a weaker CPU and 1080p
<BtbN> Uploading it to a GPU and then downloading it again won't be any faster though
<peppi> BtbN, is 16 × AMD Ryzen 7 8700G w/ Radeon 780M Graphics a weak CPU?
<StephenLynx> the duration seems to be correct.
<BtbN> It's not the fastest at least
<StephenLynx> it just can't pick frames after this point.
<peppi> and 25% is just ffmpeg there is also OBS and then firefox
ewomer has joined #ffmpeg
<StephenLynx> ok, I found an issue with my calculation of the timestamp.
<kepstin> peppi: 25% of the whole cpu or 25% of one core of the cpu?
<kepstin> 25% of one core doing upscaling is ... eh, whatever. you've got a bunch more.
Dotz0cat has quit [Quit: ZNC 1.8.2 - https://znc.in]
ewomer has quit [Read error: Connection reset by peer]
Dotz0cat has joined #ffmpeg
System_Error has quit [Ping timeout: 260 seconds]
<StephenLynx> so, how do I convert to the base I should use? Im using inputFormatContext->duration * (stream->time_base.den / stream->time_base.num) / AV_TIME_BASE / (100 / percentage);
<StephenLynx> but the results are bananas.
<StephenLynx> percentage is an int.
<StephenLynx> at 60% it jumps to 4752000
<StephenLynx> and stays there.
<StephenLynx> while 50% is 2376000
<StephenLynx> duration is 52800000
<StephenLynx> ok, i neede percentage to be a float.
lavaball has quit [Remote host closed the connection]
cmc has quit [Ping timeout: 260 seconds]
sgm has quit [Ping timeout: 260 seconds]
emmanuelux has joined #ffmpeg
sgm has joined #ffmpeg
cmc has joined #ffmpeg
<peppi> kepstin, I suppose
rv1sr has quit []
x_x has quit [Ping timeout: 260 seconds]
SuicideShow has quit [Ping timeout: 244 seconds]
SuicideShow has joined #ffmpeg
Keshl_ has joined #ffmpeg
sgm has left #ffmpeg [#ffmpeg]
Keshl has quit [Ping timeout: 260 seconds]
five61848033917 has quit [Remote host closed the connection]
five61848033917 has joined #ffmpeg
<Marth64> use av_rescale_q ?
crossby1004 has quit [Quit: leaving]
<Marth64> (StephenLynx)
<StephenLynx> wat
<StephenLynx> that was not the issue.
<Marth64> for converting time base
<StephenLynx> my calculation was correct, the issue was dividing by an int.
luva888 has quit [Quit: Ping timeout (120 seconds)]
luva888 has joined #ffmpeg
catsoften has joined #ffmpeg
<noelle> It seems like the static builds @ https://johnvansickle.com/ffmpeg/ (linked from ffmpeg.org) aren't keeping up with git master. Anyone know of another reliable source of precompiled static builds for linux?
<psykose> note that they're not actually fully static, but they'll work on glibc