Template:Converting to y4m: Difference between revisions

From XiphWiki
Jump to navigation Jump to search
(→‎Converting to y4m from other formats: added Tristan's merging of 2 videos template)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


     ffmpeg -i video.webm -pix_fmt yuv420p video.y4m
     ffmpeg -i video.webm -pix_fmt yuv420p video.y4m
Or just encode directly without an intermediate file:
    ffmpeg -i video.webm -pix_fmt yuv420p -f yuv4mpegpipe - | ./encoder_example - -o video.ogv


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}}

Latest revision as of 21:18, 7 October 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

Or just encode directly without an intermediate file:

   ffmpeg -i video.webm -pix_fmt yuv420p -f yuv4mpegpipe - | ./encoder_example - -o video.ogv

Note that ffmpeg is optimized for speed. You may not get comparable results across machines.