跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Apple] 解决音频在 iOS 的 File 上播放卡顿的问题

发表于
问题:ffmpeg 转换的 mp3 音频在 File 上播放总是会在开头 10 秒卡顿,就像 CD 卡碟一样,之后就正常了。而这个音频放在电脑上或者 iOS 第三方的播放器上是流畅的,但又不想在 iOS 上专门装个播放器

用的是这个代码
ffmpeg -i input.mp3 -q:a 5 output.mp3

解决:要么是 File 自动的播放器太差,要么是 ffmpeg 转换音频时有哪参数不对(结果是和两者都有关系),网络上找不到答案,在 GPT 问到了兼容性比较好的代码
ffmpeg -i input.mp3 -ar 44100 output.mp3

其中 -ar 44100 参数的意思是,Sets the audio sampling frequency to 44100 Hz, which is standard for audio CDs and widely supported. 不得不说,苹果 File 的音频兼容性真的堪忧

希望可以帮助到一些人

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.