Using ffmpeg for cut first 1 minute of flac files
I have so many flac files. I want to have 1 minute samples of the files in mp3 and a bitrate of 64. (First 1 minute of all files)
How can I do that with ffmpeg command? |
Use the -t option to specify the amount of time to encode, as specified in the ffmpeg man page.
|
This works for converting flac to mp3:
ffmpeg -i file.flac -ab 32k -ac 1 -ar 22000 file.mp3 But this does not work: ffmpeg -ss 00:00:00 -t 60 -i file.flac -ab 32k -ac 1 -ar 22000 file.mp3 The second converts all the file not first 1 minute. I also want to the converted file be in mono. But -ac 1 makes file in stereo too. |
Decode the flac to wav, re-encode to mp3:
Code:
flac -d --until=01:00 input.flac |
Quote:
`-t duration' Restrict the transcoded/captured video sequence to the duration specified in seconds. hh:mm:ss[.xxx] syntax is also supported. ppd My bad: miss read the documentation however suggest trying alternative long format. |
I write this script to make 30 sec samples from my flac archive.
Code:
#!/bin/bash |
All times are GMT -5. The time now is 04:06 PM. |