discrepancy between sox and ffmpeg when extracting parts of flac file
Jürgen Koslowski via Sox-users <[email protected]> Sat, 25 Feb 2023 13:32:37 +0000
| Newsgroups | gmane.comp.audio.sox |
|---|---|
| Message-ID | <hgm5uo9_nUsgeNNOPQHlRL9QtMXTlPuUfGrDHiY9b0zUNx25npm9dxZXrjxeZJTp_atcEebIvsO8yFc6hGbCyWBNjWqDSLdu_b3JUkKZd2c=@protonmail.com> |
I have a large flac file (24bits 96kHz) A.flac containing several songs. I can extract those bei using either sox (B.flac) or ffmpeg (C.flac) with the same splitting points: sox T04.flac B.flac trim 22:26.342 =34:41.708 ffmpeg -i T04.flac -ss 22:26.342 -to 34:41.708 -compression_level 12 -c copy C.flac Unfortunately, the results seem to differ in important aspects: - C.flac that is larger (despite using "-compression_level 12") - soxi C.flac as well as ffprobe C.flac shows the wrong lengh, namely the length of A.flac - soxi B.flac and ffprobe B.flac show the correct length - dr14_tmeter shows different dynamic range values for B.flac (smaller) and C.flac (larger): DR Peak RMS Duration Title [codec] ---------------------------------------------------------------------------------------------- DR15 -2.25 dB -24.99 dB 12:15 B.flac DR16 -2.50 dB -24.99 dB 12:15 C.flac What is going on here? Are there additional parameters in sox that can fix this? -- If I don't see you no more on this world Juergen Koslowski I'll meet you on the next one [[email protected]](mailto:[email protected])and don't be late! Sent from Swiss-based encrypted [ProtonMail](https://protonmail.com), (Jimi Hendrix, Voodoo Child, SR) Sent with [Proton Mail](https://proton.me/) secure email. _______________________________________________ Sox-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sox-users