
Recherche avancée
Autres articles (31)
-
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. -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site
Sur d’autres sites (5872)
-
ffmpeg generating out of sync audio/video file
2 mars 2013, par marcelorocksI am trying to convert a flv video to mp4 using a264, but the result video has a out of sync audio/video. Audio seems ok but video seems slow and therefore out of sync. I am a newbie on video conversion so any help is appreciated.
Here is the command I am running :
/opt/local/bin/ffmpeg -i complaint.flv -f mp4 -vcodec libx264 -acodec aac -copyts -strict experimental -fpre /opt/local/share/ffmpeg/libx264-lossless_slow.ffpreset -ab 44k -threads 0 -crf 23 complaint.mp4
And the printout :
Desktop /opt/local/bin/ffmpeg -i complaint.flv -f mp4 -vcodec libx264 -acodec aac -copyts -strict experimental -fpre /opt/local/share/ffmpeg/libx264-lossless_slow.ffpreset -ab 44k -threads 0 -crf 23 complaint.mp4
ffmpeg version 0.7.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 12 2012 21:12:26 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=x86_64 --enable-yasm
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x7fe57a04ac00] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'complaint.flv':
Metadata:
duration : 7
creationdate : Thu Jan 12 23:47:24
description : Recorded using VideoRecording example.
Duration: 00:00:06.61, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 288x288, 1k tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: nellymoser, 11025 Hz, mono, s16
File 'complaint.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x7fe579c32cc0] w:288 h:288 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[libx264 @ 0x7fe57a044600] using cpu capabilities: none!
[libx264 @ 0x7fe57a044600] profile High, level 4.2
[libx264 @ 0x7fe57a044600] 264 - core 118 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x33 me=umh subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to 'complaint.mp4':
Metadata:
duration : 7
creationdate : Thu Jan 12 23:47:24
description : Recorded using VideoRecording example.
encoder : Lavf52.111.0
Stream #0.0: Video: libx264, yuv420p, 288x288, q=0-69, 200 kb/s, 1k tbn, 1k tbc
Stream #0.1: Audio: aac, 11025 Hz, mono, s16, 44 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
frame= 6557 fps=106 q=-1.0 Lsize= 685kB time=00:00:03.62 bitrate=1549.1kbits/s dup=6367 drop=0
video:615kB audio:17kB global headers:0kB muxing overhead 8.361360%
frame I:27 Avg QP:19.98 size: 8242
[libx264 @ 0x7fe57a044600] frame P:6530 Avg QP:30.71 size: 62
[libx264 @ 0x7fe57a044600] mb I I16..4: 11.1% 79.3% 9.6%
[libx264 @ 0x7fe57a044600] mb P I16..4: 0.1% 0.2% 0.0% P16..4: 1.2% 0.2% 0.3% 0.0% 0.0% skip:98.0%
[libx264 @ 0x7fe57a044600] 8x8 transform intra:77.8% inter:64.9%
[libx264 @ 0x7fe57a044600] coded y,uvDC,uvAC intra: 75.3% 81.3% 33.3% inter: 0.5% 0.7% 0.1%
[libx264 @ 0x7fe57a044600] i16 v,h,dc,p: 78% 9% 10% 3%
[libx264 @ 0x7fe57a044600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 11% 32% 3% 4% 5% 2% 5% 4%
[libx264 @ 0x7fe57a044600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 56% 7% 9% 3% 4% 7% 3% 7% 3%
[libx264 @ 0x7fe57a044600] i8c dc,h,v,p: 45% 15% 34% 6%
[libx264 @ 0x7fe57a044600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fe57a044600] ref P L0: 80.5% 9.5% 10.0%
[libx264 @ 0x7fe57a044600] kb/s:767.20 -
FFmpeg produces empty file sometimes
30 avril 2024, par Matan MalkaI am currently using ffmpeg and attempting to convert multiple PNG files to MP4 video.


My command is :


ffmpeg -y -r 10 -i "videos-reporter/MC4xMzg3NDI1MTY2Mjg1MTk=/b8a7ee17d8ecfd199edbc5edc9691698/screenshots/%04d.png" -vcodec libx264 -pix_fmt yuv420p -vf "scale=1200:trunc(ow/a/2)*2","setpts=3.0*PTS" "videos-reporter/MC4xMzg3NDI1MTY2Mjg1MTk=/b8a7ee17d8ecfd199edbc5edc9691698/video.mp4"



Sometimes, I'm unsure when the ffmpeg creates a 1kb empty video file that cannot be played.


[0-1] stderr: ffmpeg version N-47683-g0e8eb07980-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers
[0-1] built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
[0-1] configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
[0-1] libavutil 56. 24.101 / 56. 24.101
[0-1] libavcodec 58. 42.100 / 58. 42.100
[0-1] libavformat 58. 24.100 / 58. 24.100
[0-1] libavdevice 58. 6.101 / 58. 6.101
[0-1] libavfilter 7. 46.101 / 7. 46.101
[0-1] libswscale 5. 4.100 / 5. 4.100
[0-1] libswresample 3. 4.100 / 3. 4.100
[0-1] libpostproc 55. 4.100 / 55. 4.100
[0-1] Input #0, image2, from '/workspace/1/s/videos-reporter/MC4xMzg3NDI1MTY2Mjg1MTk=/b8a7ee17d8ecfd199edbc5edc9691698/screenshots/%04d.png':
[0-1] Duration: 00:00:18.08, start: 0.000000, bitrate: N/A
[0-1] Stream #0:0: Video: png, rgba(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
[0-1] Stream mapping:
[0-1] Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
[0-1] Press [q] to stop, [?] for help
[0-1] [libx264 @ 0x6cb2140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[0-1] [libx264 @ 0x6cb2140] profile High, level 3.1, 4:2:0, 8-bit
[0-1] [libx264 @ 0x6cb2140] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=21 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[0-1] Output #0, mp4, to 'videos-reporter/MC4xMzg3NDI1MTY2Mjg1MTk=/b8a7ee17d8ecfd199edbc5edc9691698/video.mp4':
[0-1] Metadata:
[0-1] encoder : Lavf58.24.100
[0-1] Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1200x674, q=-1--1, 10 fps, 10240 tbn, 10 tbc
[0-1] Metadata:
[0-1] encoder : Lavc58.42.100 libx264
[0-1] Side data:
[0-1] cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[0-1] frame= 10 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=6 drop=0 speed= 0x 
frame= 58 fps= 47 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=38 drop=0 speed= 0x 
frame= 82 fps= 46 q=25.0 size= 0kB time=00:00:01.40 bitrate= 0.3kbits/s dup=54 drop=0 speed=0.79x 
frame= 109 fps= 48 q=25.0 size= 0kB time=00:00:04.10 bitrate= 0.1kbits/s dup=72 drop=0 speed= 1.8x 



-
FFmpeg converting image sequence to video results in blank video [closed]
11 juillet 2019, par Brandon DurhamI’ve got a series of 361 .png files that I’m trying to convert to video, and for whatever reason the resulting video is just black. Here is the FFmpeg code I’m using :
ffmpeg -f image2 -i "FeatureTour_%05d.png" -r 30 -vcodec libx264 -b:v 9600k "FeatureTour.mp4"
The files are formatted correctly (
FeatureTour_00001.png
) and no errors are thrown. It just results in a 160kb mp4 files that’s black.Any idea what I’m doing wrong ?
EDIT
Here is my output after using the above code :
ffmpeg version N-46206-g0e4d34e Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 30 2012 23:07:44 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libaacplus --enable-libass --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-openssl --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local
libavutil 52. 1.100 / 52. 1.100
libavcodec 54. 70.100 / 54. 70.100
libavformat 54. 35.100 / 54. 35.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 20.113 / 3. 20.113
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
[image2 @ 0x7fa68381e200] max_analyze_duration 5000000 reached at 5000000
Input #0, image2, from 'FeatureTour_%05d.png':
Duration: 00:00:14.44, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 114x151 [SAR 2835:2835 DAR 114:151], 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x7fa683826c00] using SAR=1/1
[libx264 @ 0x7fa683826c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x7fa683826c00] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264 @ 0x7fa683826c00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=9600 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'FeatureTour.mp4':
Metadata:
encoder : Lavf54.35.100
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 114x151 [SAR 1:1 DAR 114:151], q=-1--1, 9600 kb/s, 15360 tbn, 30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> libx264)
Press [q] to stop, [?] for help
frame= 432 fps=0.0 q=-2.0 Lsize= 152kB time=00:00:14.33 bitrate= 86.9kbits/s dup=71 drop=0
video:146kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.905020%
[libx264 @ 0x7fa683826c00] frame I:3 Avg QP: 0.06 size: 8557
[libx264 @ 0x7fa683826c00] frame P:135 Avg QP: 0.10 size: 653
[libx264 @ 0x7fa683826c00] frame B:294 Avg QP: 0.43 size: 120
[libx264 @ 0x7fa683826c00] consecutive B-frames: 8.8% 0.9% 1.4% 88.9%
[libx264 @ 0x7fa683826c00] mb I I16..4: 30.0% 0.4% 69.6%
[libx264 @ 0x7fa683826c00] mb P I16..4: 2.1% 0.0% 1.9% P16..4: 7.5% 1.2% 0.8% 0.0% 0.0% skip:86.5%
[libx264 @ 0x7fa683826c00] mb B I16..4: 0.2% 0.0% 0.1% B16..8: 4.4% 0.3% 0.2% direct: 0.9% skip:93.8% L0:46.5% L1:48.9% BI: 4.5%
[libx264 @ 0x7fa683826c00] final ratefactor: -45.15
[libx264 @ 0x7fa683826c00] 8x8 transform intra:0.7% inter:19.3%
[libx264 @ 0x7fa683826c00] coded y,u,v intra: 44.4% 32.1% 31.5% inter: 2.3% 1.6% 1.4%
[libx264 @ 0x7fa683826c00] i16 v,h,dc,p: 25% 75% 0% 0%
[libx264 @ 0x7fa683826c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 40% 10% 0% 5% 0% 10% 0% 5%
[libx264 @ 0x7fa683826c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 71% 5% 1% 1% 1% 2% 1% 2%
[libx264 @ 0x7fa683826c00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fa683826c00] ref P L0: 88.0% 3.9% 5.0% 3.1%
[libx264 @ 0x7fa683826c00] ref B L0: 85.4% 12.4% 2.1%
[libx264 @ 0x7fa683826c00] ref B L1: 98.1% 1.9%
[libx264 @ 0x7fa683826c00] kb/s:82.86