Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some mp3 files seems corrupted after writing ID3 tags #666

Open
tyctor opened this issue Nov 26, 2024 · 1 comment
Open

Some mp3 files seems corrupted after writing ID3 tags #666

tyctor opened this issue Nov 26, 2024 · 1 comment

Comments

@tyctor
Copy link

tyctor commented Nov 26, 2024

I have two mp3 files

file1:

$ ffprobe -hide_banner 20241114_wirelessimagination\@RadioPunctum.mp3
Input #0, mp3, from '[email protected]':
  Duration: 01:01:53.99, start: 0.025057, bitrate: 320 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : LAME3.100

file2:

$ ffprobe -hide_banner [email protected]
Input #0, mp3, from '[email protected]':
  Duration: 01:00:12.29, start: 0.025057, bitrate: 320 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : LAME3.100

neither mp3check utility doesn't show any problems.

when I write ID3 tags title, artist, album, comment by using mutagen library, file2 seems corrupted for ffprobe

file1 after writing ID3 tags:

$ ffprobe -hide_banner 20241114_wirelessimagination\@RadioPunctum.mp3
Input #0, mp3, from '[email protected]':
  Metadata:
    title           : Wireless Imagination
    artist          : Aleksandra
    album           : 202411
    comment         : downtempo;electronic;ambient
  Duration: 01:01:53.99, start: 0.025057, bitrate: 320 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : LAME3.100

file2 after writing ID3 tags:

$ ffprobe -hide_banner [email protected]
[mpeg @ 0x555bcf0e6c00] pes_ext E4 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext D9 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 65 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 64 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext C0 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext F8 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 78 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 87 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext DC is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext A7 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 40 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 56 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 67 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext F2 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 51 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext D3 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 48 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext E9 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 72 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 68 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext D3 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext F0 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext 5E is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext F0 is invalid
[mpeg @ 0x555bcf0e6c00] pes_ext DD is invalid
[mp3float @ 0x555bcf0e7a00] Header missing
    Last message repeated 28 times
[mp3float @ 0x555bcf0ef980] Header missing
[mp3float @ 0x555bcf0f0380] Header missing
    Last message repeated 3 times
[mp3float @ 0x555bcf0f0d80] Header missing
[mp3float @ 0x555bcf0f1780] Header missing
[mp2 @ 0x555bcf1225c0] Header missing
[mp3float @ 0x555bcf124f80] Header missing
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 2: packet 22 with DTS 7083505137, packet 23 with DTS 7653615751
[mp3float @ 0x555bcf12ea00] Header missing
    Last message repeated 2 times
[mp3float @ 0x555bcf133d00] Header missing
[mp3float @ 0x555bcf138700] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=7, pts=9301225801, dts=9707932322, size=34908
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 7: packet 25 with DTS 5222135364, packet 26 with DTS 9301225801
[mp3float @ 0x555bcf15e400] Header missing
[mp2 @ 0x555bcf16acc0] Header missing
[mp2 @ 0x555bcf16bf80] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=3, pts=3014403238, dts=10223444458, size=25408
[mp3float @ 0x555bcf17f080] Header missing
[mp3float @ 0x555bcf198bc0] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=16, pts=4417475065, dts=6640404785, size=42602
[mp3float @ 0x555bcf19ba00] Header missing
[mp3float @ 0x555bcf1a6ac0] Header missing
[mp3float @ 0x555bcf1b5fc0] Header missing
[mp3float @ 0x555bcf1c5f80] Header missing
    Last message repeated 2 times
[mp3float @ 0x555bcf1d2a40] Header missing
[mp3float @ 0x555bcf1dae80] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=3, pts=7388359536, dts=9743410437, size=7793
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 3: packet 147 with DTS 1633563939, packet 148 with DTS 7388359536
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 8: packet 17 with DTS 6553457571, packet 18 with DTS 9510594502
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=11, pts=7550862305, dts=9985336980, size=6971
[mp3float @ 0x555bcf209880] Header missing
[mp3float @ 0x555bcf212140] Header missing
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 10: packet 55 with DTS 2706266578, packet 56 with DTS 10846840590
[mp2 @ 0x555bcf22fa00] Header missing
[mp3float @ 0x555bcf230f80] Header missing
    Last message repeated 1 times
[mp2 @ 0x555bcf23a380] Header missing
[mp3float @ 0x555bcf241800] Header missing
[mp3float @ 0x555bcf250780] Header missing
[mp3float @ 0x555bcf252980] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=30, pts=1074561812, dts=2718113357, size=24505
[mp3float @ 0x555bcf25b400] Header missing
[mp3float @ 0x555bcf261f80] Header missing
[mp3float @ 0x555bcf266080] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=3, pts=4698874048, dts=5116799462, size=35655
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 3: packet 218 with DTS 3051729099, packet 219 with DTS 4698874048
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=8, pts=8909488770, dts=9227724296, size=40018
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 8: packet 96 with DTS 6573009571, packet 97 with DTS 8909488770
[mp3float @ 0x555bcf2a8cc0] Header missing
[mp3float @ 0x555bcf2d8580] Header missing
[mp3float @ 0x555bcf2e7080] Header missing
[mp3float @ 0x555bcf0e7a00] Header missing
    Last message repeated 10 times
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=11, pts=4488988153, dts=10948051273, size=41062
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 11: packet 66 with DTS 7169701506, packet 67 with DTS 10948051273
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=36, pts=9133726644, dts=10570456290, size=14225
[mp3float @ 0x555bcf0f7e00] Header missing
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=8, pts=8862065416, dts=9072238672, size=2163
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 31: packet 71 with DTS 3288504980, packet 72 with DTS 8664393127
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 31: packet 75 with DTS 8664400180, packet 76 with DTS 9699156555
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=3, pts=5150851372, dts=8741168916, size=19022
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 3: packet 251 with DTS 4698949280, packet 252 with DTS 5150851372
[mpeg @ 0x555bcf0e6c00] Invalid timestamps stream=3, pts=8729752382, dts=8968509466, size=28717
[mpeg @ 0x555bcf0e6c00] DTS discontinuity in stream 3: packet 268 with DTS 5150888988, packet 269 with DTS 8729752382
[mpeg @ 0x555bcf0e6c00] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 1 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 5 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 15 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 20 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 22 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 23 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 26 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 28 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 32 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 33 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 37 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 38 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 39 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 40 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 41 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 42 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 43 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 44 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 45 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 46 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] start time for stream 47 is not set in estimate_timings_from_pts
[mpeg @ 0x555bcf0e6c00] pes_ext EA is invalid
    Last message repeated 1 times
