Kirjoittaja Aihe: Luo video diaesitys webkamera kuvista ubuntu 12.04lts  (Luettu 2771 kertaa)

jar1969

  • Käyttäjä
  • Viestejä: 212
    • Profiili
Miten webkamera kuvaesitys ffmpeg .kuvat img1.jpg,img2.jpg,img3.jpg ..jne
alla koodia 5.sek tauolla muttei koodi toimi,missä vika voi olla ja voiko koodin ajaa crontabilla?
ffmpeg -r 1/5 -i img%03d.jpg -vcodec mpeg4 test.avi

thanks
-jari1969-

alla koodia

*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[image2 @ 0x97c3aa0] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 0.20 (1/5) -> 1.00 (1/1)
Input #0, image2, from '%d.jpg':
  Duration: 00:00:35.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 0.20 fps, 1 tbr, 0.20 tbn, 0.20 tbc
Unrecognized option 'c:v'
Failed to set value 'libx264' for option 'c:v'
weather@weather:/home/webcam/web_camera$ ffmpeg -r 1/0.2 -i %d.jpg -vcodec mpeg4 jari.mp4
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:00:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, image2, from '%d.jpg':
  Duration: 00:00:01.40, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 5 fps, 5 tbr, 5 tbn, 5 tbc
jari.mp4: Permission denied
weather@weather:/home/webcam/web_camera$ ffmpeg -r 1/15 -i %d.jpg -vcodec mpeg4 jari.mp4
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:00:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[image2 @ 0x965eaa0] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 0.07 (1/15) -> 0.33 (1/3)
Input #0, image2, from '%d.jpg':
  Duration: 00:01:45.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 0.07 fps, 0.33 tbr, 0.07 tbn, 0.07 tbc
jari.mp4: Permission denied
Sinulla on uutta postia laatikossa /var/mail/weather
weather@weather:/home/webcam/web_camera$ ffmpeg -r 1/15 -i %d.jpg -vcodec mpeg4 jari.mp4
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:00:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[image2 @ 0x93acaa0] max_analyze_duration reached
« Viimeksi muokattu: 03.09.13 - klo:18.55 kirjoittanut jar1969 »

nm

  • Käyttäjä
  • Viestejä: 16429
    • Profiili
Vs: Luo video diaesitys webkamera kuvista ubuntu 12.04lts
« Vastaus #1 : 04.09.13 - klo:00.45 »
weather@weather:/home/webcam/web_camera$ ffmpeg -r 1/15 -i %d.jpg -vcodec mpeg4 jari.mp4
[...]
jari.mp4: Permission denied

Käyttäjällä "weather" ei ole oikeutta kirjoittaa hakemistoon "/home/webcam/web_camera".