[FFmpeg-devel] [PATCH v3 1/2] avformat/rtsp: load the sdp file with avio_read_to_bprint()

lance.lmwang at gmail.com lance.lmwang at gmail.com
Fri Dec 3 03:16:48 EET 2021


On Thu, Dec 02, 2021 at 11:52:23PM +0100, Michael Niedermayer wrote:
> On Thu, Dec 02, 2021 at 06:37:38PM +0800, lance.lmwang at gmail.com wrote:
> > From: Limin Wang <lance.lmwang at gmail.com>
> > 
> > this allows getting rid of the hardcoded max size of SDP.
> > 
> > Reviewed-by: Martin Storsjö <martin at martin.st>
> > Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> > ---
> >  libavformat/rtsp.c | 25 +++++++++----------------
> >  1 file changed, 9 insertions(+), 16 deletions(-)
> 
> This seems to break things
> 
> cvlc --play-and-exit ~/videos/stream2962.ts --sout="#rtp{dst=127.0.0.1,port=4414,sdp=rtsp://127.0.0.1:9180/test.sdp, mux=ts}" >  /tmp/log.1 2> /tmp/log.2 & ./ffmpeg -i rtp://127.0.0.1:4414 -t 1 -bitexact -y out2962.avi
> 
> before this patch
> frame=   14 fps=0.0 q=2.0 Lsize=      38kB time=00:00:01.00 bitrate= 309.2kbits/s speed= 117x    
> video:32kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 19.610027%
> 
> after:
> rtp://127.0.0.1:4414: Invalid argument

OK, will try to reproduce it.

> 
> [...]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> 
> What does censorship reveal? It reveals fear. -- Julian Assange



> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


-- 
Thanks,
Limin Wang


More information about the ffmpeg-devel mailing list