#9891 closed defect (fixed)

can not transcoding amr to pcm from rtp stream

Reported by: songtao Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: RTP amrnb
Cc: songtao Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
ffmpeg can not directly transcode amr to pcm from rtp stream, but it can transcode amr to pcm from file.

How to reproduce:

  1. ffmpeg -v 9 -loglevel 99 -protocol_whitelist 'file,rtp,udp' -i source.sdp -c:a pcm_s16le pcm.wav

ffmpeg version n5.1 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,rtp,udp'.
Reading option '-i' ... matched as input url with argument 'source.sdp'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_s16le'.
Reading option 'pcm.wav' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url source.sdp.
Successfully parsed a group of options.
Opening an input file: source.sdp.
[NULL @ 0x55e1104975c0] Opening 'source.sdp' for reading
Probing sdp score:50 size:197
[sdp @ 0x55e1104975c0] Format sdp probed with size=2048 and score=50
[sdp @ 0x55e1104975c0] sdp: v='0'
[sdp @ 0x55e1104975c0] sdp: o='- 0 0 IN IP4 127.0.0.1'
[sdp @ 0x55e1104975c0] sdp: s='No Name'
[sdp @ 0x55e1104975c0] sdp: c='IN IP4 127.0.0.1'
[sdp @ 0x55e1104975c0] sdp: t='0 0'
[sdp @ 0x55e1104975c0] sdp: a='tool:libavformat LIBAVFORMAT_VERSION'
[sdp @ 0x55e1104975c0] sdp: m='audio 10018 RTP/AVP 107'
[sdp @ 0x55e1104975c0] sdp: b='AS:128'
[sdp @ 0x55e1104975c0] sdp: a='rtpmap:107 AMR/8000/1'
[sdp @ 0x55e1104975c0] audio codec set to: amr_nb
[sdp @ 0x55e1104975c0] audio samplerate set to: 8000
[sdp @ 0x55e1104975c0] audio channels set to: 1
[sdp @ 0x55e1104975c0] sdp: a='fmtp:107 octet-align=1'
[udp @ 0x55e11049cf80] end receive buffer size reported is 425984
[udp @ 0x55e11049d080] end receive buffer size reported is 425984
[sdp @ 0x55e1104975c0] setting jitter buffer size to 500
[sdp @ 0x55e1104975c0] Before avformat_find_stream_info() pos: 197 bytes read:197 seeks:0 nb_streams:1
[sdp @ 0x55e1104975c0] All info found
[sdp @ 0x55e1104975c0] stream 0: start_time: 0 duration: NOPTS
[sdp @ 0x55e1104975c0] format: start_time: 0 duration: NOPTS (estimate from bit rate) bitrate=0 kb/s
[sdp @ 0x55e1104975c0] After avformat_find_stream_info() pos: 197 bytes read:197 seeks:0 frames:1
Input #0, sdp, from 'source.sdp':

Metadata:

title : No Name

Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0, 1, 1/8000: Audio: amr_nb, 8000 Hz, mono, fltp

Successfully opened the file.
Parsing a group of options: output url pcm.wav.
Applying option c:a (codec name) with argument pcm_s16le.
Successfully parsed a group of options.
Opening an output file: pcm.wav.
File 'pcm.wav' already exists. Overwrite? [y/N] y
[file @ 0x55e1104df5c0] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
Stream mapping:

Stream #0:0 -> #0:0 (amr_nb (amrnb) -> pcm_s16le (native))

Press [q] to stop, ? for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[graph_0_in_0_0 @ 0x55e1104e1f40] Setting 'time_base' to value '1/8000'
[graph_0_in_0_0 @ 0x55e1104e1f40] Setting 'sample_rate' to value '8000'
[graph_0_in_0_0 @ 0x55e1104e1f40] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0_0 @ 0x55e1104e1f40] Setting 'channel_layout' to value 'mono'
[graph_0_in_0_0 @ 0x55e1104e1f40] tb:1/8000 samplefmt:fltp samplerate:8000 chlayout:mono
[format_out_0_0 @ 0x55e1104e3040] Setting 'sample_fmts' to value 's16'
[format_out_0_0 @ 0x55e1104e3040] auto-inserting filter 'auto_aresample_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[AVFilterGraph @ 0x55e1104e0e80] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_aresample_0 @ 0x55e1104e4700] [SWR @ 0x55e1104e48c0] Using fltp internally between filters
[auto_aresample_0 @ 0x55e1104e4700] ch:1 chl:mono fmt:fltp r:8000Hz -> ch:1 chl:mono fmt:s16 r:8000Hz
Output #0, wav, to 'pcm.wav':

