
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (61)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (5243)
-
Matomo’s privacy-friendly web analytics software named best of the year 2022
25 janvier 2023, par Erin -
FFmpeg : Green images from TS file
5 septembre 2017, par TatsianaI use ffmpeg to generate images from a TS file and at some places it generates green images. I checked a couple of ffmpeg versions. The issue reproduces on
3.3.3, 2.8.11, 2.7.7, but doesn’t on 2.6.9.
What might be the reason ?For example, the output of 2.8.11 :
$ ffmpeg -ss 00:42:20 -i video.ts -frames:v 1 out_42_20.jpg -loglevel debug ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1 16.04.4) 20160609 configuration : —prefix=/usr —extra-version=0ubuntu0.16.04.1 —build-suffix=-ffmpeg —toolchain=hardened —libdir=/usr/lib/x86_64-linux-=/usr/include/x86_64-linux-gnu —cc=cc —cxx=g++ —enable-gpl —enable-shared —disable-stripping —disable-decoder=libopenjpeg —disable-dhroedinger —enable-avresample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libbs2b —enab-enable-libcdio —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable—enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-librtmp —enable-libschroedinger —enable-libshine —enpy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvorbis —enable-libvpx —enable-linable-libwebp —enable-libx265 —enable-libxvid —enable-libzvbi —enable-openal —enable-opengl —enable-x11grab —enable-libdc1394 —enab83 —enable-libzmq —enable-frei0r —enable-libx264 —enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Splitting the commandline. Reading option ’-ss’ ... matched as option ’ss’ (set the start time offset) with argument ’00:42:20’. Reading option ’-i’ ... matched as input url with argument ’video.ts’. Reading option ’-frames:v’ ... matched as option ’frames’ (set the number of frames to output) with argument ’1’. Reading option ’out_42_20.jpg’ ... matched as output url. Reading option ’-loglevel’ ... matched as option ’loglevel’ (set logging level) with argument ’debug’. Finished splitting the commandline. Parsing a group of options : global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options : input url video.ts. Applying option ss (set the start time offset) with argument 00:42:20. Successfully parsed a group of options. Opening an input file : video.ts. [mpegts @ 0x22ba400] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x22ba400] stream=0 stream_type=1b pid=1e1 prog_reg_desc= [mpegts @ 0x22ba400] stream=1 stream_type=f pid=1e2 prog_reg_desc= [mpegts @ 0x22ba400] stream=2 stream_type=6 pid=1e3 prog_reg_desc= [mpegts @ 0x22ba400] Before avformat_find_stream_info() pos : 0 bytes read:32768 seeks:0 [h264 @ 0x22be840] no picture [mpegts @ 0x22ba400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0 [mpegts @ 0x22ba400] stream 0 : no PTS found at end of file, duration not set [mpegts @ 0x22ba400] After avformat_find_stream_info() pos : 0 bytes read:4026800 seeks:3 frames:550 Input #0, mpegts, from ’video.ts’ : Duration : 02:15:27.97, start : 1.079989, bitrate : 4983 kb/s Program 1 Stream #0:0[0x1e1], 216, 1/90000 : Video : h264 (High), 4 reference frames ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088)R 16:9], 1/50, 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x1e2](und), 203, 1/90000 : Audio : aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s Stream #0:2[0x1e3](und), 131, 1/90000 : Audio : ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s Successfully opened the file. Parsing a group of options : output url out_42_20.jpg. Applying option frames:v (set the number of frames to output) with argument 1. Successfully parsed a group of options. Opening an output file : out_42_20.jpg. Successfully opened the file. detected 1 logical cores [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’video_size’ to value ’1920x1080’ [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’pix_fmt’ to value ’0’ [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’time_base’ to value ’1/90000’ [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’pixel_aspect’ to value ’1/1’ [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’sws_param’ to value ’flags=2’ [graph 0 input from stream 0:0 @ 0x22ba280] Setting ’frame_rate’ to value ’25/1’ [graph 0 input from stream 0:0 @ 0x22ba280] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 0x2328360] compat : called with args=[yuvj420p|yuvj422p|yuvj444p] [format @ 0x2328360] Setting ’pix_fmts’ to value ’yuvj420p|yuvj422p|yuvj444p’ [auto-inserted scaler 0 @ 0x2326600] Setting ’flags’ to value ’bicubic’ [auto-inserted scaler 0 @ 0x2326600] w:iw h:ih flags :’bicubic’ interl:0 [format @ 0x2328360] auto-inserting filter ’auto-inserted scaler 0’ between the filter ’Parsed_null_0’ and the filter ’format’ [AVFilterGraph @ 0x2327ba0] query_formats : 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0x2326600] picking yuvj420p out of 3 ref:yuv420p alpha:0 [swscaler @ 0x2310660] deprecated pixel format used, make sure you did set range correctly [auto-inserted scaler 0 @ 0x2326600] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuvj420p sar:1/1 flags:0x4 [mjpeg @ 0x2327620] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multipl [mjpeg @ 0x2327620] intra_quant_bias = 96 inter_quant_bias = 0 Output #0, image2, to ’out_42_20.jpg’ : Metadata : encoder : Lavf56.40.101 Stream #0:0, 0, 1/25 : Video : mjpeg, 1 reference frame, yuvj420p(pc, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps tbc Metadata : encoder : Lavc56.60.100 mjpeg Stream mapping : Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help [h264 @ 0x232a040] Missing reference picture, default is 0 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 0 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 0 [h264 @ 0x232a040] decode_slice_header error timestamp discontinuity 0, new offset= -2541079989 [h264 @ 0x232a040] no picture [h264 @ 0x232a040] illegal short term buffer state detected [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] Missing reference picture, default is 65537 [h264 @ 0x232a040] decode_slice_header error [h264 @ 0x232a040] no picture *** 0 dup ! [AVIOContext @ 0x2448c00] Statistics : 0 seeks, 2 writeouts No more output streams to write to, finishing. frame= 1 fps=0.0 q=2.2 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=1 video:32kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown Input file #0 (video.ts) : Input stream #0:0 (video) : 9 packets read (261340 bytes) ; 3 frames decoded ; Input stream #0:1 (audio) : 0 packets read (0 bytes) ; Input stream #0:2 (audio) : 0 packets read (0 bytes) ; Total : 9 packets (261340 bytes) demuxed Output file #0 (out_42_20.jpg) : Output stream #0:0 (video) : 1 frames encoded ; 1 packets muxed (33209 bytes) ; Total : 1 packets (33209 bytes) muxed 3 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x22c2e40] Statistics : 8798032 bytes read, 36 seeks
-
ffmpeg video conversion from webm to mp4 is adding lag to the video
21 janvier 2016, par Hemant KumarHi I am trying to convert video from .webm extension to .mp4 extension and it is adding lags to the video, also not showing me the full video.
I am using following video conversion command.
"ffmpeg -i {$input} -strict -2 -vcodec libx264 -preset slow -vb 500k -maxrate 500k -bufsize 1000k -vf 'scale=-1:480 ".fix_video_orientation($input)."' -threads 0 -ab 64k -s {$resolution} -movflags faststart -metadata:s:v:0 rotate=0 {$output}";
"fix_video_orientation" function is given below. It rotate the resulting video if video while recording is rotated to certain angle.
function fix_video_orientation($input){
$return= ", transpose=1 ";
$dd= exec("ffprobe -of json -show_streams {$input} | grep rotate");
if(!empty($dd)){
$dd=explode(":",$dd);
$rotate=str_replace(",","",str_replace('"',"",$dd[1]));
if($rotate=="90")return $return;
else if ($rotate=="180") return ", transpose=2,transpose=2 ";
else if($rotate == "270") return ", transpose=2 ";
}Currently above script is supporting "flv","avi","mp4","mkv","mpg","wmv","asf","webm","mov","3gp","3gpp" extensions, also the script is supporting the resulting .mp4 file to play on all browsers and devices.
For query :
ffmpeg -i <server path="path">/g9zyy2qg54qp1l5spo2-mergedFile.webm -strict -2 -vcodec libx264 -preset slow -vb 500k -maxrate 500k -bufsize 1000k -vf 'scale=-1:480 ' -threads 0 -ab 64k -s 640x480 -movflags faststart -metadata:s:v:0 rotate=0 <server path="path">/g9zyy2qg54qp1l5spo2-mergedFile5.mp4
</server></server>Console output :
ffmpeg version 2.2.5 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 1 2014 09:24:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libtheora --enable-libx264 --enable-libvpx --enable-libmp3lame
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, matroska,webm, from '<server path="path">/g9zyy2qg54qp1l5spo2-mergedFile.webm':
Metadata:
encoder : Lavf55.33.100
Duration: 00:00:13.53, start: 0.000000, bitrate: 387 kb/s
Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp
Stream #0:1: Video: vp8, yuv420p, 320x240, SAR 1:1 DAR 4:3, 1k fps, 1k tbr, 1k tbn, 1k tbc (default)
[libx264 @ 0x38fcf40] using SAR=1/1
[libx264 @ 0x38fcf40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x38fcf40] profile High, level 5.2
[libx264 @ 0x38fcf40] 264 - core 142 r2453 ea0ca51 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=24 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=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=cbr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '<server path="path">/g9zyy2qg54qp1l5spo2-mergedFile5.mp4':
Metadata:
encoder : Lavf55.33.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 500 kb/s, 16k tbn, 1k tbc (default)
Metadata:
rotate : 0
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 64 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (vp8 -> libx264)
Stream #0:0 -> #0:1 (vorbis -> aac)
Press [q] to stop, [?] for help
frame= 358 fps=0.0 q=39.0 size= 27kB time=00:00:00.74 bitrate= 295.4kbits/frame= 723 fps=691 q=41.0 size= 57kB time=00:00:01.39 bitrate= 335.1kbits/frame= 1410 fps=706 q=45.0 size= 108kB time=00:00:01.74 bitrate= 509.0kbits/frame= 1777 fps=710 q=45.0 size= 134kB time=00:00:02.13 bitrate= 512.7kbits/frame= 2126 fps=707 q=45.0 size= 164kB time=00:00:02.50 bitrate= 535.0kbits/frame= 2497 fps=710 q=45.0 size= 191kB time=00:00:02.85 bitrate= 547.8kbits/frame= 2869 fps=708 q=45.0 size= 225kB time=00:00:03.20 bitrate= 575.7kbits/frame= 3226 fps=707 q=45.0 size= 250kB time=00:00:03.59 bitrate= 568.2kbits/frame= 3586 fps=709 q=46.0 size= 282kB time=00:00:03.94 bitrate= 585.7kbits/frame= 3956 fps=710 q=45.0 size= 305kB time=00:00:04.59 bitrate= 543.8kbits/frame= 4358 fps=710 q=46.0 size= 340kB time=00:00:04.71 bitrate= 591.1kbits/frame= 4751 fps=712 q=45.0 size= 362kB time=00:00:05.10 bitrate= 581.3kbits/frame= 5133 fps=713 q=45.0 size= 393kB time=00:00:05.50 bitrate= 584.9kbits/frame= 5510 fps=715 q=45.0 size= 416kB time=00:00:05.89 bitrate= 578.5kbits/frame= 5880 fps=715 q=45.0 size= 448kB time=00:00:06.24 bitrate= 587.6kbits/frame= 6250 fps=715 q=45.0 size= 472kB time=00:00:06.64 bitrate= 582.3kbits/frame= 6651 fps=715 q=45.0 size= 501kB time=00:00:06.98 bitrate= 587.1kbits/frame= 7012 fps=713 q=50.0 size= 524kB time=00:00:07.68 bitrate= 559.0kbits/frame= 7396 fps=714 q=45.0 size= 551kB time=00:00:07.75 bitrate= 582.5kbits/frame= 7771 fps=714 q=47.0 size= 575kB time=00:00:08.10 bitrate= 581.1kbits/frame= 8139 fps=714 q=50.0 size= 604kB time=00:00:08.52 bitrate= 580.8kbits/frame= 8509 fps=715 q=46.0 size= 628kB time=00:00:08.87 bitrate= 580.4kbits/frame= 8885 fps=715 q=46.0 size= 655kB time=00:00:09.19 bitrate= 583.1kbits/frame= 9233 fps=714 q=46.0 size= 677kB time=00:00:09.54 bitrate= 581.2kbits/frame= 9603 fps=714 q=46.0 size= 706kB time=00:00:09.96 bitrate= 580.6kbits/frame= 9975 fps=714 q=46.0 size= 728kB time=00:00:10.65 bitrate= 559.8kbits/frame=10376 fps=715 q=46.0 size= 757kB time=00:00:10.75 bitrate= 577.0kbits/frame=10730 fps=714 q=46.0 size= 780kB time=00:00:11.07 bitrate= 577.1kbits/frame=11090 fps=713 q=47.0 size= 808kB time=00:00:11.42 bitrate= 579.7kbits/frame=11447 fps=713 q=46.0 size= 832kB time=00:00:11.79 bitrate= 578.0kbits/frame=11802 fps=712 q=48.0 size= 858kB time=00:00:12.14 bitrate= 578.5kbits/frame=12181 fps=713 q=46.0 size= 880kB time=00:00:12.51 bitrate= 576.3kbits/frame=12563 fps=713 q=46.0 size= 908kB time=00:00:12.95 bitrate= 573.9kbits/frame=13527 fps=715 q=46.0 size= 960kB time=-577014:-32:-22.-77 bitrate=N/A [mp4 @ 0x3912e00] Starting second pass: moving the moov atom to the beginning of the file
frame=13527 fps=713 q=-1.0 Lsize= 1139kB time=00:00:13.52 bitrate= 689.8kbits/s dup=13036 drop=0
video:863kB audio:107kB subtitle:0 data:0 global headers:0kB muxing overhead 17.479137%
[libx264 @ 0x38fcf40] frame I:55 Avg QP:33.13 size: 6072
[libx264 @ 0x38fcf40] frame P:3409 Avg QP:32.90 size: 95
[libx264 @ 0x38fcf40] frame B:10063 Avg QP:39.74 size: 22
[libx264 @ 0x38fcf40] consecutive B-frames: 0.8% 0.0% 0.0% 99.2%
[libx264 @ 0x38fcf40] mb I I16..4: 25.7% 69.5% 4.8%
[libx264 @ 0x38fcf40] mb P I16..4: 0.2% 0.2% 0.0% P16..4: 1.4% 0.1% 0.4% 0.0% 0.0% skip:97.7%
[libx264 @ 0x38fcf40] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.3% 0.0% 0.0% direct: 0.0% skip:99.7% L0:41.0% L1:58.9% BI: 0.0%
[libx264 @ 0x38fcf40] 8x8 transform intra:67.9% inter:94.6%
[libx264 @ 0x38fcf40] direct mvs spatial:86.6% temporal:13.4%
[libx264 @ 0x38fcf40] coded y,uvDC,uvAC intra: 36.1% 36.9% 1.7% inter: 0.1% 0.1% 0.0%
[libx264 @ 0x38fcf40] i16 v,h,dc,p: 32% 27% 9% 31%
[libx264 @ 0x38fcf40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 13% 18% 7% 7% 8% 8% 9% 8%
[libx264 @ 0x38fcf40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 16% 7% 7% 9% 10% 9% 7% 8%
[libx264 @ 0x38fcf40] i8c dc,h,v,p: 73% 14% 9% 4%
[libx264 @ 0x38fcf40] Weighted P-Frames: Y:0.6% UV:0.0%
[libx264 @ 0x38fcf40] ref P L0: 77.5% 12.2% 9.1% 0.9% 0.2% 0.0%
[libx264 @ 0x38fcf40] ref B L0: 86.6% 13.2% 0.2% 0.0%
[libx264 @ 0x38fcf40] ref B L1: 89.8% 10.2%
[libx264 @ 0x38fcf40] kb/s:522.05
</server></server>