[FFmpeg-user] Transcode rtsp and output as http <-- help needed

Jerzy Kaltenberg jerzy.kaltenberg at gmail.com
Wed Jun 22 11:55:16 EEST 2022


Hi,

I was perfectly happy doing this  with cvlc / vlc, but now they broke rtsp,
and  since  Vetinari 3.0.12.x  it no longer works. Old version is not an
option.

This is my vlc  syntax:
cvlc rtsp:// <ip>:<port>/live   --sout
'#http{mux=ffmpeg{mux=flv},dst=:8081/live}}'

I tried this with ffmpeg  but am getting errors ( unable to find suitable
output format, plainly i don't know wtf I am doing) :
ffmpeg -i rtsp://<ip>:<port>/live  -c:v libx264 -maxrate 1000k -bufsize
2000k -an -bsf:v h264_mp4toannexb -g 50 http://localhost:8081/

Can i get ffmpeg  to serve an http url as in vlc?

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ffmpeg -i rtsp:// /<ip>:<port>/live  -c:v libx264 -maxrate 1000k -bufsize
2000k -an -bsf:v h264_mp4toannexb -g 50 http://localhost:8081/
ffmpeg version 4.3.2-0+deb11u1ubuntu1 Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 10 (Ubuntu 10.2.1-20ubuntu1)
  configuration: --prefix=/usr --extra-version=0+deb11u1ubuntu1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl
--enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx
--enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[rtsp @ 0x564b3c4544c0] UDP timeout, retrying with TCP
Input #0, rtsp, from 'rtsp:// /<ip>:<port>/live':
  Metadata:
    title           : www rtsp live
    comment         : LIVE555 Streaming Media v2017.01.26
  Duration: N/A, start: 1.066667, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuvj420p(pc, smpte170m, progressive),
1920x1080, 15 fps, 15 tbr, 90k tbn, 30 tbc
[NULL @ 0x564b3c47ad40] *Unable to find a suitable output format for
'http://localhost:8081/ <http://localhost:8081/>'*
*http://localhost:8081/ <http://localhost:8081/>: Invalid argument*


More information about the ffmpeg-user mailing list