Metadata:

INAM : No Name
ISFT : Lavf59.27.100

Stream #0:0, 0, 1/8000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s

Metadata:

encoder : Lavc59.37.100 pcm_s16le

size= 4kB time=00:00:08.51 bitrate= 4.0kbits/s speed=1.36x

[q] command received. Exiting.

size= 4kB time=00:00:08.51 bitrate= 4.0kbits/s speed=1.22x
video:0kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.259615%
Input file #0 (source.sdp):

Input stream #0:0 (audio): 13 packets read (14752 bytes); 13 frames decoded (2080 samples);
Total: 13 packets (14752 bytes) demuxed

Output file #0 (pcm.wav):

Output stream #0:0 (audio): 13 frames encoded (2080 samples); 13 packets muxed (4160 bytes);
Total: 13 packets (4160 bytes) muxed

[AVIOContext @ 0x55e1104df680] Statistics: 4254 bytes written, 0 seeks, 1 writeouts
13 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x55e1104a0240] Statistics: 197 bytes read, 0 seeks
12:47:42 😃 8-arm> ffplay pcm.wav
ffplay version n5.1 Copyright (c) 2003-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, wav, from 'pcm.wav':= 0KB vq= 0KB sq= 0B f=0/0

Metadata:

title : No Name
encoder : Lavf59.27.100

Duration: 00:00:00.26, bitrate: 130 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s

1.27 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0

12:47:45 😃 8-arm> ffprobe pcm.wav
ffprobe version n5.1 Copyright (c) 2007-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, wav, from 'pcm.wav':

Metadata:

title : No Name
encoder : Lavf59.27.100

Duration: 00:00:00.26, bitrate: 130 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s

12:47:57 😃 8-arm> ffmpeg -i amr.wav -c:a pcm_s16le output-amr-pcm.wav
ffmpeg version n5.1 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

amr.wav: No such file or directory
12:48:15 ?1 8-arm> ffmpeg -i arm.wav -c:a pcm_s16le output-amr-pcm.wav
ffmpeg version n5.1 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'arm.wav':

Metadata:

title : No Name
encoder : Lavf59.27.100

Duration: 00:00:05.66, bitrate: 14 kb/s
Stream #0:0: Audio: amr_nb (8[0][0][0] / 0x0038), 8000 Hz, mono, fltp, 12 kb/s

File 'output-amr-pcm.wav' already exists. Overwrite? [y/N] y
Stream mapping:

Stream #0:0 -> #0:0 (amr_nb (amrnb) -> pcm_s16le (native))

Press [q] to stop, ? for help
Output #0, wav, to 'output-amr-pcm.wav':

Metadata:

INAM : No Name
ISFT : Lavf59.27.100

Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s

Metadata:

encoder : Lavc59.37.100 pcm_s16le

size= 99kB time=00:00:06.36 bitrate= 128.1kbits/s speed= 223x
video:0kB audio:99kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.092374%
12:48:40 😃 8-arm> ffplay output-amr-pcm.wav
ffplay version n5.1 Copyright (c) 2003-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, wav, from 'output-amr-pcm.wav':= 0KB sq= 0B f=0/0

Metadata:

title : No Name
encoder : Lavf59.27.100

Duration: 00:00:06.36, bitrate: 128 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s

1.95 M-A: 0.000 fd= 0 aq= 31KB vq= 0KB sq= 0B f=0/0

12:48:44 😃 8-arm> ffprobe output-amr-pcm.wav
ffprobe version n5.1 Copyright (c) 2007-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, wav, from 'output-amr-pcm.wav':

