I have produced an ogv animation (with Paraview). I would like to edit the properties of the ogv file that a viewer program can then display, such as author, title and so forth.
Is this possible at all after the file is ready?
Is anything that it is wise to do with an editor?
Would you suggest a Linux-compatible program that enables doing this in an uncomplicated manner?
Thanks in advance for dealing with this.
ffmpeg helped me out. Say you want to add document information to test0.ogv and produce test1.ogv, then do
ffmpeg -i test0.ogv -metadata title="The title" -metadata artist="The artist" -metadata comment="The comment" test1.ogv
I have used the metadata fields acknowledged by a viewer application. I don't know whether one can invent an own field (for example, artist does exist whereas author does not). Also, I have repeated the -metadata option for each field, but maybe there's a way to compress this. Further suggestions welcome.
Related
Can someone write me a code to insert text into a video like this.
I used chatgpt to write this code but after rendering it crashed:
ffmpeg -i "F:/Test/video.mp4" -vf "drawtext=fontfile=/path/to/Montserrat.ttf:text='Get free Robux\nby click link below':fontcolor=white:fontsize=35:box=1:boxcolor=black#0.5:boxborderw=5:x=(w-text_w)/2:y=10" -codec:a copy "F:/Tested/output.mp4"
Incomplete text
Video I edit with software
Please write me the code to insert text into the video like image 2
I am a novice moodle administrator and, in addition, they ask me for things that I think are out of the ordinary. My users need their videos to have a dynamic watermark to prevent piracy.
I have evaluated some options, such as VDO Cipher, but they seem too expensive for a training that is offered almost free of charge.
Can you advise me something else? In addition to being an administrator, I am an application architect and maybe I could do a custom development, maybe using fmpeg or similar.
What do you recommend?
You can try this
ffmpeg -i video.mp4 -vf "drawtext=text='Text':x=w-mod(max(t\,0)*(w+tw)/10\,(w+tw)):y=h-text_h:fontsize=24:fontcolor=black:box=1:boxcolor=white#0.5:boxborderw=5" -c:a copy -y output.mp4
This will create a text that will scroll horizontally, for the duration of the video
"drawtext=text='Text' Change the "Text" here to match what you want
x=w-mod(max(t\,0)*(w+tw)/10\,(w+tw)) makes the text run across the screen in 10 seconds.
y=h-text_h positions the text at the bottom of the video
black:box=1:boxcolor=white#0.5: boxborderw=5 creates a frame around the text to make it more visible, but you can remove it
Note that you can use a font file of your choice by adding the "fontfile" option in the filter
We are developing a stop motion app for kids and schools.
So what we have is:
A sequence of images and audio files (no overlapping audio, in v1. But there can be gaps between them)
What we need to do:
Combine the images to a video with a frame rate between 1-12 fps
Add multiple audio files at a given start times
encode with H265 to mp4 format
I would really like to avoid maintaining a VM or Azure batch jobs running ffmpeg jobs if possible.
Is there any good frameworks or third party APIs?
I have only found transloadit as the closes match but they don't have the option to add multiple audio files.
Any suggestions or experience in this area is very appreciated.
You've mentionned FFmpeg in your tag and it is a tool that checks all the boxes.
For the first part of your project (making a video from images) you should check this link. To sum up, you'll use this kind of command:
ffmpeg -r 12 -f image2 -i PATH_TO_FOLDER/frame%d.png PATH_TO_FOLDER/output.mp4
-r 12 being your framerate, here 12. You control the output format with the file extension. To control the video codec check out this link, you'll need to use the option -c:v libx265before the filename of your output.
With FFmpeg you add audio as you add video, with -i option followed by your filename. If you want to cut audio you should seek in your audio with -ss -t two options good for that. If you want and audio to start at a certain point, check out -itoffset, you can find a lot of examples.
i'm looking for a script that can convert a video in 2 formats for my website :
mp4 and Webm
i also want it to create a jpeg of the first frame and make all at 640*360
I'm a begginer with ffmpeg so i don't really know where to start. this is what i have for the moment, but that doesn't work
ffmpeg -i /tmp/video.off /tmp/video.webm /tmp/video.mp4
the ideal situation is to have a drag and drop conversion tool, but a folder based can do the trick too
Thank you
What I need is that I am looking for command that helps me add a text on video for few frames. For example, there is door with a empty name plate in a scene. I should be able to write name to it and it should move as the door moves. after door disappears, so should the text. Can I do it using ffmpeg or any other tool in linux. TIA
What you want to do is something called "Motion Tracking" and I don't think ffmpeg can do it with command line options.
Henry Kroll has some work using ffmpeg, gstreamer, python and some other methods. Start from here and here.
You may also want to check ARToolkit