Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (60)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9798)

  • No accelerated colorspace conversion found from yuv420p to argb

    11 juillet, par Zac Chan

    I am a novice at ffmpeg and have recently taken over a code base built by a previous engineer. The FFmpeg code is on an app engine that will edit the videos when they are uploaded.

    


    This code generated a title animation that will later be used as an overlay.

    


    exports.generateTitleAnimation = function(metadata, destPath, options = {}) {
const peeqLogoPath = "/app/assets/peeq-logo.png";
const whiteBarMovPath = "/app/assets/whiteBar.mov";
const titleFontPath = "/app/assets/Sofia-Pro-Black.otf";
const dateStrFontPath = "/app/assets/Sofia-Pro-Medium.otf";
const outputDuration = 5.52;
const src01 = "color=c=white:s=1920x1080:duration=" + outputDuration;
const src02 = "color=c=white@0.0:s=1920x1080:r=120:duration=" + outputDuration;

var dateStrXOffset = "(92";
var filterComplexStr = "[1]";

if (metadata.title) {
    const title = metadata.title.toUpperCase();
    filterComplexStr += "drawtext=fontfile=" + titleFontPath + ":text='" + title + "':x='floor(92*(min((t-1.75)^29,0)+max((t-3.75)^29,0)+1))':y=622+30+2:fontsize=70:fontcolor=black:ft_load_flags=render,";
}
if (metadata.subTitle) {
    const subTitle = metadata.subTitle.toUpperCase();
    filterComplexStr += "drawtext=fontfile=" + titleFontPath + ":text='" + subTitle + "':x='floor(92*(min((t-2.0)^29,0.0)+max((t-3.8)^29,0.0)+1.0))':y=622+184-20-60+9:fontsize=46:fontcolor=black:ft_load_flags=render,";

    dateStrXOffset += "+30*" + (subTitle.length + 1);
}
if (metadata.dateStr) {
    filterComplexStr += "drawtext=fontfile=" + dateStrFontPath + ":text='" + metadata.dateStr + "':x='floor(" + dateStrXOffset + ")*(min((t-2.0)^29,0.0)+max((t-3.8)^29,0.0)+1.0))':y=622+184-20-60+9:fontsize=46:fontcolor=black:ft_load_flags=render,";
}
console.log("generateTitleAnimation generating")
filterComplexStr += "split=10[t01][t02][t03][t04][t05][t06][t07][t08][t09][t10];[t02]setpts=PTS+0.0166/TB[d02];[t03]setpts=PTS+0.033/TB[d03];[t04]setpts=PTS+0.05/TB[d04];[t05]setpts=PTS+0.0666/TB[d05];[t06]setpts=PTS+0.083/TB[d06];[t07]setpts=PTS+0.1/TB[d07];[t08]setpts=PTS+0.1166/TB[d08];[t09]setpts=PTS+0.133/TB[d09];[t10]setpts=PTS+0.15/TB[d10];[d10][d09]blend=average,[d08]blend=darken,[d07]blend=average,[d06]blend=darken,[d05]blend=average,[d04]blend=darken,[d03]blend= average,[d02]blend=darken,[t01]blend=average,colorkey=white:0.2:0.0,perspective=y1=W*0.176327:y3=H+W*0.176327[text01];[2][3]overlay=x=(W-w)*0.5:y=(H-h)*0.5:enable='between(t,0,3.0)'[logo01];[logo01][text01]overlay[outv]";

var args = ["-y", "-f", "lavfi", "-i", src01, "-f", "lavfi", "-i", src02, "-i", whiteBarMovPath, "-i", peeqLogoPath, "-filter_complex", filterComplexStr, "-vcodec", "qtrle", "-crf:v", "28", "-codec:a", "aac", "-ac", "2", "-ar", "44100", "-ab", "128k", "-map", "[outv]", destPath];

//console.log("args", args);
return childProcess.spawn('ffmpeg', args).then((ffResult) => {
    return destPath;
}, (err) => {
    //console.error(new Error("generateTitleAnimation:" + err));
    console.error(err);
    return Promise.reject(err);
});};


    


    destPath is a .mov file

    


    Up till a few days ago, the backend started throwing up this error

    


    stderr: 'ffmpeg version 3.4.2-1~16.04.york0.2 Copyright (c) 2000-2018
 the FFmpeg developers\n built with gcc 5.4.0 (Ubuntu 5.4.0-
6ubuntu1~16.04.9) 20160609\n configuration: --prefix=/usr --extra-
version=\'1~16.04.york0.2\' --toolchain=hardened --
libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --
enable-gpl --disable-stripping --enable-avresample --enable-avisynth --
enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --
enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --
enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-
libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --
enable-librubberband --enable-librsvg --enable-libshine --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-
libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --
enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 -
-enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-
openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --
enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-
libopencv --enable-libx264 --enable-shared\n libavutil 55. 78.100 / 55.
 78.100\n libavcodec 57.107.100 / 57.107.100\n libavformat 57. 83.100 /
 57. 83.100\n libavdevice 57. 10.100 / 57. 10.100\n libavfilter 
