Advertisement

Postingan

Menampilkan postingan dari Desember, 2016

ffmpeg cut video or audio with or without re-encoding

top computer
You only need the  -ss  and  -t  options.  -ss  is the starttime and  -t  the duration, so if you want 10 seconds from a video starting from minute one, you would use this. 1 ffmpeg -i INFILE.mp4 -vcodec copy -acodec copy -ss 00:01:00.000 -t 00:00:10.000 OUTFILE.mp4 You can use seconds or  hh:mm:ss[.xxx]  as arguments for the start time and duration, i prefer the second option. The options  -vcodec copy  and  -acodec copy  are used to only cut the video and disable the re-encoding, this really speed things up. I use this command ffmpeg -i INFILE.mp4 -vcodec copy -acodec copy -ss 00:01:00.000 -t 00:00:10.000 OUTFILE.mp4 ffmpeg -i "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-RFTYZgBNprg.mp3" -vcodec copy -acodec copy -ss 00:00:10.000 -t 01:00:00.000 "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-1 hours.mp3" without re-encoding

ffmpeg compression mp3

top computer
I success with this command ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 2 output.mp3 ffmpeg -i input_file.mp3 -ab 128k  output_file.mp3 ffmpeg -i inputfile.mp3 -acodec libmp3lame -b:a 8k -ac 1 -ar 11025 outputfile.mp3 -b:a = audio bitrate -ar = sample rate -ac channels = set number of audio channels ffmpeg -i "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-RFTYZgBNprg.mp3" -acodec libmp3lame -b:a 112k -ac 2 -ar 44100 "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-112k.mp3" ffmpeg -i "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-RFTYZgBNprg.mp3" -ab 112k "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-112k2.mp3" ffmpeg -i "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-RFTYZgBNprg.mp3" -b:a 112k -ac 2 -ar 44100 "NON STOP CHRISTMAS MEDLEY VOLUME 1 & 2-112k3.mp3" explain: F:\Media\rohani>ffmpeg --help ffmpeg version N-82151-g1e660fe Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC)

ffmpeg Video and Audio Manipulation

top computer
I success with this command ffmpeg -i "file name.mkv" -c:v libx264 -c:a copy "file name.mp4" ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 2 output.mp3 FFmpeg: The ultimate Video and Audio Manipulation Tool What is FFmpeg? Chances are you’ve probably heard of  FFmpeg  already. It’s a set of tools dedicated to decoding, encoding and transcoding video and audio. FFmpeg is based on the popular  libavcodec  and  libavformat  libraries that can be found in many other video conversion applications, like  Handbrake . So why would you need FFmpeg? Got a video in an obscure format that every other player couldn’t recognize? Transcode it with FFmpeg. Want to automate cutting video segments out of movies? Write a short batch script that uses FFmpeg. Where I work, I constantly have to encode and process video material, and I’d never want to go back to using a GUI tool for doing this. This post is a follow-up on  Video Conversion done right: Codecs and So