<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AIGLAS</title>
    <description>The latest articles on DEV Community by AIGLAS (@aiglasuk).</description>
    <link>https://dev.to/aiglasuk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4249184%2F97fe1fba-160e-4c77-9a5a-cbf3638a1f09.png</url>
      <title>DEV Community: AIGLAS</title>
      <link>https://dev.to/aiglasuk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aiglasuk"/>
    <language>en</language>
    <item>
      <title>A Repeatable ffmpeg Workflow for Offloading and Checking First-Person Wearable Video</title>
      <dc:creator>AIGLAS</dc:creator>
      <pubDate>Tue, 17 Nov 2026 07:42:52 +0000</pubDate>
      <link>https://dev.to/aiglasuk/a-repeatable-ffmpeg-workflow-for-offloading-and-checking-first-person-wearable-video-3mf5</link>
      <guid>https://dev.to/aiglasuk/a-repeatable-ffmpeg-workflow-for-offloading-and-checking-first-person-wearable-video-3mf5</guid>
      <description>&lt;p&gt;&lt;em&gt;This technical guide is published by AIGLAS, a UK smart-glasses brand. It includes one link to our website.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;First-person video from everyday smart glasses is easy to capture and surprisingly easy to mishandle later. Clips arrive with uneven names, mixed frame rates, rotating phone uploads, and metadata that does not always survive the first copy. If you treat the phone gallery as the archive, you will lose the original file, the timestamps, or both.&lt;/p&gt;