6.107.100 / 6.107.100\n libavresample 3. 7. 0 / 3. 7. 0\n libswscale 4.
 8.100 / 4. 8.100\n libswresample 2. 9.100 / 2. 9.100\n libpostproc 54.
 7.100 / 54. 7.100\nInput #0, lavfi, from 
\'color=c=white:s=1920x1080:duration=5.52\':\n Duration: N/A, start: 
0.000000, bitrate: N/A\n Stream #0:0: Video: rawvideo (I420 / 
0x30323449), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25
 tbc\nInput #1, lavfi, from 
\'color=c=white@0.0:s=1920x1080:r=120:duration=5.52\':\n Duration: N/A,
 start: 0.000000, bitrate: N/A\n Stream #1:0: Video: rawvideo (I420 /
 0x30323449), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 120 fps, 120 tbr,
 120 tbn, 120 tbc\nInput #2, mov,mp4,m4a,3gp,3g2,mj2, from 
\'/app/assets/whiteBar.mov\':\n Metadata:\n major_brand : qt \n 
minor_version : 537199360\n compatible_brands: qt \n creation_time : 
2018-04-27T15:55:18.000000Z\n Duration: 00:00:05.52, start: 0.000000, 
bitrate: 54847 kb/s\n Stream #2:0(eng): Video: qtrle (rle / 
0x20656C72), bgra(progressive), 1920x1080, 53326 kb/s, SAR 1:1 DAR 16:9, 60 
fps, 60 tbr, 60 tbn, 60 tbc (default)\n Metadata:\n creation_time : 
2018-04-27T15:55:18.000000Z\n handler_name : Apple Alias Data Handler\n
 encoder : Animation\n timecode : 00:00:00:00\n Stream #2:1(eng): Data:
 none (tmcd / 0x64636D74), 0 kb/s (default)\n Metadata:\n creation_time
 : 2018-04-27T15:55:18.000000Z\n handler_name : Apple Alias Data
 Handler\n timecode : 00:00:00:00\nInput #3, png_pipe, from 
