I have video (*.avi) and audio (*.wav) and i'm using ffmpeg to as a mux to marge them one file (*.avi)
When the audio is too long then the video - i see that the video is not visible.
1. why its happened ?
2. how to fix it without cut the audio to end in same time the video end ?
+ Reply to Thread
Results 1 to 5 of 5
-
-
How difficult is it to cut a WAV file to match the video length?
-
its not difficult - but i want first to know why its happened
and second, i want to do it with the original wav file and not to cut it - that mean that at the end of the video i will have freeze video and only the audio will play -
I think it would be undefined, and therefore up to the player, what happens for the time that only one stream is present. It could show the last frame, or black, or anything else. The three software players I just tried will show the last frame for the audio-only part at the end. One player showed the timing for the video only; audio played longer but the timer stopped. The other two players took the duration of the longer audio stream as the duration of the file. ffmpeg information reads back the output file duration as the duration of the shorter video stream. MediaInfo reads the file duration as the duration of the longer audio stream. I don’t know what player shows no video.Code:
ffmpeg -i video.avi -i audio.wav -c copy -map 0:0 -map 1:0 out.avi
Similar Threads
-
ffmpeg audio delay - how to get the video to start before the audio ?
By Selur in forum Newbie / General discussionsReplies: 6Last Post: 13th Mar 2017, 15:30 -
Finding invisible wires on video
By masster in forum RestorationReplies: 11Last Post: 29th Nov 2015, 15:36 -
Invisible Audio/Video Tracks in MKVMerge
By ConverterCrazy in forum Latest Video NewsReplies: 8Last Post: 8th Aug 2015, 15:17 -
Adding invisible CGI to video to cover the human body
By masih in forum EditingReplies: 14Last Post: 2nd Oct 2014, 14:04 -
Let ffmpeg show used audio and video codec inside a (.mp4) video file?
By pxstein in forum Newbie / General discussionsReplies: 1Last Post: 26th Jan 2013, 03:47


Quote
