[FFmpeg-trac] #9891(undetermined:reopened): can not transcoding amr to pcm from rtp stream
FFmpeg
trac at avcodec.org
Wed Aug 31 14:15:55 EEST 2022
#9891: can not transcoding amr to pcm from rtp stream
-------------------------------------+-------------------------------------
Reporter: songtao | Owner: (none)
Type: defect | Status: reopened
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: RTP | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by songtao):
Replying to [comment:5 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>
2. 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>
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9891#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list