How to BATCH CONVERT on a mac

macOS specific usage questions
jbdean
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2016 04:23

How to BATCH CONVERT on a mac

Postby jbdean » 01 Jul 2020 07:27

I'm finding tons of How To's on batch converting on PCs but nothing for Macs. Is this possible? I love VLC but seriously will have to switch to Any Video Converter if I can't do batch converting. I just need to convert 3+ files at a time, all going to the same destination folder.

I'm running: VLC Version 3.0.11 Vetinari (Intel 64bit)

Thank you!

jbdean
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2016 04:23

Re: How to BATCH CONVERT on a mac

Postby jbdean » 03 Jul 2020 03:44

Guess I have to post a reply since I can no longer edit my own post.

I just attempted to batch convert 6 items by adding one after the other using the Convert/Stream option. They were numbered (and added) 1-6. The only one that finished a full conversion was #6, the last one added. The other five, while they should have been around 400mb (as #6 was), didn't even reach 5mb. I'm really confused. If I'm able to add more than one to convert, why does only the last one complete? My computer didn't go to sleep or shut down during the process.

Chaplain America
New Cone
New Cone
Posts: 4
Joined: 26 Jan 2023 03:43

Re: How to BATCH CONVERT on a mac

Postby Chaplain America » 26 Jan 2023 22:18

Guess I have to post a reply since I can no longer edit my own post.

I just attempted to batch convert 6 items by adding one after the other using the Convert/Stream option. They were numbered (and added) 1-6. The only one that finished a full conversion was #6, the last one added. The other five, while they should have been around 400mb (as #6 was), didn't even reach 5mb. I'm really confused. If I'm able to add more than one to convert, why does only the last one complete? My computer didn't go to sleep or shut down during the process.
Thank you for posting this question. I'd like the answer also.

roychen
New Cone
New Cone
Posts: 3
Joined: 07 Apr 2023 03:26

Re: How to BATCH CONVERT on a mac

Postby roychen » 07 Apr 2023 03:40

Guess I have to post a reply since I can no longer edit my own post.

I just attempted to batch convert 6 items by adding one after the other using the Convert/Stream option. They were numbered (and added) 1-6. The only one that finished a full conversion was #6, the last one added. The other five, while they should have been around 400mb (as #6 was), didn't even reach 5mb. I'm really confused. If I'm able to add more than one to convert, why does only the last one complete? My computer didn't go to sleep or shut down during the process.
Thank you for posting this question. I'd like the answer also.
Thank you for posting this question. I'd like to know the answer of this question too. :mrgreen:
Anyone can tell me the answer :?: :!:

roychen
New Cone
New Cone
Posts: 3
Joined: 07 Apr 2023 03:26

Re: How to BATCH CONVERT on a mac

Postby roychen » 17 Apr 2023 08:41

anyone here??
anyone knows the answer for this question? :(

augsteyer
New Cone
New Cone
Posts: 1
Joined: 24 Aug 2023 21:30

Re: How to BATCH CONVERT on a mac

Postby augsteyer » 24 Aug 2023 21:51

Hello, recently decided to do it, but also could not find a way to do it via interface. So I searched a little and compiled a script based on the one posted by VLC themselves.

Open the terminal, just CMD+SPACE shortcut and start typing "terminal".
You will be in your user directory when you open it, lets go to the Downloads folder like so cd Downloads.
Lets create a file called "convert.sh", I am not very good at life, so I still use NANO program (dont hate), like so: nano convert.sh


Afterwards you can copy this code into it, just CMD+V:

Code: Select all

#!/bin/sh ######################## Transcode the files using ... ######################## #vcodec="mp4v" vcodec="h264" acodec="mp4a" vb="1024" ab="128" mux="mp4" #mux="ts" channels="2" ############################################################################### # Store path to VLC in $vlc if command -pv vlc >/dev/null 2>&1; then # Linux should find "vlc" when searching PATH vlc="vlc" else # macOS seems to need an alias #vlc="/Applications/Utilities/VLC.app/Contents/MacOS/VLC" vlc="$(which vlc)" fi # Sanity check if ! command -pv "$vlc" >/dev/null 2>&1; then printf '%s\n' "Cannot find path to VLC. Abort." >&2 exit 1 fi index=1 for filename in *.mov; do printf '%s\n' "=> Transcoding '$filename'... " "$vlc" -I dummy -q "$filename" \ --sout="#transcode {vcodec='${vcodec}',vb='${vb}',acodec='${acodec}',ab='${ab}',channels='${channels}',deinterlace}:standard {access=file,mux='${mux}',dst='${index}-${filename}'}" \ vlc://quit ls -lh "$filename" "${index}-${filename}" index=$((index + 1)) printf '\n' done
Now save the file, CTRL+O & ENTER, afterwards CTRL+X to exit.
Now allow the script to be runnable by the current user by typing chmod u+x convert.sh

---
Once you are done with creating the script file you can move it to any folder you like and run it via command line.
After you run the script all the *.mov files in the current folder as the script (e.g. Downloads) will be converted.
Running the script is easy, just go to the folder via CMD line & run ./convert.sh

P.S. The script has some commented out lines, play around with the codecs to align with your own needs!

ref 1: https://wiki.videolan.org/VLC_HowTo/Tra ... le_videos/
ref 2: https://stackoverflow.com/questions/309 ... -batch-cli


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 47 guests