shithub: rc

Download patch

ref: 934bd30da6c3ea752c44f622fb71803e68901cf1
parent: cfd4cff24b26e70d5836971e8c63a89a54cf004c
author: qwx <qwx@sciops.net>
date: Wed Oct 28 21:44:39 EDT 2020

add aconv2: aconv for flac input only

file(1) may fail to detect flac sometimes

--- /dev/null
+++ b/aconv2
@@ -1,0 +1,11 @@
+#!/bin/rc
+parm=()
+if(~ $1 -l){
+	parm=(-l)
+	shift
+}
+pref=$1
+for(i in $*(2-)){
+	echo $i
+	audio/flacdec <$i | pcm2opus >`{echo $i | mfmt $pref opus}
+}