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
jtgd has joined #ffmpeg
<jollyboyjohn> been trying to use the "oversample" rescaler (mentioned here https://ffmpeg.org/ffmpeg-filters.html#Scaling) but it doesn't seem to exist anymore, has it been renamed or replaced?
celmor has joined #ffmpeg
KombuchaKip has quit [Quit: Leaving.]
beaver has quit [Read error: Connection reset by peer]
fling has quit [Read error: Connection reset by peer]
hussein1_ has quit [Read error: Connection reset by peer]
chiselfuse has quit [Read error: Connection reset by peer]
chiselfuse has joined #ffmpeg
beaver has joined #ffmpeg
fling has joined #ffmpeg
hussein1_ has joined #ffmpeg
<noobaroo> kepstin It's a lot more than 0.1 second difference, it's usually 4-7 seconds
<noobaroo> And there are several "buts" that I have here.
<kepstin> that's odd, differences that large typically only happen if you're using stream copy mode or have otherwise disabled the accurate seek feature
<noobaroo> 1st but: According to https://trac.ffmpeg.org/wiki/Seeking -ss before the -i is frame accurate since ffmpeg version 2 something.
<kepstin> when doing transcoding with accurate seek, -ss before -i will seek to the closest keyframe before the seek point, discard the decoded frames before the seek point, and return frames starting after the seek point.
<noobaroo> 2nd but: Even if it wasn't frame accurate, I thought the entire point of using "-avoid_negative_ts 2 -reset_timestamps 1" is so the new video will have timestamps starting from 0, even if the cut doesn't actually start until a few seconds after specified with -ss
<noobaroo> Yeah, that definitely doesn't happen for me.
KombuchaKip has joined #ffmpeg
<kepstin> can you share your complete ffmpeg command line please?
<kepstin> note that avoid_negative_ts and reset_timestamps are muxer (output) options, and have no effect on the timestamps of frames as seen e.g. at the filtering stage.
<kepstin> reset_timestamps is specifically for the segment muxer
<noobaroo> Well this was hours ago and I have run like 100 ffmpeg commands since then
<noobaroo> But I think it happens basically every time, I think it happened twice recently again when I tried with 2 different new videos, one second
<kepstin> avoid_negative_ts does nothing if you don't have any negative timestamps; and you won't have any negative timestamps when doing a transcode with -ss before -i.
<noobaroo> According to to https://trac.ffmpeg.org/wiki/Seeking -avoid_negative_ts 2 = make_zero
<noobaroo> ffmpeg -ss 25:43 -t 00:15 -i $V -vf metadata=delete,sidedata=delete,format=p010le,scale=w=-1:h=1080 -c:v libsvtav1 -b:v 2000k -preset 2 -svtav1-params enable-qm=1:qm-min=1:qm-max=8:tune=0:enable-variance-boost=1 -c:a copy -c:s copy -avoid_negative_ts 2 -reset_timestamps 1 Output.mkv 1
<noobaroo> Here's one, it happened on every video I tried today though and I tried on 3 different videos since early this morning
<kepstin> ok. so that reset_timestamps option does nothing since you're not using the segment muxer. And you _are_ doing some stream copying, which will influence the behaviour of the avoid_negative_ts option
<kepstin> if the audio or subtitle frame active at the seekpoint starts before the first video frame after the seekpoint, then resetting timestamps to start at 0 will set whichever of those is first to 0, which means the timestamp of the first _video_ frame will be >0
<noobaroo> A workaround I found is by using combined seeking, I do "-ss 25:30 -i $V -ss 00:13 -t 00:15" and that achieves desired results perfectly. It starts at 0 and is frame accurate exactly where I set -ss
<kepstin> you probably want the -t option to be after the -i not before it (tho that's unrelated to this issue)
<noobaroo> What does that change?
<noobaroo> And I don't know how audio frames work, but I doubt they are 4-7 seconds off the -ss point every time.
waeking has left #ffmpeg [The Lounge - https://thelounge.chat]
<kepstin> with -t before -i, it stops reading frames and feeding them to the demuxer/decoder when the time on the input file is reached. with -t after -i, it stops encoding frames and writing them to the output file when the time on the output file is reached.
<noobaroo> As for subtitles, that's the only video I tried that had them, so you can ignore the subtitle part
<kepstin> and yeah, with most audio codecs that shouldn't be more than ~100ms or so.
<noobaroo> So what could be the problem then? You said the -t before -i is unrelated to this issue, but I can only guess moving it to after must be the culprit here and the fix
<kepstin> Well, at this point i could only suggest enabling some logging/debugging options to see what's going on with the timestamps. Consider using e.g. "-debug_ts" (probably along with "-frames:v 2" or something since you're really only interested in the timestamps of the first frame).
<kepstin> what format is the input file, anyways?
<noobaroo> One is .mkv, one is .mp4, and the third is either one of those or it might have been .m2t
<kepstin> any correlation with specific formats? I could see issues happening with mpeg-ts due to the fact that it doesn't have a seek indexing; seeking in those doesn't really work properly.
<noobaroo> It happens with every file
iive has quit [Quit: They came for me...]
<noobaroo> I just tried with -ss before -i and -t after, and the video starts at 1.281 seconds
<noobaroo> Though I just thought of something, I think I have converted to .mkv every time. I'll try to a mp4 and see if that fixes it
<noobaroo> Do you know what's the raw format for av1? I fixed a timestamp issue yesterday by stream copying to a raw h264 file first, and then from that back to a real mkv container
<noobaroo> Same results going to .mp4, 1.247 though this time
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
kus has quit [Read error: Connection reset by peer]
Icedream has quit [Quit: A lol made me boom.]
ivanich has joined #ffmpeg
Icedream has joined #ffmpeg
jollyboyjohn has quit [Quit: Leaving]
Kei_N_ has quit [Ping timeout: 260 seconds]
Kei_N has joined #ffmpeg
mrelcee has joined #ffmpeg
Hackerpcs has joined #ffmpeg
Icedream has quit [Quit: A lol made me boom.]
Icedream has joined #ffmpeg
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
evilscreww has joined #ffmpeg
lemourin has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
nitroxis has quit []
nitroxis has joined #ffmpeg
Suchiman has quit [Quit: Connection closed for inactivity]
nitroxis has quit [Ping timeout: 246 seconds]
nitroxis has joined #ffmpeg
minimal has quit [Quit: Leaving]
KDDLB5 has joined #ffmpeg
KDDLB has quit [Killed (NickServ (GHOST command used by KDDLB5))]
KDDLB5 is now known as KDDLB
kts has joined #ffmpeg
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ffmpeg
kts has quit [Ping timeout: 240 seconds]
evilscreww has quit [Quit: Leaving]
armin has quit [Ping timeout: 255 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
yeahitsme has joined #ffmpeg
jagannatharjun has joined #ffmpeg
AbleBacon has quit [Read error: Connection reset by peer]
FH_thecat has quit [Quit: Leaving]
kts has joined #ffmpeg
kts has quit [Client Quit]
kts has joined #ffmpeg
rpthms has quit [Remote host closed the connection]
rpthms has joined #ffmpeg
KDDLB has quit [Quit: The Lounge - https://thelounge.chat]
KDDLB has joined #ffmpeg
FH_thecat has joined #ffmpeg
kts has quit [Ping timeout: 240 seconds]
rv1sr has joined #ffmpeg
KDDLB has quit [Quit: The Lounge - https://thelounge.chat]
KDDLB has joined #ffmpeg
HarshK23 has joined #ffmpeg
e^pi-1 has quit [Ping timeout: 268 seconds]
robobub has joined #ffmpeg
xx has joined #ffmpeg
kts has joined #ffmpeg
kts has quit [Max SendQ exceeded]
kts has joined #ffmpeg
bitoff__ has quit [Ping timeout: 260 seconds]
ivanich has quit [Remote host closed the connection]
kts has quit [Ping timeout: 252 seconds]
ivanich has joined #ffmpeg
kts has joined #ffmpeg
kts has quit [Max SendQ exceeded]
kts has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
kts has quit [Ping timeout: 240 seconds]
lavaball has joined #ffmpeg
kts has joined #ffmpeg
HerbY_NL has joined #ffmpeg
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
e^pi-1 has joined #ffmpeg
HerbY_NL_ has joined #ffmpeg
HerbY_NL has quit [Ping timeout: 268 seconds]
kts has quit [Ping timeout: 252 seconds]
e^pi-1 has quit [Quit: WeeChat 4.3.0]
e^pi-1 has joined #ffmpeg
kts has joined #ffmpeg
billchenchina has joined #ffmpeg
Livio has joined #ffmpeg
HerbY_NL_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
billchenchina has quit [Client Quit]
e^pi-1 has quit [Quit: WeeChat 4.3.0]
Tinos has quit [Ping timeout: 250 seconds]
e^pi-1 has joined #ffmpeg
kepstin has quit [Remote host closed the connection]
kepstin has joined #ffmpeg
Suchiman has joined #ffmpeg
kts has quit [Ping timeout: 264 seconds]
HerbY_NL has joined #ffmpeg
kts has joined #ffmpeg
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
fling has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MetaNova has quit [Quit: quit]
MetaNova has joined #ffmpeg
Sl4yer has joined #ffmpeg
jagannatharjun has quit [Quit: Connection closed for inactivity]
Livio has quit [Ping timeout: 264 seconds]
jagannatharjun has joined #ffmpeg
iconoclasthero has joined #ffmpeg
kts has quit [Ping timeout: 268 seconds]
e^pi-1 has quit [Quit: WeeChat 4.3.0]
<iconoclasthero> furq, with that dts that we remuxed into the mp4 container (I'm actually rockin war pigs atm), i was thinking about what you said...
<iconoclasthero> <furq> specifically it's to fool dts decoders that are hooked up to cd players over optical / <furq> it's just everything else that gets confused / <furq> a small price to pay for a 99.3% compression ratio
<iconoclasthero> so...i was poking around with this last week and just did a straight conversion to flac. and it was an enormous 24-bit 6-channel flac...which seems a bit much coming from a lossy format and I really don't think i'll ever have the audio equipment
<iconoclasthero> (inside my head or not) to appreciate the difference b/w 16 & 24 bit.
<iconoclasthero> what would be a reasonably efficient way to get a 6-ch flac that doesn't give up much in terms of the quality that we spent a fair amount of time to extract from the way the files were packaged initially?
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
dubiago has quit [Quit: Gone!]
dubiago has joined #ffmpeg
rajivharlalka has joined #ffmpeg
<iconoclasthero> https://bpa.st/NI6A
Icedream has quit [Quit: A lol made me boom.]
HerbY_NL has joined #ffmpeg
JanC has quit [Read error: Connection reset by peer]
travisghansen has joined #ffmpeg
Icedream has joined #ffmpeg
JanC has joined #ffmpeg
olspookishmagus has joined #ffmpeg
<olspookishmagus> suppose one has an audio file that needs to get downmixed from stereo to mono and from mono back to stereo again
<olspookishmagus> can this be done in one go or it has to be tw
<olspookishmagus> can this be done in one go or it has to be two disctinct steps? *
<JanC> why would you want to do mono → stereo ?
<olspookishmagus> Good point actualy.
<olspookishmagus> Maybe I'm afraid some player/setup will NOT play a mono file to all of it's available speakers?
<olspookishmagus> Or that's _impossible_?
<JanC> that is very unlikely
<olspookishmagus> imagine making a killer compilation for a road trip and that car audio setup would only play it on one of it's available speakers
<olspookishmagus> its*
<JanC> I think AM radio is usually mono too :)
<JanC> really, they would have to go out of their way to do it wrong
<olspookishmagus> ok JanC I'll take your point and I'll take the risk
<olspookishmagus> thanks for lowering the complexity of things with your remark.
<welder> When recording screen with x11grab and audio with -f pulse, last 1-2 seconds of audio is always cut. Did someone encounter similar issue?
<iconoclasthero> olspookishmagus: joint stereo?
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Livio has joined #ffmpeg
<furq> iconoclasthero: dts is lossy so a conversion to flac is almost always going to be bigger
<furq> there's not really much you can do about that
makidoll has quit [Ping timeout: 256 seconds]
minimal has joined #ffmpeg
makidoll has joined #ffmpeg
turlando has quit [Quit: No Ping reply in 180 seconds.]
turlando has joined #ffmpeg
kron has quit [Quit: kron]
HerbY_NL has joined #ffmpeg
Livio has quit [Ping timeout: 246 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iconoclasthero has quit [Ping timeout: 268 seconds]
AbleBacon has joined #ffmpeg
kron has joined #ffmpeg
Livio has joined #ffmpeg
lexano has joined #ffmpeg
HerbY_NL has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Livio has quit [Ping timeout: 240 seconds]
ivanich has joined #ffmpeg
j45 has quit [Ping timeout: 240 seconds]
j45 has joined #ffmpeg
Tinos has joined #ffmpeg
zsoltiv_ has joined #ffmpeg
HarshK23 has quit [Quit: Connection closed for inactivity]
lucasta has joined #ffmpeg
hussein1_ has quit [Ping timeout: 260 seconds]
hussein1_ has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
Livio has joined #ffmpeg
HerbY_NL has joined #ffmpeg
HerbY_NL has quit [Client Quit]
Livio has quit [Ping timeout: 264 seconds]
Livio has joined #ffmpeg
rv1sr has quit []
ACI-XCIX_0001 has joined #ffmpeg
datavoid has joined #ffmpeg
datavoid has quit [Quit: Leaving]
stonerl has joined #ffmpeg
sihloo has joined #ffmpeg
Haxxa has quit [Quit: Haxxa flies away.]
Haxxa has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.0 - https://znc.in]
sihloo has joined #ffmpeg
sihloo has quit [Quit: ZNC 1.9.0 - https://znc.in]
sihloo has joined #ffmpeg
yrc_ has joined #ffmpeg
yrc has quit [Ping timeout: 268 seconds]
minimal has quit [Quit: Leaving]
m5zs7k has quit [Ping timeout: 268 seconds]
emanuele6 has quit [Read error: Connection reset by peer]
emanuele6 has joined #ffmpeg
m5zs7k has joined #ffmpeg
hightower4 has quit [Remote host closed the connection]
jagannatharjun has quit [Quit: Connection closed for inactivity]
ACI-XCIX_0001 has quit [Quit: Ping timeout (120 seconds)]
e^pi-1 has joined #ffmpeg
Livio has quit [Ping timeout: 260 seconds]
lavaball has quit [Remote host closed the connection]
yeahitsme has quit [Ping timeout: 246 seconds]
jtgd has quit [Quit: WeeChat 4.3.0]
jtgd has joined #ffmpeg
dionisis has quit [Quit: WeeChat 3.8]
dionisis has joined #ffmpeg
dionisis has quit [Client Quit]
dionisis has joined #ffmpeg
dionisis has quit [Client Quit]
dionisis has joined #ffmpeg
SuicideShow has quit [Ping timeout: 268 seconds]
SuicideShow has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
Vonter has quit [Ping timeout: 268 seconds]
deus0ww has quit [Quit: Textual IRC Client: www.textualapp.com]
deus0ww has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
robobub has quit [Quit: Connection closed for inactivity]