audio


After transcoding using ffmpeg, I found audio bitrate is not the value I expected


I used ffmpeg to transcode some files into new format and with certain parameters. After transcoding, I found some output file's metadata is not what I expected, the output value is not the same with I set in the cmd line.
Before transcoding I check the media info of the inputfile:
ffmpeg -i dz2015082000010.mpg
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
configuration: --enable-static --enable-memalign-hack --enable-libx264
--enable-gpl --enable-pthreads --enable-version3 --enable-avisynth --enable-bzlib --enable-iconv --enable-zlib --enable-nonfree --extra-cflags=-I/usr/local/include/ --extra-ldflags=-L/usr/local/lib --enable-debug=3 --disable-optimizations --enable-nonfree --enable-libmp3lame libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 /
57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 /
54. 1.100 Input #0, mpeg, from 'dz2015082000010.mpg': Duration: 00:01:49.30, start: 0.685389, bitrate: 15723 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr,
90k tbn, 50 tbc
Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s At least one output file must be specified
Next, transcoding with the cmd line:
ffmpeg -i dz2015082000010.mpg -vcodec libx264 -b:v 4000k -s 1920x1080 -r 25 -g 25 -vprofile main -acodec aac -strict -2 -b:a 128k -ac 2 -ar 44100 -y output.ts
After transcoding, I check the media info of the output file:
ffmpeg -i output.ts
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat
4.8.3-9) configuration: --enable-static --enable-memalign-hack --enable-libx264 --enable-gpl --enable-pthreads --enable-version3 --enable-avisynth --enable-bzlib --enable-iconv --enable-zlib --enable-nonfree --extra-cflags=-I/usr/local/include/ --extra-ldflags=-L/usr/local/lib --enable-debug=3 --disable-optimizations --enable-nonfree --enable-libmp3lame libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101
/ 57. 64.101 libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100
/ 6. 65.100 libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100
/ 54. 1.100 Input #0, mpegts, from 'full-2.ts': Duration:
00:01:49.30, start: 1.456778, bitrate: 4455 kb/s Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr,
90k tbn, 50 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 4 kb/s At least one output file must be
specified
I don't know why the audio bitrate is changed to 4 kb/s after transcoding, I set the value with -b:a 128k before, anybody can help me? BTW, the output file sounds all right.
The native encoder won't waste bits on silent portions. And it doesn't do strict CBR. If you really need an output to be around the target bitrate, you can mix in a very low level of noise.

Related Links

iOS: Play Spotify Audio in silent mode
Fair use on the audio from movies
How to force A/V sync using mkvmerge and external time-codes?
ffmpeg radio live transcoding mp3/aac to g722
Loop a song for a certain amount of time using FFMPEG
Audio streaming with React native
LibGDX, Android audio spectrum analyse from MP3
How to use turn detection in opensmile
ffmpeg concat only continues audio, not video
mkv file progressively out of sync
iOS - Convert Audio Format (opus to mp3)
How to play an audio mp3 file in appery
Listen to audio output stream on Android and/or iOS
Applescript: play two sounds simultaneously
AN ERROR, Raspbian, Gstreamer - Raspberry Pi project
Streaming audio from internet with Swift 3

Categories

HOME
okta
openerp
sendmail
dependent-type
modularity
logistic-regression
python-3.6
64bit
outlook-addin
android-animation
geoserver
glusterfs
jasperserver
lokijs
fontforge
benchmarking
licode
zillow
bootstrap-select
media
probability-theory
google-developers-console
rubinius
interceptor
nodemon
android-appbarlayout
uppaal
affiliate
coupon
master-detail
hipchat
hp-quality-center
chmod
required
azure-virtual-machine
sqlcmd
youtube-analytics
grayscale
watchdog
mlt
protactor
gemfile
simplemodal
wistia
tivoli-identity-manager
sift
spring-java-config
nsoutlineview
flowgear
webtorrent
plone-4.x
mapfragment
test-and-target
nsolid
openoffice-writer
phpinfo
shapely
dfdl
argo
nameerror
steroids
openembedded
unique-constraint
jaxb2-maven-plugin
android-bundle
ontouchevent
build-system
slab
google-plugin-eclipse
gliffy
zend-http-client
wtl
member
subsonic2.2
tankauth
n-tier
apparmor
teamcity-7.1
mongodb-indexes
linq-to-lucene
telerik-test-studio
svggraph
bitmapimage
fluent-security
commission-junction
kendo-tooltip
wsimport
uipicker
jquery-mobile-collapsible
icarousel
happstack
cloning
iasyncresult
xmlnodelist
httpverbs
executequery
application-design
olpc
zero-pad
table-driven
flashlite
pdc2008

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile