To add video logo:
ffmpeg -i Wildlife.wmv -vf "movie = panda.png [watermark]; [in] [watermark] overlay = 10:10 [out]" Marked.wmv
original video file path: Wildlife.wmv
watermark image path: panda. png
watermark position: (x, y) = ( 10,10) <= (left, top) from the left side, the top 10 of each pixel;
output file path: Marked.wmv
Command supplement
the first parameter value is the position of the watermark pixel x-axis value of the upper left corner of the watermark image, the second number is the y-axis pixel values of the upper left corner of the watermark image.
In addition to using the watermark position parameter values, you can also use the following parameters:
Parameter Description
main_w video frame image width
main_h video frame image height
of the image width overlay_w watermark
overlay_h watermark image height
corresponding to the overlay parameters may be set to the following values to change the position of the watermark image:
the watermark image overlay value of the position
upper left corner of 10:10
upper right corner main_w-overlay_w-10: 10
the lower left corner 10: main_h-overlay_h-10
bottom right corner main_w-overlay_w-10: main_h- overlay_h-10
D:\Program Files\ffmpeg-latest-win64-static\ffmpeg-latest-win64-static\bin>ffmpeg -i film_5M_mp4-980.mp4 -max_muxing_queue_size 1024 -vf "movie=tttt.png[watermark];[in][watermark] overlay=50:60[out]" Marked.mp4
ffmpeg -i film_5M_mp4-980.mp4 -max_muxing_queue_size 1024 -vf "movie=yyy.png[watermark];[in][watermark] overlay=main_w-overlay_w-50:50[out]" Marked111.mp4
Picture in Picture Editing for a video:
ffmpeg -i c13_test-505.mp4 -vf "movie=c13_test-506.mp4 :loop=1,scale=320:240,setpts=N/FRAME_RATE/TB[logo];[0:v][logo]overlay=x=260:y=260" -y pip_test-505.mp4
ffmpeg capture video in a video:
ffmeg -i ./input.mp4 -vcodec copy -acodec copy -ss 00:00:10 -to 00:00:25 ./output.mp4 -y
-ss time_off set the start time offset provided from which a video start time point of the video taken, supra start capturing the video from 10s
-to intercept point in time to which the video ends. Taken above the first 25s to 15s longer taken total end
If much time is represented by -t taken into -t -to above starts from the first 10s, 25s when taken long videos in which a total duration 25s
Where noted: If -ss is placed behind the -i ./input.mp4 -to role, there is no effect -t and as a representation of how long the interception of video
Parameter Description:
-vcodec copy represents the original video and use the same video codec
-acodec copy represents the original video and use the same audio codec
-i represents the source video files
-y represents the output file if it exists cover