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"
+ Reply to Thread
Results 1 to 4 of 4
-
-
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.
-
'-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...
Similar Threads
-
PSSH Assistance
By Civilian in forum Video Streaming DownloadingReplies: 21Last Post: 9th Jan 2022, 13:21 -
Assistance with this video
By animaltracks in forum Video Streaming DownloadingReplies: 4Last Post: 23rd Oct 2021, 07:15 -
need assistance with mask
By Betelman in forum RestorationReplies: 9Last Post: 19th Aug 2021, 20:53 -
how do i add libx264 and hevc to ffmpeg when i compile ffmpeg for ubuntu 21
By oduodui in forum Newbie / General discussionsReplies: 2Last Post: 17th Jul 2021, 04:12 -
Get the complete FFmpeg command line when using FFmpeg Batch Converter
By pascor in forum Newbie / General discussionsReplies: 8Last Post: 13th May 2021, 23:14