[FFmpeg-trac] #8683(avformat:new): publish srt stream with special streamid
FFmpeg
trac at avcodec.org
Tue May 26 13:05:29 EEST 2020
#8683: publish srt stream with special streamid
-------------------------------------+----------------------------------
Reporter: xiaozhihong | Type: defect
Status: new | Priority: normal
Component: avformat | Version: 4.2
Keywords: SRT | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
My FFmpeg version and built message:
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
configuration: --prefix=/root/git/xiaozhihong/shell/ff/FFmpeg/build
--pkg-config-flags=--static --extra-
cflags=-I/root/git/xiaozhihong/shell/ff/FFmpeg/build/include --extra-
ldflags=-L/root/git/xiaozhihong/shell/ff/FFmpeg/build/lib --extra-
libs='-lpthread -lm'
--bindir=/root/git/xiaozhihong/shell/ff/FFmpeg/build/bin --enable-static
--enable-libsrt --disable-libxcb --disable-libxcb --disable-libxcb-shm
--disable-libxcb-xfixes --disable-libxcb-shape --disable-vdpau --disable-
libass --enable-gpl --enable-libfdk-aac --enable-libopus --enable-libx264
--enable-nonfree
=================================================
My FFmpeg command line:
ffmpeg -re -stream_loop -1 -i input.flv -c copy -f flv
"srt://localhost:9000?streamid=test_stream?key1=value1&key2=value2"
My problem:
I have a sepcial streamid like "test_stream?key1=value1&key2=value2", when
I publish stream with SRT by using this special streamid, ffmpeg will
truncate it to "test_stream?key1=value1", I lost "&key2=value2"
I see the source code in libavformat/libsrt.c, FFmpeg will try to find the
special argement in srt url.
Can I use
"srt://localhost:9000?streamid="test_stream?key1=value1&key2=value2""
instead of
"srt://localhost:9000?streamid=test_stream?key1=value1&key2=value2" or
any other solution?
Thanks.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8683>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list