Hello,
Hello,
I am trying to push an RTSP stream to my Mistserver with ffmpeg as suggested in other posts and have having issues. Any help is greatly appreciated.
On the same server as the Mistserver, I installed ffmpeg and am trying to execute:
ffmpeg -i rtsp://admin:password@sub.domain.com:88/live/ch0 -vcodec libx264 -preset veryfast -profile:v baseline -level 30 -b 800 -f flv - | MistFLV2DTSC | MistBuffer stream_name
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 17 2014 01:25:46 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --disable-stripping
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[rtsp @ 0x165ba80] UDP timeout, retrying with TCP
[rtsp @ 0x165ba80] Could not find codec parameters for stream 0 (Video: h264): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://admin:password@sub.domain.com:88/live/ch0':
Metadata:
title : hysxrtpsion
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
Stream #0:2: Data: none
Please use -b:a or -b:v, -b is ambiguous
Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (rtmp://localhost/pc275_unboardroom) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (rtmp://localhost/pc275_unboardroom) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Codec AVOption profile () specified for output file #0 (rtmp://localhost/pc275_unboardroom) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
On Tue, Oct 11, 2016 at 7:03 PM, Drew Eidt <eid...@gmail.com> wrote:Hello,
I am trying to push an RTSP stream to my Mistserver with ffmpeg as suggested in other posts and have having issues. Any help is greatly appreciated.On the same server as the Mistserver, I installed ffmpeg and am trying to execute:
ffmpeg -i rtsp://admin:password@sub.domain.com:88/live/ch0 -vcodec libx264 -preset veryfast -profile:v baseline -level 30 -b 800 -f flv - | MistFLV2DTSC | MistBuffer stream_nameHello Drew,The problem is simple: the command you're using is for MistServer 0.X and we're now in the 2.X versions. Things have changed quite a bit since then!The most portable equivalent would be something along these lines:
ffmpeg -i rtsp://admin:password@sub.domain.com:88/live/ch0 -vcodec libx264 -preset veryfast -profile:v baseline -level 30 -b 800 -f flv rtmp://localhost//STREAM_NAME
Thank you very much Jaron!I think I am a lot closer, but it could not find the codec parameters. Do you have any ideas?Thank you!
On Wed, Oct 12, 2016 at 3:20 AM, Drew Eidt <eid...@gmail.com> wrote:Thank you very much Jaron!I think I am a lot closer, but it could not find the codec parameters. Do you have any ideas?Thank you!That doesn't look like it will stop ffmpeg.But I just noticed that your camera is already in H264/AAC format, which means you can simplify the command a lot, to:
ffmpeg -i rtsp://admin:password@sub.domain.com:88/live/ch0 -c copy -f flv rtmp://localhost//STREAM_NAME
Thank you very much Jaron and no worries at all!I am receiving a lot less warnings/errors but am still receiving ''Could not find codec parameters for stream 0 (Video: h264): unspecified sizeConsider increasing the value for the 'analyzeduration' and 'probesize' options"Any ideas are greatly appreciated. Thank you!
ffmpeg -i rtsp://admin:password@sub.domain.com:88/live/ch0 -c copy -f flv rtmp://localhost/STREAM_NAME
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developersbuilt on Jun 17 2014 01:25:46 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --disable-strippinglibavutil 52. 66.100 / 52. 66.100libavcodec 55. 52.102 / 55. 52.102libavformat 55. 33.100 / 55. 33.100libavdevice 55. 10.100 / 55. 10.100libavfilter 4. 2.100 / 4. 2.100libswscale 2. 5.102 / 2. 5.102libswresample 0. 18.100 / 0. 18.100libpostproc 52. 3.100 / 52. 3.100[rtsp @ 0x11949c0] UDP timeout, retrying with TCP[rtsp @ 0x11949c0] Could not find codec parameters for stream 0 (Video: h264): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://admin:password@sub.domain.com:88/live/ch0':
Metadata:title : hysxrtpsionDuration: N/A, start: 0.000000, bitrate: N/AStream #0:0: Video: h264, 90k tbr, 90k tbn, 180k tbcStream #0:1: Audio: aac, 16000 Hz, mono, fltpStream #0:2: Data: none
On Wednesday, 12 October 2016 03:35:24 UTC-4, Jaron Viëtor wrote:
On Wed, Oct 12, 2016 at 3:20 AM, Drew Eidt <eid...@gmail.com> wrote:Thank you very much Jaron!I think I am a lot closer, but it could not find the codec parameters. Do you have any ideas?Thank you!That doesn't look like it will stop ffmpeg.But I just noticed that your camera is already in H264/AAC format, which means you can simplify the command a lot, to:
ffmpeg -i rtsp://admin:pass...@sub.domain.com:88/live/ch0 -c copy -f flv rtmp://localhost//STREAM_NAME
That should give you much better results, and also reduce the strain on your CPU significantly.Sorry that I didn't notice that in your first post already.- Jaron
--
You received this message because you are subscribed to the Google Groups "Mistserver.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mistserver+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.