Template:Converting to y4m: Difference between revisions
Jump to navigation
Jump to search
(→Converting to y4m from other formats: added Tristan's merging of 2 videos template) |
|||
Line 6: | Line 6: | ||
Note that ffmpeg is optimized for speed. You may not get comparable results across machines. | Note that ffmpeg is optimized for speed. You may not get comparable results across machines. | ||
{{Merging two y4m videos side-by-side}} |
Revision as of 03:49, 18 June 2015
Converting to y4m from other formats
You can use the ffmpeg tool to generate y4m from any of its supported video formats:
ffmpeg -i video.webm -pix_fmt yuv420p video.y4m
Note that ffmpeg is optimized for speed. You may not get comparable results across machines.
Merging two y4m videos side-by-side
To combine two y4m videos into a single video (with the input videos displayed side-by-side), do:
ffmpeg -i left.y4m -i right.y4m -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; \ [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" a_b_compare.y4m
Substitute ffmpeg
with avconv
if needed.