ffmpeg: `ffmpeg -i “/video.mp4” -i “/audio.m4a” -c copy -map 0:v:0 -map 1:a:0 -shortest “/nu.mp4″` truncates, how to loop audio to match videos?

  Kiến thức lập trình

This is with “FFmpeg Media Encoder” from Google Store (Linux-based Android OS), but it has all the commands of ffmpeg for normal Linux.

-shortest truncates the video to match the audio, and -longest has the last half of the video not have audio (for videos twice as long as audio,)

what to use to loop audio (to match length of video with this)?

Video length is 15:02, so used ffmpeg -i "/audio.m4a" -c copy -map 0:a:0 "/audionew.m4a"-t 15:02 -stream_loop -1`, but got errors.

New contributor

Swudu Susuwu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

LEAVE A COMMENT