Announcement

#1 2015-02-28 01:27:16

mark123
Member
2015-02-27
5

VideoJS and ffmpeg

Just checking if videojs plugin will work with the new libav-tools in Debian testing? I guess Debian testing does not support ffmpeg and is transitioning away from ffmpeg to the package libav-tools. A short comparison of ffmpeg and libav-tools - https://github.com/mpv-player/mpv/wiki/ … rsus-Libav

Do I need to make ffmpeg from source, or can I change the line in the videojs from ffmpeg to avconv?

Thanks,

Mark

Piwigo version: 2.7.4
PHP version: PHP 5.6.4-4 (cli) (built: Jan  8 2015 18:39:50)
MySQL version:  Ver 14.14 Distrib 5.5.40, for debian-linux-gnu (x86_64) using readline 6.3
Piwigo URL: http://arcadiasoftball.net

Offline

 

#2 2015-03-02 12:11:46

xbgmsharp
Member
1970-01-01
215

Re: VideoJS and ffmpeg

According to my test, you can replace ffmpeg by avconv.
The plugin don't use any advanced feature of ffmpeg. https://github.com/xbgmsharp/piwigo-vid … generation
ffmpeg is use to export video frame as image, which I believe is a basic feature for this kind of application.

Did you run into any issue?

On Debian 7.0 "Wheezy":

Code:

# avconv -version
avconv version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav developers
  built on Sep 16 2014 23:10:48 with gcc 4.7.2
avconv 0.8.16-6:0.8.16-1
libavutil    51. 22. 2 / 51. 22. 2
libavcodec   53. 35. 0 / 53. 35. 0
libavformat  53. 21. 1 / 53. 21. 1
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 15. 0 /  2. 15. 0
libswscale    2.  1. 0 /  2.  1. 0
libpostproc  52.  0. 0 / 52.  0. 0

# ffmpeg -version
ffmpeg version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav developers
  built on Sep 16 2014 23:10:48 with gcc 4.7.2
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
ffmpeg 0.8.16-6:0.8.16-1
libavutil    51. 22. 2 / 51. 22. 2
libavcodec   53. 35. 0 / 53. 35. 0
libavformat  53. 21. 1 / 53. 21. 1
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 15. 0 /  2. 15. 0
libswscale    2.  1. 0 /  2.  1. 0
libpostproc  52.  0. 0 / 52.  0. 0

I hope this helps and please let me know if you have additional questions.

Offline

 

#3 2015-03-04 15:41:43

mark123
Member
2015-02-27
5

Re: VideoJS and ffmpeg

I ran into one problem, and found a solution.

The problem - In the setup screens for the plugin, there is a place to enter the path for ffmpeg. I changed that to avconv, but the red x would never go away after I ran a sync. I do not think the plugin will accept the change in program name. Maybe ffmpeg is hard coded somewhere?? Have not looked for it.

However, there is a repository for ffmpeg outside of Debian that I used to install ffmpeg. http://deb-multimedia.org/. I added the necessary repository to my sources.list and installed ffmpeg. When I changed avconv back to ffmpeg in the plugin setup and ran the sync, the red x became green. It seems to be working now and there are no complaints from the software.

IMO, this is a small bug in the plugin because it does not take the change in command line name in the setup screen. But the work around is easy to implement. Also, it seems that ffmpeg may come back into Debian. I see it is in the experimental repository now. http://www.phoronix.com/scan.php?page=n … x=MTYxNjA.

Thanks for your response.

Mark

Offline

 

#4 2015-03-04 16:50:50

xbgmsharp
Member
1970-01-01
215

Re: VideoJS and ffmpeg

FFmpeg is not hard coded anywhere, I checked!
I did test on my Debian 7.0 "Wheezy" and the sync works fine with FFmpeg or avconv.

FFmpeg will come back into Debian. The package was submitted to late to be include in the next Debian stable current.
https://bugs.debian.org/cgi-bin/bugrepo … bug=763148

If the entry for the binary is not valid, the depending feature is automatically disable.
It might generate confusion but the best approach I could find.
Maybe a additional message would make it clear.
I checked and the warnings was in fact overwritten by the sync later one. I committed a fixed.
[Github] piwigo-videojs commit 8929e63a

Also note that if FFmpeg/avconv/MediaInfo are not in you patch, you need to specify the full binary path.

You might want to check using the latest git source and feedback.

Offline

 

#5 2015-12-13 02:55:47

Miguel
Guest

Re: VideoJS and ffmpeg

Hi, I'm trying to get ffmpeg and videoJS to work together...

I have installed ffmpeg (from git) and the server knows it is there:

Code:

[root@skynet ~]# ffmpeg
ffmpeg version N-77221-g93d336f Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
  configuration: --enable-gpl --enable-libx264
  libavutil      55. 10.100 / 55. 10.100
  libavcodec     57. 17.100 / 57. 17.100
  libavformat    57. 20.100 / 57. 20.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 21.100 /  6. 21.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

but VideoJS cannot find the binary (I see an orange triangular sign with an exclamation point in the synchronize menu). 

Here is a search for the ffmpeg binary:

Code:

[root@skynet ~]# find / -iname 'ffmpeg'
/root/ffmpeg
/root/ffmpeg/ffmpeg
/usr/local/share/ffmpeg
/usr/local/bin/ffmpeg

and of course, here is the $PATH:

Code:

[root@skynet ~]# $PATH
-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin: No such file or directory

Any ideas?

 

#6 2015-12-13 03:02:11

miguel
Member
2015-12-13
1

Re: VideoJS and ffmpeg

Howdy, this is Miguel from the previous post. It might be worth noting that the server is running CentOS 7.

Greetings from California!

Offline

 

#7 2015-12-13 10:20:17

Corbin
Guest

Re: VideoJS and ffmpeg

Hello,

I'm experiencing the same as Miguel, but with avconv. 
avconv is in my PATH

I don't have ffmpeg installed. (Ubuntu Server)

Running latest git source.

Thanks,

Corbin

 

#8 2016-03-22 21:21:24

torode
Member
Paris
2003-07-31
78

Re: VideoJS and ffmpeg

Hello,

I have the same problem with Piwigo 2.8 on Cent 0S 6 with php 5.6.x.
I installed mediainfo and ffmpeg, today. Mediainfo is recognized, but not ffmpeg.

# ffmpeg
ffmpeg version N-79113-gdb1a642 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-gpl --enable-version3 --enable-libfdk_aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libgsm --enable-libxvid --disable-static --enable-shared
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 28.103 / 57. 28.103
  libavformat    57. 29.100 / 57. 29.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 39.102 /  6. 39.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


The FFmpeg binary path icon in the VideoJS Synchronization panel remains a yellow triangle.

If you have any clue, I'll take it.

Have a good evening.


Seb

Offline

 

#9 2016-03-23 08:58:59

torode
Member
Paris
2003-07-31
78

Re: VideoJS and ffmpeg

After toggling and saving several times the Height settings (720p, 1080p...) of the plugin, the icon in front of ffmpeg is green now.


Seb

Offline

 

#10 2016-05-18 15:01:21

lurker
Guest

Re: VideoJS and ffmpeg

A quick "restore" under "Plugins -> Manage" cleared it up for me - this is after verifying the path, dropping in symlinks, saving repeatedly with different path options and the resolution thing above had failed.

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact