Custom ffmpeg - XDCAMHD 1080i50

Questions and answers on how to get the most out of FFAStrans
User avatar
FranceBB
Posts: 258
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Custom ffmpeg - XDCAMHD 1080i50

Post by FranceBB »

sainrishab wrote: Fri Dec 31, 2021 1:56 pm Great! thanks for sharing.
By the way, there was actually a way to use the internal encoder without going through the hassle of creating a custom FFMpeg script and that was by using Avisynth.
It would have been as easy as:

Watch -> AV/Decoder -> Custom Avisynth Script -> Encoder XDCAM-50 -> Delivery

For progressive sources, while for interlaced ones it would have been:

Watch -> AV/Decoder -> Deinterlacer -> Custom Avisynth Script -> Encoder XDCAM-50 -> Delivery

This is because if you hardsub subs on an interlaced video without bobbing it first and re-interlacing it after, you will end up with interlaced video and progressive subs which is not the best thing ever.

That being said, the custom Avisynth Script would have been as easy as:

Code: Select all

# Variables: m_clip = The last returned AviSynth media
# Do NOT change any of the following variables!!!
# _ffas_video = <original video>
# _ffas_audio = <original audio>
# _ffas_height = <source height>
# _ffas_width = <source width>
# _m_clip_a_channels = <total channels>
# _ffas_work_fdr = Working folder for the workflow

LoadPlugin("\\yourffastransdir\processors\avs_plugins\VSFilter.dll")

m_clip=TextSub(m_clip, "subs.srt")

# The following MUST be the last line of your script

Return m_clip
Of course you would also have to download the latest version of VSFilter from here: https://github.com/pinterf/xy-VSFilter/releases and put it in your installation folder inside processors, avs_plugins.

Cheers,
Frank
Post Reply