[FFmpeg-trac] #9169(undetermined:new): RTSP stream with UDP are use TCP
FFmpeg
trac at avcodec.org
Wed Mar 31 22:13:17 EEST 2021
#9169: RTSP stream with UDP are use TCP
-------------------------------------+-------------------------------------
Reporter: VidarHUN | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: rtsp | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by VidarHUN):
So I cloned the repo and I will show every steps what I am done.
- create a file rtsp-simple-server.yml with this content: protocols: [udp]
- start the server:
{{{
docker run --rm -it -v $PWD/rtsp-simple-server.yml:/rtsp-simple-server.yml
-p 8554:8554/udp aler9/rtsp-simple-server
}}}
- start the rtsp stream:
{{{
./FFmpeg/ffmpeg -loglevel repeat+level+trace -re -i input.mp3 -f rtsp
-rtsp_transport udp rtsp://localhost:8554/live
[info] ffmpeg version N-101778-g84ac35ecb8 Copyright (c) 2000-2021 the
FFmpeg developers
[info] built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
[info] configuration:
[info] libavutil 56. 72.100 / 56. 72.100
[info] libavcodec 58.135.100 / 58.135.100
[info] libavformat 58. 77.100 / 58. 77.100
[info] libavdevice 58. 14.100 / 58. 14.100
[info] libavfilter 7.111.100 / 7.111.100
[info] libswscale 5. 10.100 / 5. 10.100
[info] libswresample 3. 10.100 / 3. 10.100
[debug] Splitting the commandline.
[debug] Reading option '-loglevel' ... matched as option 'loglevel' (set
logging level) with argument 'repeat+level+trace'.
[debug] Reading option '-re' ... matched as option 're' (read input at
native frame rate) with argument '1'.
[debug] Reading option '-i' ... matched as input url with argument
'input.mp3'.
[debug] Reading option '-f' ... matched as option 'f' (force format) with
argument 'rtsp'.
[debug] Reading option '-rtsp_transport' ... matched as AVOption
'rtsp_transport' with argument 'udp'.
[debug] Reading option 'rtsp://localhost:8554/live' ... matched as output
url.
[debug] Finished splitting the commandline.
[debug] Parsing a group of options: global .
[debug] Applying option loglevel (set logging level) with argument
repeat+level+trace.
[debug] Successfully parsed a group of options.
[debug] Parsing a group of options: input url input.mp3.
[debug] Applying option re (read input at native frame rate) with argument
1.
[debug] Successfully parsed a group of options.
[debug] Opening an input file: input.mp3.
[NULL @ 0x5632f9e257c0] [debug] Opening 'input.mp3' for reading
[file @ 0x5632f9e26440] [debug] Setting default whitelist
'file,crypto,data'
[trace] Probing mp3 score:51 size:2003
[mp3 @ 0x5632f9e257c0] [debug] Format mp3 probed with size=2048 and
score=51
[debug] id3v2 ver:4 flags:00 len:35
[mp3 @ 0x5632f9e257c0] [debug] pad 576 1501
[mp3 @ 0x5632f9e257c0] [verbose] Skipping 0 bytes of junk at 237.
[mp3 @ 0x5632f9e257c0] [debug] Before avformat_find_stream_info() pos: 237
bytes read:32768 seeks:0 nb_streams:1
[mp3 @ 0x5632f9e257c0] [debug] demuxer injecting skip 1105 / discard 0
[mp3float @ 0x5632f9e27840] [debug] skip 1105 / discard 0 samples due to
side data
[mp3float @ 0x5632f9e27840] [debug] skip 1105/1152 samples
[mp3 @ 0x5632f9e257c0] [debug] All info found
[mp3 @ 0x5632f9e257c0] [trace] stream 0: start_time: 0.0230208 duration:
257.808
[mp3 @ 0x5632f9e257c0] [trace] format: start_time: 0.023021 duration:
257.808 (estimate from stream) bitrate=64 kb/s
[mp3 @ 0x5632f9e257c0] [debug] After avformat_find_stream_info() pos:
10477 bytes read:32768 seeks:0 frames:50
[info] Input #0, mp3, from 'input.mp3':
[info] Metadata:
[info] encoder : Lavf58.29.100
[info] Duration: 00:04:17.81, start: 0.023021, bitrate: 64 kb/s
[info] Stream #0:0, 50, 1/14112000: Audio: mp3, 48000 Hz, stereo, fltp,
64 kb/s
[info] Metadata:
[info] encoder : Lavc58.54
[debug] Successfully opened the file.
[debug] Parsing a group of options: output url rtsp://localhost:8554/live.
[debug] Applying option f (force format) with argument rtsp.
[debug] Successfully parsed a group of options.
[debug] Opening an output file: rtsp://localhost:8554/live.
[debug] Successfully opened the file.
[info] Stream mapping:
[info] Stream #0:0 -> #0:0 (mp3 (mp3float) -> aac (native))
[info] Press [q] to stop, [?] for help
[debug] 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)
[mp3float @ 0x5632f9e2b140] [debug] skip 1105 / discard 0 samples due to
side data
[mp3float @ 0x5632f9e2b140] [debug] skip 1105/1152 samples
[debug] detected 4 logical cores
[graph_0_in_0_0 @ 0x5632f9e3db80] [debug] Setting 'time_base' to value
'1/48000'
[graph_0_in_0_0 @ 0x5632f9e3db80] [debug] Setting 'sample_rate' to value
'48000'
[graph_0_in_0_0 @ 0x5632f9e3db80] [debug] Setting 'sample_fmt' to value
'fltp'
[graph_0_in_0_0 @ 0x5632f9e3db80] [debug] Setting 'channel_layout' to
value '0x3'
[graph_0_in_0_0 @ 0x5632f9e3db80] [verbose] tb:1/48000 samplefmt:fltp
samplerate:48000 chlayout:0x3
[format_out_0_0 @ 0x5632f9e3e100] [debug] Setting 'sample_fmts' to value
'fltp'
[format_out_0_0 @ 0x5632f9e3e100] [debug] Setting 'sample_rates' to value
'96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[AVFilterGraph @ 0x5632f9e28ec0] [debug] query_formats: 4 queried, 9
merged, 0 already done, 0 delayed
[tcp @ 0x5632f9e51780] [debug] No default whitelist set
[tcp @ 0x5632f9e51780] [debug] Original list of addresses:
[tcp @ 0x5632f9e51780] [debug] Address 127.0.0.1 port 8554
[tcp @ 0x5632f9e51780] [debug] Interleaved list of addresses:
[tcp @ 0x5632f9e51780] [debug] Address 127.0.0.1 port 8554
[tcp @ 0x5632f9e51780] [verbose] Starting connection attempt to 127.0.0.1
port 8554
[tcp @ 0x5632f9e51780] [verbose] Connection attempt to 127.0.0.1 port 8554
failed: Connection refused
[tcp @ 0x5632f9e51780] [error] Connection to
tcp://localhost:8554?timeout=0 failed: Connection refused
[error] Could not write header for output file #0 (incorrect codec
parameters ?): Connection refused
[error] Error initializing output stream 0:0 --
[aac @ 0x5632f9e2cb80] [info] Qavg: -nan
[AVIOContext @ 0x5632f9e2e880] [verbose] Statistics: 32768 bytes read, 0
seeks
[info] Conversion failed!
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9169#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list