ekisu / mpv-webm

Simple WebM maker for mpv, with no external dependencies.
MIT License
555 stars 32 forks source link

output video color in 8 bit and srt hardsub style #138

Open AdventurerRussia opened 2 years ago

AdventurerRussia commented 2 years ago

Hello, is there a parameter that would be responsible for the color of the video, for example I want the output video in mp4 output always in 8 bits, also can I adjust the parameter style crt subtitles that are encoded in the hardsub, I would like to raise them higher as well as change the font and size, but I do not understand how to do this in your script?

AdventurerRussia commented 2 years ago

or please implement the ability to take srt subtitle style from the mpv.conf file It would be much better if your script takes settings from this file.

AdventurerRussia commented 2 years ago

I also tried to change the encoder to h264_asf, but there is a very low bitrate, it does not understand the crf parameter in the script, is it possible to somehow add a parameter of the bitrate number?

Vzaa commented 1 year ago
  append(command, {
    "--vf-add=format=yuv420p"
  })

For 8 bit color, does force adding the above --vf-add argument to the command list, for example after append(command, format:getCodecFlags()) in webm.lua, work for you? It might break other formats but you can try it for mp4 for the time being

AdventurerRussia commented 1 year ago
  append(command, {
    "--vf-add=format=yuv420p"
  })

For 8 bit color, does force adding the above --vf-add argument to the command list, for example after append(command, format:getCodecFlags()) in webm.lua, work for you? It might break other formats but you can try it for mp4 for the time being

Is there any way to add more? -profile:v high -level 5.1