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
How to Read Config Files with Section in Bash Shell
Why Do We Need to Call Poll_Wait in Poll
How to Redirect the Telnet Console Logs to a File Linux
What Are Some Conditions That May Cause Fork() or System() Calls to Fail on Linux
How to Use a Seq_File in Linux Kernel Modules
What Really Is the "Linger Time" That Can Be Set with So_Linger on Sockets
Accessing Files Outside the Document Root with Apache
How to Write to Tty from a Kernel Module
How to Set a Dynamic Variable in Haproxy
Does Not Work to Execute Command in Double Brackets in Bash
Libpcap - Capture Packets from All Interfaces
Jni Issue on Linux: Cannot Open Shared Object File
Which Is the Best Way to Make Config Changes in Conf Files in Ansible
Shutdown (Embedded) Linux from Kernel-Space
Docker: Ssh Access Directly into Container
Simulating a Spinner for Progress in Bash
How to Remove the Last Character of the Last Line of a File
Nacl Helper Process Running Without a Sandbox Error Using Chrome Through Selenium in Linux