Compare commits

...

12 Commits

Author SHA1 Message Date
Kieran O'Leary
63033942f1 Merge pull request #460 from kieranjol/gh-pages
join files recipe - remove './' from example, fixes #457
2022-05-12 21:18:17 +01:00
Kieran O'Leary
aba38e0a08 join files recipe - add @brainwane path hint 2022-05-10 23:08:20 +01:00
Kieran O'Leary
393a8cc22f join files recipe - remove './' from example, fixes #457 2022-05-10 21:40:51 +01:00
Katherine Frances Nagels
20cbf26144 Merge pull request #458 from amiaopensource/kfrn-join-files
Fix indentation of code block showing file contents
2022-05-11 07:53:34 +12:00
kfrn
e6552c5494 Join files recipe: fix indentation of code block showing file contents
Previously, the second and following lines were indented compared to the first line.
2022-05-11 07:31:40 +12:00
רטו • Reto
0d27ffa5d1 don't try to find the default browser on macOS (#456) 2021-08-13 19:53:57 +02:00
Ashley
bf93a20da8 Merge pull request #455 from amiaopensource/homebrew-1
delete Homebrew compilation parameters
2021-08-13 11:46:21 -04:00
רטו • Reto
3c393a688e delete Homebrew compilation parameters 2021-08-13 17:33:40 +02:00
Andrew Weaver
961f401c34 Merge pull request #454 from amiaopensource/qemu
update QEMU QED link in ReadMe
2021-01-29 13:36:35 -08:00
רטו
f3cc3b518f update QEMU QED link in ReadMe 2021-01-29 22:24:42 +01:00
Andrew Weaver
3555a9b61e Merge pull request #453 from EG-tech/eg-tech
update QEMU QED link
2021-01-29 13:17:55 -08:00
EG-tech
9a36ef66ba update QEMU QED link
fixed
2021-01-29 16:12:28 -05:00
3 changed files with 10 additions and 16 deletions

View File