Metadata:

title : No Name
encoder : Lavf59.27.100

Duration: 00:00:06.36, bitrate: 128 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s

Attachments (3)

output-pcm.wav (2.4 KB ) - added by songtao 21 months ago.
transcoding output
log6.txt (18.1 KB ) - added by songtao 21 months ago.
full log
arm.wav (10.0 KB ) - added by songtao 21 months ago.
output without transcoding

Download all attachments as: .zip

Change History (14)

by songtao, 21 months ago

Attachment: output-pcm.wav added

transcoding output

by songtao, 21 months ago

Attachment: log6.txt added

full log

by songtao, 21 months ago

Attachment: arm.wav added

output without transcoding

comment:1 by Elon Musk, 21 months ago

Resolution: invalid
Status: newclosed

comment:2 by Elon Musk, 21 months ago

Operations are not in sync. Capture must be started before streaming.

in reply to:  2 comment:3 by songtao, 21 months ago

Resolution: invalid
Status: closedreopened

Replying to Elon Musk: capturing before streaming does not fix this problem, the
record still only has less than one second audio whatever how long i record.

  1. start capturing

10:20:26 😃 8-arm> ffmpeg -y -protocol_whitelist 'file,rtp,udp' -i source.sdp -c:a pcm_alaw output-amrwb.wav
ffmpeg version n5.1 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, sdp, from 'source.sdp':

Metadata:

title : No Name

Duration: N/A, start: -0.001000, bitrate: N/A
Stream #0:0: Audio: amr_nb, 8000 Hz, mono, fltp

Stream mapping:

Stream #0:0 -> #0:0 (amr_nb (amrnb) -> pcm_alaw (native))

Press [q] to stop, ? for help
Output #0, wav, to 'output-amrwb.wav':

Metadata:

INAM : No Name
ISFT : Lavf59.27.100

Stream #0:0: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, mono, s16, 64 kb/s

Metadata:

encoder : Lavc59.37.100 pcm_alaw

size= 4kB time=00:00:15.72 bitrate= 1.9kbits/s speed=1.05x

[q] command received. Exiting.

size= 4kB time=00:00:15.72 bitrate= 1.9kbits/s speed= 1x
video:0kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.934783%

  1. streaming

10:20:27 😃 8-arm> ffmpeg -use_wallclock_as_timestamps 1 -f alsa -i hw:0 -map_channel 0.0.0 -ar 8000 -c:a amr_nb -f rtp 'rtp://localhost:10018' -sdp_file source.sdp
ffmpeg version n5.1 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0':

Duration: N/A, start: 1661394131.475158, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (pcm_s16le (native) -> amr_nb (libopencore_amrnb))

Press [q] to stop, ? for help
-map_channel is forwarded to lavfi similarly to -af pan=mono|c0=c0.
[pan @ 0x56319603ecc0] [SWR @ 0x56319605dc80] Input channel layout has a different number of channels than the number of used channels, ignoring layout
[pan @ 0x56319603ecc0] Pure channel mapping detected: 0
[libopencore_amrnb @ 0x56319600a440] bitrate not supported: use one of 4.75k, 5.15k, 5.90k, 6.70k, 7.40k, 7.95k, 10.20k, 12.20k, using 12.20k
Output #0, rtp, to 'rtp://localhost:10018':

Metadata:

encoder : Lavf59.27.100

Stream #0:0: Audio: amr_nb, 8000 Hz, mono, s16, 128 kb/s

Metadata:

encoder : Lavc59.37.100 libopencore_amrnb

size= 97kB time=00:01:01.34 bitrate= 13.0kbits/s speed= 1x

[q] command received. Exiting.

size= 97kB time=00:01:01.36 bitrate= 13.0kbits/s speed= 1x
video:0kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.411750%

  1. check output

10:22:27 😃 8-arm> ffprobe output-amrwb.wav
ffprobe version n5.1 Copyright (c) 2007-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --prefix=/home/jimery/.local
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, wav, from 'output-amrwb.wav':

Metadata:

title : No Name
encoder : Lavf59.27.100

Duration: 00:00:00.46, bitrate: 65 kb/s
Stream #0:0: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, 1 channels, s16, 64 kb/s

Operations are not in sync. Capture must be started before streaming.

Last edited 21 months ago by songtao (previous) (diff)

comment:4 by songtao, 20 months ago

update

comment:5 by Carl Eugen Hoyos, 20 months ago

Priority: importantnormal

I cannot reproduce, please test current FFmpeg git head and please test with file input (and -re) instead of alsa.

in reply to:  5 comment:6 by songtao, 20 months ago

Replying to Carl Eugen Hoyos:

I cannot reproduce, please test current FFmpeg git head and please test with file input (and -re) instead of alsa.

it's so weird, i recompile FFpemg with current git head and use file as input, but this bug still exists. it occurs in my centos as well. copy code is fine, trans-coding will fail. the opencore-amrnb/wb library version is 0.1.5, vo-amrwbenc version is 0.1.3.

log:

  1. recording before streaming

18:58:19 😃 build> ./ffmpeg -loglevel debug -protocol_whitelist 'file,rtp,udp' -i source.sdp -c:a pcm_alaw output.wav
ffmpeg version git-2022-08-29-4fce3bab64 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --enable-pic --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-x86asm --extra-cflags=-I/home/jimery/.local/

include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lm -lpthread' --prefix=/home/jimery/.local

libavutil 57. 34.100 / 57. 34.100
libavcodec 59. 42.103 / 59. 42.103
libavformat 59. 30.100 / 59. 30.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 46.103 / 8. 46.103
libswscale 6. 8.104 / 6. 8.104
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100

Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,rtp,udp'.
Reading option '-i' ... matched as input url with argument 'source.sdp'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_alaw'.
Reading option 'output.wav' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url source.sdp.
Successfully parsed a group of options.
Opening an input file: source.sdp.
[NULL @ 0x557e73786500] Opening 'source.sdp' for reading
[sdp @ 0x557e73786500] Format sdp probed with size=2048 and score=50
[sdp @ 0x557e73786500] audio codec set to: amr_nb
[sdp @ 0x557e73786500] audio samplerate set to: 8000
[sdp @ 0x557e73786500] audio channels set to: 1
[udp @ 0x557e7378c040] end receive buffer size reported is 425984
[udp @ 0x557e7378c140] end receive buffer size reported is 425984
[sdp @ 0x557e73786500] setting jitter buffer size to 500
[sdp @ 0x557e73786500] Before avformat_find_stream_info() pos: 194 bytes read:194 seeks:0 nb_streams:1
[sdp @ 0x557e73786500] All info found
[sdp @ 0x557e73786500] After avformat_find_stream_info() pos: 194 bytes read:194 seeks:0 frames:1
Input #0, sdp, from 'source.sdp':

Metadata:

title : No Name

Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0, 1, 1/8000: Audio: amr_nb, 8000 Hz, mono, fltp

Successfully opened the file.
Parsing a group of options: output url output.wav.
Applying option c:a (codec name) with argument pcm_alaw.
Successfully parsed a group of options.
Opening an output file: output.wav.
[file @ 0x557e737ce480] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
Stream mapping:

Stream #0:0 -> #0:0 (amr_nb (amrnb) -> pcm_alaw (native))

Press [q] to stop, ? for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[graph_0_in_0_0 @ 0x557e737d15c0] Setting 'time_base' to value '1/8000'
[graph_0_in_0_0 @ 0x557e737d15c0] Setting 'sample_rate' to value '8000'
[graph_0_in_0_0 @ 0x557e737d15c0] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0_0 @ 0x557e737d15c0] Setting 'channel_layout' to value 'mono'
[graph_0_in_0_0 @ 0x557e737d15c0] tb:1/8000 samplefmt:fltp samplerate:8000 chlayout:mono
[format_out_0_0 @ 0x557e737d2680] Setting 'sample_fmts' to value 's16'
[format_out_0_0 @ 0x557e737d2680] auto-inserting filter 'auto_aresample_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[AVFilterGraph @ 0x557e737d04c0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_aresample_0 @ 0x557e737d3d80] [SWR @ 0x557e737d3ec0] Using fltp internally between filters
[auto_aresample_0 @ 0x557e737d3d80] ch:1 chl:mono fmt:fltp r:8000Hz -> ch:1 chl:mono fmt:s16 r:8000Hz
Output #0, wav, to 'output.wav':

