Note that there are some explanatory texts on larger screens.

plurals
  1. POMac Terminal (Bash) batch program to get multimedia file info using ffmpeg
    primarykey
    data
    text
    <p>I have a Mac computer. Usually all my batch programming is done on my PC. So I tried to create what I assumed would be a simple equivalent using a Mac shell. Obviously as you all know that was foolish of me to think that. After 2 days of scowering the web I found the closest thing I could to what I was looking for. But no, this doesn't work either. </p> <p>All I'd like to do is throw a multimedia file onto the script, and have the terminal give me the ffmpeg info output. In my searching I did find this <code>"$@"</code> which as far as I can tell is the windows bat equivalent of <code>%*</code>. Meaning you can throw files on the script and the script refers to those files as variables which can be processed. So I believe what I want to do is possible.</p> <p>Again the code at the bottom is just to look through the current directory of all .mov files and run ffmpeg. It doesn't work. But.. if no one can help me figure out the actual thing I'd like to do then I'd settle with something like below that does actually work.</p> <pre><code>#!/bin/bash FFMPEG=/Applications/ffmpeg FIND=/usr/bin/find FILES=$(${FIND} . -type f -iname "*.mov") if [ "$FILES" == "" ] then echo "There are no *.mov file in $(pwd) directory" exit 1 fi for f in *.mov do $FFMPEG -i "$f" done </code></pre> <p>If someone can please help me figure this out I'd really appreciate it. Thank you in advance! Jules</p> <p>I just found this solution from the "similar questions" sidebar, which is similar to the script above, so again, not completely what I wanted but.. didn't matter, didn't work for me. <a href="https://stackoverflow.com/questions/10767373/how-to-batch-convert-mp4-files-to-ogg-with-ffmpeg-using-a-bash-command-or-ruby#10778739">How to batch convert mp4 files to ogg with ffmpeg using a bash command or Ruby</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload