Difference between revisions of "FFmpeg"
From HeadBackup
Jump to navigationJump to searchLine 5: | Line 5: | ||
ffmpeg -i input.mp4 -acodec copy -r 30 -vcodec copy -f flv output.flv | ffmpeg -i input.mp4 -acodec copy -r 30 -vcodec copy -f flv output.flv | ||
</pre> | </pre> | ||
− | === encode to .mp4 with h264 === | + | === encode to .mp4 with h264 and deinterlace === |
This seems to work the resulting file plays in Quicktime, but doesn't play in jwplayer so probably still needs more tweaking. | This seems to work the resulting file plays in Quicktime, but doesn't play in jwplayer so probably still needs more tweaking. | ||
<pre> | <pre> | ||
ffmpeg.exe -i input.avi -ab 256kb -vcodec libx264 -b 1000kb -deinterlace output.mp4 | ffmpeg.exe -i input.avi -ab 256kb -vcodec libx264 -b 1000kb -deinterlace output.mp4 | ||
</pre> | </pre> |
Revision as of 08:08, 13 April 2010
Command line notes
stream copy from mp4 to flv
Copy from mp4 container to flv container at 30 frames per second.
ffmpeg -i input.mp4 -acodec copy -r 30 -vcodec copy -f flv output.flv
encode to .mp4 with h264 and deinterlace
This seems to work the resulting file plays in Quicktime, but doesn't play in jwplayer so probably still needs more tweaking.
ffmpeg.exe -i input.avi -ab 256kb -vcodec libx264 -b 1000kb -deinterlace output.mp4