ffmpeg command to merge file with good quality -


i looking better command can merge both audio & video files 1 better quality.

i found command muaz khan's webrtc apis.

ffmpeg -i {$audiofile} -i {$videofile} -map 0:0 -map 1:0 {$mergedfilename} 

later on server had add "-strict -2" command on server says above command experimental if still want use should add "-strict -2" it.

it working video file (.webm) size 2.2mb , audio file (.wav) size 1.5mb merged new file (.webm) size 422.5kb. new video file having lag.

also want meta information duration of video written on resulting video file.

is there command can give merged file without lagging , both video , audio of new file of quality ?

use

ffmpeg -i {$audiofile} -i {$videofile} -map 0:0 -c:a libopus -map 1:0 -c:v copy {$mergedfilename} 

this encode audio, leaving video intact. use libvorbis if libopus isn't present in ffmpeg.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -