h.264 – ffmpeg command to convert from mp4 video to .h264 raw frame with avcc format
Select m4v
output format.
m4v
format applies “MPEG-4 Part 2 video format”, and applies H.264 with AVCC format (it’s undocumented).
In case your original video is already encoded in H.264 codec, use -vcodec copy -f m4v
:
ffmpeg -y -i Big_Buck_Bunny_360_10s_1MB.mp4 -vcodec copy -f m4v Bunni2.h264
In case you have to re-encode the input, you may encode the input with FLV container and use pipe to second FFmpeg with -vcodec copy -f m4v
:
ffmpeg -i Big_Buck_Bunny_360_10s_1MB.mp4 -vcodec libx264 -f flv pipe: | ffmpeg -y -i pipe: -vcodec copy -f m4v Bunni2.h264
Read more here: Source link