8 Replies Latest reply on Jun 30, 2015 5:36 PM by SergeyK

    Trouble installing FFmpeg on Intel Edison

    LukeP

      I am trying to install FFmpeg for this instructables( Intel Edison IP Webcam) how to on using a UVC webcam with the Intel Edison.  I have put the the ffmpeg tar file from ffmpeg.org on the mini SD card that I have in the Arduino dev board. I have following these instructions How to install FFmpeg in Linux | Linuxers  on how to unpackage and install ffmpeg but keep getting the same errors when I run ./configure. They are: Error with libx264 not found and a bunch of this:

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      od: invalid option -- 't'

      BusyBox v1.22.1 (2014-12-09 18:30:16 CET) multi-call binary.

       

      Usage: od [-aBbcDdeFfHhIiLlOovXx] [FILE]

       

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      ./configure: line 409: pr: command not found

      Does anyone have experience  with this? Thanks.

        • 1. Re: Trouble installing FFmpeg on Intel Edison
          CMata_Intel

          Hi LukeP

           

          Having these lines in /etc/opkg/base-feeds.conf:

               src/gz all http://repo.opkg.net/edison/repo/all

               src/gz edison http://repo.opkg.net/edison/repo/edison

               src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

           

          Run this in your board:

          root@edison:~# opkg install libx264-133
          root@edison:~# opkg install libx264-bin
          root@edison:~# opkg install libx264-dev
          root@edison:~# opkg install libx264-staticdev
          
          
          

           

          Move the ffmpeg folder to /home and then run:

          root@edison:/home/ffmpeg# ./configure --disable-yasm
          
          
          

           

          Regards;

          CMata

          • 2. Re: Trouble installing FFmpeg on Intel Edison
            LukeP

            Hi C_Mata,

             

            Thank you for your quick reply! Unfortunately, I just tried this and still get the same errors:

            root@carrsystem:/# opkg install libx264-133

            Package libx264-133 (r2265+git0+ffc3ad4945-r0) installed in root is up to date.

            root@carrsystem:/# opkg install libx264-bin

            Package libx264-bin (r2265+git0+ffc3ad4945-r0) installed in root is up to date.

            root@carrsystem:/# opkg install libx264-dev

            Package libx264-dev (r2265+git0+ffc3ad4945-r0) installed in root is up to date.

            root@carrsystem:/# opkg install libx264-staticdev

            Package libx264-staticdev (r2265+git0+ffc3ad4945-r0) installed in root is up to date.

            root@carrsystem:/# cd /home/FFmpeg

            root@carrsystem:/home/FFmpeg# ./configure --disable-yasm

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            ./configure: line 409: pr: command not found

            • 3. Re: Trouble installing FFmpeg on Intel Edison
              LukeP

              Also,

              If I try commenting out line 409 in the config file :

              log_file(){

                  log BEGIN $1

                 # pr -n -t $1 >> $logfile

                  log END $1

              }

              the pr: command not found errors go away, but I am still left with this error:

              root@carrsystem:/home/ffmpeg# ./configure --disable-yasm

              od: invalid option -- 't'

              BusyBox v1.22.1 (2014-12-09 18:30:16 CET) multi-call binary.

               

              Usage: od [-aBbcDdeFfHhIiLlOovXx] [FILE]

               

              which I also get without line 409 commented out anyway.

              • 4. Re: Trouble installing FFmpeg on Intel Edison
                CMata_Intel

                Hi LukeP

                 

                I was checking the original tutorial drejkim/edi-cam · GitHub and with those instructions I didn't have problems for installing node and ffmpeg. I haven't been able to test it with a webcam yet but I think you should follow those steps and not installing from source if you still have problems with this. Please, let me know if following those instructions you get better results.

                You will need to change the file /edi-cam/bin/install_ffmpeg.sh with:

                 

                # CHANGE THIS TO THE APPROPRIATE FILENAME

                FNAME=ffmpeg-2.6.1-32bit-static.tar.xz

                 

                Regards;

                CMata

                • 5. Re: Trouble installing FFmpeg on Intel Edison
                  LukeP

                  Hi Mata,

                   

                  I was following those original instructions on Github and have gotten to a point, but now I'm stuck again. Ive got 'edi-cam' folder in '/home/root', given the 'install_ffmpeg.sh' the chmod 775 perms and run it using sudo and I keep getting this error:

                  root@carrsystem:~/edi-cam/bin# sudo chmod 775 install_ffmpeg.sh

                  root@carrsystem:~/edi-cam/bin# sudo ./install_ffmpeg.sh

                  Creating ~/bin directory if it doesn't exist...

                  Removing old versions of ffmpeg...

                  Downloading ffmpeg...

                  --2015-04-11 14:31:51--  http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-32bit-static.tar.xz

                  Resolving johnvansickle.com... 199.79.62.21

                  Connecting to johnvansickle.com|199.79.62.21|:80... connected.

                  HTTP request sent, awaiting response... 200 OK

                  Length: 12316764 (12M) [application/x-tar]

                  Saving to: '/home/root/bin/ffmpeg-release-32bit-static.tar.xz'

                   

                  100%[======================================>] 12,316,764  4.93MB/s   in 2.4s 

                   

                  2015-04-11 14:31:53 (4.93 MB/s) - '/home/root/bin/ffmpeg-release-32bit-static.tar.xz' saved [12316764/12316764]

                   

                  Unpacking...

                  tar (child): xz: Cannot exec: No such file or directory

                  tar (child): Error is not recoverable: exiting now

                  tar: Child returned status 2

                  tar: Error is not recoverable: exiting now

                  Cleaning up...

                  mv: can't rename '/home/root/bin/ffmpeg*/': No such file or directory

                  The /bin/ffmpeg paths get created in /home/root/, but nothing gets unpacked in them...

                   

                  **edit: Also, Ive tried git cloning the xz utils from 'git clone http://git.tukaani.org/xz.git' in the '/' folder, but has not helped the problem.

                   

                  sorry for so many questions!

                  • 6. Re: Trouble installing FFmpeg on Intel Edison
                    LukeP

                    Sorry, I fixed it! I wasn't unpacking xz utils properly. I transferred cloned from the git  git clone http://git.tukaani.org/xz.git, then did a opkg install xz, THEN I was able to run ./install_ffmpeg.sh successfully.

                    • 7. Re: Trouble installing FFmpeg on Intel Edison
                      CMata_Intel

                      That it's great LukeP. If you have more questions don't hesitate to open a new thread there are great people in the communities that will be glad to help you.

                       

                      Regards;

                      -CMata

                      • 8. Re: Trouble installing FFmpeg on Intel Edison
                        SergeyK

                        If you like to compile ffmpeg natively on Edison, you'll need to install coreutils (using opkg install coreutils) and nasm (compile on Edison).

                        The install_ffmpeg.sh script does not compile ffmpeg. It merely downloads a pre-compiled static version.