pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
549 stars 101 forks source link

Raspbian jessie : no package for mencoder #9

Closed jschaeff closed 8 years ago

jschaeff commented 8 years ago

Hi,

since mencoder has been removed from debian jessie (hence raspbian), the setup.py complains. How could we avoid the problem ?

pageauc commented 8 years ago

mencoder may come back but it looks like it has not been maintained for a while and it is not compatible with jessie but may get resolved later. I will take a look at maybe mplayer2 or mpv per https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732159 Might take a while. I also have an updated binary for gdrive so might bundle these together and update pi-timolo.

Thanks for letting me know about this problem. I am sure there are others in the same situation.

jschaeff commented 8 years ago

maybe ffmpeg would do the trick for building the timelapse video.

Like :

ffmpeg -framerate 10 -i "tl_%04d.jpg" -c:v libx264 -r 10 timelapse.mp4

pageauc commented 8 years ago

See this link about ffmpeg http://superuser.com/questions/286675/how-to-install-ffmpeg-on-debian

It would appear ffmpeg will also be removed from jessie. Might try the sudo apt-get install libav-tools and see if avconv is an alternative that works Claude...

On Tue, Sep 1, 2015 at 9:15 AM, Jonathan Schaeffer <notifications@github.com

wrote:

maybe ffmpeg would do the trick for building the timelapse video.

Like :

ffmpeg -framerate 10 -i "tl_%04d.jpg" -c:v libx264 -r 10 timelapse.mp4

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-136715964.

See my YouTube Channel at http://www.youtube.com/user/pageaucp

pageauc commented 8 years ago

Here is doc and examples for avconv

https://libav.org/avconv.html#Video-and-Audio-file-format-conversion

For creating a video from many images:

avconv -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi

I will give this a try and see if it is a good solution.that will be supported

Claude ..

On Tue, Sep 1, 2015 at 9:55 AM, Claude Pageau pageauc@gmail.com wrote:

See this link about ffmpeg http://superuser.com/questions/286675/how-to-install-ffmpeg-on-debian

It would appear ffmpeg will also be removed from jessie. Might try the sudo apt-get install libav-tools and see if avconv is an alternative that works Claude...

On Tue, Sep 1, 2015 at 9:15 AM, Jonathan Schaeffer < notifications@github.com> wrote:

maybe ffmpeg would do the trick for building the timelapse video.

Like :

ffmpeg -framerate 10 -i "tl_%04d.jpg" -c:v libx264 -r 10 timelapse.mp4

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-136715964.

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

pageauc commented 8 years ago

Johnathan

I have attached a test bash script that will use avconv to create a movie. Can be avi or mp4. The script creates a temporary working folder and creates numbers soft links pointing to the source image folder. This could be motion. timelapse or something else as desired.

It then runs avconv against this temporary folder and creates a dailymovie file that is named with date and time to be unique.

When you copy the script to the raspberry pi into the pi-timolo folder or whatever you named it then make it executable

chmod +x *.sh

I use filezilla with fstp protocol to move files to/from my RPI from my windows computers. It works quite well

Let me know how you make out.

if you do not have avconv install then use the command below

sudo apt-get install libav-tools

Let me know how you make out with your testing.

On Tue, Sep 1, 2015 at 1:13 PM, Claude Pageau pageauc@gmail.com wrote:

Here is doc and examples for avconv

https://libav.org/avconv.html#Video-and-Audio-file-format-conversion

For creating a video from many images:

avconv -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi

I will give this a try and see if it is a good solution.that will be supported

Claude ..

On Tue, Sep 1, 2015 at 9:55 AM, Claude Pageau pageauc@gmail.com wrote:

See this link about ffmpeg http://superuser.com/questions/286675/how-to-install-ffmpeg-on-debian

It would appear ffmpeg will also be removed from jessie. Might try the sudo apt-get install libav-tools and see if avconv is an alternative that works Claude...

On Tue, Sep 1, 2015 at 9:15 AM, Jonathan Schaeffer < notifications@github.com> wrote:

maybe ffmpeg would do the trick for building the timelapse video.

Like :

ffmpeg -framerate 10 -i "tl_%04d.jpg" -c:v libx264 -r 10 timelapse.mp4

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-136715964.

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

pageauc commented 8 years ago

I have changed to working folder logic to skip the most recent file and sort the folder by time. This is similar logic to original. I have also increased the working folder numbering to 05d instead of 04d. This will allow for folders with more than ten thousand images although not sure how long this would take. This makedailymovie.sh script is mostly for the motion folder since that would normally be limited to a circular number sequence of 500 or so images. I have change the source folder in the script to motion instead of timelapse.

Anyway give it a try and let me know if there are any bugs or problems.

Thanks Claude ....

On Tue, Sep 1, 2015 at 10:22 PM, Claude Pageau pageauc@gmail.com wrote:

Johnathan

I have attached a test bash script that will use avconv to create a movie. Can be avi or mp4. The script creates a temporary working folder and creates numbers soft links pointing to the source image folder. This could be motion. timelapse or something else as desired.