Metadata:

INAM : No Name
ISFT : Lavf59.30.100

Stream #0:0, 0, 1/8000: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, mono, s16, 64 kb/s

Metadata:

encoder : Lavc59.42.103 pcm_alaw

size= 3kB time=00:00:13.30 bitrate= 1.8kbits/s speed=1.06x

[q] command received. Exiting.

All streams finished for output file #0
Terminating muxer thread 0
[AVIOContext @ 0x557e737ce780] Statistics: 3308 bytes written, 0 seeks, 1 writeouts
size= 3kB time=00:00:13.30 bitrate= 2.0kbits/s speed=0.95x
video:0kB audio:3kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.375000%
Input file #0 (source.sdp):

Input stream #0:0 (audio): 20 packets read (22400 bytes); 20 frames decoded (3200 samples);
Total: 20 packets (22400 bytes) demuxed

Output file #0 (output.wav):

Output stream #0:0 (audio): 20 frames encoded (3200 samples); 20 packets muxed (3200 bytes);
Total: 20 packets (3200 bytes) muxed

20 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x557e7378f1c0] Statistics: 194 bytes read, 0 seeks
18:58:43 😃 build> ffprobe output.wav
ffprobe version n5.1 Copyright (c) 2007-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --disable-bzlib --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

Input #0, wav, from 'output.wav':

Metadata:

title : No Name
encoder : Lavf59.30.100

Duration: 00:00:00.40, bitrate: 66 kb/s
Stream #0:0: Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, 1 channels, s16, 64 kb/s

18:58:49 😃 build> ./ffmpeg -loglevel debug -protocol_whitelist 'file,rtp,udp' -i source.sdp -c:a copy output.amr
ffmpeg version git-2022-08-29-4fce3bab64 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --enable-pic --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-x86asm --extra-cflags=-I/home/jimery/.local/

include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lm -lpthread' --prefix=/home/jimery/.local

libavutil 57. 34.100 / 57. 34.100
libavcodec 59. 42.103 / 59. 42.103
libavformat 59. 30.100 / 59. 30.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 46.103 / 8. 46.103
libswscale 6. 8.104 / 6. 8.104
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100

Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,rtp,udp'.
Reading option '-i' ... matched as input url with argument 'source.sdp'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option 'output.amr' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url source.sdp.
Successfully parsed a group of options.
Opening an input file: source.sdp.
[NULL @ 0x55685601b500] Opening 'source.sdp' for reading
[sdp @ 0x55685601b500] Format sdp probed with size=2048 and score=50
[sdp @ 0x55685601b500] audio codec set to: amr_nb
[sdp @ 0x55685601b500] audio samplerate set to: 8000
[sdp @ 0x55685601b500] audio channels set to: 1
[udp @ 0x556856021040] end receive buffer size reported is 425984
[udp @ 0x556856021140] end receive buffer size reported is 425984
[sdp @ 0x55685601b500] setting jitter buffer size to 500
[sdp @ 0x55685601b500] Before avformat_find_stream_info() pos: 194 bytes read:194 seeks:0 nb_streams:1
[sdp @ 0x55685601b500] After avformat_find_stream_info() pos: 194 bytes read:194 seeks:0 frames:0
Input #0, sdp, from 'source.sdp':

Metadata:

title : No Name

Duration: N/A, bitrate: N/A
Stream #0:0, 0, 1/8000: Audio: amr_nb, 8000 Hz, mono, fltp

