to convert mkv format to mp4 without losing quality:
ffmpeg -i input.mkv -codec copy output.mp4
- It auto-detects a Matroska to MP4 container conversion based on input/output filenames.
- -codec copy stream copies, or "re-muxes", the streams from the input to the output without re-encoding. Think of it like a copy and paste.
- Default stream selection behavior is to select only one stream per stream type. For example, if your input has two video streams and one audio stream then only the video stream with the largest frame size will be selected. Add -map 0 if you want to select all streams from the input.
- Some containers may not support some formats. So check if your chosen container format, be it mkv, mp4 or even avi has support for all the content in your files (video, audio, subtitles, data, etc). For example, mp4 does not support SubRip subtitles (.srt files).
sips -Z 1080 /Volumes/remotePC/Desktop/100CANON/*.JPG --out /Users/my_mac/Desktop/10CANON/
recently I used sips to convert and copy to my local computer 10 MB to 12MB JPG to few kb(size depends) on the batch.
here is bit of more information if you have never tried sips before and you are mac user.
SIPS must be one of the simplest and most underrated ways to process images on the mac. I mean, that’s what it’s there for, but it’s like no one thinks about it. I was trying to resize about 500 jpegs today with automator and then I remembered it. SIPS is simpler and faster FTW!
SIPS doesn’t do EVERYTHING, but it does some common functions quickly and nicely and it’s accessible from the command line right in the terminal. Here are some things SIPS can do:
#Resize a batch of images to 250px (largest side)
sips -Z 250 * #Resize only .jpg files in a folder to 500px x 500px - ignores aspect
sips -z 500 500 *.jpg #Rotate a batch of images 90 degrees clock-wise
sips -r 90 * #Resize down to fit 250 pixels and pad with white to make them square, add finder icon
sips -Z 250 -p 250 250 --padColor FFFFFF -i *There are more things you can do with SIPS – be careful, don’t hurt yourself – SIPS modifies your files without apology. Experiment on copies or live a life of regret. You can see the man page for more info.
Of course, you could mogrify with ImageMagick, and that is truly wonderful, but not everyone needs or has IM and SIPS works out-of-the-box on any OSX Mac. BTW, SIPS stands for Scriptable Image Processing System, in case you were wondering.