It then runs avconv against this temporary folder and creates a dailymovie file that is named with date and time to be unique.

When you copy the script to the raspberry pi into the pi-timolo folder or whatever you named it then make it executable

chmod +x *.sh

I use filezilla with fstp protocol to move files to/from my RPI from my windows computers. It works quite well

Let me know how you make out.

if you do not have avconv install then use the command below

sudo apt-get install libav-tools

Let me know how you make out with your testing.

On Tue, Sep 1, 2015 at 1:13 PM, Claude Pageau pageauc@gmail.com wrote:

Here is doc and examples for avconv

https://libav.org/avconv.html#Video-and-Audio-file-format-conversion

For creating a video from many images:

avconv -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi

I will give this a try and see if it is a good solution.that will be supported

Claude ..

On Tue, Sep 1, 2015 at 9:55 AM, Claude Pageau pageauc@gmail.com wrote:

See this link about ffmpeg http://superuser.com/questions/286675/how-to-install-ffmpeg-on-debian

It would appear ffmpeg will also be removed from jessie. Might try the sudo apt-get install libav-tools and see if avconv is an alternative that works Claude...

On Tue, Sep 1, 2015 at 9:15 AM, Jonathan Schaeffer < notifications@github.com> wrote:

maybe ffmpeg would do the trick for building the timelapse video.

Like :

ffmpeg -framerate 10 -i "tl_%04d.jpg" -c:v libx264 -r 10 timelapse.mp4

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-136715964.

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

See my YouTube Channel at http://www.youtube.com/user/pageaucp

jschaeff commented 8 years ago

Hi,

your script seems cool, but I could'nt find where to get it from. Did I miss something ? Can you send me the downloaded URL ?

pageauc commented 8 years ago

If you downloaded it from the attachment then it should be on your local drive somewhere. Check for the download folder location in your email program.

I am working on a github update for pi-timolo It will be ready before the end of the day. Will let you know when if is available. Claude ...

On Wed, Sep 2, 2015 at 11:48 AM, Jonathan Schaeffer < notifications@github.com> wrote:

Hi,

your script seems cool, but I could'nt find where to get it from. Did I miss something ? Can you send me the downloaded URL ?

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-137140005.

See my YouTube Channel at http://www.youtube.com/user/pageaucp

jschaeff commented 8 years ago

Hi Claude,

sorry, but I don't find any attachement on github or with the mail. Maybe Github doesn't allow attachement to mails. Anyway, here is the command I used to generate the movie. My project will export the photos on another host for the rendering of the timelapse.

avconv -y -r 20 -i tl-rade-%4d.jpg -r 20 -vcodec libx264 -q:v 3 -vf crop=1920:1080,scale=iw:ih tl2

Regards,

Jonathan

2015-09-02 18:22 GMT+02:00 Claude Pageau notifications@github.com:

If you downloaded it from the attachment then it should be on your local drive somewhere. Check for the download folder location in your email program.

I am working on a github update for pi-timolo It will be ready before the end of the day. Will let you know when if is available. Claude ...

On Wed, Sep 2, 2015 at 11:48 AM, Jonathan Schaeffer < notifications@github.com> wrote:

Hi,

your script seems cool, but I could'nt find where to get it from. Did I miss something ? Can you send me the downloaded URL ?

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-137140005.

See my YouTube Channel at http://www.youtube.com/user/pageaucp

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-137153035.

pageauc commented 8 years ago

The new pi-timolo version is on github and the makemovie.sh and makedailymovie.sh have been updated to avconv See Readme.md for details https://github.com/pageauc/pi-timolo

Let me know what you think. Claude ....

On Thu, Sep 3, 2015 at 7:58 AM, Jonathan Schaeffer <notifications@github.com

wrote:

Hi Claude,

sorry, but I don't find any attachement on github or with the mail. Maybe Github doesn't allow attachement to mails. Anyway, here is the command I used to generate the movie. My project will export the photos on another host for the rendering of the timelapse.

avconv -y -r 20 -i tl-rade-%4d.jpg -r 20 -vcodec libx264 -q:v 3 -vf crop=1920:1080,scale=iw:ih tl2

Regards,

Jonathan

2015-09-02 18:22 GMT+02:00 Claude Pageau notifications@github.com:

If you downloaded it from the attachment then it should be on your local drive somewhere. Check for the download folder location in your email program.

I am working on a github update for pi-timolo It will be ready before the end of the day. Will let you know when if is available. Claude ...

On Wed, Sep 2, 2015 at 11:48 AM, Jonathan Schaeffer < notifications@github.com> wrote:

Hi,

your script seems cool, but I could'nt find where to get it from. Did I miss something ? Can you send me the downloaded URL ?

— Reply to this email directly or view it on GitHub <https://github.com/pageauc/pi-timolo/issues/9#issuecomment-137140005 .

See my YouTube Channel at http://www.youtube.com/user/pageaucp

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-137153035.

— Reply to this email directly or view it on GitHub https://github.com/pageauc/pi-timolo/issues/9#issuecomment-137416829.

See my YouTube Channel at http://www.youtube.com/user/pageaucp