Difference between revisions of "AudioVideo"
Line 48: | Line 48: | ||
<br /><br /> | <br /><br /> | ||
The video begins to play and continues until the end or until I hit the "ESCAPE" key. | The video begins to play and continues until the end or until I hit the "ESCAPE" key. | ||
+ | <br /><br /> | ||
+ | Playing a network stream using ffplay is also farily straight-forward. Here's an example: | ||
+ | <pre style="color:blue"> | ||
+ | [jamie@server.dawgland.com:~/Videos]$ ffplay rtsp://dawgstream:554/main | ||
+ | ffplay version 4.2.4 Copyright (c) 2003-2020 the FFmpeg developers | ||
+ | built with gcc 10 (GCC) | ||
+ | configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect | ||
+ | libavutil 56. 31.100 / 56. 31.100 | ||
+ | libavcodec 58. 54.100 / 58. 54.100 | ||
+ | libavformat 58. 29.100 / 58. 29.100 | ||
+ | libavdevice 58. 8.100 / 58. 8.100 | ||
+ | libavfilter 7. 57.100 / 7. 57.100 | ||
+ | libavresample 4. 0. 0 / 4. 0. 0 | ||
+ | libswscale 5. 5.100 / 5. 5.100 | ||
+ | libswresample 3. 5.100 / 3. 5.100 | ||
+ | libpostproc 55. 5.100 / 55. 5.100 | ||
+ | Input #0, rtsp, from 'rtsp://dawgstream:554/main':sq= 0B f=0/0 | ||
+ | Metadata: | ||
+ | title : hdmi | ||
+ | comment : main | ||
+ | Duration: N/A, start: 31989.843100, bitrate: N/A | ||
+ | Program 1 | ||
+ | Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn | ||
+ | Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s | ||
+ | 31993.56 A-V: -0.006 fd= 0 aq= 9KB vq= 206KB sq= 0B f=0/0 | ||
+ | [jamie@server.dawgland.com:~/Videos]$ | ||
+ | </pre> | ||
+ | <br /><br /> | ||
+ | The stream plays until the "ESCAPE" key is hit. | ||
+ | <br /><br /> | ||
+ | The "ffprobe" tool is run in the same way. Here's an example of using ffprobe on a local video file: | ||
+ | <pre style="color"blue> | ||
+ | [jamie@server.dawgland.com:~/Videos]$ ffprobe Armagedon.mp4 | ||
+ | ffprobe version 4.2.4 Copyright (c) 2007-2020 the FFmpeg developers | ||
+ | built with gcc 10 (GCC) | ||
+ | configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect | ||
+ | libavutil 56. 31.100 / 56. 31.100 | ||
+ | libavcodec 58. 54.100 / 58. 54.100 | ||
+ | libavformat 58. 29.100 / 58. 29.100 | ||
+ | libavdevice 58. 8.100 / 58. 8.100 | ||
+ | libavfilter 7. 57.100 / 7. 57.100 | ||
+ | libavresample 4. 0. 0 / 4. 0. 0 | ||
+ | libswscale 5. 5.100 / 5. 5.100 | ||
+ | libswresample 3. 5.100 / 3. 5.100 | ||
+ | libpostproc 55. 5.100 / 55. 5.100 | ||
+ | Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Armagedon.mp4': | ||
+ | Metadata: | ||
+ | major_brand : isom | ||
+ | minor_version : 0 | ||
+ | compatible_brands: mp41avc1 | ||
+ | creation_time : 2020-12-25T08:39:23.000000Z | ||
+ | playback_requirements: QuickTime 6.0 or greater | ||
+ | playback_requirements-eng: QuickTime 6.0 or greater | ||
+ | encoder : vlc 3.0.11.1 stream output | ||
+ | encoder-eng : vlc 3.0.11.1 stream output | ||
+ | Duration: 02:31:57.22, start: 0.000000, bitrate: 2052 kb/s | ||
+ | Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default) | ||
+ | Metadata: | ||
+ | creation_time : 2020-12-25T08:39:23.000000Z | ||
+ | handler_name : SoundHandler | ||
+ | Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 33084 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) | ||
+ | Metadata: | ||
+ | creation_time : 2020-12-25T08:39:23.000000Z | ||
+ | handler_name : VideoHandler | ||
+ | [jamie@server.dawgland.com:~/Videos]$ | ||
+ | |||
+ | </pre> | ||
+ | <br /><br /> | ||
+ | As you can see, it gives you all the information you could ever want! | ||
+ | <br /> | ||
+ | Here's an example of using ffprobe on a network video stream: | ||
+ | <pre style="color:blue"> | ||
+ | [jamie@server.dawgland.com:~/Videos]$ ffprobe rtsp://dawgstream.dawgland.com:554/main | ||
+ | ffprobe version 4.2.4 Copyright (c) 2007-2020 the FFmpeg developers | ||
+ | built with gcc 10 (GCC) | ||
+ | configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect | ||
+ | libavutil 56. 31.100 / 56. 31.100 | ||
+ | libavcodec 58. 54.100 / 58. 54.100 | ||
+ | libavformat 58. 29.100 / 58. 29.100 | ||
+ | libavdevice 58. 8.100 / 58. 8.100 | ||
+ | libavfilter 7. 57.100 / 7. 57.100 | ||
+ | libavresample 4. 0. 0 / 4. 0. 0 | ||
+ | libswscale 5. 5.100 / 5. 5.100 | ||
+ | libswresample 3. 5.100 / 3. 5.100 | ||
+ | libpostproc 55. 5.100 / 55. 5.100 | ||
+ | Input #0, rtsp, from 'rtsp://dawgstream.dawgland.com:554/main': | ||
+ | Metadata: | ||
+ | title : hdmi | ||
+ | comment : main | ||
+ | Duration: N/A, start: 32357.775844, bitrate: N/A | ||
+ | Program 1 | ||
+ | Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn | ||
+ | Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 130 kb/s | ||
+ | [jamie@server.dawgland.com:~/Videos]$ | ||
<br /><br /> | <br /><br /> |
Revision as of 21:35, 17 June 2024
Audio & Video Creation, Modification, Conversion and More!
This sub-section of the wiki contains all kinds of information related to audio and video creation, modification, conversion, and other related info I've discovered and implimented over the years, and will continue to accumulate information as I discover more ways to work with audio and video. I will try to add stuff as I need to use it as well, as I find this a great way to document things I have had to figure out myself!
Miscelaneous Tools and Commands for Creating, Modifying and Converting Audio and Video Files
FFMPEG - The Swiss Army Knife of Audio & Video Processing!
This one tool, ffmpeg, is probably the most useful and versatile audio and video processing tool used from the command-line, as I can't even think of anything audio and/or video related that it can't do!
The FFMPEG tool consists of "ffmpeg" itself, along with a straight command-line player, "ffplay", and a tool to probe an audio and/or video source, file, etc., for it's details about the video and audio codecs, formats, quality, size and muchmore that it consists of, the "ffprobe" tool.
The "ffplay" tools is pretty straight forward when it comes to playing a file from the command line. Here's an example of how to play a local file:
[jamie@server.dawgland.com:~/Videos]$ ffplay /home/jamie/Videos/Armagedon.mp4 ffplay version 4.2.4 Copyright (c) 2003-2020 the FFmpeg developers built with gcc 10 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/jamie/Videos/Armagedon.mp4': Metadata: major_brand : isom minor_version : 0 compatible_brands: mp41avc1 creation_time : 2020-12-25T08:39:23.000000Z playback_requirements: QuickTime 6.0 or greater playback_requirements-eng: QuickTime 6.0 or greater encoder : vlc 3.0.11.1 stream output encoder-eng : vlc 3.0.11.1 stream output Duration: 02:31:57.22, start: 0.000000, bitrate: 2052 kb/s Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default) Metadata: creation_time : 2020-12-25T08:39:23.000000Z handler_name : SoundHandler Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 33084 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) Metadata: creation_time : 2020-12-25T08:39:23.000000Z handler_name : VideoHandler 5.53 A-V: -0.005 fd= 3 aq= 20KB vq= 272KB sq= 0B f=0/0 [jamie@server.dawgland.com:~/Videos]$
The video begins to play and continues until the end or until I hit the "ESCAPE" key.
Playing a network stream using ffplay is also farily straight-forward. Here's an example:
[jamie@server.dawgland.com:~/Videos]$ ffplay rtsp://dawgstream:554/main ffplay version 4.2.4 Copyright (c) 2003-2020 the FFmpeg developers built with gcc 10 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from 'rtsp://dawgstream:554/main':sq= 0B f=0/0 Metadata: title : hdmi comment : main Duration: N/A, start: 31989.843100, bitrate: N/A Program 1 Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s 31993.56 A-V: -0.006 fd= 0 aq= 9KB vq= 206KB sq= 0B f=0/0 [jamie@server.dawgland.com:~/Videos]$
The stream plays until the "ESCAPE" key is hit.
The "ffprobe" tool is run in the same way. Here's an example of using ffprobe on a local video file:
[jamie@server.dawgland.com:~/Videos]$ ffprobe Armagedon.mp4 ffprobe version 4.2.4 Copyright (c) 2007-2020 the FFmpeg developers built with gcc 10 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Armagedon.mp4': Metadata: major_brand : isom minor_version : 0 compatible_brands: mp41avc1 creation_time : 2020-12-25T08:39:23.000000Z playback_requirements: QuickTime 6.0 or greater playback_requirements-eng: QuickTime 6.0 or greater encoder : vlc 3.0.11.1 stream output encoder-eng : vlc 3.0.11.1 stream output Duration: 02:31:57.22, start: 0.000000, bitrate: 2052 kb/s Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default) Metadata: creation_time : 2020-12-25T08:39:23.000000Z handler_name : SoundHandler Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 33084 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) Metadata: creation_time : 2020-12-25T08:39:23.000000Z handler_name : VideoHandler [jamie@server.dawgland.com:~/Videos]$
As you can see, it gives you all the information you could ever want!
Here's an example of using ffprobe on a network video stream:
[jamie@server.dawgland.com:~/Videos]$ ffprobe rtsp://dawgstream.dawgland.com:554/main ffprobe version 4.2.4 Copyright (c) 2007-2020 the FFmpeg developers built with gcc 10 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lv2 --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from 'rtsp://dawgstream.dawgland.com:554/main': Metadata: title : hdmi comment : main Duration: N/A, start: 32357.775844, bitrate: N/A Program 1 Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080, 29.97 fps, 29.97 tbr, 90k tbn Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 130 kb/s [jamie@server.dawgland.com:~/Videos]$