Find if video file has audio present in it [duplicate]

I would use FFprobe (it comes along with FFMPEG): ffprobe -i INPUT -show_streams -select_streams a -loglevel error In case there’s no audio it ouputs nothing. If there is an audio stream then you get something like: [STREAM] index=0 codec_name=mp3 codec_long_name=MP3 (MPEG audio layer 3) profile=unknown codec_type=audio codec_time_base=1/44100 etc etc… [/STREAM] That should be easy enough … Read more

Ffmpeg error in linux [closed]

Basically, to find the file: sudo find / -name libavdevice.so.52 For example, you’ve found this file in the /usr/local/lib. Next include that library into your library path. Add this to your /etc/ld.so.conf: /usr/local/lib And finally after modifying this file run this: sudo ldconfig Reference: Ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object … Read more

Mute specified sections of an audio file using ffmpeg

The following command will mute two sections: between 5-10s and 15-20s: ffmpeg -i video.mp4 -af “volume=enable=”between(t,5,10)”:volume=0, volume=enable=”between(t,15,20)”:volume=0″ … Description: -af is the audio filter. It works by specifying multiple volume filters that are enabled/disabled at the specified time. volume=enable=”between(t,5,10)”:volume=0 means use a volume filter that gets enabled between 5 and 10 seconds and sets the … Read more

FFMPEG: chroma key / greenscreen filter for images / video [closed]

The answer (now) is yes, there is a filter for generating chroma-keys and overlaying them. The filter name is “color key”. There are examples on the site, here’s the command: ffmpeg -i <base-video> -i <overlay-video> -filter_complex ‘[1:v]colorkey=0x<color>:<similarity>:<blend>[ckout];[0:v][ckout]overlay[out]’ -map ‘[out]’ <output-file> where <color> is the rgb color to match in hex (ex: 0x000000 for black), <similarity> … Read more

ffmpeg unable to find encoder ‘libvorbis’

Edit 2020: Homebrew now installs libvorbis by default, so you can just run: brew install ffmpeg If you’re using Homebrew, try this: brew install ffmpeg –with-libvorbis …or, if you’ve already tried installing ffmpeg with Homebrew… brew reinstall ffmpeg –with-libvorbis If you want libvpx, too: brew reinstall ffmpeg –with-libvpx –with-libvorbis

Simulating TV noise

Create video and audio noise, artifacts, and errors with ffmpeg Noise Using filters The geq (video “generic equation”) filter (with nullsrc as its “blank canvas”) can create video noise, and the aevalsrc filter can create white noise audio: ffmpeg -f lavfi -i nullsrc=s=1280×720 -filter_complex \ “geq=random(1)*255:128:128;aevalsrc=-2+random(0)” \ -t 5 output.mkv Note that this will create … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)