Video Transcoding
The following code block provides an example of transcoding and scale an H.264 1920 ×
1080 file to H.265 1280 × 720.
ffmpeg -v verbose -vcodec h264_omx -scale_width 1280 -scale_height 720 -i /1080p_h264_aac.mp4 -vcodec hevc_omx -acodec copy /out/720p_h265_aac.mp4 -y
The following code block provides an example of transcoding and scale an H.264 + ACC MP4
file to MPEG4 + MP3 MP4 (through soft transcoding).
ffmpeg -i 1080p_h264_aac.mp4 -vcodec mpeg4 -acodec libmp3lame 1080p_mpeg4_mp3.mp4