[FFmpeg-user] FFMPEG RTSP stream problem
Balogh László
laci at blacc.hu
Thu Apr 7 19:03:07 EEST 2022
Hi!
I tried, did not help. :(
On VLC authenticating takes only a few sec. I need to wait just until to
the next image is created. I don't know why ffmpeg is waiting 2 minutes.
I attached a full screenlog of the script while running: log01.txt. You
can see that about every 2 minutes needed to take one picture, however
its about 16 secs that the stream contains a new frame (checked).
I also attached a log file which was created by ffmeg (option -report
added to command): ffmpeg-20220407-174123.log. I see no problems or errors.
Regards, Laszlo
2022. 04. 07. 16:25 keltezéssel, Asbóth Bence írta:
> Hi!
>
> Maybe authentication takes so long? Try to keep the stream open, eg with
> VLC.
>
> Talán az autentikáció tart ilyen sokáig? Próbáld meg, hogy folyamatosan
> nyitva tartod a stream-et, pl.VLC-vel.
>
> Balogh László <laci at blacc.hu> ezt írta (időpont: 2022. ápr. 7., Cs, 12:14):
>
>> Hi to All,
>>
>> I'm new in this mailing list, so first thanks to letting me in. :)
>>
>> I have an RTSP stream which framerate is 1/16, which means every 16 sec
>> a frame is transported through RTSP. This framerate is because of a
>> special purpose, cannot and want not to change it.
>>
>> What i want is to save every frame of this video as single JPEG image on
>> my server (Linux). Here the full command, which is working in bash script:
>>
>> ffmpeg -rtsp_transport tcp -i
>> 'rtsp://<USERNAME>:(PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream' -f
>> image2 -vframes 1 -pix_fmt yuvj420p /<PATH>/$datetoday/$today.jpeg
>>
>> The $datetoday ad $today variables are declared in the script, and the
>> ffmpeg command is started again right after it is closing.
>>
>> So, the script is working, i get the images, which are fine. BUT! Every
>> ffmoeg process takes about 2 minutes! So i get images about every 2
>> minutes. How can is speed up the ffmpeg command? What i see while the
>> script is running that after the following screenshot, its waiting about
>> 2 minutes. But don't know why?
>>
>> ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg
>> developers
>> built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
>> configuration: --prefix=/usr --extra-version=0ubuntu0.2
>> --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
>> --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
>> --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
>> --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
>> --enable-libcdio --enable-libflite --enable-libfontconfig
>> --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
>> --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg
>> --enable-libopenmpt --enable-libopus --enable-libpulse
>> --enable-librubberband --enable-librsvg --enable-libshine
>> --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
>> --enable-libtheora --enable-libtwolame --enable-libvorbis
>> --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265
>> --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi
>> --enable-omx --enable-openal --enable-opengl --enable-sdl2
>> --enable-libdc1394 --enable-libdrm --enable-libiec61883
>> --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264
>> --enable-shared
>> libavutil 55. 78.100 / 55. 78.100
>> libavcodec 57.107.100 / 57.107.100
>> libavformat 57. 83.100 / 57. 83.100
>> libavdevice 57. 10.100 / 57. 10.100
>> libavfilter 6.107.100 / 6.107.100
>> libavresample 3. 7. 0 / 3. 7. 0
>> libswscale 4. 8.100 / 4. 8.100
>> libswresample 2. 9.100 / 2. 9.100
>> libpostproc 54. 7.100 / 54. 7.100
>>
>> And after that its finishing with the following lines:
>>
>> Input #0, rtsp, from
>> 'rtsp://rtspuser:rtSP7221@192.168.1.203:556/h264/ch1/maiv_stream':
>> Metadata:
>> title : Media Presentation
>> Duration: N/A, start: 94.881000, bitrate: N/A
>> Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive),
>> 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
>> Stream mapping:
>> Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
>> Press [q] to stop, [?] for help
>> Output #0, image2, to
>> '/home/mcll/RTSP/2022-04-07/2022-04-07_12_09_30.jpeg':
>> Metadata:
>> title : Media Presentation
>> encoder : Lavf57.83.100
>> Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200
>> kb/s, 1 fps, 1 tbn, 1 tbc
>> Metadata:
>> encoder : Lavc57.107.100 mjpeg
>> Side data:
>> cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
>> frame= 1 fps=0.0 q=5.8 Lsize=N/A time=00:00:01.00 bitrate=N/A
>> speed=11.5x
>> video:125kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
>> muxing overhead: unknown
>>
>> So no error, nothing.
>>
>> Can anyone help me?
>>
>> Thank you!
>>
>> Regards, Laszlo
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>>
>
-------------- next part --------------
1st attempt, created 2022-04-07_17_12_26.jpeg:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 94.881000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '<PATHTOSAVE>/2022-04-07_17_12_26.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=6.7 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=12.2x
video:120kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2nd attempt, created 2022-04-07_17_14_22.jpeg:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 94.880000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '<PATHTOSAVE>/2022-04-07_17_14_22.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=6.7 Lsize=N/A time=00:00:01.00 bitrate=N/A speed= 12x
video:118kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
3rd attempt, created 2022-04-07_17_16_17.jpeg:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 94.881000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '<PATHTOSAVE>/2022-04-07_17_16_17.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=6.5 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=14.1x
video:111kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
4th attempt, created 2022-04-07_17_18_12.jpeg:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 94.880000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '<PATHTOSAVE>/2022-04-07_17_18_12.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=6.6 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=14.1x
video:114kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
5th attempt, 2022-04-07_17_20_07.jpeg:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 94.880000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '<PATHTOSAVE>/2022-04-07_17_20_07.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 1 fps=0.0 q=6.7 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=9.95x
video:119kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
6st attempt, 2022-04-07_17_22_02.jpeg: This attempt was canceled
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 94.881000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
----HERE I CANCELED THE SCRIPT----
Finishing stream 0:0 without any data written to it.
Output #0, image2, to '<PATHTOSAVE>/2022-04-07_17_22_02.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Exiting normally, received signal 2.
mcll at mcllserver-i3:~/RTSP$
-------------- next part --------------
ffmpeg started on 2022-04-07 at 17:41:23
Report written to "ffmpeg-20220407-174123.log"
Command line:
ffmpeg -rtsp_transport tcp -i rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream -f image2 -vframes 1 -pix_fmt yuvj420p /<PATHTOSAVE>/2022-04-07_17_41_23.jpeg -report
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chrom libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Splitting the commandline.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input url with argument 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuvj420p'.
Reading option '/<PATHTOSAVE>/2022-04-07_17_41_23.jpeg' ... matched as output url.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream.
Successfully parsed a group of options.
Opening an input file: rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream.
[tcp @ 0x5606364e8120] No default whitelist set
[rtsp @ 0x5606364e5f80] SDP:
v=0
o=- 1649353283538113 1649353283538113 IN IP4 <PASSWORD>
s=Media Presentation
e=NONE
b=AS:5050
t=0 0
a=control:rtsp://<PASSWORD>:556/h264/ch1/maiv_stream/
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:5000
a=recvonly
a=x-dimensions:2688,1520
a=control:rtsp://<PASSWORD>:556/h264/ch1/maiv_stream/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z00AMpY1QFQBf03AQEBQAAr8gAAV+QBA,aO4xsg==
a=Media_header:MEDIAINFO=494D4B48010200000400000100000000000000000000000000000000000000000000000000000000;
a=appversion:1.0
[rtsp @ 0x5606364e5f80] video codec set to: h264
[rtsp @ 0x5606364e5f80] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[rtsp @ 0x5606364e5f80] RTP Packetization Mode: 1
[rtsp @ 0x5606364e5f80] Extradata set to 0x5606364c2250 (size: 36)
[rtsp @ 0x5606364e5f80] setting jitter buffer size to 0
[rtsp @ 0x5606364e5f80] hello state=0
[h264 @ 0x5606364e9960] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x5606364e9960] unknown SEI type 229
[h264 @ 0x5606364e9960] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x5606364e9960] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x5606364e9960] unknown SEI type 229
[h264 @ 0x5606364e9960] Reinit context to 2688x1520, pix_fmt: yuvj420p
[h264 @ 0x5606364e9960] unknown SEI type 229
[h264 @ 0x5606364e9960] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x5606364e9960] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x5606364e9960] unknown SEI type 229
[h264 @ 0x5606364e9960] unknown SEI type 229
[h264 @ 0x5606364e9960] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x5606364e9960] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x5606364e9960] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x5606364e9960] unknown SEI type 229
[rtsp @ 0x5606364e5f80] interrupted
[rtsp @ 0x5606364e5f80] decoding for stream 0 failed
Input #0, rtsp, from 'rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream':
Metadata:
title : Media Presentation
Duration: N/A, bitrate: N/A
Stream #0:0, 3, 1/90000: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520, 1 fps, 1 tbr, 90k tbn, 2 tbc
Successfully opened the file.
Parsing a group of options: output url /<PATHTOSAVE>/2022-04-07_17_41_23.jpeg.
Applying option f (force format) with argument image2.
Applying option vframes (set the number of video frames to output) with argument 1.
Applying option pix_fmt (set pixel format) with argument yuvj420p.
Successfully parsed a group of options.
Opening an output file: /<PATHTOSAVE>/2022-04-07_17_41_23.jpeg.
Successfully opened the file.
detected 4 logical cores
[h264 @ 0x5606366449e0] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5606366449e0] nal_unit_type: 8, nal_ref_idc: 3
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
[graph 0 input from stream 0:0 @ 0x56063655d820] Setting 'video_size' to value '2688x1520'
[graph 0 input from stream 0:0 @ 0x56063655d820] Setting 'pix_fmt' to value '12'
[graph 0 input from stream 0:0 @ 0x56063655d820] Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:0 @ 0x56063655d820] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x56063655d820] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x56063655d820] Setting 'frame_rate' to value '1/1'
[graph 0 input from stream 0:0 @ 0x56063655d820] w:2688 h:1520 pixfmt:yuvj420p tb:1/90000 fr:1/1 sar:0/1 sws_param:flags=2
[format @ 0x560636644ea0] compat: called with args=[yuvj420p]
[format @ 0x560636644ea0] Setting 'pix_fmts' to value 'yuvj420p'
[AVFilterGraph @ 0x56063655ca20] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[mjpeg @ 0x560636521820] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores
[mjpeg @ 0x560636521820] intra_quant_bias = 96 inter_quant_bias = 0
Output #0, image2, to '/<PATHTOSAVE>/2022-04-07_17_41_23.jpeg':
Metadata:
title : Media Presentation
encoder : Lavf57.83.100
Stream #0:0, 0, 1/1: Video: mjpeg, yuvj420p(pc), 2688x1520, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
Metadata:
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (rtsp://<USER>:<PASSWORD>@<IPADDRESS>:556/h264/ch1/maiv_stream):
Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded;
Total: 0 packets (0 bytes) demuxed
Output file #0 (/<PATHTOSAVE>/2022-04-07_17_41_23.jpeg):
Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
Exiting normally, received signal 2.
More information about the ffmpeg-user
mailing list