Capture & Live Preview as MP4 / Integrating Preview window in another frame/window/tool

For the developers that use FFmpeg in their software.
Post Reply
frieder2019
Posts: 1
Joined: Thu Aug 15, 2019 8:16 pm

Capture & Live Preview as MP4 / Integrating Preview window in another frame/window/tool

Post by frieder2019 » Mon Aug 19, 2019 3:06 pm

Dear all,

I am not really a "developer" but have basic knowledge in python, PHP and (especially) Delphi. I have found an example of capturing and live previewing a video and I could adapted it to:

Code: Select all

ffmpeg -s 1280x720 -framerate 30 -c:v mjpeg -c:a pcm_s16le -channels 2 -sample_rate 41100 -rtbufsize 100MB -t 5 -f dshow -i video="...":audio="@..." -c copy C:...C910.mkv -pix_fmt yuv420p -an -f sdl -window_size 640x360 "Preview"
But:

a) How can I change the format to MP4 (lower disk space neccessary). Everything I tried, failed.

b) How could I integrate the preview window in another frame / window / tool, f.e., in a HTML-website?

Thank you in adcance for your help!

Best wishes,
frieder

Post Reply
'