I'm using FFmpeg to convert and compress a video. Everything converts/compresses fine, but my video has no sound when I try to play it on a mobile device. But it has sound when I play it on a desktop. I don't know if this has to do with the codec that I am using, I don't know. Can someone help me? I appreciate it. Thank you.
The format that I am using in FFmpeg:
$request->video->move(public_path('/app'), $filename);
$name_file=uniqid().'intro_video.mp4';
$ffp=FFMpeg::open($filename)
->addFilter(function ($filters) {
$filters->resize(new \FFMpeg\Coordinate\Dimension(640, 480));
})
->export()
->toDisk('s3')
->inFormat(new \FFMpeg\Format\Audio\Aac)
->save($name_file);