ffmpeg convert audio noise.how to improve the command?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg convert audio noise.how to improve the command?

zhangkai.gis
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@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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

Carl Eugen Hoyos-2


> Am 07.08.2019 um 10:36 schrieb 张凯 <[hidden email]>:
>
>    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.

Please provide your input file.

> noibelowse.is the ffmpeg's output
> [go@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

Unrelated: You should never use this configure option.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

zhangkai.gis
Hi Carl,
    I will recompile ffmpeg,the input file is Linux named pipe file.so it is not a regular file. the content is the device's audio stream(codec is g722).Let me show how this work:many device report there stream to a public tcp address (222.222.210.52:8888 eg) then my software put those stream to different Linux named pipe. then I use ffmpeg to convert this stream to a stream media. hope I make it clear.
Thanks
zhangkai



On 08/07/2019 17:49, Carl Eugen Hoyos wrote:


> Am 07.08.2019 um 10:36 schrieb 张凯 <[hidden email]>:
>
>    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.

Please provide your input file.

> noibelowse.is the ffmpeg's output
> [go@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

Unrelated: You should never use this configure option.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

Carl Eugen Hoyos-2


> Am 07.08.2019 um 16:48 schrieb 张凯 <[hidden email]>:
>
> the input file is Linux named pipe file.so it is not a regular file.

Then please write the content of the pipe in a regular file and provide it.

Please do not top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

zhangkai.gis
Hi Carl,
I record the audio.It is int the attachment. the content should be "hello world"
thanks,
zhangkai
On 8/8/2019 05:38,Carl Eugen Hoyos<[hidden email]> wrote:


Am 07.08.2019 um 16:48 schrieb 张凯 <[hidden email]>:

the input file is Linux named pipe file.so it is not a regular file.

Then please write the content of the pipe in a regular file and provide it.

Please do not top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

01334516771_1.g722 (218K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

zhangkai.gis
In reply to this post by Carl Eugen Hoyos-2
Hi Carl,
    The last attachment is not ok.Please check this one. It should be 10s audio,But I use vlc play it.It only 2s noise.
thanks
zhangkai
On 8/8/2019 05:38,Carl Eugen Hoyos<[hidden email]> wrote:


Am 07.08.2019 um 16:48 schrieb 张凯 <[hidden email]>:

the input file is Linux named pipe file.so it is not a regular file.

Then please write the content of the pipe in a regular file and provide it.

Please do not top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

01334516771_1.g722 (27K) Download Attachment
01334516771_1.g722 (27K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

Carl Eugen Hoyos-2
Am Do., 8. Aug. 2019 um 09:05 Uhr schrieb 张凯 <[hidden email]>:

> The last attachment is not ok.

The first attachment indicates that you are using a variable bit rate codec,
while G.722 is always constant bit rate.

> Please check this one. It should be 10s audio, But I use vlc play it.
> It only 2s noise.

10 seconds of G722 have to be 4-5 times larger (because of the
bitrate of G722).

How did you create the sample?

Please find out what "top-posting" means and avoid it here if you
still want support.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg convert audio noise.how to improve the command?

zhangkai.gis


The last attachment is not ok.
I will check the device.
>The first attachment indicates that you are using a variable bit rate codec,
>while G.722 is always constant bit rate.The first attachment is not good, because I insert some 0 bytes by mistake,You can see the first attachment is 1024x size.And every 1024 segment bytes there are 0 in the tail.

Please check this one. It should be 10s audio, But I use vlc play it.
It only 2s noise.

>10 seconds of G722 have to be 4-5 times larger (because of the
>bitrate of G722).
>How did you create the sample?
I create the sample by record the stream uploaded by the device through the tcp socket.I make a software listen a port then the device establish a tcp socket to the server and report the stream.I put the second right one in attachment.
Thanks,zhangkai





_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".