Skip to content

Commit 9815631

Browse files
committed
Added docs for MP4Writer example.
1 parent 9c50ffb commit 9815631

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/articles/vision/mp4_writer.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
:::
66

77
## Summary
8-
[FFMPEG](https://website-name.com)
8+
This example shows how to save a MP4 video using [FFMPEG](https://website-name.com)
99

1010

1111
## Details
1212
0. Before running workflow download and unzip [ffmpeg](https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl-shared.zip) to a folder in your computer.
1313

1414
1. Write the frames from a camera into ImageWriter, but in the path, instead of a file, you will add a pipe: \\\\.\pipe\video. Every frame that is written in the pipe is going to be sent the process in 2.
1515

16-
2. Start a process where the filename points to the ffmpeg executable \[ffmpeg\]\bin\ffmpeg.exe and the arguments are those of ffmpeg.
17-
Here we are using:
16+
2. Start a process where the filename points to the ffmpeg executable \[ffmpeg\]\bin\ffmpeg.exe and the arguments are those of ffmpeg. Here we are using:
1817
-y -f rawvideo -vcodec rawvideo -s 640x480 -r 30 -pix_fmt gray -i \\\\.\pipe\video -c:v libx264 -b:v 5212K -maxrate 5212K -bufsize 5M "myvideo.mp4"
1918

20-
Options that might need to be adapted for your situation are:
21-
- the size (width and height) of the input images (-s)
22-
- the frame rate (-r)
23-
- the name of the output video (last parameter)
24-
- in case the encoding is rather slow, you might want to append the option '-preset ultrafast' to speed it up.
19+
Options that might need to be adapted for your situation are:
20+
- the size (width and height) of the input images (-s)
21+
- the frame rate (-r)
22+
- the name of the output video (last parameter)
23+
- in case the encoding is rather slow, you might want to append the option '-preset ultrafast' to speed it up.
2524

2625
## Follow-up
2726
For additional information on the encoding options provided by ffmpeg consult the [documentation](https://ffmpeg.org/ffmpeg.html).

0 commit comments

Comments
 (0)