http://www.linuxquestions.org/questions/linux-software-2/using-ffmpeg-for-cut-first-1-minute-of-flac-files-866234/
-t is in the same hh:mm:ss.xxx format as -ss ; thus you were recording the first 60 hours.
`-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
for FILE in *;
do flac -d --until=00:40 --skip=00:10 "$FILE";
done
for FILE in *.wav;
do lame -b 32 -f -m m "$FILE" "$FILE.mp3";
done
#Remove .wav.mp3 from files and replace .mp3
find $1 -name '*.wav.mp3' | while read file; do
new=$(echo "$file" | sed s/'.wav.mp3/.mp3'/g)
mv "$file" "$new"
done
rm *.wav
x=$(basename `pwd`)
mkdir $x
mv *.mp3 $x
Fix some first seconds freeze, the order of command parameter is matter.
ffmpeg -ss 00:00:00 -i input.mp4 -acodec copy -vcodec copy -to 00:00:30 output.mp4
Extract only frame at n-th
https://superuser.com/questions/1009969/how-to-extract-a-frame-out-of-a-video-ffmpeg
Fix some first seconds freeze, the order of command parameter is matter.
ffmpeg -ss 00:00:00 -i input.mp4 -acodec copy -vcodec copy -to 00:00:30 output.mp4
If -to not work => use -t 30 [30 value is in seconds]
-t is in the same hh:mm:ss.xxx format as -ss ; thus you were recording the first 60 hours.
`-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
for FILE in *;
do flac -d --until=00:40 --skip=00:10 "$FILE";
done
for FILE in *.wav;
do lame -b 32 -f -m m "$FILE" "$FILE.mp3";
done
#Remove .wav.mp3 from files and replace .mp3
find $1 -name '*.wav.mp3' | while read file; do
new=$(echo "$file" | sed s/'.wav.mp3/.mp3'/g)
mv "$file" "$new"
done
rm *.wav
x=$(basename `pwd`)
mkdir $x
mv *.mp3 $x
Fix some first seconds freeze, the order of command parameter is matter.
ffmpeg -ss 00:00:00 -i input.mp4 -acodec copy -vcodec copy -to 00:00:30 output.mp4
Extract only frame at n-th
https://superuser.com/questions/1009969/how-to-extract-a-frame-out-of-a-video-ffmpeg
Comments
Post a Comment