
Recherche avancée
Autres articles (111)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (7356)
-
Subtitles come too early in ts file [closed]
6 octobre 2023, par kalleloI have recorded a movie with my SAT-recorder on harddisk. The movie is in french and has subtitles in several languages. I cutted the ts-file and removed all subtitles except german wit tsdoctor. Sometimes later I noticed that the subtitles come about four seconds too early. Unfortunately I had deleted the original file until then.


ffprobe shows the following output :


ffprobe version 6.0-essentials_build-www.gyan.dev Copyright (c) 2007-2023 the FFmpeg developers
 built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
...
Input #0, mpegts, from 'inputfile.ts':
 Duration: 01:35:06.88, start: 54851.766678, bitrate: 3407 kb/s
 Program 6915
 Stream #0:0[0x267]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn
 Side data:
 cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A
 Stream #0:1[0x27b](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
 Stream #0:2[0x3a9](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)



I can imagine that this problem could be solved with ffmpeg, but don't know how and I didn't found anything that would help me.


-
Laravel / ffmpeg headers not found on centos 7
24 septembre 2023, par Jack The BakerI want to use
ffmpeg
on laravel project. OS iscentos7
and panel isDirectAdmin
and usingphp 8.1




PHP Version 8.1.12




I installed
ffmpeg
on centos 7 and I getffmpeg


ffmpeg version 3.4.13 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100



But in
phpinfo
andphp -m
ffmpeg not listed ! yet so I noticed should configure ffmpeg on php then I run :

./configure && make



on
/usr/ffmpeg/ffmpeg-php-0.6.0


But result is :




checking for ffmpeg headers... configure : error : ffmpeg headers not
found. Make sure ffmpeg is compiled as shared libraries using the
—enable-shared option




Then I run :


./configure --enable-shared



But still the same error.


In laravel project I got error :


exception: "ErrorException"
file: "/home/site.com/public_html/laravel/vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/AbstractBinary.php"
line: 149
message: "file_exists(): open_basedir restriction in effect. File(/usr/bin/ffmpeg) is not within the allowed path(s): (/home/admin/:/tmp/:/var/tmp/:/opt/alt/php81/usr/shar...



After many hours searching and testing still I couldn't fix this issue, any suggestion ?


-
Issue with Batch File for FFmpeg Video Frame Extraction
30 septembre 2023, par Claudio MartiniIssue


[swscaler @ 0000019531bb00c0] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'temp_frames/frame%08d.jpg':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42mp41
 encoder : Lavf60.11.100
 Stream #0:0(eng): Video: mjpeg, yuvj420p(pc, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn (default)
 Metadata:
 creation_time : 2023-09-29T13:37:07.000000Z
 handler_name : ?Mainconcept Video Media Handler
 vendor_id : [0][0][0][0]
 encoder : Lavc60.26.100 mjpeg
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
[image2 @ 000001951c61b980] Could not open file : temp_frames/frame00000001.jpg
[vost#0:0/mjpeg @ 000001951c603e80] Error submitting a packet to the muxer: I/O error
[out#0/image2 @ 000001951cb8ee80] Error muxing a packet
[out#0/image2 @ 000001951cb8ee80] video:389kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame= 1 fps=0.0 q=1.0 Lsize=N/A time=00:00:00.24 bitrate=N/A speed=1.03x
Conversion failed!



I've noticed that using an escape code '%%' for the '%' character, as suggested for similar issues, resolves the problem :


ffmpeg -i video.mp4 -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 tmp_frames/frame%%08d.jpg



However, the same issue occurs even when the command is used within a drag&drop batch file :


setlocal enabledelayedexpansion

REM Check if an MP4 file was dragged onto the script
if "%~1"=="" (
 echo Drag an MP4 file onto this script to begin frame extraction.
 pause
 exit /b
)

REM Extract frames from the MP4 file
ffmpeg -i "%~1" -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 temp_frames/frame%%08d.jpg

echo Extraction complete.
pause



This is essentially the same code, but it doesn't work as expected within the batch file. Can anyone provide insight into why this issue is occurring and how to resolve it within the batch file context ?