[mpeg @ 0x555bcf0e6c00] stream 0 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 1 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 2 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 3 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 4 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 5 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 6 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 7 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 8 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 9 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 11 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 12 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 13 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 14 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 15 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 16 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 17 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 18 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 19 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 20 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 21 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 22 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 23 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 24 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 25 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 26 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 27 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 28 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 29 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 30 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 31 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 32 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 33 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 34 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 35 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 36 : no PTS found at end of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 37 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 38 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 39 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 40 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 41 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 42 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 43 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 44 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 45 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 46 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] stream 47 : no TS found at start of file, duration not set
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 0 (Audio: mp3 (mp3float), 0 channels, fltp): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 5 (Audio: dts, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 12 (Audio: mp2, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 26 (Audio: mp2, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 37 (Audio: aac, 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 38 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 39 (Audio: mp2, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 40 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 41 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 42 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 43 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 44 (Audio: mp2, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 45 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 46 (Audio: mp2, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[mpeg @ 0x555bcf0e6c00] Could not find codec parameters for stream 47 (Audio: mp3, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpeg, from '[email protected]':
  Metadata:
    title           : Guestmix
    artist          : MIMA
    album           : 202407
    comment         : techno;house;groove
  Duration: 17:59:27.08, start: 11939.575689, bitrate: 17 kb/s
  Stream #0:0[0x1e0]: Audio: mp3, 0 channels, fltp
  Stream #0:1[0x1c6]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:2[0x1c7]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:3[0x1cc]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:4[0x1e6]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:5[0x8b]: Audio: dts, 0 channels
  Stream #0:6[0x1d2]: Audio: mp2, 44100 Hz, stereo, s16p, 320 kb/s
  Stream #0:7[0x1ce]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:8[0x1cd]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:9[0x1e1]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:10[0x1e3]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:11[0x1c0]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:12[0x1cb]: Audio: mp2, 0 channels, s16p
  Stream #0:13[0x1c3]: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
  Stream #0:14[0x1de]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:15[0x1dd]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:16[0x1c2]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:17[0x1d0]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:18[0x1d9]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:19[0x1c1]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:20[0x1c9]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:21[0x1ef]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:22[0x1d6]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:23[0x1d4]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:24[0x1d3]: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
  Stream #0:25[0x1dc]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:26[0x1da]: Audio: mp2, 0 channels, s16p
  Stream #0:27[0x1e2]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:28[0x1eb]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:29[0x1e4]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:30[0x1c4]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:31[0x1cf]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:32[0x1d7]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:33[0x1d1]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:34[0x1ca]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:35[0x1ec]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:36[0x1c8]: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
  Stream #0:37[0x1d8]: Audio: aac, 0 channels, fltp
  Stream #0:38[0x1e5]: Audio: mp3, 0 channels
  Stream #0:39[0x1df]: Audio: mp2, 0 channels
  Stream #0:40[0x1ee]: Audio: mp3, 0 channels
  Stream #0:41[0x1e9]: Audio: mp3, 0 channels
  Stream #0:42[0x1e8]: Audio: mp3, 0 channels
  Stream #0:43[0x1ea]: Audio: mp3, 0 channels
  Stream #0:44[0x1db]: Audio: mp2, 0 channels
  Stream #0:45[0x1ed]: Audio: mp3, 0 channels
  Stream #0:46[0x1d5]: Audio: mp2, 0 channels
  Stream #0:47[0x1e7]: Audio: mp3, 0 channels

for me interesting change is from mp3 to mpeg:

Input #0, mp3, from '[email protected]':

Input #0, mpeg, from '[email protected]':

my code snippet for writing ID3 tags:

try:
    meta = EasyID3(audio_file)
except mutagen.id3.ID3NoHeaderError:
    meta = mutagen.File(audio_file, easy=True)
    meta.add_tags()
for audiotag in id3_tags:
    meta[audiotag.easyid3_key] = audiotag.value
meta.save()
id3 = mutagen.id3.ID3(audio_file)
id3.add(mutagen.id3.COMM(text=comment.value, lang="eng"))
id3.save()

even mp3check utility show this as some junk bytes, but in both files:

$ mp3check -e [email protected] 
[email protected]:
145580 bytes of junk before first frame header

$ mp3check -e [email protected]
[email protected]:
149666 bytes of junk before first frame header

I can't see where can be problem, do you have any ideas?
Could it be some kind of BUG in mutagen or ffprobe? I have bunch of mp3 files with and without this issue.

Update:
when I created this issue and saw its ID, it is really some kind of devil's problem :)

@tyctor
Copy link
Author

tyctor commented Dec 1, 2024

Adding screenshot of two wrong and two good mp3, maybe someone with sharp eye can see something
screenshot-radiopunctum cz-2024 12 02-00_31_39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant