3 Ways to Change Bitrate on MP3 Files https://www.online-tech-tips.com/software-reviews/change-bitrate-on-mp3-files-tutorial/

3 Ways to Change Bitrate on MP3 Files

 

Want to change the bitrate on your MP3 files? This can be useful if you need to reduce the size of your MP3 files, for example. A MP3 file at 320 kbps, the highest bitrate allowed for MP3 files, could be reduced to 192 kbps in order to significantly reduce the size of the MP3 file.

There would be a loss of quality, but the difference would be negligible to most listeners using standard speakers or headphones. If you’re an audiophile, then in addition to having expensive audio equipment, you’re probably never going to use the MP3 format anyway.

Most likely you’ll be using a compressed or uncompressed lossless format like PCM Audio, WAV, AIFF, FLAC, ALAC, or APE. An uncompressed PCM audio file is about 10 times bigger than a CD quality MP3 file.

The MP3 format is a lossy format, which means audio quality is sacrificed in order to keep the relatively small size of the files. Pretty much every site will tell you that you should never convert a lossless format audio file to MP3 format unless you are OK with losing some audio quality.

This is true almost all of the time. The only time it might make sense is if you have a lower bitrate audio file in a high quality format like WAV. For example, it might make sense to convert a 96 kbps WAV file to MP3, but only if you choose a bitrate of 192 kbps or higher. The higher bitrate on the MP3 file will allow it to maintain the same quality as the WAV file, even though it is a lower bitrate.

 

The second thing you’ll read is that you should never convert a lower bitrate stream to a higher bitrate stream and hope that it sounds better. You cannot gain quality by increasing the bitrate. This is exactly correct. You will actually reduce the quality of your MP3 file if you try to convert up the bitrate.

If you want a higher bitrate MP3 than you currently have, you need to go back to the source (CD, etc) and extract that audio at full quality. Then you can convert that file into a higher bitrate MP3 file.

The last thing you should know is that it is not advisable to convert between lossy formats as you will continue to loss quality. It is OK, however, to convert between lossless formats as the quality is retained.

So now that you understand a few of the basics of the best ways to convert audio files to different bitrates, let’s talk about the programs that can help us. Note that I checked all of these programs on VirusTotal to make sure they are 100% clean.

ffmpeg:编解码过程,基本用法 - zxqstrong - 博客园 https://www.cnblogs.com/zxqstrong/p/4555517.html

# ffmpeg -i film.avi -b 1.5M film.mp4
#You can encode to several formats at the same time and define a mapping from input stream to output streams:
#ffmpeg Documentation http://ffmpeg.org/ffmpeg.html#Video-and-Audio-file-format-conversion
'''
You can encode to several formats at the same time and define a mapping from input stream to output streams:
ffmpeg -i /tmp/a.wav -map 0:a -b:a 64k /tmp/a.mp2 -map 0:a -b:a 128k /tmp/b.mp2
Converts a.wav to a.mp2 at 64 kbits and to b.mp2 at 128 kbits. ’-map file:index’ specifies which input stream is used for each output stream, in the order of the definition of output streams.
'''
bm_mp3='192kbps.mp3'
bm_mp3_320 = bm_mp3.replace('.mp3', '_320kbps34.mp3')
d = '{} -i {} -map 0:a -b:a 320K {}'.format(ffmpeg_f_dir, bm_mp3, bm_mp3_320)
os.system(d)
print(d)

  

C:\Users\sas\AppData\Roaming\Python\Python36\site-packages\requests\__init__.py:80: RequestsDependencyWarning: urllib3 (1.16) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
ffmpeg version N-90553-gbe502ec6cd Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 12.100 / 56. 12.100
libavcodec 58. 16.100 / 58. 16.100
libavformat 58. 10.100 / 58. 10.100
libavdevice 58. 2.100 / 58. 2.100
libavfilter 7. 13.100 / 7. 13.100
libswscale 5. 0.102 / 5. 0.102
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Input #0, mp3, from '192kbps.mp3':
Metadata:
title : 夜的钢琴曲(五)
artist : 非笔墨
album_artist : 非笔墨
TYER : NaN
track : 1
disc : 1/2
lyrics-eng : 1801835885
Duration: 00:02:10.85, start: 0.025056, bitrate: 233 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
Metadata:
encoder : LAME3.99r
Side data:
replaygain: track gain - -4.500000, track peak - unknown, album gain - unknown, album peak - unknown,
Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Cover (front)
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '192kbps_320kbps34.mp3':
Metadata:
TIT2 : 夜的钢琴曲(五)
TPE1 : 非笔墨
TPE2 : 非笔墨
TYER : NaN
TRCK : 1
TPOS : 1/2
lyrics-eng : 1801835885
TSSE : Lavf58.10.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 320 kb/s
Metadata:
encoder : Lavc58.16.100 libmp3lame
Side data:
replaygain: track gain - -4.500000, track peak - unknown, album gain - unknown, album peak - unknown,
size= 5112kB time=00:02:10.82 bitrate= 320.1kbits/s speed=16.4x
video:0kB audio:5111kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.023845%
ffmpeg-20180331-be502ec-win64-static_ffmpeg.exe -i 192kbps.mp3 -map 0:a -b:a 320K 192kbps_320kbps34.mp3 Process finished with exit code 232

  

