[FFmpeg-user] ffmpeg convert audio noise.how to improve the command?

张凯 zhangkai.gis at 163.com
Wed Aug 7 11:36:15 EEST 2019


Hi,
    I have a server to access the audio stream(fmt g722).When I use ffmpeg to convert the stream to aac( ffmpeg -thread_queue_size 128  -f g722 -i test/01334516771/1/alive -acodec aac -f flv rtmp://127.0.0.1:8080/myapp/01334516771_1_live) I only get noise.below is the ffmpeg's output
[go at tdsg vavms]$ ffmpeg -thread_queue_size 128  -f g722 -i test/01334516771/1/alive -acodec aac -f flv rtmp://127.0.0.1:8080/myapp/01334516771_1_live
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
  configuration: --disable-x86asm
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
Input #0, g722, from 'test/01334516771/1/alive':
  Duration: N/A, bitrate: 64 kb/s
    Stream #0:0: Audio: adpcm_g722, 16000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (adpcm_g722 (g722) -> aac (native))
Press [q] to stop, [?] for help
Output #0, flv, to 'rtmp://127.0.0.1:8080/myapp/01334516771_1_live':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Audio: aac (LC) ([10][0][0][0] / 0x000A), 16000 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc57.107.100 aac
[flv @ 0x385a3c0] Failed to update header with correct duration.55x
[flv @ 0x385a3c0] Failed to update header with correct filesize.
size=     261kB time=00:00:29.95 bitrate=  71.3kbits/s speed=0.256x


I found the speed is a little low. should I set some args to make the sound?


Thanks,
zhangkai


More information about the ffmpeg-user mailing list