talenter.blogg.se

Ffmpeg h264 to mp4
Ffmpeg h264 to mp4









ffmpeg h264 to mp4

ffmpeg -i input.mp4 -vcodec h264 -b:v 200k -an output.Update 2020: This answer was written in 2009.ffmpeg -i input.mp4 -vcodec h264 -b:v 1000k -an output.mp4.Good enough worked fine for me.To my "average human" eye, i coudlnt find any real difference with the original video compared side by side (original: 1gb to good enough: 296mb)Įdit: if you wanna go lower try changinng -b:v value e.g.: ffmpeg -i input.mp4 -vcodec h264 -b:v 700k -acodec mp3 output.mp4 and if you don't want sound try: ffmpeg -i input.mp4 -vcodec h264 -b:v 700k -an output.mp4

ffmpeg h264 to mp4 ffmpeg h264 to mp4

  • 3.6 Gb to 30 Mb, very shitty quality 💩.
  • ffmpeg -i input.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4.
  • 3.6 Gb to 62 Mb, quality "good enough"/acceptable 👍.
  • ffmpeg -i input.mp4 -s 1280x720 -acodec copy -y output.mp4.
  • ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 out.mp4.
  • the issue with this is that it's still not widely adapted and sites like discord can't play itĬommands using Linux with ffmpeg to shrinking big MP4 video file to smaller sizes
  • if you only want to save your video on your pc then use the new mp4 codec 265 -c:v libx265, it has better compression, and just ike 264, nearly lossless.
  • you can lower the resolution with -vf scale=1280:720.
  • ffmpeg h264 to mp4

    if the output is not enough then use 2/3 of the original video bitrate with -b:v and keep lowering until you reach a desired size.I'd recommend that you first let ffmpeg compress it automatically without any arguments ffmpeg -i input.ext output.mp4 not all videos will look good with a video bitrate of 700kb it depends on the resolution, the original codec used and whether there's a lot of movement / particles.for audio it's better to specify the bitrate rather than the codec, 96Kb is good enough -b:a 96k.in the time of writing this (jan 2023) you don't need to specify h264 as the video codec in ffmpeg when the output is mp4 since that's the default codec.











    Ffmpeg h264 to mp4