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

The merged file got warning with ffmpeg #51

Open
hellodword opened this issue Apr 29, 2024 · 0 comments
Open

The merged file got warning with ffmpeg #51

hellodword opened this issue Apr 29, 2024 · 0 comments

Comments

@hellodword
Copy link

hellodword commented Apr 29, 2024

$ go version
go version go1.22.1 linux/amd64

$ ffmpeg -version
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

$ git log --oneline -1
2942c1d (grafted, HEAD -> main, origin/main, origin/HEAD) Bump github.com/stretchr/testify from 1.8.2 to 1.8.4

$ ffmpeg -y -f lavfi -i anullsrc=r=48000:cl=stereo -t 0.1 -b:a 192k -ac 2 1.mp3
$ ffmpeg -y -f lavfi -i anullsrc=r=48000:cl=stereo -t 0.1 -b:a 192k -ac 2 2.mp3

$ ffmpeg -i 1.mp3 
Input #0, mp3, from '1.mp3':
  Metadata:
    encoder         : Lavf58.76.100
  Duration: 00:00:00.14, start: 0.023021, bitrate: 226 kb/s
  Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      encoder         : Lavc58.13

$ go run ./cmd/tui --output 3.mp3 1.mp3 2.mp3 
$ ffmpeg -i 3.mp3 
[mp3 @ 0x55837d41e280] Skipping 576 bytes of junk at 426.
Input #0, mp3, from '3.mp3':
  Metadata:
    track           : 1
    encoder         : https://github.com/crra/mp3binder, dev-build
    title           : Mp3binder
  Duration: 00:00:00.37, start: 0.000000, bitrate: 185 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 0.168000
      Metadata:
        title           : 1
    Chapter #0:1: start 0.168000, end 0.336000
      Metadata:
        title           : 2
  Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 176 kb/s

I guess the Skipping warning means the XingFrame, right?

mp3 frame head &{Version:1 Layer:3 Protecttion:1 BitrateIndex:5 SampleRateIndex:0 Padding:1 Private:0 Mode:3 ModeExtension:0 Copyright:0 Original:0 Emphasis:0 SampleSize:1152 FrameSize:209}
mp3 bitrate:64000,samplerate:44100,channelcount:2
00000000  ff fb 52 c0 00 00 00 00  00 00 00 00 00 00 00 00  |..R.............|
00000010  00 00 00 00 00 58 69 6e  67 00 00 00 03 00 00 00  |.....Xing.......|
00000020  0e 00 00 1f 80 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00                                                |.|
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