Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-10 Thread Carl Eugen Hoyos
Am Do., 10. Okt. 2019 um 19:56 Uhr schrieb Moritz Barsnick : > Considering that FLAV packets usually contain a lot of samples (I > believe I saw some ffmpeg default of 4096 samples per packet?), the > packet's size will obviously determine the possible precision. They can be very large,

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-10 Thread Moritz Barsnick
On Thu, Oct 10, 2019 at 19:45:41 +0200, FFmpeg user discussions wrote: > But it is strange anyway: > > _ffmpeg.exe -i _audio.flac -t 10 -codec copy _audio_2.flac > —> it shows me 9.98 > _ffmpeg.exe -i audio_2.flac -f null - > —> but encode is 10.08 > > _ffmpeg.exe -i _audio.flac -t 20 -codec copy

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-10 Thread Felix Muster via ffmpeg-user
I use -ss and not -t. But thanks for the info. I can bypass the problem with -codec flac. Then it is accurate. But it is strange anyway: _ffmpeg.exe -i _audio.flac -t 10 -codec copy _audio_2.flac —> it shows me 9.98 _ffmpeg.exe -i audio_2.flac -f null - —> but encode is 10.08 _ffmpeg.exe -i

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-07 Thread Ted Park
> To calculate by reencode is enough for me. > > But is it possible to get a thousandth of a second? > 0.00 is not precise enough for me. Use -ss as an output option. Everything would be a multiple of 1/48000, so that’s probably just a rounded representation, unless it was 0.96?

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-07 Thread Felix Muster via ffmpeg-user
To calculate by reencode is enough for me. But is it possible to get a thousandth of a second? 0.00 is not precise enough for me. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-06 Thread Felix Muster via ffmpeg-user
> What is the point of doing this calculation? I need to trim 1.001 seconds > It’s probably because flac is mostly a stream format, and you’re doing a > stream copy. Re-encoding should fix all of this, it’s relatively inexpensive, > > and it’s lossless after all, but if you really don’t want

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-05 Thread Ted Park
> _ffprobe.exe -v 0 -sexagesimal -show_entries format^=duration -of > compact^=p^=0^:nk^=1 _audio.flac > 1:31:29.848938 > > > 5489.848938 - 1.001 = 5488.847938 > > What is the point of doing this calculation? > I'm trying to trim 1.001 seconds from the beginning of a FLAC file. > But the

Re: [FFmpeg-user] trimmed audio has wrong duration

2019-10-05 Thread Carl Eugen Hoyos
Am Sa., 5. Okt. 2019 um 12:49 Uhr schrieb Felix Muster via ffmpeg-user : > I'm trying to trim 1.001 seconds from the beginning of a FLAC file. > But the output has the wrong duration (same as the input) and so it's > corrupt. > When I try to open it with Adobe Audition I get an error (cannot read