Successfully opened the file.
Parsing a group of options: output url output.amr.
Applying option c:a (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: output.amr.
File 'output.amr' already exists. Overwrite? [y/N]
Not overwriting - exiting
[AVIOContext @ 0x5568560241c0] Statistics: 194 bytes read, 0 seeks
Exiting normally, received signal 2.
19:00:26 ?1 build> rm output.amr
19:00:27 😃 build>
19:00:28 😃 build> ./ffmpeg -loglevel debug -protocol_whitelist 'file,rtp,udp' -i source.sdp -c:a copy output.amr
ffmpeg version git-2022-08-29-4fce3bab64 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --enable-pic --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-x86asm --extra-cflags=-I/home/jimery/.local/

include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lm -lpthread' --prefix=/home/jimery/.local

libavutil 57. 34.100 / 57. 34.100
libavcodec 59. 42.103 / 59. 42.103
libavformat 59. 30.100 / 59. 30.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 46.103 / 8. 46.103
libswscale 6. 8.104 / 6. 8.104
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100

Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,rtp,udp'.
Reading option '-i' ... matched as input url with argument 'source.sdp'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option 'output.amr' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url source.sdp.
Successfully parsed a group of options.
Opening an input file: source.sdp.
[NULL @ 0x559a07d30500] Opening 'source.sdp' for reading
[sdp @ 0x559a07d30500] Format sdp probed with size=2048 and score=50
[sdp @ 0x559a07d30500] audio codec set to: amr_nb
[sdp @ 0x559a07d30500] audio samplerate set to: 8000
[sdp @ 0x559a07d30500] audio channels set to: 1
[udp @ 0x559a07d36040] end receive buffer size reported is 425984
[udp @ 0x559a07d36140] end receive buffer size reported is 425984
[sdp @ 0x559a07d30500] setting jitter buffer size to 500
[sdp @ 0x559a07d30500] Before avformat_find_stream_info() pos: 194 bytes read:194 seeks:0 nb_streams:1
[sdp @ 0x559a07d30500] All info found
[sdp @ 0x559a07d30500] After avformat_find_stream_info() pos: 194 bytes read:194 seeks:0 frames:1
Input #0, sdp, from 'source.sdp':

Metadata:

title : No Name

Duration: N/A, start: -0.001000, bitrate: N/A
Stream #0:0, 1, 1/8000: Audio: amr_nb, 8000 Hz, mono, fltp

Successfully opened the file.
Parsing a group of options: output url output.amr.
Applying option c:a (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: output.amr.
[file @ 0x559a07d38340] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
Output #0, amr, to 'output.amr':

Metadata:

title : No Name
encoder : Lavf59.30.100

Stream #0:0, 0, 1/8000: Audio: amr_nb, 8000 Hz, mono, fltp

Stream mapping:

Stream #0:0 -> #0:0 (copy)

Press [q] to stop, ? for help
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
size= 18kB time=00:00:11.90 bitrate= 12.1kbits/s speed=1.06x

[q] command received. Exiting.

All streams finished for output file #0
Terminating muxer thread 0
[AVIOContext @ 0x559a07d77fc0] Statistics: 20166 bytes written, 0 seeks, 1 writeouts
size= 20kB time=00:00:11.90 bitrate= 13.6kbits/s speed=0.946x
video:0kB audio:20kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.029762%
Input file #0 (source.sdp):

Input stream #0:0 (audio): 18 packets read (20160 bytes);
Total: 18 packets (20160 bytes) demuxed

Output file #0 (output.amr):

Output stream #0:0 (audio): 18 packets muxed (20160 bytes);
Total: 18 packets (20160 bytes) muxed

0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x559a07d391c0] Statistics: 194 bytes read, 0 seeks
19:00:47 😃 build> ffprobe output.amr
ffprobe version n5.1 Copyright (c) 2007-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --disable-stripping --extra-cflags=-I/home/jimery/.local/include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-nonfree --enable-

libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc --disable-bzlib --prefix=/home/jimery/.local

libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100

[amr @ 0x55f18508bd40] Estimating duration from bitrate, this may be inaccurate
Input #0, amr, from 'output.amr':

Duration: 00:00:13.01, bitrate: 12 kb/s
Stream #0:0: Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, fltp, 12 kb/s

19:00:55 😃 build>

  1. streaming

8:57:46 ?255 build>
18:57:46 ?130 build> ./ffmpeg -loglevel debug -stream_loop -1 -re -i ~/Downloads/guodegang.m4a -ac 1 -ar 8000 -c:a amr_nb -f rtp 'rtp://localhost:10018' -sdp_file source.sdp
ffmpeg version git-2022-08-29-4fce3bab64 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 10 (Debian 10.2.1-6)
configuration: --enable-pic --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-x86asm --extra-cflags=-I/home/jimery/.local/

include --extra-ldflags=-L/home/jimery/.local/lib --extra-libs='-lm -lpthread' --prefix=/home/jimery/.local

libavutil 57. 34.100 / 57. 34.100
libavcodec 59. 42.103 / 59. 42.103
libavformat 59. 30.100 / 59. 30.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 46.103 / 8. 46.103
libswscale 6. 8.104 / 6. 8.104
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100

Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-stream_loop' ... matched as option 'stream_loop' (set number of times input stream shall be looped) with argument '-1'.
Reading option '-re' ... matched as option 're' (read input at native frame rate; equivalent to -readrate 1) with argument '1'.
Reading option '-i' ... matched as input url with argument '/home/jimery/Downloads/guodegang.m4a'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '1'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '8000'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'amr_nb'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
Reading option 'rtp://localhost:10018' ... matched as output url.
Reading option '-sdp_file' ... matched as option 'sdp_file' (specify a file in which to print sdp information) with argument 'source.sdp'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option sdp_file (specify a file in which to print sdp information) with argument source.sdp.
Successfully parsed a group of options.
Parsing a group of options: input url /home/jimery/Downloads/guodegang.m4a.
Applying option stream_loop (set number of times input stream shall be looped) with argument -1.
Applying option re (read input at native frame rate; equivalent to -readrate 1) with argument 1.
Successfully parsed a group of options.
Opening an input file: /home/jimery/Downloads/guodegang.m4a.
[NULL @ 0x5611bb676580] Opening '/home/jimery/Downloads/guodegang.m4a' for reading
[file @ 0x5611bb676e40] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] Processing st: 0, edit list 0 - media time: 0, duration: 76981445
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] Before avformat_find_stream_info() pos: 301888 bytes read:334364 seeks:0 nb_streams:1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5611bb676580] After avformat_find_stream_info() pos: 302259 bytes read:334364 seeks:0 frames:1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/jimery/Downloads/guodegang.m4a':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.24.101

