<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>CommandLine on Bill Glover</title>
		<link>https://old.bill.dev/tags/commandline/</link>
		<description>Recent content in CommandLine on Bill Glover</description>
		<generator>Hugo</generator>
		<language>en-gb</language>
		
			<managingEditor>hello@bill.dev (Bill)</managingEditor>
		
		
			<webMaster>hello@bill.dev (Bill)</webMaster>
		
		
		
			<lastBuildDate>Sun, 28 Sep 2025 22:27:35 +0100</lastBuildDate>
		
			<atom:link href="https://old.bill.dev/tags/commandline/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>FFmpeg Cheat Sheet</title>
				<link>https://old.bill.dev/notes/ffmpeg-cheat-sheet/</link>
				<pubDate>Fri, 11 Oct 2024 17:17:25 +0100</pubDate><author>hello@bill.dev (Bill)</author>
				<guid>https://old.bill.dev/notes/ffmpeg-cheat-sheet/</guid>
				<description>&lt;p&gt;Using &lt;a href=&#34;https://ffmpeg.org/about.html&#34;&gt;FFmpeg&lt;/a&gt; is more art than science. Every time I reach for it, I find myself trawling the internet for various incantations of the command that result in a playable video. These are commands that have worked for me.&lt;/p&gt;&#xA;&lt;h3 id=&#34;blu-ray&#34;&gt;Blu-ray&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ffmpeg -i input.mkv -c:v libx265 -crf &lt;span class=&#34;m&#34;&gt;18&lt;/span&gt; -c:a aac -b:a 160k -tag:v hvc1 -ac &lt;span class=&#34;m&#34;&gt;6&lt;/span&gt; output.mp4&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This results in an mp4 container with h265 video and aac sound. The file should be playable on Apple devices. The resulting file will also be significantly smaller than the original.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Docker Desktop (Mac) Unix Socket</title>
				<link>https://old.bill.dev/2024/04/13/docker-desktop-mac-unix-socket/</link>
				<pubDate>Sat, 13 Apr 2024 18:37:00 +0000</pubDate><author>hello@bill.dev (Bill)</author>
				<guid>https://old.bill.dev/2024/04/13/docker-desktop-mac-unix-socket/</guid>
				<description>&lt;p&gt;Two of the tools in my container toolkit stopped working at some point recently. To demonstrate the issue, I first make sure that I have an image pulled locally.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;bg@Bills-MBP ~ % docker image ls&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;REPOSITORY   TAG       IMAGE ID       CREATED       SIZE&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;golang       1.22      824aa3c1d42c   10 days ago   830MB&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;demo         latest    cf12555b1219   10 days ago   830MB&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The first tool, Dive, started producing errors like this.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;bg@Bills-MBP tmp % dive demo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Image Source: docker://demo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Fetching image... (this can take a while for large images)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Handler not available locally. Trying to pull &amp;#39;demo&amp;#39;...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Using default tag: latest&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Error response from daemon: pull access denied for demo, repository does not exist or may require &amp;#39;docker login&amp;#39;: denied: requested access to the resource is denied&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cannot fetch image&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;exit status 1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The image was present locally and the docker daemon definitely running. I logged out, logged in again and tried different accounts. When I first hit this error I assumed that this was an issue with Dive. The workaround I used was to export the image to a &lt;code&gt;.tar&lt;/code&gt; file and then use dive to browse the disk image. But then I hit this error with Trivy.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
