VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Apr 2022
    Location
    New Jersey
    Search PM
    Hi. I'd like to use Shutter Encoder for an ongoing project that will require batch conversion of .MOV files to H.264/MP4. Part of what I need to do involves EQ adjustments, and I've been able to figure out the ffmpeg coding for that portion of it. The issue is that incorporating custom code into SE, along with other conversion settings provided by the GUI, while possible for manual one-offs, does not work into an automated workflow. So I'd like to use SE for the batch automation functions, write all the ffmpeg functions from scratch, and save them in SE to "My Functions".

    I did put in the effort, using code found in SE, and have gotten as far as I can on my own.I'm hoping to get some help figuring out some loose ends, if anyone might be generous enough to donate a little time. Thank you in advance!

    Convert .MOV file to H.264 / MP4
    Limit file size to 88MB
    Max Quality Video

    Is this correct?
    -c:v h264_amf -fs limit_size (92274688) -quality quality -profile:v high -level 5.1

    -------------------------------

    Standard Audio @ 48K AAC Stereo

    Is this correct?
    -c:a aac -ar 48k -b:a 256k

    -------------------------------

    Overlay the filename onto the video. I took the code from SE that included my overlay customizations, but do not know how to express the filename as a variable.

    -filter_complex "[0:v]drawtext=font=Arial:text=[FILENAME-VARIABLE??]:r=59.94=77:y=27:fontcolor=etc etc etc..."

    -------------------------------

    Metadata Creation Time

    I found this in the code, but am not sure how to pass the metadata creation date/time as a variable.
    -metadata creation_time="2022-04-08T20:05:01.565473500Z"

    -------------------------------

    I found these in the SE code, assume they are needed, and that I would just add them into my function for good measure.

    -map a:0 -pix_fmt yuv420p -sws_flags bicubic

    -------------------------------

    And finally, I have my custom equalizer settings, which I have tested and they do work. I do not need assistance here, but as an example they look like this:

    -af "equalizer=f=60:t=h:width=110:g=-15,
    equalizer=f=170:t=h:width=250:g=13,
    equalizer=f=310:t=h:width=430:g=-11,
    equalizer=f=600:t=h:width=690:g=-10,
    equalizer=f=1000:t=h:width=2400:g=-8,
    equalizer=f=3000:t=h:width=5000:g=-6,
    equalizer=f=6000:t=h:width=9000:g=+12,
    equalizer=f=12000:t=h:width=8000:g=-4,
    equalizer=f=14000:t=h:width=4000:g=-11,
    equalizer=f=16000:t=h:width=2000:g=-17"
    Quote Quote  
  2. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    ffmpeg -fs limit_size will cut the output early. The result may not contain the whole video content. This command will not optimize the encoding to fit the whole video within the given limit with best possible quality under this size constraint. To achieve that, you will need a 2-pass VBR encoding.
    Quote Quote  
  3. Maybe your mov videos are already x264 encoded.
    mov is just a container, like mp4.
    If the video stream of your mov videos is already x264 encoded, then you can simply remux mov to mp4 without re-encoding and without quality loss.
    Check your mov files with mediainfo.
    Quote Quote  
  4. '-c:v h264_amf' seem to be worst choice as AMD HW video encoders are usually very poor quality so you will never meet low size and even decent quality...

    '-filter_complex "[0:v]' is probably not necessary in your case - if you have single input and single output then simple 'vf' or '-filter:v' will be sufficient

    it is not clear what is your goal/target - time/date can be also hardcoded in video if this is something like CCTV footage...
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!