Value In Brief
All You Need To Know Explained In Brief

Posts Tagged with CLI

[Fixed] curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

This error appears in too many cases, for example: when you are trying to .. upgrade Flutter via flutter upgrade. upgrade a homebrew cask via brew upgrade --cask --greedy. push to GitLab. curl some file from the internet. the errno 54 (error number 54) means “Connection reset by peer”, which basically indicates a generic network connectivity problem. So, It’s a network issue. If your internet is very slow and there are hiccups with network, you will face this error.

How can I convert MP4 video to MP3 audio with FFmpeg?

Sometimes, you need to extract audio or music from a video. Or you need to convert a video into an audio file. The command is simple. Here is the command to convert MP4 to MP3 file. ffmpeg -i video.mp4 audio.mp3 Alternative commands to convert MP4 to MP3 file ffmpeg -i video.mp4 -b:a 192K -vn music.mp3 or use this faster command (see benchmarks below). ffmpeg -i video.mp4 -vn audio.mp3 You can use all of the above three commands to convert mp4 into mp3 on Mac OS or any Linux based operating system, but not on Ubuntu.

Open file via TextEdit program in Mac OS Terminal

Using open command doesn’t fulfil this job. So we need to use another command. We can use open -a TextEdit filename.ext for example open -a TextEdit pin.svg. This command will open the file in TextEdit program in Mac OS. We can use another flag with the open command to achieve the same goal. The command is open -e filename so we can use open -e /Users/mbp/Desktop/work/VectorAndClipart/pin.svg to open the pin.svg file in the Mac OS graphical text editor TextEdit.

Why Do Command Lines Still Exist ?

GUI (graphical user interface) is easy to use and goodlooking. But CLI (command line interface) is faster and easier to automate. Advantages of Command Line over Graphics Graphics are fancy but lack clarity and prone to errors and crashes and uses alot of resources (RAM, CPU and GPU). Here are some advantages. Lightweight Text Interface If you accomplish a task like converting mp4 to mp3 on command line using ffmpeg, it will be faster than using any other GUI program such as Format Factory (for Windows OS).

How to Create Bash Function ?

First step: create a file to add all your bash functions in it. 2nd step: add your bash function/s like this. ## convertMP4toMP3(){ echo -n "Enter source mp4 file : " read sourceFile echo -n "Enter destination mp3 file : " read destFile avconv -i $sourceFile -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 $destFile } I created a bash function to convert mp4 video file to mp3 audio file from command line.