Merge video and audio with ffmpeg. Loop the video while audio is not over

If you want to merge new Audio with video repeat video until the audio finishes, you can try this: ffmpeg -stream_loop -1 -i input.mp4 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4 Using -stream_loop -1 means infinite loop input.mp4, -shortest means finish encoding when the shortest input stream ends. Here the shortest input stream … Read more

How to encode a video from several images generated in a C++ program without writing the separate frame images to disk?

After some intense struggle, I finally managed to make it work after learning a bit how to use the FFmpeg and libx264 C APIs for my specific purpose, thanks to the useful information that some users provided in this site and some others, as well as some FFmpeg’s documentation examples. For the sake of illustration, … Read more

ffmpeg concat produces DTS out of order errors

All videos for FFMPEG concatenate should have matching encoding, fps and so on, otherwise you’ll get unexpected results. I guess, it’s hard to get by without re-encoding if your videos come from different sources. I had to look though lots of solutions, the working ones would suggest converting your videos to the same intermediate format … Read more

Fire event when vimeo video stops playing?

Previous answer is now obsolete since Vimeo launching the new Video Player API. Important: Be sure to remove the ?api=1 from the URL in your iframe. This was previously required when using the Froogaloop library and is no longer needed. If you leave it in, the ‘ended’, ‘seeked’ and other events will never fire. Include … Read more

Could not find tag for codec pcm_alaw in stream #1, codec not currently supported in container when concatenating 2 files using ffmpeg [closed]

codec not currently supported in container ffmpeg does not support PCM (pcm_alaw, pcm_s16le, etc) in the MP4 container. Encode the audio as AAC, or use a different output container format such as MOV or MKV. Encode the audio to AAC ffmpeg -i input.mov -c:v copy -c:a aac output.mp4 Or output to MOV or MKV ffmpeg … Read more

HTML5 reset video and play again

While Stichy posted a sufficient answer to his own question, the method video.load() causes unnecessary bandwidth to be used as it reloads the video from the server. Loading videos in particular can pose a heavy load on the server. Consider you could possibly be loading many megabytes each time the video is replayed. There is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)