@@ -63,7 +63,7 @@
<p><a href="https://datapraxis.github.io/sourcecaster/" target="_blank">The Sourcecaster</a>: an app that helps you use the command line to work through common challenges that come up when working with digital primary sources.</p>
<p><a href="https://pugetsoundandvision.github.io/micropops/" target="_blank">Micropops</a>: One liners and automation tools from Moving Image Preservation of Puget Sound</p>
<p><a href="https://amiaopensource.github.io/cable-bible/" target="_blank">Cable Bible</a>: A Guide to Cables and Connectors Used for Audiovisual Tech</p>
<p><a href="https://eaasi.gitlab.io/qemu-qed/" target="_blank">QEMU QED</a>: instructions for using QEMU (Quick EMUlator), a command line application for computer emulation and virtualization</p>
<p><a href="https://eaasi.gitlab.io/program_docs/qemu-qed/" target="_blank">QEMU QED</a>: instructions for using QEMU (Quick EMUlator), a command line application for computer emulation and virtualization</p>
<p><a href="https://amiaopensource.github.io/ffmpeg-artschool/" target="_blank">ffmpeg-artschool</a>: An AMIA workshop featuring scripts, exercises, and activities to make art using FFmpeg</p>
</div>
@@ -492,7 +492,6 @@
<h5>Transcode to Ogg/Theora</h5>
<p><code>ffmpeg -i <em>input_file</em> -acodec libvorbis -b:v 690k <em>output_file</em></code></p>
<p>This command takes an input file and transcodes it to Ogg/Theora in an .ogv wrapper with 690k video bitrate.</p>
<p><strong>Note:</strong> FFmpeg must be installed with support for Ogg Theora. If you are using Homebrew, you can check with <code>brew info ffmpeg</code> and then update it with <code>brew upgrade ffmpeg --with-theora --with-libvorbis</code> if necessary.</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <em>input file</em></dt><dd>path, name and extension of the input file</dd>
@@ -1093,16 +1092,18 @@
<div class="hiding">
<h5>Join files together</h5>
<p><code>ffmpeg -f concat -i mylist.txt -c copy <em>output_file</em></code></p>
<p>This command takes two or more files of the same file type and joins them together to make a single file. All that the program needs is a text file with a list specifying the files that should be joined. However, it only works properly if the files to be combined have the exact same codec and technical specifications. Be careful, FFmpeg may appear to have successfully joined two video files with different codecs, but may only bring over the audio from the second file or have other weird behaviors. Dont use this command for joining files with different codecs and technical specs and always preview your resulting video file!</p>
<p>This command takes two or more files of the same file type and joins them together to make a single file. All that the program needs is a text file with a list specifying the files that should be joined. If possible, run the command from the same directory where the files and the text file reside. Otherwise you'll have to use <code>-safe 0</code>, see below for more information. However, it only works properly if the files to be combined have the exact same codec and technical specifications. Be careful, FFmpeg may appear to have successfully joined two video files with different codecs, but may only bring over the audio from the second file or have other weird behaviors. Dont use this command for joining files with different codecs and technical specs and always preview your resulting video file!</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-f concat</dt><dd>forces ffmpeg to concatenate the files and to keep the same file format</dd>
<dt>-i <em>mylist.txt</em></dt><dd>path, name and extension of the input file. Per the <a href="https://ffmpeg.org/ffmpeg-formats.html#Options" target="_blank">FFmpeg documentation</a>, it is preferable to specify relative rather than absolute file paths, as allowing absolute file paths may pose a security risk.<br>
This text file contains the list of files to be concatenated and should be formatted as follows:
<pre>file '<em>./first_file.ext</em>'
file '<em>./second_file.ext</em>'
This text file contains the list of files (without their absolute path) to be concatenated and should be formatted as follows:
<pre>
file '<em>first_file.ext</em>'
file '<em>second_file.ext</em>'
. . .
file '<em>./last_file.ext</em>'</pre>
file '<em>last_file.ext</em>'
</pre>
In the above, <strong>file</strong> is simply the word "file". Straight apostrophes ('like this') rather than curved quotation marks (like this) must be used to enclose the file paths.<br>
<strong>Note:</strong> If specifying absolute file paths in the .txt file, add <code>-safe 0</code> before the input file.<br>
e.g.: <code>ffmpeg -f concat -safe 0 -i mylist.txt -c copy <em>output_file</em></code></dd>
@@ -2368,7 +2369,6 @@
<input type="checkbox" id="ocr_on_top">
<div class="hiding">
<h5>Plays video with OCR on top</h5>
<p>Note: ffmpeg must be compiled with the tesseract library for this script to work (<code>--with-tesseract</code> if using the <code>brew install ffmpeg</code> method).</p>
<p><code>ffplay input_file -vf "ocr,drawtext=fontfile=/Library/Fonts/Andale Mono.ttf:text=%{metadata\\\:lavfi.ocr.text}:fontcolor=white"</code></p>
<dl>
<dt>ffplay</dt><dd>starts the command</dd>
@@ -2392,7 +2392,6 @@
<input type="checkbox" id="ffprobe_ocr">
<div class="hiding">
<h5>Exports OCR data to screen</h5>
<p>Note: FFmpeg must be compiled with the tesseract library for this script to work (<code>--with-tesseract</code> if using the <code>brew install ffmpeg</code> method)</p>
<p><code>ffprobe -show_entries frame_tags=lavfi.ocr.text -f lavfi -i "movie=<em>input_file</em>,ocr"</code></p>
<dl>
<dt>ffprobe</dt><dd>starts the command</dd>

View File

@@ -173,7 +173,7 @@ Last updated: 2019-12-11
[The Cable Bible](https://amiaopensource.github.io/cable-bible/): A Guide to Cables and Connectors Used for Audiovisual Tech
[FFCommand_Engine](https://github.com/ColorlabMD/FFCommand_Engine): a tool for easier use of FFmpeg binaries
[QEMU QED](https://eaasi.gitlab.io/qemu-qed): instructions for using QEMU (Quick EMUlator), a command line application for computer emulation and virtualization
[QEMU QED](https://eaasi.gitlab.io/program_docs/qemu-qed/): instructions for using QEMU (Quick EMUlator), a command line application for computer emulation and virtualization
[Script Ahoy](http://dd388.github.io/crals/): Community Resource for Archivists and Librarians Scripting
[sourcecaster](https://datapraxis.github.io/sourcecaster/): helps you use the command line to work through common challenges that come up when working with digital primary sources.

View File

@@ -4,17 +4,12 @@
# connected to the Web, and the local version otherwise.
if [[ "$(uname -s)" = "Darwin" ]] ; then
default_browser=$(plutil -convert json ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist -r -o - | grep https -b1 | tail -n1 | cut -d'"' -f4)
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'
else
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
fi
if [[ -n "${default_browser}" ]] ; then
open -b "${default_browser}" "${ffmprovisr_path}"
else
open "${ffmprovisr_path}"
fi
open "${ffmprovisr_path}"
elif [[ "$(uname -s)" = "Linux" ]] ; then
if ping -c 1 amiaopensource.github.io >/dev/null 2>&1 ; then
ffmprovisr_path='https://amiaopensource.github.io/ffmprovisr/'