diff --git a/UserGuide.md b/UserGuide.md index 38f2d89..84412b6 100644 --- a/UserGuide.md +++ b/UserGuide.md @@ -180,8 +180,8 @@ CUE files If the anlyser encounters an audio file with a matching CUE file (e.g. `album.flac` and `album.cue` in same folder) then it will attempt to analyse the individual tracks contained within. To do this the analyser uses `ffmpeg` to -create temporary 128k MP3 files of each track. (These temporary files are -removed afterwards). +create temporary files of each track, which are then analysed. (These temporary +files are removed afterwards). Exclude folders diff --git a/src/analyse.rs b/src/analyse.rs index d7e4891..0f4a078 100644 --- a/src/analyse.rs +++ b/src/analyse.rs @@ -192,8 +192,9 @@ pub fn analyze_cue_streaming(tracks: Vec,) -> BlissResult,) -> BlissResult { log::error!("Failed to call ffmpeg. {}", e); } } } else { - match Exec::cmd("ffmpeg").arg("-i").arg(&audio_path).arg("-b:a").arg("128k") + match Exec::cmd("ffmpeg").arg("-i").arg(&audio_path) .arg("-ss").arg(&cue_track.start.hhmmss()) + .arg("-c").arg("copy") .arg(String::from(tmp_file.to_string_lossy())) .stderr(NullFile) .join() { diff --git a/src/cue.rs b/src/cue.rs index 99ac830..03d06ef 100644 --- a/src/cue.rs +++ b/src/cue.rs @@ -49,7 +49,7 @@ pub fn parse(audio_path:&PathBuf, cue_path:&PathBuf) -> Vec { Some((_, start)) => { let mut track_path = audio_path.clone(); let ext = audio_path.extension().unwrap().to_string_lossy(); - track_path.set_extension(format!("{}{}{}.mp3", ext, MARKER, resp.len()+1)); + track_path.set_extension(format!("{}{}{}", ext, MARKER, resp.len()+1)); let mut ctrack = CueTrack { audio_path: audio_path.clone(), track_path: track_path,