Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#1070 closed defect (invalid)

Volume not working as documented (fails in dB)

Reported by: ramitbhalla Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

According to the ffmpeg documentation in section 21.12 vol can accept either an integer or a decimal with a dB suffix. The integer works fine but when I use a decimal or a dB suffix it fails.

When I try to use a decimal number or use the dB suffix ffmpeg fails.

Here is the command I'm using:
-drc_scale 0.8 -i "D:\Himoe_USA_File.ts" -vcodec libx264 -b 2000000 -acodec libvo_aacenc -ab 160k -ac 2 -vol 26dB "D:\Himoe_USA_File.mp4"

This is the output:
--> ffmpeg version N-37915-g6cb2085 Copyright (c) 2000-2012 the FFmpeg developers
--> built on Feb 15 2012 20:47:20 with gcc 4.6.2
--> configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
--> libavutil 51. 39.100 / 51. 39.100
--> libavcodec 54. 3.100 / 54. 3.100
--> libavformat 54. 1.100 / 54. 1.100
--> libavdevice 53. 4.100 / 53. 4.100
--> libavfilter 2. 62.100 / 2. 62.100
--> libswscale 2. 1.100 / 2. 1.100
--> libswresample 0. 6.100 / 0. 6.100
--> libpostproc 52. 0.100 / 52. 0.100
--> [mpeg2video @ 02FA65E0] mpeg_decode_postinit() failure
--> Last message repeated 19 times
--> [mpegts @ 01C0D660] PES packet size mismatch
--> Input #0, mpegts, from 'D:\Himoe_USA_File.ts':
--> Duration: 00:00:51.70, start: 30981.471378, bitrate: 9754 kb/s
--> Video duration=51.7
--> Program 1009
--> No Program
--> Stream #0:0[0x7c0]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 17782 kb/s, 64.74 fps, 59.94 tbr, 90k tbn, 119.88 tbc
--> Stream #0:1[0x7c1]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
--> Please use -b:a or -b:v, -b is ambiguous
--> Expected int64 for vol but found 26dB

Change History (3)

comment:1 Changed 5 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

Please reopen if the following does not work as expected:

$ ffmpeg -i Himoe_USA_File.ts -af volume=26dB -acodec libvo_aacenc out.aac

comment:2 Changed 5 years ago by ramitbhalla

it doesn't work - it fails with the following message:

ffmpeg version N-37915-g6cb2085 Copyright (c) 2000-2012 the FFmpeg developers

built on Feb 15 2012 20:47:20 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab

le-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --en
able-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib

libavutil 51. 39.100 / 51. 39.100
libavcodec 54. 3.100 / 54. 3.100
libavformat 54. 1.100 / 54. 1.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

[mpeg2video @ 01F05B40] mpeg_decode_postinit() failure

Last message repeated 19 times

[mpegts @ 02049540] PES packet size mismatch
Input #0, mpegts, from '..\MCEBuddyArchive\Himoe_USA_File.ts':

Duration: 00:00:51.70, start: 30981.471378, bitrate: 9754 kb/s
Program 1009
No Program

Stream #0:0[0x7c0]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 17782 kb/s, 64.74 fps, 59.94 tbr

, 90k tbn, 119.88 tbc

Stream #0:1[0x7c1]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s

Unrecognized option 'af'
Failed to set value 'volume=26dB' for option 'af'

comment:3 Changed 5 years ago by cehoyos

Sorry, I made a typo, the correct syntax is

$ ffmpeg -i Himoe_USA_File.ts -vf volume=26dB -acodec libvo_aacenc out.aac
Note: See TracTickets for help on using tickets.