ffmpeg usage to encode a video to H264 codec format

后端 未结 5 1805
醉梦人生
醉梦人生 2021-01-30 06:42

I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert this to a H264 video codec format(raw h.264 format) using ffmpeg on Linux(Version - FFmpeg version SVN-r0

5条回答
  •  粉色の甜心
    2021-01-30 07:11

    "C:\Program Files (x86)\ffmpegX86shared\bin\ffmpeg.exe" -y -i "C:\testfile.ts" -an -vcodec libx264 -g 75 -keyint_min 12 -vb 4000k -vprofile high -level 40 -s 1920x1080 -y -threads 0 -r 25 "C:\testfile.h264"
    

    The above worked for me on a Windows machine using a FFmpeg Win32 shared build by Kyle Schwarz. The build was compiled on: Feb 22 2013, at: 01:09:53

    Note that -an defines that audio should be skipped.

提交回复
热议问题