You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create ts filelist as following format:
file '<filepath>'
# or use following command to generate:
(for %i in (*.ts) do @echo file '%i') > ts.lst
# concat the ts files by ffmpeg
ffmpeg -f concat -i ts.lst -c copy all.ts
-flag
The flag command is used to by calling "-flag", followed by a single space and then all flags with a plus "+" or minus "-" sign preceding each indicating active or inactive flag respectively.
+aic
h263 advanced intra coding / mpeg4 ac prediction (Affects: Encoding, Video)
+mv4
Use four motion vector by macroblock (mpeg4) (Affects: Encoding, Video)
-bsf:a aac_adtstoasc
Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration bitstream. Is required for example when copying an AAC stream from a raw ADTS AAC or an MPEG-TS container to MP4A-LATM, to an FLV file, or to MOV/MP4 files and related formats such as 3GP or M4A.
Instructions for installing the command-line media conversion program FFmpeg with MP3 support on macOS. via GitHubGist user stevemclaugh
Initial Setup
If Homebrew is already installed, skip to "Install FFmpeg" below.
Launch Terminal in macOS, located at /Applications/Utilities/Terminal.app. To install a bundle of command-line tools provided by Apple, paste the following line into the terminal window and press return. When prompted, click "Install," then "Agree."
xcode-select --install
Run the following command to install the Homebrew package manager. Enter your password at the prompt to proceed.
Next we'll download FFmpeg's source code and compile it before installing. Although it's faster to install FFmpeg through Homebrew, that version can't read or write MP3 files.
Enter the following commands one at a time; note that the third line is very long. After the last command you will be prompted to enter your admin password.
git clone http://source.ffmpeg.org/git/ffmpeg.git ffmpeg
cd ffmpeg
./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
make && sudo make install
The final step above will take 5 or 10 minutes to complete. When it's done, open a new terminal window and enter the following to view FFmpeg's manual.
man ffmpeg
If you've made it this far, you should be all set. Press q to close the manual.
Here's a basic FFmpeg command to convert a file called input.wav on your desktop to a 320Kbps MP3 called output.mp3.
cd ~/Desktop
ffmpeg -i input.wav -ab 320k output.mp3