Custom FFMPEG command

Here you can submit bugreports
Post Reply
Oren

Custom FFMPEG command

Post by Oren »

Hi

I have a custom FFMPEG command.
I want to use this command instead of any of the presets. I do want to use FFAStrans's watch and deploy capabilities but let my command handle the encoding.
My command looks like this:

Code: Select all

C:\ffmpeg\ffmpeg.exe -i "%%~a" -vcodec libx264 -preset medium -tune film -profile:v baseline -level 3.0 -g 25 -keyint_min 50 -refs 6 -pix_fmt yuv420p -x264opts bitrate=800:vbv-maxrate=800:vbv-bufsize=1600:keyint=50:min-keyint=50:no-scenecut -vf scale=-1:432 -acodec aac -strict -2 -ac 2 -ab 64k -ar 48000 "%%~na_850.mp4"
How would I achieve this with FFATrans?

Thanks,
Oren
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Custom FFMPEG command

Post by admin »

Hi Oren and thank you for using FFAStrans!

The "Custom FFmpeg" would accept "-preset medium -tune film -profile:v baseline -level 3.0 -g 25 -keyint_min 50 -refs 6 -pix_fmt yuv420p -x264opts bitrate=800:vbv-maxrate=800:vbv-bufsize=1600:keyint=50:min-keyint=50:no-scenecut -vf scale=-1:432 -strict -2 -ac 2 -ar 48000"

Set "Audio codec" to "aac" with 64 bitrate And "Video codec" to "libx264" with a bitrate of 850 kbit.
On the "Folder" delivery you should set "Suffix" to "_850" or whatever character you would like to add to you output name.

Please let me know if these settings does not work for you.

-steipal
Oren

Re: Custom FFMPEG command

Post by Oren »

Hi Steipal

Thanks for the reply.
I managed to figure it out. I un-checked both Audio and Video codec and only used the manual option. That did the trick.
On another subject. Do you plan to add support for persistent path? Allowing to copy folder structure from source path to destination path.

Thanks,
Oren
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Custom FFMPEG command

Post by admin »

It,s allready in there. Use the %source_path% variable. It was added in the 0.4.0beta2 release and documented in the "V" variable button.

-steipal
Oren

Re: Custom FFMPEG command

Post by Oren »

From what I see, %source_path% keeps the file in it's original path.
I'm talking about persistent path from a certain directory level. For example, my source file is at C:\some\folder\with\file.mp4 and I would like to be able to only define the top lever of the output directory, D:\ for example so that the encoded file will be copied (with it's original path) to D:\some\folder\with\file.mp4
Telestream vantage has this option. I'm using the SETLOCAL option in a batch file I occasionally use like this:

Code: Select all

@ECHO OFF
SETLOCAL

SET "fixed_path=\\videoserver\folder\"

FOR %%a IN ("%*") DO IF EXIST "%%a" (

 FOR /f "tokens=4*delims=\" %%b IN ("%%~dpa") DO (
  MD "%fixed_path%\%%c"
  
 C:\ffmpeg.exe -i "%%~a" -vcodec copy -acodec copy "%%~na_2000.mp4"
    copy "%%~na_2000.mp4" "%fixed_path%\%%c%%~na_2000.mp4"
        del "%%~na_2000.mp4"
...
It would be great if you implement this in FFAStrans. Or maybe I'm missing something and it's already implemented...

Thanks.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Custom FFMPEG command

Post by admin »

Ah, I see. That should not be a problem at all :-) I'll look at it for the next release. Thanks for clarifying!

-steipal
Post Reply