AudioVideo

From TheBestLinux.com
Revision as of 21:23, 17 June 2024 by Jamie (talk | contribs)
Jump to navigation Jump to search

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.