&lt;p&gt;This article is a repeatable, command-line workflow for people who want a technical trail: copy footage off the device, inspect what you actually have, make a working transcode without destroying the original, and keep a short log of what changed. The examples use &lt;code&gt;ffmpeg&lt;/code&gt;, &lt;code&gt;ffprobe&lt;/code&gt;, and a small Bash script on Linux or macOS. Nothing here assumes a particular product's undocumented internals. It is the same hygiene I want when I review a day's clips.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ffmpeg&lt;/code&gt; and &lt;code&gt;ffprobe&lt;/code&gt; on your PATH. On Debian or Ubuntu: &lt;code&gt;sudo apt install ffmpeg&lt;/code&gt;. On macOS with Homebrew: &lt;code&gt;brew install ffmpeg&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A working copy of the day's clips in one folder. If the companion app stores files inside an app container, export or copy them first. Do not run destructive commands against the only copy.&lt;/li&gt;
&lt;li&gt;A place for the archive that is not the phone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check the tools:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -version &lt;span class="o"&gt;|&lt;/span&gt; head -n 1
ffprobe -version &lt;span class="o"&gt;|&lt;/span&gt; head -n 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create a clean workspace. I use a date folder and keep originals read-only once they are copied.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;DAY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2026-11-17
mkdir -p &lt;span class="s2"&gt;"$HOME/footage/$DAY"&lt;/span&gt;/&lt;span class="o"&gt;{&lt;/span&gt;inbox,originals,work,logs&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy from the export location into &lt;code&gt;inbox&lt;/code&gt;, then make a second copy into &lt;code&gt;originals&lt;/code&gt; before you touch anything. If a copy fails, stop and fix the disk or cable. Do not transcode from a half-copied file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Adjust the source path to wherever the phone or glasses export landed&lt;/span&gt;
&lt;span class="nv"&gt;SRC&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/Downloads/glasses-export"&lt;/span&gt;
rsync -av --progress &lt;span class="s2"&gt;"$SRC"&lt;/span&gt;/ &lt;span class="s2"&gt;"$HOME/footage/$DAY/inbox/"&lt;/span&gt;
rsync -av --progress &lt;span class="s2"&gt;"$HOME/footage/$DAY/inbox/"&lt;/span&gt; &lt;span class="s2"&gt;"$HOME/footage/$DAY/originals/"&lt;/span&gt;
chmod a-w &lt;span class="s2"&gt;"$HOME/footage/$DAY/originals/"&lt;/span&gt;*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;chmod a-w&lt;/code&gt; is a simple seatbelt. It will not protect you from &lt;code&gt;sudo&lt;/code&gt; or a later overwrite of the folder, but it does stop a tired &lt;code&gt;ffmpeg -y&lt;/code&gt; from writing onto the original filename in that directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect before you convert
&lt;/h2&gt;

&lt;p&gt;A wearable clip can look like an ordinary MP4 and still differ in timebase, rotation, audio sample rate, or colour range. Guessing from the filename is how people ship a 90-degree video to a client. Ask &lt;code&gt;ffprobe&lt;/code&gt; first.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffprobe -hide_banner -show_format -show_streams -of json \
  &lt;span class="s2"&gt;"$HOME/footage/$DAY/originals/clip001.mp4"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; tee &lt;span class="s2"&gt;"$HOME/footage/$DAY/logs/clip001.ffprobe.json"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you prefer a compact human summary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffprobe -hide_banner -v error \
  -show_entries &lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;filename,duration,size,bit_rate:stream=index,codec_name,codec_type,width,height,avg_frame_rate,r_frame_rate,pix_fmt,sample_rate,channels,rotation,tags \
  -of &lt;span class="nv"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;noprint_wrappers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 \
  &lt;span class="s2"&gt;"$HOME/footage/$DAY/originals/clip001.mp4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Write down four things for each clip, or have the script do it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Duration and file size. A two-second file that claims to be 200 MB is usually a bad copy.&lt;/li&gt;
&lt;li&gt;Video codec, width, height, and frame rate. Mixed 25 fps and 30 fps days are common.&lt;/li&gt;
&lt;li&gt;Audio codec, sample rate, and channel count. Some clips are silent; some are AAC stereo with a noisy wind track.&lt;/li&gt;
&lt;li&gt;Rotation tags. Some players honour &lt;code&gt;rotate&lt;/code&gt; or &lt;code&gt;displaymatrix&lt;/code&gt;; some ignore them. If a clip plays upright on the phone and sideways in the browser, the tag is the first place to look.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To print rotation-related tags specifically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffprobe -v error -select_streams v:0 \
  -show_entries &lt;span class="nv"&gt;stream_tags&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;rotate:stream_side_data=rotation \
  -of &lt;span class="nv"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;noprint_wrappers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 \
  &lt;span class="s2"&gt;"$HOME/footage/$DAY/originals/clip001.mp4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;ffprobe&lt;/code&gt; errors on a file, quarantine it. Do not include it in a batch transcode until you know whether the container is truncated.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a working file, keep the original
&lt;/h2&gt;

&lt;p&gt;The working file is what you watch, trim, or upload. The original stays untouched. I transcode to H.264 + AAC in an MP4, because that combination still opens in almost every review tool I use. This is a review proxy, not an archival format. The archive is the original.&lt;/p&gt;

&lt;p&gt;A conservative command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;IN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/footage/$DAY/originals/clip001.mp4"&lt;/span&gt;
&lt;span class="nv"&gt;OUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/footage/$DAY/work/clip001.review.mp4"&lt;/span&gt;

ffmpeg -n -i &lt;span class="s2"&gt;"$IN"&lt;/span&gt; \
  -map 0:v:0 -map 0:a? \
  -c:v libx264 -preset medium -crf 20 -pix_fmt yuv420p \
  -movflags +faststart \
  -c:a aac -b:a 160k \
  &lt;span class="s2"&gt;"$OUT"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notes on the flags:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-n&lt;/code&gt; refuses to overwrite an existing output. If you need to re-run, delete the old proxy first. This is safer than &lt;code&gt;-y&lt;/code&gt; in a loop.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-map 0:a?&lt;/code&gt; includes audio if it exists and does not fail if the clip is silent.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-movflags +faststart&lt;/code&gt; moves the moov atom to the front so a browser can start playback before the file is fully downloaded.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-crf 20&lt;/code&gt; is a quality target, not a bitrate cap. Raise the number if the proxies are too large; lower it only if you see obvious compression on fine text or foliage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the source is already a well-behaved H.264 MP4 and you only need faststart, you can remux without re-encoding:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -n -i &lt;span class="s2"&gt;"$IN"&lt;/span&gt; -map 0 -c copy -movflags +faststart \
  &lt;span class="s2"&gt;"$HOME/footage/$DAY/work/clip001.faststart.mp4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use remux when inspection shows a codec you already accept and no rotation correction is required. Use the transcode when you need a consistent review format across a mixed day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix rotation in the working file, not the original
&lt;/h2&gt;

&lt;p&gt;If &lt;code&gt;ffprobe&lt;/code&gt; reports a 90-degree tag and your review player shows a sideways picture, bake the rotation into the working file. Leave the original alone.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -n -i &lt;span class="s2"&gt;"$IN"&lt;/span&gt; \
  -vf &lt;span class="s2"&gt;"transpose=1"&lt;/span&gt; \
  -c:v libx264 -preset medium -crf 20 -pix_fmt yuv420p \
  -c:a aac -b:a 160k -movflags +faststart \
  &lt;span class="s2"&gt;"$HOME/footage/$DAY/work/clip001.rotated.mp4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;transpose=1&lt;/code&gt; is 90 degrees clockwise. &lt;code&gt;transpose=2&lt;/code&gt; is 90 degrees counter-clockwise. Confirm with one clip before you apply it to a folder. After the transcode, the working file should play upright even in players that ignore metadata rotation.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small batch script
&lt;/h2&gt;

&lt;p&gt;The script below walks every MP4 in &lt;code&gt;originals&lt;/code&gt;, writes a probe log, and creates a review proxy if one does not already exist. Save it as &lt;code&gt;make-review-proxies.sh&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail

&lt;span class="nv"&gt;DAY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${1:?usage: $0 YYYY-MM-DD}"&lt;/span&gt;
&lt;span class="nv"&gt;ROOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/footage/$DAY"&lt;/span&gt;
&lt;span class="nv"&gt;ORIG&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$ROOT/originals"&lt;/span&gt;
&lt;span class="nv"&gt;WORK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$ROOT/work"&lt;/span&gt;
&lt;span class="nv"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$ROOT/logs"&lt;/span&gt;
mkdir -p &lt;span class="s2"&gt;"$WORK"&lt;/span&gt; &lt;span class="s2"&gt;"$LOG"&lt;/span&gt;

&lt;span class="nb"&gt;shopt&lt;/span&gt; -s nullglob
&lt;span class="k"&gt;for&lt;/span&gt; IN &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="s2"&gt;"$ORIG"&lt;/span&gt;/*.mp4 &lt;span class="s2"&gt;"$ORIG"&lt;/span&gt;/*.MP4&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;base&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$(basename "&lt;/span&gt;&lt;span class="nv"&gt;${IN%.*}&lt;/span&gt;&lt;span class="s2"&gt;")"&lt;/span&gt;
  &lt;span class="nv"&gt;OUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$WORK/${base}.review.mp4"&lt;/span&gt;
  ffprobe -hide_banner -show_format -show_streams -of json &lt;span class="s2"&gt;"$IN"&lt;/span&gt; \
    &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"$LOG/${base}.ffprobe.json"&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt; -e &lt;span class="s2"&gt;"$OUT"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"skip existing $OUT"&lt;/span&gt;
    &lt;span class="nb"&gt;continue&lt;/span&gt;
  &lt;span class="k"&gt;fi&lt;/span&gt;

  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"proxy $IN -&amp;gt; $OUT"&lt;/span&gt;
  ffmpeg -n -i &lt;span class="s2"&gt;"$IN"&lt;/span&gt; \
    -map 0:v:0 -map 0:a? \
    -c:v libx264 -preset medium -crf 20 -pix_fmt yuv420p \
    -movflags +faststart \
    -c:a aac -b:a 160k \
    &lt;span class="s2"&gt;"$OUT"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make it executable and run it with the date folder name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chmod +x make-review-proxies.sh
./make-review-proxies.sh 2026-11-17
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If one file fails, &lt;code&gt;set -e&lt;/code&gt; stops the script. That is intentional. Read the last &lt;code&gt;ffprobe&lt;/code&gt; log, move the bad source into a &lt;code&gt;quarantine&lt;/code&gt; folder, and run the script again. The existing proxies are skipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the result, then trim only the proxy
&lt;/h2&gt;

&lt;p&gt;Compare duration, at least, so a failed encode does not sneak through:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;orig_d&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;ffprobe -v error -show_entries &lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;duration -of &lt;span class="nv"&gt;csv&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0 &lt;span class="s2"&gt;"$IN"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;work_d&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;ffprobe -v error -show_entries &lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;duration -of &lt;span class="nv"&gt;csv&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0 &lt;span class="s2"&gt;"$OUT"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$orig_d $work_d"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A difference of a fraction of a second can be normal at the container level. A difference of several seconds is not. If the proxy is much shorter, the encode likely stopped early.&lt;/p&gt;

&lt;p&gt;When you want a short section for review, cut the proxy, not the original. A stream-copy cut at a keyframe is fast:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -n -ss 00:00:08 -to 00:00:22 -i &lt;span class="s2"&gt;"$OUT"&lt;/span&gt; -c copy \
  &lt;span class="s2"&gt;"$WORK/clip001.review.excerpt.mp4"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the cut is ugly (a freeze at the start, or audio that leads the picture), do a precise re-encode of that excerpt from the proxy or, if you need maximum quality for a short excerpt, from the original into a new working file. Still do not overwrite the file in &lt;code&gt;originals&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep a one-line log
&lt;/h2&gt;

&lt;p&gt;A simple CSV is enough to reconstruct what you did later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"file,duration_s,width,height,codec,note"&lt;/span&gt; \
  &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"$HOME/footage/$DAY/logs/index.csv"&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; IN &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="s2"&gt;"$HOME/footage/$DAY/originals"&lt;/span&gt;/*.mp4&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  ffprobe -v error -of &lt;span class="nv"&gt;csv&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0 \
    -select_streams v:0 \
    -show_entries &lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;filename,duration:stream=width,height,codec_name \
    &lt;span class="s2"&gt;"$IN"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"$HOME/footage/$DAY/logs/index.csv"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a note column by hand for clips you quarantined, rotated, or rejected. Future you will not remember why &lt;code&gt;clip014&lt;/code&gt; was skipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  What not to do
&lt;/h2&gt;

&lt;p&gt;Do not run a “compress everything” preset over the only copy on the phone. Do not rename originals in a way that drops their export order until you have a log. Do not assume every MP4 from a wearable has audio. Do not treat a silent encode error in a long &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; chain as success.&lt;/p&gt;

&lt;p&gt;If you later publish a clip, review the proxy first for bystanders, private screens, and audio you did not intend to keep. Technical hygiene and ordinary care are the same job: know what is in the file before you move it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;The useful part of this workflow is not a particular CRF value. It is the order: copy, inspect, transcode to a working file, log the result, and leave the original intact. Once that order is a habit, a day’s first-person footage is something you can reason about instead of a folder of names you no longer trust.&lt;/p&gt;

&lt;p&gt;If you want to see the kind of everyday smart glasses we build this practice around at AIGLAS, the official site is &lt;a href="https://aiglas.co.uk/" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="https://aiglas.co.uk/" rel="noopener noreferrer"&gt;https://aiglas.co.uk/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ffmpeg</category>
      <category>bash</category>
      <category>tutorial</category>
      <category>videoprocessing</category>
    </item>
  </channel>
</rss>
