diff --git a/README.md b/README.md index dc45a0d2bd4b3d20fd0682cf9cff82b643c87f48..188d3107d092d9884b5abfb3787cc70d6104d6cb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MP4-Duration 2 # -[MP4-Duration](https://www.opencode.net/abigoven/mp4duration) (is a similar tool to [MP3-Duration](https://www.opencode.net/abigoven/mp3duration) for MP3-files) is a Rust CLI ("Command Line Interface") application that collects the durations of some given MP4 files and shows them in a human readable format. It uses the same functionality that my other project [MP4-Info](https://www.opencode.net/abigoven/mp4info) uses. +[MP4-Duration 2](https://www.opencode.net/abigoven/mp4duration2) (is a similar tool to [MP3-Duration](https://www.opencode.net/abigoven/mp3duration) for MP3-files) is a Rust CLI ("Command Line Interface") application that collects the durations of some given MP4 files and shows them in a human readable format. It uses my own functionality without usage of mp4 crate. ## Installation ## The executable files for 32bit-versions are stored in i686-\* and 64bit-versions are stored in x86_64-\* diff --git a/doc/search-index.js b/doc/search-index.js index 59e2cbf8e1ed85a35e9bfee438206c2f997e0660..aada71a8f57fef5bce5f3c2124b6f9bf716740d6 100644 --- a/doc/search-index.js +++ b/doc/search-index.js @@ -1,4 +1,4 @@ -var searchIndex = new Map(JSON.parse('[["mp4duration2",{"t":"PPPPPGNNHNNNHNHNNN","n":["InvalidAtom","InvalidAtomSize","InvalidDuration","InvalidMp4Format","IoError","Mp4Error","borrow","borrow_mut","f_convertsecs","fmt","from","","get_video_duration","into","main","try_from","try_into","type_id"],"q":[[0,"mp4duration2"],[18,"core::fmt"],[19,"std::io::error"],[20,"core::result"],[21,"core::any"]],"i":"j0000`00`000`0`000","f":"``````{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{fh}{{{b{j}}{b{dl}}}n}{cc{}}{A`j}{{{b{Ab}}}{{Af{Adj}}}}{{}c{}}{{}h}{c{{Af{e}}}{}{}}{{}{{Af{c}}}{}}{bAh}","D":"d","p":[[1,"reference"],[0,"mut"],[1,"u64"],[1,"unit"],[6,"Mp4Error",0],[5,"Formatter",18],[8,"Result",18],[5,"Error",19],[1,"str"],[1,"f64"],[6,"Result",20],[5,"TypeId",21]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAABAAAwAAAAoADAABAA8AAwA="}],["mp4duration2",{"t":"PPPPPGNNNNNHNHNNN","n":["InvalidAtom","InvalidAtomSize","InvalidDuration","InvalidMp4Format","IoError","Mp4Error","borrow","borrow_mut","fmt","from","","get_video_duration","into","main","try_from","try_into","type_id"],"q":[[0,"mp4duration2"],[17,"core::fmt"],[18,"std::io::error"],[19,"core::result"],[20,"core::any"]],"i":"f0000`00000`0`000","f":"``````{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{{{b{f}}{b{dh}}}j}{cc{}}{lf}{{{b{n}}}{{Ab{A`f}}}}{{}c{}}{{}Ad}{c{{Ab{e}}}{}{}}{{}{{Ab{c}}}{}}{bAf}","D":"d","p":[[1,"reference"],[0,"mut"],[6,"Mp4Error",0],[5,"Formatter",17],[8,"Result",17],[5,"Error",18],[1,"str"],[1,"f64"],[6,"Result",19],[1,"unit"],[5,"TypeId",20]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAA8AAwAAAAkACwABAA4AAwA="}]]')); +var searchIndex = new Map(JSON.parse('[["mp4duration2",{"t":"PPPPPGNNHNNNHNHNNN","n":["InvalidAtom","InvalidAtomSize","InvalidDuration","InvalidMp4Format","IoError","Mp4Error","borrow","borrow_mut","f_convertsecs","fmt","from","","get_video_duration","into","main","try_from","try_into","type_id"],"q":[[0,"mp4duration2"],[18,"core::fmt"],[19,"std::io::error"],[20,"core::result"],[21,"core::any"]],"i":"j0000`00`000`0`000","f":"``````{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{fh}{{{b{j}}{b{dl}}}n}{cc{}}{A`j}{{{b{Ab}}}{{Af{Adj}}}}{{}c{}}{{}h}{c{{Af{e}}}{}{}}{{}{{Af{c}}}{}}{bAh}","D":"d","p":[[1,"reference"],[0,"mut"],[1,"u64"],[1,"unit"],[6,"Mp4Error",0],[5,"Formatter",18],[8,"Result",18],[5,"Error",19],[1,"str"],[1,"f64"],[6,"Result",20],[5,"TypeId",21]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAABAAAwAAAAoADAABAA8AAwA="}]]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; else if (window.initSearch) window.initSearch(searchIndex); -//{"start":39,"fragment_lengths":[788,756]} \ No newline at end of file +//{"start":39,"fragment_lengths":[788]} \ No newline at end of file diff --git a/doc/src/mp4duration2/main.rs.html b/doc/src/mp4duration2/main.rs.html index 6d25e7861d72c84c9c54d048f3509a97b9f2b383..b11d891e457a2d51b1143c75940d6e06fced3a67 100644 --- a/doc/src/mp4duration2/main.rs.html +++ b/doc/src/mp4duration2/main.rs.html @@ -308,7 +308,7 @@ <span class="kw">let </span>args: Vec<String> = env::args().collect(); <span class="comment">// println!("args.len() = {}", args.len()); /* DEBUG */ </span><span class="kw">if </span>args.len() <= <span class="number">1 </span>{ - <span class="macro">println!</span>(<span class="string">"Usage: {} [-n] [-s] <filenames>"</span>, <span class="kw-2">&</span>args[<span class="number">0</span>]); + <span class="macro">println!</span>(<span class="string">"Usage: {} [-n] [-s] <filename(s)>"</span>, <span class="kw-2">&</span>args[<span class="number">0</span>]); } <span class="kw">else </span>{ <span class="kw">let </span>args: Vec<String> = env::args().skip(<span class="number">1</span>).collect(); <span class="kw">let </span><span class="kw-2">mut </span>argslen: usize = args.len(); diff --git a/mp4duration2_git_wget.txt b/mp4duration2_git_wget.txt index 8804db34a073efcec18200faa8719be0f43bafe2..5e4df83938943949489aa849c69950038de27831 100644 --- a/mp4duration2_git_wget.txt +++ b/mp4duration2_git_wget.txt @@ -14,3 +14,5 @@ Adding URL: https://id.opendesktop.org/login?next=%2Foauth%2Fauthorize%3Fclient_ [0] Downloading 'https://id.opendesktop.org/login?next=%2Foauth%2Fauthorize%3Fclient_id%3DBzeY4MotIOUTXTzPwbhw%26redirect_uri%3Dhttps%253A%252F%252Fwww.opencode.net%252Fusers%252Fauth%252Foauth_opendesktop%252Fcallback%26response_type%3Dcode%26scope%3Dopenid%2520profile%2520email%26state%3Da9145002f9d5aed296a28d93479bd6fe840999115323475a' ... Saving 'mp4duration2.git' HTTP response 200 OK [https://id.opendesktop.org/login?next=%2Foauth%2Fauthorize%3Fclient_id%3DBzeY4MotIOUTXTzPwbhw%26redirect_uri%3Dhttps%253A%252F%252Fwww.opencode.net%252Fusers%252Fauth%252Foauth_opendesktop%252Fcallback%26response_type%3Dcode%26scope%3Dopenid%2520profile%2520email%26state%3Da9145002f9d5aed296a28d93479bd6fe840999115323475a] +HSTS in effect for www.opencode.net:80 +Nothing to do - goodbye diff --git a/sample.mp4 b/sample.mp4 deleted file mode 100644 index e8c5efd3be6fd50f8173c9d8c40850132a54a3f0..0000000000000000000000000000000000000000 Binary files a/sample.mp4 and /dev/null differ diff --git a/src/main.rs b/src/main.rs index f18de1ff06debfdab254734ebf7640f59ffa76d8..b055a1c1b22b48b109c3ecd26b001d3cc658a6cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,7 +112,7 @@ fn main() { let args: Vec<String> = env::args().collect(); // println!("args.len() = {}", args.len()); /* DEBUG */ if args.len() <= 1 { - println!("Usage: {} [-n] [-s] <filenames>", &args[0]); + println!("Usage: {} [-n] [-s] <filename(s)>", &args[0]); } else { let args: Vec<String> = env::args().skip(1).collect(); let mut argslen: usize = args.len(); @@ -181,7 +181,8 @@ fn main() { } f_convertsecs(get_video_duration(arg).unwrap() as u64); if show_summary { - wholetime += get_video_duration(arg).unwrap() as u64; + wholetime += + get_video_duration(arg).unwrap() as u64; } println!("\t{}", arg); } diff --git a/x86_64-pc-windows-gnu/mp4duration2.exe b/x86_64-pc-windows-gnu/mp4duration2.exe index f770364a56307141aef3ad9ac723ac2f2b50a38b..536004e40d74cda68642196b7a4b00a9aa498841 100755 Binary files a/x86_64-pc-windows-gnu/mp4duration2.exe and b/x86_64-pc-windows-gnu/mp4duration2.exe differ diff --git a/x86_64-unknown-linux-gnu/mp4duration2 b/x86_64-unknown-linux-gnu/mp4duration2 index 3bf823b5a67a4e2531b72574c740d326872acaf3..b8f6dfa12840bb5fdbcaf57d7d20d86b6083c1f4 100755 Binary files a/x86_64-unknown-linux-gnu/mp4duration2 and b/x86_64-unknown-linux-gnu/mp4duration2 differ