提高比特率 有损 无损 Video-and-Audio-file-format-conversion 视频声音转码的更多相关文章

  1. <video>和<audio>标签,对视频和音频的支持

    H5新增了<video>和<audio>标签,提供对视频和音频的支持 <audio>的属性与<video>属性相同 <video> vide ...

  2. html5新媒体播放器标签video、audio 与embed、object

    html5里的一些新的标签,看到里面object.embed.video.audio都可以添加视频或音频文件 embed是针对非IE的浏览器的媒体播放器 video是html5出的一种新标准,但并不是 ...

  3. Combining an audio file with video file in python

    Combining an audio file with video file in python - Stack Overflow https://stackoverflow.com/questio ...

  4. video 与 audio

    Play方法:使用play方法来播放媒体,自动将元素的paused属性的值变为false.Pause方法:使用pause方法来暂停播放,自动将元素的paused属性的值变为true.Load方法:使用 ...

  5. HTML5中Video和Audio

    相关属性 src属性 该属性指定媒体数据的URL地址. autoplay属性 在该属性中指定是否在页面加载后自动播放,使用方法: <video src="test.mov" ...

  6. 范仁义html+css课程---9、video、audio、canvas和svg元素略讲

    范仁义html+css课程---9.video.audio.canvas和svg元素略讲 一.总结 一句话总结: video:HTML5视频标签. audio:html5音频标签. canvas:绘制 ...

  7. Sound (audio file) player in java - working source code example

    转载自:http://ganeshtiwaridotcomdotnp.blogspot.com/2011/12/sound-audio-file-player-in-java-working.html ...

  8. video和audio

    1.video 使用: <video width="320" height="240" src="http://www.jb51.net/mov ...

  9. Xilinx低比特率高品质 ABR 视频实时转码(HPE 参考架构)

    Xilinx低比特率高品质 ABR 视频实时转码(HPE 参考架构) 介绍 对实时视频流的需求给视频服务提供商带来了严峻挑战,必须在管理基础设施和互联网带宽运营成本,还要为客户提供高质量体验.鉴于视频 ...

随机推荐

  1. 痛苦的版本对齐(3) cygwin下的路径引用(sed解决篇)

    上次问题(见http://www.cnblogs.com/yvivid/p/3546649.html),.depend信息路径错误的问题. 主要尝试了,在(虚拟机下构建)linux下编译,确实没有问题 ...

  2. 转载 js弹出框、对话框、提示框、弹窗总结

    转载:https://blog.csdn.net/huileiforever/article/details/9464659 一.JS的三种最常见的对话框   //================== ...

  3. 如何在开发时用PC端对移动端页面进行调试

    原文转载于:https://cnodejs.org/topic/56ebdf2db705742136388f71 项目名称: spy-debugger 项目地址:https://github.com/ ...

  4. mac下出现xcrun: error导致git无法使用的解决办法

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun BY  ...

  5. Leetcode 312.戳气球

    戳气球 有 n 个气球,编号为0 到 n-1,每个气球上都标有一个数字,这些数字存在数组 nums 中. 现在要求你戳破所有的气球.每当你戳破一个气球 i 时,你可以获得 nums[left] * n ...

  6. Android滚动页面位置指示器:CircleIndicator

     Android滚动页面位置指示器:CircleIndicator CircleIndicator是github上的一个开源的用于页面滚动时候的位置指示器,指示当前页面在总的页面中的位置和前后位置 ...

  7. POJ-2773 Happy 2006,暴力2700ms+水过!

                                                         Happy 2006 这个题很可能会超时的,但我几乎暴力的方法2700ms+过了,可能是后台水 ...

  8. POJ3150:Cellular Automaton

    题意看不懂加题目想不通,很菜. n<=500个数围城环,每次操作对每个数Ai把与i在环上相距不超过d<n/2(包括Ai)的数加起来取模m<=1e6,求K<=1e7次操作后的环. ...

  9. Heredoc和Nowdoc

    就象heredoc结构类似于双引号字符串,Nowdoc结构是类似于单引号字符串的.Nowdoc结构很象heredoc结构,但是 nowdoc不进行解析操作 . 这种结构很适合用在不需要进行转义的PHP ...

  10. 出现 Assigning the return value of new by reference is deprecated in xxxx &&“Warning: Call-time pass-by-reference has been deprecated”怎么办?

    自从php5.3,越来越多的人会遇到“Assigning the return value of new by reference is deprecated in xxxx”这样的提示,尤其是在国外 ...