|
|||
Convert mp4 to mp3
Convert mp4 to mp3
I have a load of mp4 files with spaces in their names, the first line replaces the spaces with _ so that the second line can convert them to mp3. Code:
#!/bin/sh for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done for X in *.mp4;do ffmpeg -i $X $X.mp3;done
__________________
Linux since 1999, & also a BSD user. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
convmv - convert file names | victorvas | OpenBSD Packages and Ports | 2 | 30th July 2022 03:05 AM |
New Convert NFSv3 NFSv4 | bigearsbilly | OpenBSD General | 1 | 6th March 2020 12:37 PM |
sh script to convert inches to mm and cm | J65nko | Programming | 6 | 8th August 2019 11:33 PM |
Problem with convert | aleunix | OpenBSD Packages and Ports | 2 | 10th May 2012 01:52 PM |
Want to convert my server to raid | revzalot | OpenBSD Installation and Upgrading | 2 | 16th September 2009 07:56 PM |