You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readme shows that the following options are supported for the videos hash in Headless.new's options, but I'm not sure how to set them up:
:codec - codec to be used by ffmpeg
:frame_rate - frame rate of video capture
:provider - ffmpeg provider - either :libav (default) or :ffmpeg
:provider_binary_path - Explicit path to avconv or ffmpeg. Only required when the binary cannot be discovered on the system $PATH.
:pid_file_path - path to ffmpeg pid file, default: "/tmp/.headless_ffmpeg_#{@display}.pid"
:tmp_file_path - path to tmp video file, default: "/tmp/.headless_ffmpeg_#{@display}.mov"
:log_file_path - ffmpeg log file, default: "/dev/null"
:extra - array of extra ffmpeg options, default: []
The reason I want to make a fragmented mp4 is that it's streamable.
The text was updated successfully, but these errors were encountered:
This isn't really a Headless issue, you can pass any additional options to ffmpeg through :extra, and a quick googling reveals the options you need for a fragmented mp4.
I've found that I can use the headless gem to create an mp4 like so:
And the mp4 file produces is playable.
How could I make this a fragmented mp4?
The readme shows that the following options are supported for the videos hash in Headless.new's options, but I'm not sure how to set them up:
:codec - codec to be used by ffmpeg :frame_rate - frame rate of video capture :provider - ffmpeg provider - either :libav (default) or :ffmpeg :provider_binary_path - Explicit path to avconv or ffmpeg. Only required when the binary cannot be discovered on the system $PATH. :pid_file_path - path to ffmpeg pid file, default: "/tmp/.headless_ffmpeg_#{@display}.pid" :tmp_file_path - path to tmp video file, default: "/tmp/.headless_ffmpeg_#{@display}.mov" :log_file_path - ffmpeg log file, default: "/dev/null" :extra - array of extra ffmpeg options, default: []
The reason I want to make a fragmented mp4 is that it's streamable.
The text was updated successfully, but these errors were encountered: