Video from photos using mencoder? -


During the day, I take photos from the camera every minute. I would like to make a video with pictures 1 day - & gt; 1 video

I use the mancoder to do this: maincoder "mf: //*.jpg" -mf fps = 25: type = jpg -ovc lavc - Lavcopts vcodec = mpeg4 : Mbd = 2: trell: vbitrate = 7000 -vf scale = 1024: 768 - OK copy -o movie.avi this works fine, but:

The problem is that I Need to do raspberry P (700 MHz ARM) and take about one hour about the video (it works at about 0.5 fps) while taking 1500 photos during the day.

How can anyhow create a video "continuous" - how to transmit each image right after moving it to the encoder - and stop making video every night? Then it will only take a picture, process it 2-3 seconds and wait for another minute to do it again.

Thank you.

Requirements:

strong>

  • All photos should be constantly numbered (i.e. PicName1.png, picName2.png, etc.)
  • All photos must be in the same folder.
  • You must have the latest version of FFempeg from recently made options

    To make your video use:

      ffmpeg -r fps -f image2 -i '/ path / to / your / picName% D.png' -qscale 0 '/path/to/your/new/video.avi'   
    • Replace fps with desired frame rate (10, 25, 30, etc.) fps.
    • Change / path / to / your / picName from the actual path, but leave % d which will put ffmpeg to a number there Tells.
    • Change /path/to/your/new/video.avi by your selected destination.

      Video built in this way will be of the highest quality using the -q option to customize the quality of your video size requirements. Are there.

      Look for more clarification.

      Unfortunately, for my knowledge, there is no way to pass a picture every few minutes or so. I would suggest one of the solutions below:

      • Collect video once in a day, at midnight you get it at 1 a.m.
      • Compile the video several times in the day, if you need to see it, it is very waste processing, since you process completely every time.
      • Collect video by fragmentation (for example, every 2 hours) and merge all the video at the end of the day.

        If you do not need to watch the video during the day, then the first solution is the easiest.


        Below is a quote man page:

        To create a video from several images:

        ffmpeg -f image2 -i foo-% 03d.jpeg -r 12-s WxH foo.avi syntax pad with zero to express the sequence number "foo-% 03d.jpeg" Specifies to use the decimal number created from the three digits formed. C is a single syntax supported by the printf function, but the formats that accept the normal integer are appropriate.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -