The problem only comes from the -vf because it works well without it. Using the subtitles filter: ffmpeg -i input.mkv -vf 'subtitlessubs.ass' -c:a copy output. Softsubs ffmpeg -i input.mkv -i subs.ass -map 0 -map 1 -c copy output.mkv Hardsubs. acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \ Once you create the ASS file, such as with Aegisub, you can add the subtitles with ffmpeg. Number of frames/objects to be inferred together. Absolute pathname of the pre-generated serialized engine file for the mode. DeepStream runs on NVIDIA T4, NVIDIA Ampere and platforms such as NVIDIA Jetson Nano, NVIDIA Jetson AGX Xavier, NVIDIA Jetson Xavier NX, NVIDIA Jetson TX1 and TX2. See filter-out-class-ids in the configuration file table. vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \ NVIDIA DeepStream Software Development Kit (SDK) is an accelerated AI framework to build intelligent video analytics (IVA) pipelines. vf "drawtext=text='SOME TEXT':x=(w-text_w):y=(h-text_h):fontfile=OpenSans.ttf:fontsize=30:fontcolor=white" \ The format filter is used to improve the color of the drawbox area otherwise, depending on your input and output formats, the area could look de-saturated or monochrome. I can't use another method for concatenation, so how should I do ? (I don't mind about using several commands, as long as everything is done live and can be streamed directly)īy the way, here's an example command I use : ffmpeg \ Writing fast and dirty video filters Sometimes we need to somehow filter the video, maybe put some text or graphic on top. Just add reading data from your sensors and your task completed. You can use ass-renderer for reference how to add text on image. The problem is that I used complex filter to concatenate the videos, and -vf to drawtext, but ffmpeg says I can't use complex filters and -vf in the same time. Other way: write custom filter to ffmpeg. I have a ffmpeg command that plays several videos from a folder to a live stream, but I would also like to add text overlays over it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |