
Recherche avancée
Autres articles (83)
-
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
Sur d’autres sites (3369)
-
Multiple definition of 'ff_log2_tab'
16 mai 2016, par scoobyI am trying to build ffmpeg for Android, which is an LGPL version. At the end, when I try to combine the *.so to form the libFFmpeg.so it is giving the following error :
/home/kganlite/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld : error : libavcodec/log2_tab.o : multiple definition of ’ff_log2_tab’
/home/kganlite/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld : libavutil/log2_tab.o : previous definition here/home/kganlite/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld : error : libavcodec/reverse.o : multiple definition of ’ff_reverse’
/home/kganlite/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld : libavutil/reverse.o : previous definition here
....linux-androideabi/bin/ld : fatal error : /libffmpeg.so : open : Permission denied
collect2 : ld returned 1 exit statusI am using the following command to build the libFFMpeg.so
arm-linux-androideabi-gcc -lm -lz -shared --sysroot=$SYSROOT -Wl,--no-undefined -Wl,-z,noexecstack $EXTRA_LDFLAGS libavutil/*.o libavutil/arm/*.o libavcodec/*.o libavcodec/arm/*.o libavformat/*.o libswresample/*.o libswscale/*.o -o $PREFIX/libffmpeg.so
I know there are discussions regarding this issue in a few links but none of them helped for me. e.g. I tried to follow
Unable to port FFmpeg C library into android
but still the issue persists.How can I fix this ?
-
php-ffmpeg get video duration
11 mai 2017, par swg1cor14When I try to get the duration of a video using the php-ffmpeg wrapper and ffprobe, I get a huge object instead of just the duration.
$ffprobe = FFMpeg\FFProbe::create();
$ffprobe->format($this->videoFile)
->get('duration');$this->videoFile is /home/admin/........./5422346433.mp4
So it points to right file and the duration is listed in the giant object down in
[[-show_format-/home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4][1]] => Array
(
[0] => FFMpeg\FFProbe\DataMapping\Format Object
(
[properties:FFMpeg\FFProbe\DataMapping\AbstractData:private] => Array
(
[filename] => /home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4
[nb_streams] => 2
[nb_programs] => 0
[format_name] => mov,mp4,m4a,3gp,3g2,mj2
[format_long_name] => QuickTime / MOV
[start_time] => 0.000000
[duration] => 5736.833333
[size] => 668381267
[bit_rate] => 932056
[probe_score] => 100
[tags] => Array
(
[major_brand] => mp42
[minor_version] => 0
[compatible_brands] => mp42mp41isomavc1
[creation_time] => 2016-12-04 18:25:58
)
)
)
[1] =>
)
)But apparently ->get(’duration’) doesnt return the duration.
I’ve also tried with
$ffprobe
->streams($this->videoFile) // extracts streams informations
->videos() // filters video streams
->first() // returns the first video stream
->get('duration'); -
php-ffmpeg get video duration
4 avril 2020, par swg1cor14When I try to get the duration of a video using the php-ffmpeg wrapper and ffprobe, I get a huge object instead of just the duration.



$ffprobe = FFMpeg\FFProbe::create();
 $ffprobe->format($this->videoFile)
 ->get('duration'); 




$this->videoFile is /home/admin/........./5422346433.mp4



So it points to right file and the duration is listed in the giant object down in



[[-show_format-/home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4][1]] => Array
 (
 [0] => FFMpeg\FFProbe\DataMapping\Format Object
 (
 [properties:FFMpeg\FFProbe\DataMapping\AbstractData:private] => Array
 (
 [filename] => /home/admin/web/admin.simplewebevents.com/public_html/cron/649652027.mp4
 [nb_streams] => 2
 [nb_programs] => 0
 [format_name] => mov,mp4,m4a,3gp,3g2,mj2
 [format_long_name] => QuickTime / MOV
 [start_time] => 0.000000
 [duration] => 5736.833333
 [size] => 668381267
 [bit_rate] => 932056
 [probe_score] => 100
 [tags] => Array
 (
 [major_brand] => mp42
 [minor_version] => 0
 [compatible_brands] => mp42mp41isomavc1
 [creation_time] => 2016-12-04 18:25:58
 )

 )

 )

 [1] => 
 )

 )




But apparently ->get('duration') doesnt return the duration.



I've also tried with



$ffprobe
->streams($this->videoFile) // extracts streams informations
->videos() // filters video streams
->first() // returns the first video stream
->get('duration');