\'/app/assets/peeq-logo.png\':\n Duration: N/A, bitrate: N/A\n Stream 
#3:0: Video: png, rgba(pc), 452x207 [SAR 2834:2834 DAR 452:207], 25 
tbr, 25 tbn, 25 tbc\nCodec AVOption crf (Select the quality for 
constant quality mode) specified for output file #0 (/tmp/972967.mov) 
has not been used for any stream. The most likely reason is either 
wrong type (e.g. a video option with no video streams) or that it is a 
private option of some encoder which was not actually used for any 
stream.\nCodec AVOption b (set bitrate (in bits/s)) specified for 
output file #0 (/tmp/972967.mov) has not been used for any stream. The 
most likely reason is either wrong type (e.g. a video option with no 
video streams) or that it is a private option of some encoder which was 
not actually used for any stream.\nStream mapping:\n Stream #1:0 
(rawvideo) -> drawtext\n Stream #2:0 (qtrle) -> overlay:main\n Stream 
#3:0 (png) -> overlay:overlay\n overlay -> Stream #0:0 (qtrle)\nPress 
[q] to stop, [?] for help\n[swscaler @ 0x56080b828180] No accelerated 
colorspace conversion found from yuv420p to argb.\n[swscaler @ 
0x56080b8b5f40] No accelerated colorspace conversion found from yuva420p to argb.\n',


    


    However, this error only occurs on the app engine. Running nom test on my Mac generates the title perfectly.

    


  • Error while processing the decoded data for stream using ffmpeg

    15 juin 2018, par Robert Smith

    I am using the following command :

    ffmpeg

       -i "video1a.flv"
       -i "video1b.flv"
       -i "video1c.flv"
       -i "video2a.flv"
       -i "video3a.flv"
       -i "video4a.flv"
       -i "video4b.flv"
       -i "video4c.flv"
       -i "video4d.flv"
       -i "video4e.flv"

       -filter_complex

       nullsrc=size=640x480[base];
       [0:v]setpts=PTS-STARTPTS+0.12/TB,scale=320x240[1a];
       [1:v]setpts=PTS-STARTPTS+3469.115/TB,scale=320x240[1b];
       [2:v]setpts=PTS-STARTPTS+7739.299/TB,scale=320x240[1c];
       [5:v]setpts=PTS-STARTPTS+4390.466/TB,scale=320x240[4a];
       [6:v]setpts=PTS-STARTPTS+6803.937/TB,scale=320x240[4b];
       [7:v]setpts=PTS-STARTPTS+8242.005/TB,scale=320x240[4c];
       [8:v]setpts=PTS-STARTPTS+9811.577/TB,scale=320x240[4d];
       [9:v]setpts=PTS-STARTPTS+10765.19/TB,scale=320x240[4e];
       [base][1a]overlay=eof_action=pass[o1];
       [o1][1b]overlay=eof_action=pass[o1];
       [o1][1c]overlay=eof_action=pass:shortest=1[o1];
       [o1][4a]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4b]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4c]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4d]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4e]overlay=eof_action=pass:x=320:y=240;
       [0:a]asetpts=PTS-STARTPTS+0.12/TB,aresample=async=1,pan=1c|c0=c0,apad[a1a];
       [1:a]asetpts=PTS-STARTPTS+3469.115/TB,aresample=async=1,pan=1c|c0=c0,apad[a1b];
       [2:a]asetpts=PTS-STARTPTS+7739.299/TB,aresample=async=1,pan=1c|c0=c0[a1c];
       [3:a]asetpts=PTS-STARTPTS+82.55/TB,aresample=async=1,pan=1c|c0=c0,apad[a2a];
       [4:a]asetpts=PTS-STARTPTS+2687.265/TB,aresample=async=1,pan=1c|c0=c0,apad[a3a];
       [a1a][a1b][a1c][a2a][a3a]amerge=inputs=5

       -c:v libx264 -c:a aac -ac 2 output.mp4

    This is the stream data from ffmpeg :

    Input #0
       Stream #0:0: Video: vp6f, yuv420p, 160x128, 1k tbr, 1k tbn
       Stream #0:1: Audio: nellymoser, 11025 Hz, mono, flt
    Input #1
       Stream #1:0: Audio: nellymoser, 11025 Hz, mono, flt
       Stream #1:1: Video: vp6f, yuv420p, 160x128, 1k tbr, 1k tbn
    Input #2
       Stream #2:0: Audio: nellymoser, 11025 Hz, mono, flt
       Stream #2:1: Video: vp6f, yuv420p, 160x128, 1k tbr, 1k tbn
    Input #3
       Stream #3:0: Audio: nellymoser, 11025 Hz, mono, flt
    Input #4
       Stream #4:0: Audio: nellymoser, 11025 Hz, mono, flt
    Input #5
       Stream #5:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #6
       Stream #6:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #7
       Stream #7:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #8
       Stream #8:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #9
       Stream #9:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Stream mapping:
     Stream #0:0 (vp6f) -> setpts
     Stream #0:1 (nellymoser) -> asetpts
     Stream #1:0 (nellymoser) -> asetpts
     Stream #1:1 (vp6f) -> setpts
     Stream #2:0 (nellymoser) -> asetpts
     Stream #2:1 (vp6f) -> setpts
     Stream #3:0 (nellymoser) -> asetpts
     Stream #4:0 (nellymoser) -> asetpts
     Stream #5:0 (vp6f) -> setpts
     Stream #6:0 (vp6f) -> setpts
     Stream #7:0 (vp6f) -> setpts
     Stream #8:0 (vp6f) -> setpts
     Stream #9:0 (vp6f) -> setpts
     overlay -> Stream #0:0 (libx264)
     amerge -> Stream #0:1 (aac)

    This is the error :

    Press [q] to stop, [?] for help

    Enter command: <target>|all <time>|-1 <command>[ <argument>]

    Parse error, at least 3 arguments were expected, only 1 given in string 'ho Oscar'
    [Parsed_amerge_44 @ 0a7238c0] No channel layout for input 1
    [Parsed_amerge_44 @ 0a7238c0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
    [Parsed_pan_27 @ 07681880] Pure channel mapping detected: 0
    [Parsed_pan_31 @ 07681b40] Pure channel mapping detected: 0
    [Parsed_pan_35 @ 0a7232c0] Pure channel mapping detected: 0
    [Parsed_pan_38 @ 0a7234c0] Pure channel mapping detected: 0
    [Parsed_pan_42 @ 0a723740] Pure channel mapping detected: 0
    [libx264 @ 069e8a40] using SAR=1/1
    [libx264 @ 069e8a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 069e8a40] profile High, level 3.0
    [libx264 @ 069e8a40] 264 - core 155 r2901 7d0ff22 - 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=15 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output.mp4':
     Metadata:
       canSeekToEnd    : false
       encoder         : Lavf58.16.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc58.19.102 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 11025 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.19.102 aac
    frame=  200 fps=0.0 q=28.0 size=       0kB time=00:00:07.82 bitrate=   0.0kbits/s speed=15.6x    
    ...  
    frame=30132 fps=497 q=28.0 size=   29952kB time=00:20:05.14 bitrate= 203.6kbits/s speed=19.9x    
    Error while filtering: Cannot allocate memory
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #2:1
    [libx264 @ 069e8a40] frame I:121   Avg QP: 8.83  size:  7052
    [libx264 @ 069e8a40] frame P:7609  Avg QP:18.33  size:  1527
    [libx264 @ 069e8a40] frame B:22367 Avg QP:25.44  size:   112
    [libx264 @ 069e8a40] consecutive B-frames:  0.6%  0.7%  1.0% 97.8%
    [libx264 @ 069e8a40] mb I  I16..4: 75.7% 18.3%  6.0%
    [libx264 @ 069e8a40] mb P  I16..4:  0.3%  0.7%  0.1%  P16..4: 10.6%  3.3%  1.6%  0.0%  0.0%    skip:83.4%
    [libx264 @ 069e8a40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  3.2%  0.2%  0.0%  direct: 0.2%  skip:96.5%  L0:47.7% L1:48.2% BI: 4.0%
    [libx264 @ 069e8a40] 8x8 transform intra:37.4% inter:70.2%
    [libx264 @ 069e8a40] coded y,uvDC,uvAC intra: 38.9% 46.1% 28.7% inter: 1.7% 3.3% 0.1%
    [libx264 @ 069e8a40] i16 v,h,dc,p: 78%  8%  4% 10%
    [libx264 @ 069e8a40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 20% 12%  3%  6%  8%  6%  6%  7%
    [libx264 @ 069e8a40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 22%  9%  4%  6%  7%  5%  5%  4%
    [libx264 @ 069e8a40] i8c dc,h,v,p: 60% 16% 17%  7%
    [libx264 @ 069e8a40] Weighted P-Frames: Y:0.7% UV:0.6%
    [libx264 @ 069e8a40] ref P L0: 65.5% 12.3% 14.2%  8.0%  0.0%
    [libx264 @ 069e8a40] ref B L0: 90.2%  7.5%  2.3%
    [libx264 @ 069e8a40] ref B L1: 96.4%  3.6%
    [libx264 @ 069e8a40] kb/s:99.58
    [aac @ 069e9600] Qavg: 65519.982
    [aac @ 069e9600] 2 frames left in the queue on closing
    Conversion failed!
    </argument></command></time></target>

    I am trying to figure out how to fix these errors :

    Error while filtering: Cannot allocate memory
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #2:1

    Observation #1

    If I run the following command on stream #2:1 by itself :

    ffmpeg -i video1c.flv -vcodec libx264 -acodec aac video1c.mp4

    The files is converted fine with no errors.

    Observation #2

    Running MediaInfo on video1c.flv (stream #2) shows the following :

    Format: Flash Video
    Video Codecs: On2 VP6
    Audio Codecs: Nellymoser

    Any help would be appreciated in resolving this error.

    Update #1

    I have tried splitting the filter graph into two as requested but I receive the same errors :

    Error while filtering: Cannot allocate memory
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #1:1

    However, I did discover something, if I try to bring up stream #1:1 mentioned above (video1b.flv) using VLC Media Player, I can hear the audio file but I cannot see the video and I receive this error message :

    No suitable decoder module:
    VLC Does not support the audio or video format "undf".
    Unfortunately there is no way for you to fix this.

    Update #2

    The above error was with the 32bit version of ffmpeg. I switched to a 64 bit machine and am now running the 64 bit ffmpeg version ffmpeg-20180605-b748772-win64-static.

    Now I no longer receive the following error :

    Error while processing the decoded data for stream #1:1

    But, I have a new error. About an hour into running it, I receive the following error :

    av_interleaved_write_frame(): Cannot allocate memory
    [mp4 @ 000000000433f080] Application provided duration: 3327365388930198318
    / timestamp: 17178820096 is out of range for mov/mp4 format

    I also tried first remuxing all the files as suggested and using those files to run the above command and that did not help. I still get the same error.

  • Anomalie #4144 : Problème fonction autoriser() dans inc/sessions

    1er juin 2018, par Samuel Burjade

    [Fri Jun 01 13:05:41.068366 2018] [:error] [pid 10740] [client 90.16.182.42:61427] PHP Fatal error : Call to undefined function autoriser() in /home/davidof1er/domains/percussion-africaine.com/public_html/v5/ecrire/inc/session.php on line 214

    ...