Gepetto / gepetto-viewer

Graphical Interface for Pinocchio and HPP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default for avconv setting on 18.04 wrong

wxmerkt opened this issue · comments

Relates to #92 and #94.

#94 added the ability to configure avconv to be ffmpeg or whatever we want. However, in the robotpkg distributed viewer, it still points to avconv on 18.04 by default - it is now ffmpeg again. Can this be fixed in the distributed version?

This seems to be somehow related to an error I currently receive. When trying to record a movie of the crocoddyl example bipedal_walking.py in the gepetto viewer, it fails with the following log:

Failed to start avconv. Either it is missing, or you may have insufficient permissions to invoke it. 

You can manually run avconv -r 25 -i /tmp/gepetto-gui/record/img_0_%d.jpeg -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -r 25 -vcodec libx264 /home/###hidden###/Videos/bipedalRecording.mp4

@nim65s there are several possible workaround:

  • use cmake to know what the default should be. Then, the line to change is
    , avconv ("avconv")
  • otherwise, we could look for both and see if any is found.

Thanks for the heads-up, I had forgotten this.

Fixed by #119