Convert Mp4 Version - Ffmpeg

Lost video when converting from MKV to MP4 with FFMPEG

Have you tried ffmpeg -i input.mkv -vcodec copy -acodec copy -scodec mov_text output.mp4?

How to convert mp4 to h264 adding AUDs using FFMPEG

ffmpeg -i input.mp4 -x264opts aud=1 output.h264
  • FFmpeg Live Stream - Loop Video?

  • § 9.8.2 Options

ffmpeg converting to mp4 without audio

I have created a shell script and used another command to create the mp4 (with audio):

test.sh

wget https://filesamples.com/samples/video/mov/sample_960x400_ocean_with_audio.mov;
ffmpeg -i sample_960x400_ocean_with_audio.mov -vcodec h264 -acodec aac test_converted.mp4

Run

source ./test.sh

Now open test_converted.mp4 to check the audio.

The php script

Change the following line

exec($ffmpeg . ' -i "' . $uploaded_file . '" -c:v libx264 -an "./converted/' . $video_mp4 . '" -y 1>convert.txt 2>&1', $output, $convert_status['mp4']);

To

exec($ffmpeg . ' -i "' . $uploaded_file . '" -vcodec h264 -acodec aac  "./converted/' . $video_mp4 . '">convert.txt 2>&1', $output, $convert_status['mp4']);


Related Topics



Leave a reply



Submit