Jump to content

Share here you video codec settings

Alex Ramos

Recommended Posts

I’d like to propose everybody share their codecs, encoding settings and when to use what.

I only use ffmpeg to convert clients files to run on WO6.

Its always a compromise video quality vs hardware. I will not go into details of when to use what, its subjective.

I do not have definitive codec as I had problems with all one time or the other.

My 1st chose is HAP and HAP alpha and I always extract audio and use a video and audio file on WO.

AS a backup option I have M-Jpeg, Mpeg2, Mpeg4.

My Mpeg2 settings is for only intra frames, much like M-Jpeg, all settings set to high.

ffmpeg -i "%file%" -dn -an -profile:v 1 -vcodec mpeg2video -qscale:v 1 -qmin 1 -intra -pix_fmt yuv422p -r 25 "%n_name%_Mpeg2.m2v"

For HAP and HAP alpha:

ffmpeg -i "%file%" -dn -an -c:v hap "%n_name%_HAP.mov"
ffmpeg -i "%file%" -dn -an -c:v hap -format hap_alpha  "%n_name%_HAP.mov"

For M-Jpeg:

ffmpeg -i "%file%" -c:v mjpeg -dn -an -q:v 1 "%n_name%_M-JPEG.mov"

For Mp4 i have a more compatible one for WO ans to use on Powerpoints.

ffmpeg -i "%file%" -dn -vcodec libx264 -vf format=yuv420p "%n_name%_H264.mp4"

And a "lossless" it is still only yuv420 and not yuv422, but quality is bumped very high, version just in case:

ffmpeg -i "%file%" -dn -vcodec libx264 -vf format=yuv420p -qp 0 "%n_name%_H264LL.mp4"

Backup transparecy Animation RLE:

ffmpeg -i "%file%" -dn -an -r 25 -vcodec qtrle "%n_name%_RLE.mov"

Feel free to coment and correct any thing, but please share your expirience.

Feel free to comment and correct any thing (talking to you WO support), but please share your experience.

Worst scenery, I’m sharing my experience and hope helps anyone. Sure will.

Link to comment
Share on other sites

  • Dataton Partner

Thank you for sharing. I recently stumbled over an AE/ME/Premiere plug-in encoder for HAP which was until now unknown at least to me. We did some test encoding regarding banding and the slow encoding of this package looked better than the result of AfterCodecs.

Check: https://jokyohapencoder.com/

Link to comment
Share on other sites

  • Dataton Partner

Hi Alex,

For HAP, depending on the resolution, I suggest adding chunks:

ffmpeg -i "%file%" -an -c:v hap -format hap -chunks 4 "%n_name%_HAP.mov"

Chunks allow the CPU to use multiple cores for a single video stream.

My personal experience is 4 chunks for 4K and above.

Can you explain what the "-dn" option is for, never used it before... and not sure to understand the manual.



Link to comment
Share on other sites

Benoit correct me if I'm wrong.

I don't use the -chunck flag because I almost always convert several files at the same time using my script.

3 files with -chunck 4 will be more than most CPU cores on the production laptops, will this cause a problem or the flag is ignored in this cases.

Do the hyperthreas count as CPU units for the -chunck flag ?

Can you please elaborate?




Link to comment
Share on other sites

  • Dataton Partner

Hi Alex,

To what I know, chunks are for playback and not encoding. In the FFMpeg doc, it states you should not use more chunks than your cores, but I never had any issues, it's probably best for performance but my experience is when HAP doesn’t play smoothly, you add more chunks (let say up to 8), and your problem is solved.

Wish you all a happy new year.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...