Duration: 00:29:05.61, start: 0.000000, bitrate: 129 kb/s
Stream #0:0[0x1](und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)

Metadata:

handler_name : SoundHandler
vendor_id : [0][0][0][0]

Successfully opened the file.
Parsing a group of options: output url rtp://localhost:10018.
Applying option ac (set number of audio channels) with argument 1.
Applying option ar (set audio sampling rate (in Hz)) with argument 8000.
Applying option c:a (codec name) with argument amr_nb.
Applying option f (force format) with argument rtp.
Successfully parsed a group of options.
Opening an output file: rtp://localhost:10018.
Matched encoder 'libopencore_amrnb' for codec 'amr_nb'.
[rtp @ 0x5611bb723000] No default whitelist set
[udp @ 0x5611bb723500] No default whitelist set
[udp @ 0x5611bb67bf00] No default whitelist set
Successfully opened the file.
Stream mapping:

Stream #0:0 -> #0:0 (aac (native) -> amr_nb (libopencore_amrnb))

Press [q] to stop, ? for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[graph_0_in_0_0 @ 0x5611bb6b2680] Setting 'time_base' to value '1/44100'
[graph_0_in_0_0 @ 0x5611bb6b2680] Setting 'sample_rate' to value '44100'
[graph_0_in_0_0 @ 0x5611bb6b2680] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0_0 @ 0x5611bb6b2680] Setting 'channel_layout' to value 'stereo'
[graph_0_in_0_0 @ 0x5611bb6b2680] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:stereo
[format_out_0_0 @ 0x5611bb6b37c0] Setting 'sample_fmts' to value 's16'
[format_out_0_0 @ 0x5611bb6b37c0] Setting 'sample_rates' to value '8000'
[format_out_0_0 @ 0x5611bb6b37c0] Setting 'channel_layouts' to value 'mono'
[format_out_0_0 @ 0x5611bb6b37c0] auto-inserting filter 'auto_aresample_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_0'
[AVFilterGraph @ 0x5611bb720d40] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_aresample_0 @ 0x5611bb6b50c0] [SWR @ 0x5611bb6b5240] Using fltp internally between filters
[auto_aresample_0 @ 0x5611bb6b50c0] [SWR @ 0x5611bb6b5240] Matrix coefficients:
[auto_aresample_0 @ 0x5611bb6b50c0] [SWR @ 0x5611bb6b5240] FC: FL:0.500000 FR:0.500000
[auto_aresample_0 @ 0x5611bb6b50c0] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:1 chl:mono fmt:s16 r:8000Hz
[libopencore_amrnb @ 0x5611bb7222c0] bitrate not supported: use one of 4.75k, 5.15k, 5.90k, 6.70k, 7.40k, 7.95k, 10.20k, 12.20k, using 12.20k
Output #0, rtp, to 'rtp://localhost:10018':

