quicktime_video_hack icon indicating copy to clipboard operation
quicktime_video_hack copied to clipboard

Feature request: record to mp4 file directly

Open codeskyblue opened this issue 5 years ago • 2 comments

Now, if I want to record mp4 file, I have to do

./quicktime_video_hack record a.h264 a.wav
ffmpeg -framerate 60 -i a.h264 -i a.wav -c:v copy -f mp4 output.mp4 -y

Can it possible support

./quicktime_video_hack record output.mp4

Thanks a lot.

codeskyblue avatar Sep 24 '20 09:09 codeskyblue

If you run go run main.go gstreamer --examples there is an example of how to do this with the built in gstreamer support. Maybe you are right though and this is still a little complicated if you just want to record mp4. I think I can add more easy support for the more common formats. If you wanna try it, I'd be interested in how stable the gstreamer support works longterm.

Without gstreamer, qvh works really well even if you run it for many hours. I don't about the gstreamer part yet.

danielpaulus avatar Sep 26 '20 07:09 danielpaulus

Thanks @danielpaulus , gstreamer looks fine, except in my mac. BTW: add gstreamer will add more dependencies, which make it hard to build.

codeskyblue avatar Sep 27 '20 06:09 codeskyblue