Quoted By:
I could use some help with a bash/ffmpeg command and I cant into regex.
Basically, I need to write the filename of a bunch of videos into their respective Title metadata.
The filenames are formatted like this,
200_SG1_S10D4-Episode.m4v
and I want the metadata Title to be the same. I found another guy's work but his filename format was different,
Bleach - 001 - A Shinigami Is Born!.avi
Here was his solution:
or file in *; do newname=${file:0:-4}_2 ext=${file##*.} filename=${file} showname=${file%% *} episode=${file:9:3} nameext=${file##*- } title=${nameext%.*}; ffmpeg -i "$filename" -metadata title="$title" -metadata track=$episode -metadata album=$showname -c copy "$newname.$ext"; mv -f "$newname.$ext" "$filename"; done
Can this be adapted to work with mine?
Shitty gimp mockup OC as appreciation.