Metadata:

major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf59.30.100

Stream #0:0(und), 0, 1/8000: Audio: amr_nb, 8000 Hz, mono, s16, delay 50, 128 kb/s (default)

Metadata:

handler_name : SoundHandler
vendor_id : [0][0][0][0]
encoder : Lavc59.42.103 libopencore_amrnb

[file @ 0x5611bb6b4240] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 0x5611bb6b4d80] Statistics: 194 bytes written, 0 seeks, 1 writeouts
size= 77kB time=00:00:48.65 bitrate= 12.9kbits/s speed=0.999x

[q] command received. Exiting.

[libopencore_amrnb @ 0x5611bb7222c0] Trying to remove 110 more samples than there are in the queue
All streams finished for output file #0
Terminating muxer thread 0
[AVIOContext @ 0x5611bb70f400] Statistics: 79590 bytes written, 0 seeks, 80 writeouts
size= 78kB time=00:00:49.13 bitrate= 13.0kbits/s speed=0.999x
video:0kB audio:77kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.187449%
Input file #0 (/home/jimery/Downloads/guodegang.m4a):

Input stream #0:0 (audio): 2117 packets read (787002 bytes); 2117 frames decoded (2167808 samples);
Total: 2117 packets (787002 bytes) demuxed

Output file #0 (rtp://localhost:10018):

Output stream #0:0 (audio): 2457 frames encoded (393120 samples); 2458 packets muxed (78656 bytes);
Total: 2458 packets (78656 bytes) muxed

2117 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x5611bb67f240] Statistics: 1120796 bytes read, 0 seeks
18:59:17 😃 build>


comment:7 by Carl Eugen Hoyos, 20 months ago

Component: undeterminedavcodec
Keywords: amrnb regression added
Priority: normalimportant
Reproduced by developer: set
Status: reopenedopen
Version: unspecifiedgit-master

comment:8 by Elon Musk, 20 months ago

Component: avcodecundetermined
Keywords: regression removed
Priority: importantwish
Reproduced by developer: unset
Resolution: wontfix
Status: openclosed
Type: defecttask
Version: git-masterunspecified

I do not see how this is regression, also there is no way to reproduce this.

comment:9 by Carl Eugen Hoyos, 20 months ago

Component: undeterminedavcodec
Priority: wishimportant
Reproduced by developer: set
Resolution: wontfix
Status: closedreopened
Type: taskdefect
Version: unspecifiedgit-master

Reproduces for example with:

$ ffmpeg -stream_loop -1 -re -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -vn -ar 8k -acodec amr_nb -f rtp rtp://localhost:10018 -sdp_file out.sdp
$ ffplay -protocol_whitelist file,rtp,udp -i out.sdp

A little more difficult - but possible - to reproduce without FFplay.

comment:11 by Carl Eugen Hoyos, 20 months ago

Resolution: fixed
Status: reopenedclosed

Should be fixed in 319e8a49b5bcfa80fcb6f50f0dd78c6408c972ae, thank you for the report!

Note: See TracTickets for help on using tickets.