Project

General

Profile

Actions

Suddividere traccia audio

  • original_file: the original absolute path
  • time_lapse: number of seconds. Could be an integer or a double
  • file_pattern: The pattern to the output files
ffmpeg -i ${original_file} -f segment -segment_time ${time_lapse} -c copy ${file_pattern}

Note su file_pattern:

exported_dir="exported" 
file_pattern="${exported_dir}/%03d_${original_file##*/}" 

%03d : calcola un numero autoincrementale di tre cifre leading zero;
${original_file##*/} : file basename. Splitta original_file per '/' e considera l'ultimo token

Updated by Gabor Murray about 6 years ago · 3 revisions