As I don't know the proper section for this, and rather than put it where it doesn't belong, I'm putting it here.
Does anyone know of a free utility, that can be downloaded from a safe site, that can append a single JPG to the end of an MP4 file as its last frame?
+ Reply to Thread
Results 1 to 9 of 9
if you have a video editing program use that. put the video and the image on the timeline and render it out. you can't just append a jpeg to an mp4 and expect it to work. the jpeg has to be converted to mp4 and then appended. there is a command line utility that can do it, but the learning curve is steep - ffmpeg.--
"a lot of people are better dead" - prisoner KSC2-303
Thank you, aedipuss. I understand that it needs some type of conversion, which is what I was looking for a utility to do when appending it. The video editor that I sometimes use does not support MP4, except in its expensive, upgraded version. My somewhat limited need for this doesn't warrant my spending that much money for the upgrade.
You could also try with ffmpeg to make a single frame .mp4 file of your picture:
ffmpeg -i mypic.jpg -vf "scale=1280:720, format=yuv420p, fps=30000/1001" -c:v libx264 out.mp4
ffmpeg -loop 1 -r 0.001 -i mypic.jpg -vf "scale=1280:720, format=yuv420p, fps=30000/1001" -t 10 -c:v libx264 out_10s.mp4
Thank you Sharc and jagabo. I have the MP4 file's width,height, data rate, Total bitrate and frame rate (from the file's Properties). I expect I can use those as parameters to AviDemux (will use that as I'm not sure I can figure out all of ffmpeg's required parameters & structure). What other parameters from the MP4 file do I need to try to find? And will there be a problem, once I create the MP4 file from the JPG using VirtualDub2, that of course it won't have audio to match up to the MP4 file's audio?
I am afraid I can't help you with AviDemux as I am not familiar with it.
On the rare occasions when I want to concatenate a number of clips (e.g. short clips from the Mobile Phone) I normally take the safe route of reencoding them all (video and audio) using the same encoder settings (codec, resolution (scaling or padding), framerate, aspect ratio) in order to get a format-consistent set of files for later concatenation. I do this in ffmpeg, but any other encoder of your choice should be fine.
[Attachment 51371 - Click to enlarge]
FREE MICROSOFT PHOTOS APP does it.
Windows 10 -> Start -> Microsoft PHOTOS app -> video projects tab.
Add a video and photo (like I did) into the library (top left box). Drag the video into the first timeline spot on the far left, the put the photo to its right (see photo example).
Boom, done! Just FINISH to export that video to your drive.