Recherche avancée

Médias (91)

Autres articles (73)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8633)

  • Convert .mov to .mp4 and keep alpha channel using FFMPEG

    5 mai 2015, par Mark S.

    I am trying to convert a .mov file that is Quicktime with Alpha Channel to a .mp4 movie. I am using FFMPEG and I can successfully convert the video to a .mp4 video, but I loose the alpha channel.

    Here is the command I am running :
    ffmpeg -i BLUE_LOWER_THIRD.mov -vcodec libx264 -vpre medium blue_lower_third.mp4

    I am running this on Ubuntu 11.10. Here is the information about my install of ffmpeg.

    ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
     built on Jan  4 2012 16:08:51 with gcc 4.6.1
     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
     avutil      configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     avcodec     configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     avformat    configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     libavutil    51.  7. 0 / 51.  7. 0
     libavcodec   53.  6. 0 / 53.  6. 0
     libavformat  53.  3. 0 / 53.  3. 0
     libavdevice  53.  0. 0 / 53.  0. 0
     libavfilter   2.  4. 0 /  2.  4. 0
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  52.  0. 0 / 52.  0. 0

    Is it possible to have alpha channel in an mp4 file ? If so, how do you do it with FFMPEG ?

    Edit : This is the output from running the command.

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BLUE_LOWER_THIRD.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2010-12-21 10:36:51
     Duration: 00:00:15.00, start: 0.000000, bitrate: 8050 kb/s
       Stream #0.0(eng): Video: png, bgra, 1920x1080, 8043 kb/s, PAR 1920:1920 DAR 16:9, 30 fps, 30 tbr, 30 tbn, 30 tbc
       Metadata:
         creation_time   : 2010-12-21 10:36:51
       Stream #0.1(eng): Data: tmcd / 0x64636D74, 0 kb/s
       Metadata:
         creation_time   : 2010-12-21 10:39:48
    File 'blue_lower_third.mp4' already exists. Overwrite ? [y/N] y
    Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p'
    [buffer @ 0x7e3d80] w:1920 h:1080 pixfmt:bgra
    [ffsink @ 0x7edda0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x7fc480] w:1920 h:1080 fmt:bgra -> w:1920 h:1080 fmt:yuv420p flags:0x4
    [libx264 @ 0x7fcf20] using SAR=1/1
    [libx264 @ 0x7fcf20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64
    [libx264 @ 0x7fcf20] profile High, level 4.0
    [libx264 @ 0x7fcf20] 264 - core 116 r2042 178455c - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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=1 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=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.41 aq=1:1.00
    Output #0, mp4, to 'blue_lower_third.mp4':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2010-12-21 10:36:51
       encoder         : Lavf53.3.0
       Stream #0.0(eng): Video: libx264, yuv420p, 1920x1080 [PAR 1920:1920 DAR 16:9], q=0-69, 200 kb/s, 30 tbn, 30 tbc
       Metadata:
         creation_time   : 2010-12-21 10:36:51
    Stream mapping:
     Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    frame=  450 fps= 11 q=9.0 Lsize=      83kB time=14.93 bitrate=  45.7kbits/s    its/s    
    video:75kB audio:0kB global headers:0kB muxing overhead 10.287784%
    frame I:2     Avg QP:18.30  size:  2584
    [libx264 @ 0x7fcf20] frame P:118   Avg QP:16.22  size:   310
    [libx264 @ 0x7fcf20] frame B:330   Avg QP:16.75  size:   106
    [libx264 @ 0x7fcf20] consecutive B-frames:  1.8%  0.9%  1.3% 96.0%
    [libx264 @ 0x7fcf20] mb I  I16..4: 49.7% 50.0%  0.3%
    [libx264 @ 0x7fcf20] mb P  I16..4:  0.5%  0.0%  0.0%  P16..4:  0.3%  0.0%  0.0%  0.0%      0.0%    skip:99.0%
    [libx264 @ 0x7fcf20] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.3%  0.0%  0.0%  direct: 0.0%  skip:99.6%  L0:37.2% L1:62.6% BI: 0.2%
    [libx264 @ 0x7fcf20] final ratefactor: 9.32
    [libx264 @ 0x7fcf20] 8x8 transform intra:38.0% inter:56.1%
    [libx264 @ 0x7fcf20] coded y,uvDC,uvAC intra: 0.9% 4.2% 2.9% inter: 0.0% 0.1% 0.0%
    [libx264 @ 0x7fcf20] i16 v,h,dc,p: 64% 32%  1%  3%
    [libx264 @ 0x7fcf20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  2% 97%  0%  1%  0%  0%  0%  0%
    [libx264 @ 0x7fcf20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  5% 60% 23%  2%  6%  1%  1%  1%  2%
    [libx264 @ 0x7fcf20] i8c dc,h,v,p: 86% 13%  1%  0%
    [libx264 @ 0x7fcf20] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fcf20] ref P L0: 79.4%  2.1% 13.2%  5.2%
    [libx264 @ 0x7fcf20] ref B L0: 61.1% 37.7%  1.2%
    [libx264 @ 0x7fcf20] ref B L1: 92.3%  7.7%
    [libx264 @ 0x7fcf20] kb/s:40.85
  • Creating dnxhd mov with ffmpeg giving errors

    26 juillet 2012, par Jared Glass

    I'm trying to make a create a dnxhd mov with ffmpeg but can't seem to get the codec working.

    I've created a 1920x1080 .png to convert into .mov format

    My code : (python)

    ffmpeg = "C:\\Users\\jared.glass\\Desktop\\mov_test\\ffmpeg_2012_04_02.exe"
    images = "C:\\Users\\jared.glass\\Desktop\\mov_test\\Untitled.png"
    output = "C:\\Users\\jared.glass\\Desktop\\mov_test\\dnx_hd_test.mov"
    os.system(ffmpeg + " -i " + images + " -r 24 -s 1920x1080 -vcodec dnxhd -b:v 120m -an -y " + output )

    I get the following error :

    Incompatible pixel format 'rgb24' for codec 'dnxhd', auto-selecting format 'yuv4
    22p10le'
    [buffer @ 0000000001D0D950] w:1920 h:1080 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_
    param :
    [buffersink @ 0000000001D0DB50] auto-inserting filter 'auto-inserted scale 0' be
    tween the filter 'src' and the filter 'out'
    [scale @ 0000000001D0DDE0] w:1920 h:1080 fmt:rgb24 sar:0/1 -> w:1920 h:1080 fmt :
    yuv422p10le sar:0/1 flags:0x4
    [dnxhd @ 0000000001D14740] video parameters incompatible with DNxHD
    Output #0, mov, to 'C :\Users\jared.glass\Desktop\mov_test\dnx_hd_test.mov' :
    Stream #0:0 : Video : dnxhd, yuv422p10le, 1920x1080, q=2-1024, 90k tbn, 24 tbc

    Stream mapping :
    Stream #0:0 -> #0:0 (png -> dnxhd)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters
    such as bit_rate, rate, width or height

    Anyone have any ideas how to get this working ?

  • FFMPEG av_interleaved_write_frame() : Operation not permitted

    20 octobre 2014, par camslaz

    Ok I receiving a ’av_interleaved_write_frame() : Operation not permitted’ error while trying to encode an MOV file. Firstly I need to outline the conditions behind it.

    I am encoding 12 different files of different resolution sizes and format types via a PHP script that runs on cron. Basically it grabs a 250mb HD MOV file and encodes it in 4 different frame sizes as MOV, MP4 and WMV file types.

    Now the script takes over 10mins to run and encode each of the files for the 250mb input file. I am outputting the processing times and as soon as the time on the script hits 10mins FFMPEG crashes and returns "av_interleaved_write_frame() : Operation not permitted" for the current file being encoded and all other remaining files yet to be encoded.

    If the input videos is 150MB the total time the script runs for is under 10mins so it encodes all of the videos fine. Additionally if I run the FFMPEG command on the individual file that it fails on for the 250mb file it encodes the file with no issues.

    From doing to research on the error "av_interleaved_write_frame()" it seems it is related to timestamps of what I understand to be of the input file. But in saying that it doesn’t seem to be the case in my instance because I can encode the file with no problem if I do it individually.

    example ffmpeg command

    ffmpeg -i GVowbt3vsrXL.mov -s 1920x1080 -sameq -vf "unsharp" -y GVowbt3vsrXL_4.wmv

    Error output on the failed file at 10mins. Remember there is no issue with the command if I run it by itself it is only when the script hits 10mins.

    'output' =>
        array (
          0 => 'FFmpeg version SVN-r24545, Copyright (c) 2000-2010 the FFmpeg developers',
          1 => '  built on Aug 20 2010 23:32:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)',
          2 => '  configuration: --enable-shared --enable-gpl --enable-pthreads --enable-nonfree --cpu=opteron --extra-cflags=\'-O3 -march=opteron -mtune=opteron\' --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-avfilter --enable-filter=movie --enable-avfilter-lavf --enable-swscale',
          3 => '  libavutil     50.23. 0 / 50.23. 0',
          4 => '  libavcore      0. 1. 0 /  0. 1. 0',
          5 => '  libavcodec    52.84. 1 / 52.84. 1',
          6 => '  libavformat   52.77. 0 / 52.77. 0',
          7 => '  libavdevice   52. 2. 0 / 52. 2. 0',
          8 => '  libavfilter    1.26. 1 /  1.26. 1',
          9 => '  libswscale     0.11. 0 /  0.11. 0',
          10 => 'Input #0, mov,mp4,m4a,3gp,3g2,mj2, from \'/home/hdfootage/public_html/process/VideoEncode/_tmpfiles/GVowbt3vsrXL/GVowbt3vsrXL.mov\':',
          11 => '  Metadata:',
          12 => '    major_brand     : qt',
          13 => '    minor_version   : 537199360',
          14 => '    compatible_brands: qt',
          15 => '  Duration: 00:00:20.00, start: 0.000000, bitrate: 110802 kb/s',
          16 => '    Stream #0.0(eng): Video: mjpeg, yuvj422p, 1920x1080 [PAR 72:72 DAR 16:9], 109386 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc',
          17 => '    Stream #0.1(eng): Audio: pcm_s16be, 44100 Hz, 2 channels, s16, 1411 kb/s',
          18 => '[buffer @ 0xdcd0e0] w:1920 h:1080 pixfmt:yuvj422p',
          19 => '[unsharp @ 0xe00280] auto-inserting filter \'auto-inserted scaler 0\' between the filter \'src\' and the filter \'Filter 0 unsharp\'',
          20 => '[scale @ 0xe005b0] w:1920 h:1080 fmt:yuvj422p -> w:1920 h:1080 fmt:yuv420p flags:0xa0000004',
          21 => '[unsharp @ 0xe00280] effect:sharpen type:luma msize_x:5 msize_y:5 amount:1.00',
          22 => '[unsharp @ 0xe00280] effect:none type:chroma msize_x:0 msize_y:0 amount:0.00',
          23 => 'Output #0, asf, to \'/home/hdfootage/public_html/process/VideoEncode/_tmpfiles/GVowbt3vsrXL/GVowbt3vsrXL_4.wmv\':',
          24 => '  Metadata:',
          25 => '    WM/EncodingSettings: Lavf52.77.0',
          26 => '    Stream #0.0(eng): Video: msmpeg4, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 25 tbc',
          27 => '    Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s',
          28 => 'Stream mapping:',
          29 => '  Stream #0.0 -> #0.0',
          30 => '  Stream #0.1 -> #0.1',
          31 => 'Press [q] to stop encoding',
          32 => '[msmpeg4 @ 0xdccb50] warning, clipping 1 dct coefficients to -127..127',

    Then it errors

    frame=   75 fps=  5 q=1.0 size=   12704kB time=2.90 bitrate=3588 6.0kbits av_interleaved_write_frame(): Operation not permitted',
        )

    Has any anybody encountered this sort of problem before ? It seems to be something to do with the timestamps but only because the script is running for a period longer then 10mins. It maybe related to PHP/Apache config but I don’t know if it is FFMPEG or if it is server config I need to be looking at.