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
__jmcantrell__ has joined #ffmpeg
jmcantrell is now known as Guest2459
Guest2459 has quit [Killed (copper.libera.chat (Nickname regained by services))]
__jmcantrell__ is now known as jmcantrell
jmcantrell_ has joined #ffmpeg
rex has quit [Ping timeout: 244 seconds]
rex has joined #ffmpeg
minimal has quit [Quit: Leaving]
emmanuelux has joined #ffmpeg
lucasta has quit [Quit: Leaving]
iive has quit [Quit: They came for me...]
wziko has quit [Ping timeout: 244 seconds]
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
wziko has joined #ffmpeg
xx has quit [Ping timeout: 264 seconds]
gchound has joined #ffmpeg
wziko has quit [Ping timeout: 252 seconds]
\\Mr_C\\ has quit [Remote host closed the connection]
yans has joined #ffmpeg
Magissia has quit [Ping timeout: 244 seconds]
Vonter has joined #ffmpeg
Suchiman has quit [Quit: Connection closed for inactivity]
Vonter has quit [Quit: WeeChat 4.4.3]
bitbinge has quit [Remote host closed the connection]
lolok has joined #ffmpeg
Vonter has joined #ffmpeg
bitbinge has joined #ffmpeg
gchound has quit [Quit: WeeChat 4.1.1]
bitbinge has quit [Ping timeout: 264 seconds]
rex has quit [Ping timeout: 248 seconds]
rex has joined #ffmpeg
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
StephenLynx has quit [Quit: Leaving]
emanuele6 has joined #ffmpeg
Vonter has quit [Quit: WeeChat 4.4.4]
wziko has joined #ffmpeg
faxm0dem has joined #ffmpeg
faxmodem has quit [Ping timeout: 260 seconds]
wziko has quit [Ping timeout: 265 seconds]
emanuele6 has left #ffmpeg [WeeChat 4.4.3]
rv1sr has joined #ffmpeg
KombuchaKip has quit [Quit: Leaving.]
KombuchaKip has joined #ffmpeg
yans has quit [Ping timeout: 252 seconds]
shiriru has joined #ffmpeg
shiriru has quit [Quit: Leaving]
emmanuelux has quit [Quit: au revoir]
low-key has quit [Remote host closed the connection]
low-key has joined #ffmpeg
acidbunny has quit [Remote host closed the connection]
<bananicorn>
Hi there! I am using filters for the first time and noticed that the frame rate of the input video does not seem to be preserved. The input file is 30fps, the output is 120fps for some reason
<bananicorn>
Audio seems fine, only video is affected. I use `-vf` with a "select" filter, followed by "scale" and finally "setpts" to correct the output frame times.
<bananicorn>
Will make a paste with the exact options, any advice is appreciated
<bananicorn>
This is the full output, with "-t 60" since my laptop takes ages to encode
<bananicorn>
The video in the output file is significantly sped up (I assume 4x faster since we went from 30fps->120fps), audio is normal speed
minimal has quit [Quit: Leaving]
<putacho>
bananicorn: use setpts=in-fps/out-fps*PTS (change in-fps and out-fps accordingly, eg 23.976/25*PTS) and set fps=fps=25 (change accordingly)
<putacho>
bananicorn: you may also want -r 25 (change accordingly)
<putacho>
oh yeah, scratch the fps filter, don't use it
<putacho>
just setpts
lol has quit [Quit: lol]
lavaball has joined #ffmpeg
StephenLynx has joined #ffmpeg
luc4 has quit [Quit: Konversation terminated!]
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
<bananicorn>
putacho: I don't want to change fps, my in-fps is 30 and my out-fps is 30 so that setpts filter would do nothing I think? And it does not take into account that PTS needs to be shifted after the select filter
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
wziko has joined #ffmpeg
wziko has quit [Max SendQ exceeded]
wziko has joined #ffmpeg
sentriz has quit [Ping timeout: 252 seconds]
coldfeet has joined #ffmpeg
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
System_Error has quit [Remote host closed the connection]
wziko has quit [Ping timeout: 252 seconds]
nrg has joined #ffmpeg
\\Mr_C\\ has joined #ffmpeg
<kepstin>
bananicorn: it looks like the issue is that the setpts filter isn't able to accurately determine the input framerate for some reason, so you're going to have to manually specify it (replace "FR" with the actual framerate)
<kepstin>
alternatively, use "settb=1/30,setpts=N" to get rid of the odd 1/120 timebase.
System_Error has joined #ffmpeg
<kepstin>
keep in mind that if the video is actually variable framerate, you might run into issues. The fix for that is to add an "fps=30" filter _before_ your select filter.
sentriz has quit [Ping timeout: 248 seconds]
<bananicorn>
kepstin: Neither the first nor the second suggestion worked, so the video must actually have a variable framerate, which I did not anticipate!
<bananicorn>
I will retry with fps=30
<bananicorn>
Is there an easy way to see whether a video has VFR?
<kepstin>
depends on the format, but for many formats the answer is "not really, you'd have to read through and check the timestamps on every video frame"
<kepstin>
what's the source of this video? If i had to guess... phone camera? less likely, a desktop pc screen capture?
sentriz has joined #ffmpeg
<bananicorn>
Phone camera 😬
<bananicorn>
With the fps filter all is well, thanks for the debugging help :)
<bananicorn>
Lesson learned, phone camera does not produce video with a stable frame rate
signalhunter has quit [Quit: Ping timeout (120 seconds)]
signalhunter has joined #ffmpeg
crossby1004 has quit [Quit: leaving]
Jiggy has quit [Remote host closed the connection]