Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (63)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (8940)

  • Encode flv video with no audio with ffmpeg

    15 avril 2012, par David Bengoa

    I'm making an application that needs to convert videos to webm or mp4, it works great with all videos I've tried, but it fails if I use a flv file with no audio channels.

    $ ffmpeg -i 0986229665-339108519108-86498841039-6078455325.flv out.webm
    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
     WARNING: library configuration mismatch
     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
     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
    [flv @ 0x2184560] Could not find codec parameters (Audio: [0][0][0][0] / 0x0000, 0 channels)
    [flv @ 0x2184560] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from '0986229665-339108519108-86498841039-6078455325.flv':
     Metadata:
       audiocodecid    : -1
       server          : Red5 Server 1.0.0 RC1 $Rev: 4193 $
       duration        : 3
       canSeekToEnd    : true
       videocodecid    : 2
     Duration: 00:00:03.02, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: flv, yuv420p, 640x362, 1k tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: [0][0][0][0] / 0x0000, 0 channels
    Incompatible sample format '(null)' for codec 'libvorbis', auto-selecting format 's16'
    [buffer @ 0x21852c0] w:640 h:362 pixfmt:yuv420p
    [libvpx @ 0x2184040] v0.9.6
    [libvorbis @ 0x2185ee0] oggvorbis_encode_init: init_encoder failed
    Output #0, webm, to 'out.webm':
       Stream #0.0: Video: libvpx, yuv420p, 640x362, q=2-31, 200 kb/s, 90k tbn, 1k tbc
       Stream #0.1: Audio: libvorbis, 0 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    If I pass the -an option, it works, but I can't do that because then all videos wouldn't have audio.

    Any ideas ?

  • FFMPEG Unable to Decode Quicktime QDMC Stream (No decoder for stream)

    23 août 2017, par mbmast

    We are using FFMPEG to convert iPhone video to MP4. This requires an AAC decoder which is not included in any binary distributions of FFMPEG (due to licensing issues). The solution is to download the FFMPEG source and compile it yourself. I’ve done this, apparently incorrectly, as I cannot decode the audio stream. I am getting this error :

    /usr/ffmpeg_builds/ffmpeg -y -i /home/domain/public_html/wp-content/uploads/celebs/main/step-2.mov -threads 12 -vcodec libx264 -acodec libfdk_aac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -pass 1 -passlogfile /tmp/ffmpeg-passes57a054ee917c4ahl3t/pass-57a054ee91965 /home/domain/public_html/wp-content/uploads/celebs/main/testing-5.mp4
    ffmpeg version N-81827-g81bab10 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
     configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libx264
     libavutil      55. 32.100 / 55. 32.100
     libavcodec     57. 60.100 / 57. 60.100
     libavformat    57. 51.102 / 57. 51.102
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 63.100 /  6. 63.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  2.100 /  2.  2.100
     libpostproc    54.  0.100 / 54.  0.100
    Guessed Channel Layout for Input Stream #0.1 : mono
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/domain/public_html/wp-content/uploads/celebs/main/step-2.mov':
     Metadata:
       creation_time   : 1998-11-04T16:40:13.000000Z
     Duration: 00:01:00.83, start: 0.000000, bitrate: 110 kb/s
       Stream #0:0(eng): Video: svq1 (SVQ1 / 0x31515653), yuv410p, 160x120, 90 kb/s, 7.51 fps, 7.50 tbr, 600 tbn, 600 tbc (default)
       Metadata:
         creation_time   : 1998-11-04T16:40:13.000000Z
         handler_name    : Apple Alias Data Handler
         encoder         : Sorenson Video
       Stream #0:1(eng): Audio: qdmc (QDMC / 0x434D4451), 44100 Hz, mono (default)
       Metadata:
         creation_time   : 1998-11-04T16:40:13.000000Z
         handler_name    : Apple Alias Data Handler
    No decoder for stream #0:1, filtering impossible
    Error opening filters!

    I suspect that I failed to compile and include the correct codec library when I built FFMPEG. The problem is I don’t know which library I should have built/included. I haven’t found anything that says to decode QDMC audio in FFMPEG you need the XXXXX library.

    Here’s the complete list of decoders that my build supports :

    /usr/ffmpeg_builds/ffmpeg -decoders
    ffmpeg version N-81827-g81bab10 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
     configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libx264
     libavutil      55. 32.100 / 55. 32.100
     libavcodec     57. 60.100 / 57. 60.100
     libavformat    57. 51.102 / 57. 51.102
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 63.100 /  6. 63.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  2.100 /  2.  2.100
     libpostproc    54.  0.100 / 54.  0.100
    Decoders:
    V..... = Video
    A..... = Audio
    S..... = Subtitle
    .F.... = Frame-level multithreading
    ..S... = Slice-level multithreading
    ...X.. = Codec is experimental
    ....B. = Supports draw_horiz_band
    .....D = Supports direct rendering method 1
    ------
    V....D 012v                 Uncompressed 4:2:2 10-bit
    V....D 4xm                  4X Movie
    V....D 8bps                 QuickTime 8BPS video
    V....D aasc                 Autodesk RLE
    VF...D aic                  Apple Intermediate Codec
    V....D alias_pix            Alias/Wavefront PIX image
    V....D amv                  AMV Video
    V....D anm                  Deluxe Paint Animation
    V....D ansi                 ASCII/ANSI art
    VF...D apng                 APNG (Animated Portable Network Graphics) image
    V....D asv1                 ASUS V1
    V....D asv2                 ASUS V2
    V....D aura                 Auravision AURA
    V....D aura2                Auravision Aura 2
    V....D avrn                 Avid AVI Codec
    V....D avrp                 Avid 1:1 10-bit RGB Packer
    V....D avs                  AVS (Audio Video Standard) video
    V....D avui                 Avid Meridien Uncompressed
    V....D ayuv                 Uncompressed packed MS 4:4:4:4
    V....D bethsoftvid          Bethesda VID video
    V....D bfi                  Brute Force & Ignorance
    V....D binkvideo            Bink video
    V....D bintext              Binary text
    V....D bmp                  BMP (Windows and OS/2 bitmap)
    V....D bmv_video            Discworld II BMV video
    V....D brender_pix          BRender PIX image
    V....D c93                  Interplay C93
    V....D cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
    V....D cdgraphics           CD Graphics video
    V....D cdxl                 Commodore CDXL video
    VF...D cfhd                 Cineform HD
    V....D cinepak              Cinepak
    V....D cljr                 Cirrus Logic AccuPak
    V....D cllc                 Canopus Lossless Codec
    V....D eacmv                Electronic Arts CMV video (codec cmv)
    V....D cpia                 CPiA video format
    V....D camstudio            CamStudio (codec cscd)
    V....D cyuv                 Creative YUV (CYUV)
    V.S..D dds                  DirectDraw Surface image decoder
    V....D dfa                  Chronomaster DFA
    V.S..D dirac                BBC Dirac VC-2
    VFS..D dnxhd                VC3/DNxHD
    V....D dpx                  DPX (Digital Picture Exchange) image
    V....D dsicinvideo          Delphine Software International CIN video
    V.S..D dvvideo              DV (Digital Video)
    V....D dxa                  Feeble Files/ScummVM DXA
    V....D dxtory               Dxtory
    VFS..D dxv                  Resolume DXV
    V....D escape124            Escape 124
    V....D escape130            Escape 130
    VFS..D exr                  OpenEXR image
    VFS..D ffv1                 FFmpeg video codec #1
    VF..BD ffvhuff              Huffyuv FFmpeg variant
    V.S..D fic                  Mirillis FIC
    V....D flashsv              Flash Screen Video v1
    V....D flashsv2             Flash Screen Video v2
    V....D flic                 Autodesk Animator Flic video
    V...BD flv                  FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (codec flv1)
    VF...D fraps                Fraps
    V....D frwu                 Forward Uncompressed
    V....D g2m                  Go2Meeting
    V....D gif                  GIF (Graphics Interchange Format)
    V....D h261                 H.261
    V...BD h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
    V...BD h263i                Intel H.263
    V...BD h263p                H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
    VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    VFS..D hap                  Vidvox Hap decoder
    VFS..D hevc                 HEVC (High Efficiency Video Coding)
    V....D hnm4video            HNM 4 video
    V....D hq_hqa               Canopus HQ/HQA
    V.S..D hqx                  Canopus HQX
    VF..BD huffyuv              Huffyuv / HuffYUV
    V....D idcinvideo           id Quake II CIN video (codec idcin)
    V....D idf                  iCEDraw text
    V....D iff                  IFF ACBM/ANIM/DEEP/ILBM/PBM/RGB8/RGBN (codec iff_ilbm)
    V....D indeo2               Intel Indeo 2
    V....D indeo3               Intel Indeo 3
    V....D indeo4               Intel Indeo Video Interactive 4
    V....D indeo5               Intel Indeo Video Interactive 5
    V....D interplayvideo       Interplay MVE video
    VFS..D jpeg2000             JPEG 2000
    V....D jpegls               JPEG-LS
    V....D jv                   Bitmap Brothers JV video
    V....D kgv1                 Kega Game Video
    V....D kmvc                 Karl Morton's video codec
    VF...D lagarith             Lagarith lossless
    V....D loco                 LOCO
    V....D m101                 Matrox Uncompressed SD
    V....D eamad                Electronic Arts Madcow Video (codec mad)
    VFS..D magicyuv             MagicYUV video
    VF...D mdec                 Sony PlayStation MDEC (Motion DECoder)
    VF...D mimic                Mimic
    V....D mjpeg                MJPEG (Motion JPEG)
    V....D mjpegb               Apple MJPEG-B
    V....D mmvideo              American Laser Games MM Video
    V....D motionpixels         Motion Pixels video
    V.S.BD mpeg1video           MPEG-1 video
    V.S.BD mpeg2video           MPEG-2 video
    V.S.BD mpegvideo            MPEG-1 video (codec mpeg2video)
    VF..BD mpeg4                MPEG-4 part 2
    V....D msa1                 MS ATC Screen
    V...BD msmpeg4v1            MPEG-4 part 2 Microsoft variant version 1
    V...BD msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
    V...BD msmpeg4              MPEG-4 part 2 Microsoft variant version 3 (codec msmpeg4v3)
    V....D msrle                Microsoft RLE
    V....D mss1                 MS Screen 1
    V....D mss2                 MS Windows Media Video V9 Screen
    V....D msvideo1             Microsoft Video 1
    V....D mszh                 LCL (LossLess Codec Library) MSZH
    V....D mts2                 MS Expression Encoder Screen
    V....D mvc1                 Silicon Graphics Motion Video Compressor 1
    V....D mvc2                 Silicon Graphics Motion Video Compressor 2
    V....D mxpeg                Mobotix MxPEG video
    V....D nuv                  NuppelVideo/RTJPEG
    V....D paf_video            Amazing Studio Packed Animation File Video
    V....D pam                  PAM (Portable AnyMap) image
    V....D pbm                  PBM (Portable BitMap) image
    V....D pcx                  PC Paintbrush PCX image
    V....D pgm                  PGM (Portable GrayMap) image
    V....D pgmyuv               PGMYUV (Portable GrayMap YUV) image
    V....D pictor               Pictor/PC Paint
    VF...D png                  PNG (Portable Network Graphics) image
    V....D ppm                  PPM (Portable PixelMap) image
    V.S..D prores               ProRes
    V.S..D prores_lgpl          Apple ProRes (iCodec Pro) (codec prores)
    V....D ptx                  V.Flash PTX image
    V....D qdraw                Apple QuickDraw
    V....D qpeg                 Q-team QPEG
    V....D qtrle                QuickTime Animation (RLE) video
    V....D r10k                 AJA Kona 10-bit RGB Codec
    V....D r210                 Uncompressed RGB 10-bit
    V..... rawvideo             raw video
    V....D rl2                  RL2 video
    V....D roqvideo             id RoQ video (codec roq)
    V....D rpza                 QuickTime video (RPZA)
    V....D rscc                 innoHeim/Rsupport Screen Capture Codec
    V....D rv10                 RealVideo 1.0
    V....D rv20                 RealVideo 2.0
    VF...D rv30                 RealVideo 3.0
    VF...D rv40                 RealVideo 4.0
    V....D sanm                 LucasArts SANM/Smush video
    V....D screenpresso         Screenpresso
    V....D sgi                  SGI image
    V....D sgirle               Silicon Graphics RLE 8-bit video
    VF...D sheervideo           BitJazz SheerVideo
    V....D smackvid             Smacker video (codec smackvideo)
    V....D smc                  QuickTime Graphics (SMC)
    V..... smvjpeg              SMV JPEG
    V....D snow                 Snow
    V....D sp5x                 Sunplus JPEG (SP5X)
    V....D sunrast              Sun Rasterfile image
    V....D svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
    V...BD svq3                 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
    V....D targa                Truevision Targa image
    V....D targa_y216           Pinnacle TARGA CineWave YUV16
    V....D tdsc                 TDSC
    V....D eatgq                Electronic Arts TGQ video (codec tgq)
    V....D eatgv                Electronic Arts TGV video (codec tgv)
    VF..BD theora               Theora
    V....D thp                  Nintendo Gamecube THP video
    V....D tiertexseqvideo      Tiertex Limited SEQ video
    VF...D tiff                 TIFF image
    V....D tmv                  8088flex TMV
    V....D eatqi                Electronic Arts TQI Video (codec tqi)
    V....D truemotion1          Duck TrueMotion 1.0
    V....D truemotion2          Duck TrueMotion 2.0
    V....D truemotion2rt        Duck TrueMotion 2.0 Real Time
    V....D camtasia             TechSmith Screen Capture Codec (codec tscc)
    V....D tscc2                TechSmith Screen Codec 2
    V....D txd                  Renderware TXD (TeXture Dictionary) image
    V....D ultimotion           IBM UltiMotion (codec ulti)
    VF...D utvideo              Ut Video
    V....D v210                 Uncompressed 4:2:2 10-bit
    V....D v210x                Uncompressed 4:2:2 10-bit
    V....D v308                 Uncompressed packed 4:4:4
    V....D v408                 Uncompressed packed QT 4:4:4:4
    V....D v410                 Uncompressed 4:4:4 10-bit
    V....D vb                   Beam Software VB
    VF...D vble                 VBLE Lossless Codec
    V....D vc1                  SMPTE VC-1
    V....D vc1image             Windows Media Video 9 Image v2
    V....D vcr1                 ATI VCR1
    V....D xl                   Miro VideoXL (codec vixl)
    V....D vmdvideo             Sierra VMD video
    V....D vmnc                 VMware Screen Codec / VMware Video
    VF..BD vp3                  On2 VP3
    V....D vp5                  On2 VP5
    V....D vp6                  On2 VP6
    V.S..D vp6a                 On2 VP6 (Flash version, with alpha channel)
    V....D vp6f                 On2 VP6 (Flash version)
    V....D vp7                  On2 VP7
    VFS..D vp8                  On2 VP8
    VF...D vp9                  Google VP9
    VF...D webp                 WebP image
    V...BD wmv1                 Windows Media Video 7
    V...BD wmv2                 Windows Media Video 8
    V....D wmv3                 Windows Media Video 9
    V....D wmv3image            Windows Media Video 9 Image
    V....D wnv1                 Winnov WNV1
    V....D vqavideo             Westwood Studios VQA (Vector Quantized Animation) video (codec ws_vqa)
    V....D xan_wc3              Wing Commander III / Xan
    V....D xan_wc4              Wing Commander IV / Xxan
    V....D xbin                 eXtended BINary text
    V....D xbm                  XBM (X BitMap) image
    V..... xface                X-face image
    V....D xwd                  XWD (X Window Dump) image
    V....D y41p                 Uncompressed YUV 4:1:1 12-bit
    V....D ylc                  YUY2 Lossless Codec
    V..... yop                  Psygnosis YOP Video
    V....D yuv4                 Uncompressed packed 4:2:0
    V....D zerocodec            ZeroCodec Lossless Video
    V....D zlib                 LCL (LossLess Codec Library) ZLIB
    V....D zmbv                 Zip Motion Blocks Video
    A....D 8svx_exp             8SVX exponential
    A....D 8svx_fib             8SVX fibonacci
    A....D aac                  AAC (Advanced Audio Coding)
    A....D aac_fixed            AAC (Advanced Audio Coding) (codec aac)
    A....D libfdk_aac           Fraunhofer FDK AAC (codec aac)
    A....D aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
    A....D ac3                  ATSC A/52A (AC-3)
    A....D ac3_fixed            ATSC A/52A (AC-3) (codec ac3)
    A....D adpcm_4xm            ADPCM 4X Movie
    A....D adpcm_adx            SEGA CRI ADX ADPCM
    A....D adpcm_afc            ADPCM Nintendo Gamecube AFC
    A....D adpcm_aica           ADPCM Yamaha AICA
    A....D adpcm_ct             ADPCM Creative Technology
    A....D adpcm_dtk            ADPCM Nintendo Gamecube DTK
    A....D adpcm_ea             ADPCM Electronic Arts
    A....D adpcm_ea_maxis_xa    ADPCM Electronic Arts Maxis CDROM XA
    A....D adpcm_ea_r1          ADPCM Electronic Arts R1
    A....D adpcm_ea_r2          ADPCM Electronic Arts R2
    A....D adpcm_ea_r3          ADPCM Electronic Arts R3
    A....D adpcm_ea_xas         ADPCM Electronic Arts XAS
    A....D g722                 G.722 ADPCM (codec adpcm_g722)
    A....D g726                 G.726 ADPCM (codec adpcm_g726)
    A....D g726le               G.726 ADPCM little-endian (codec adpcm_g726le)
    A....D adpcm_ima_amv        ADPCM IMA AMV
    A....D adpcm_ima_apc        ADPCM IMA CRYO APC
    A....D adpcm_ima_dat4       ADPCM IMA Eurocom DAT4
    A....D adpcm_ima_dk3        ADPCM IMA Duck DK3
    A....D adpcm_ima_dk4        ADPCM IMA Duck DK4
    A....D adpcm_ima_ea_eacs    ADPCM IMA Electronic Arts EACS
    A....D adpcm_ima_ea_sead    ADPCM IMA Electronic Arts SEAD
    A....D adpcm_ima_iss        ADPCM IMA Funcom ISS
    A....D adpcm_ima_oki        ADPCM IMA Dialogic OKI
    A....D adpcm_ima_qt         ADPCM IMA QuickTime
    A....D adpcm_ima_rad        ADPCM IMA Radical
    A....D adpcm_ima_smjpeg     ADPCM IMA Loki SDL MJPEG
    A....D adpcm_ima_wav        ADPCM IMA WAV
    A....D adpcm_ima_ws         ADPCM IMA Westwood
    A....D adpcm_ms             ADPCM Microsoft
    A....D adpcm_mtaf           ADPCM MTAF
    A....D adpcm_psx            ADPCM Playstation
    A....D adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
    A....D adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
    A....D adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
    A....D adpcm_swf            ADPCM Shockwave Flash
    A....D adpcm_thp            ADPCM Nintendo THP
    A....D adpcm_thp_le         ADPCM Nintendo THP (little-endian)
    A....D adpcm_vima           LucasArts VIMA audio
    A....D adpcm_xa             ADPCM CDROM XA
    A....D adpcm_yamaha         ADPCM Yamaha
    AF...D alac                 ALAC (Apple Lossless Audio Codec)
    A....D amrnb                AMR-NB (Adaptive Multi-Rate NarrowBand) (codec amr_nb)
    A....D amrwb                AMR-WB (Adaptive Multi-Rate WideBand) (codec amr_wb)
    A....D ape                  Monkey's Audio
    A....D atrac1               ATRAC1 (Adaptive TRansform Acoustic Coding)
    A....D atrac3               ATRAC3 (Adaptive TRansform Acoustic Coding 3)
    A....D atrac3plus           ATRAC3+ (Adaptive TRansform Acoustic Coding 3+) (codec atrac3p)
    A....D on2avc               On2 Audio for Video Codec (codec avc)
    A....D binkaudio_dct        Bink Audio (DCT)
    A....D binkaudio_rdft       Bink Audio (RDFT)
    A....D bmv_audio            Discworld II BMV audio
    A....D comfortnoise         RFC 3389 comfort noise generator
    A....D cook                 Cook / Cooker / Gecko (RealAudio G2)
    A..... dsd_lsbf             DSD (Direct Stream Digital), least significant bit first
    A..... dsd_lsbf_planar      DSD (Direct Stream Digital), least significant bit first, planar
    A..... dsd_msbf             DSD (Direct Stream Digital), most significant bit first
    A..... dsd_msbf_planar      DSD (Direct Stream Digital), most significant bit first, planar
    A....D dsicinaudio          Delphine Software International CIN audio
    A....D dss_sp               Digital Speech Standard - Standard Play mode (DSS SP)
    A....D dst                  DST (Digital Stream Transfer)
    A....D dca                  DCA (DTS Coherent Acoustics) (codec dts)
    A....D dvaudio              Ulead DV Audio
    A....D eac3                 ATSC A/52B (AC-3, E-AC-3)
    A....D evrc                 EVRC (Enhanced Variable Rate Codec)
    AF...D flac                 FLAC (Free Lossless Audio Codec)
    A....D g723_1               G.723.1
    A....D g729                 G.729
    A....D gsm                  GSM
    A....D gsm_ms               GSM Microsoft variant
    A....D iac                  IAC (Indeo Audio Coder)
    A....D imc                  IMC (Intel Music Coder)
    A....D interplay_dpcm       DPCM Interplay
    A....D interplayacm         Interplay ACM
    A....D mace3                MACE (Macintosh Audio Compression/Expansion) 3:1
    A....D mace6                MACE (Macintosh Audio Compression/Expansion) 6:1
    A....D metasound            Voxware MetaSound
    A....D mlp                  MLP (Meridian Lossless Packing)
    A....D mp1                  MP1 (MPEG audio layer 1)
    A....D mp1float             MP1 (MPEG audio layer 1) (codec mp1)
    A....D mp2                  MP2 (MPEG audio layer 2)
    A....D mp2float             MP2 (MPEG audio layer 2) (codec mp2)
    A....D mp3                  MP3 (MPEG audio layer 3)
    A....D mp3float             MP3 (MPEG audio layer 3) (codec mp3)
    A....D mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3)
    A....D mp3adufloat          ADU (Application Data Unit) MP3 (MPEG audio layer 3) (codec mp3adu)
    A....D mp3on4               MP3onMP4
    A....D mp3on4float          MP3onMP4 (codec mp3on4)
    A....D als                  MPEG-4 Audio Lossless Coding (ALS) (codec mp4als)
    A....D mpc7                 Musepack SV7 (codec musepack7)
    A....D mpc8                 Musepack SV8 (codec musepack8)
    A....D nellymoser           Nellymoser Asao
    A....D opus                 Opus
    A....D paf_audio            Amazing Studio Packed Animation File Audio
    A....D pcm_alaw             PCM A-law / G.711 A-law
    A....D pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
    A....D pcm_dvd              PCM signed 16|20|24-bit big-endian for DVD media
    A....D pcm_f32be            PCM 32-bit floating point big-endian
    A....D pcm_f32le            PCM 32-bit floating point little-endian
    A....D pcm_f64be            PCM 64-bit floating point big-endian
    A....D pcm_f64le            PCM 64-bit floating point little-endian
    A....D pcm_lxf              PCM signed 20-bit little-endian planar
    A....D pcm_mulaw            PCM mu-law / G.711 mu-law
    A....D pcm_s16be            PCM signed 16-bit big-endian
    A....D pcm_s16be_planar     PCM signed 16-bit big-endian planar
    A....D pcm_s16le            PCM signed 16-bit little-endian
    A....D pcm_s16le_planar     PCM signed 16-bit little-endian planar
    A....D pcm_s24be            PCM signed 24-bit big-endian
    A....D pcm_s24daud          PCM D-Cinema audio signed 24-bit
    A....D pcm_s24le            PCM signed 24-bit little-endian
    A....D pcm_s24le_planar     PCM signed 24-bit little-endian planar
    A....D pcm_s32be            PCM signed 32-bit big-endian
    A....D pcm_s32le            PCM signed 32-bit little-endian
    A....D pcm_s32le_planar     PCM signed 32-bit little-endian planar
    A....D pcm_s64be            PCM signed 64-bit big-endian
    A....D pcm_s64le            PCM signed 64-bit little-endian
    A....D pcm_s8               PCM signed 8-bit
    A....D pcm_s8_planar        PCM signed 8-bit planar
    A....D pcm_u16be            PCM unsigned 16-bit big-endian
    A....D pcm_u16le            PCM unsigned 16-bit little-endian
    A....D pcm_u24be            PCM unsigned 24-bit big-endian
    A....D pcm_u24le            PCM unsigned 24-bit little-endian
    A....D pcm_u32be            PCM unsigned 32-bit big-endian
    A....D pcm_u32le            PCM unsigned 32-bit little-endian
    A....D pcm_u8               PCM unsigned 8-bit
    A....D pcm_zork             PCM Zork
    A....D qcelp                QCELP / PureVoice
    A....D qdm2                 QDesign Music Codec 2
    A....D real_144             RealAudio 1.0 (14.4K) (codec ra_144)
    A....D real_288             RealAudio 2.0 (28.8K) (codec ra_288)
    A....D ralf                 RealAudio Lossless
    A....D roq_dpcm             DPCM id RoQ
    A....D s302m                SMPTE 302M
    A....D sdx2_dpcm            DPCM Squareroot-Delta-Exact
    A....D shorten              Shorten
    A....D sipr                 RealAudio SIPR / ACELP.NET
    A....D smackaud             Smacker audio (codec smackaudio)
    A....D sol_dpcm             DPCM Sol
    A..X.D sonic                Sonic
    AF...D tak                  TAK (Tom's lossless Audio Kompressor)
    A....D truehd               TrueHD
    A....D truespeech           DSP Group TrueSpeech
    AF...D tta                  TTA (True Audio)
    A....D twinvq               VQF TwinVQ
    A....D vmdaudio             Sierra VMD audio
    A....D vorbis               Vorbis
    A....D wavesynth            Wave synthesis pseudo-codec
    AF...D wavpack              WavPack
    A....D ws_snd1              Westwood Audio (SND1) (codec westwood_snd1)
    A....D wmalossless          Windows Media Audio Lossless
    A....D wmapro               Windows Media Audio 9 Professional
    A....D wmav1                Windows Media Audio 1
    A....D wmav2                Windows Media Audio 2
    A....D wmavoice             Windows Media Audio Voice
    A....D xan_dpcm             DPCM Xan
    A....D xma1                 Xbox Media Audio 1
    A....D xma2                 Xbox Media Audio 2
    S..... ssa                  ASS (Advanced SubStation Alpha) subtitle (codec ass)
    S..... ass                  ASS (Advanced SubStation Alpha) subtitle
    S..... dvbsub               DVB subtitles (codec dvb_subtitle)
    S..... dvdsub               DVD subtitles (codec dvd_subtitle)
    S..... cc_dec               Closed Caption (EIA-608 / CEA-708) Decoder (codec eia_608)
    S..... pgssub               HDMV Presentation Graphic Stream subtitles (codec hdmv_pgs_subtitle)
    S..... jacosub              JACOsub subtitle
    S..... microdvd             MicroDVD subtitle
    S..... mov_text             3GPP Timed Text subtitle
    S..... mpl2                 MPL2 subtitle
    S..... pjs                  PJS subtitle
    S..... realtext             RealText subtitle
    S..... sami                 SAMI subtitle
    S..... stl                  Spruce subtitle format
    S..... srt                  SubRip subtitle (codec subrip)
    S..... subrip               SubRip subtitle
    S..... subviewer            SubViewer subtitle
    S..... subviewer1           SubViewer1 subtitle
    S..... text                 Raw text subtitle
    S..... vplayer              VPlayer subtitle
    S..... webvtt               WebVTT subtitle
    S..... xsub                 XSUB

    Any idea what I did wrong when building FFMPEG ?

    Here’s a link to the video file that caused the problem : step-2.mov

  • where to put the watermark png file in this code ?

    15 août 2017, par asif

    this is a line from ffmpeg video converter php script ;

    $ffmpeg." -i ".$video_to_convert." -vcodec flv -f flv -r 30 -b ".$quality."-ab 128000 -ar".$audio." -s ".$size." ".$converted_vids.$name.".".$new_format."

    where :

    .$video_to_convert. = input file

    .$converted_vids.$name. = output file

    .$new_format. ; = file extention format

    now i want to add watermark.png file, if i put any where i got error conversion
    as i added the line logo.png -filter_complex 'overlay in video quality line, i got error

    Error ;

    ffmpeg version N-71954-gbc6f84f Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
     configuration: --prefix=/usr --enable-version3 --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-postproc --enable-nonfree --enable-pthreads --enable-x11grab --enable-libfaac --enable-libopenjpeg --enable-zlib --disable-doc
     libavutil      54. 23.101 / 54. 23.101
     libavcodec     56. 37.101 / 56. 37.101
     libavformat    56. 31.102 / 56. 31.102
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'uploaded/1502801111_21.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.31.102
     Duration: 00:02:27.32, start: 0.023220, bitrate: 635 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 476 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 151 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Please use -b:a or -b:v, -b is ambiguous
    Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0

    This is index.php file scipt of conversion :

       v<?php include("templates/header.php");?>

    <div>



    &lt;?php

    require_once('languages/en.php');
    include ("includes/settings.php");
    include("includes/functions.php");
    include("includes/LIB_parse.php");
    include("classes/other.php");
    cron(); // to run cron job to delete all files
    if(isset($_POST['uploader_0_name']) or isset ($_GET['uploaded_name']))
       {
       if(isset($_POST['uploader_0_name']))
       {
    list($_SESSION['original_name'], $ext) = explode('.',$_POST['uploader_0_name']);
    }else{
    $fullname=$_GET['uploaded_name'];
    }
    if(isset($_POST['uploader_0_name']))
       {
    list($_SESSION['original_name'], $ext) = explode('.',$_POST['uploader_0_name']);
    }else{
    list($_SESSION['original_name'], $ext) = explode('.',$_GET['uploaded_name']);
    $_SESSION['original_name']= return_between($_GET['uploaded_name'], '_', "$ext", 'EXCL') ;
    $_SESSION['original_name']= str_replace(".","",$_SESSION['original_name']);
    }
    if(isset($_POST['uploader_0_name']))
       {  
    $fullname=  $_POST['uploader_0_tmpname'];
    }else{
    $fullname=$_GET['uploaded_name'];
    }
    $ext= pathinfo($fullname, PATHINFO_EXTENSION);
    $_SESSION['name']=RemoveExtension($fullname);
    $store_dir="uploaded/";
    $_SESSION['converted_vids']=$converted_vids;
    $_SESSION['temp_dir']=$store_dir;
    // if those directotires don't exist - create them and give them read/write permissions
    if(!is_dir($store_dir)) mkdir($store_dir, 0777);
    if(!is_dir($converted_vids)) mkdir($converted_vids, 0777);
    $extension = substr($fullname, strrpos($fullname, "."));
    $extension = strtolower($extension);
    $video_to_convert=$store_dir.$_SESSION['name'];
    $_SESSION['video_to_convert']=$video_to_convert;
    $_SESSION['extension']=$extension;
    /*******************************
    check extenxions
    ***************************************************/    
                     if (!in_array($ext, $allowedExtensions))
                     {
                       echo '<div style="text-align:center"><strong>'.$ext."</strong><br /> is an invalid file type!<br />Supported files are:<br /><strong>";
                       foreach ($allowedExtensions as $value) { echo $value . "<br />"; }
                       echo "</strong><br />";
           echo "<a href="http://stackoverflow.com/feeds/tag/\&#034;index.php\&#034;">"."<img src="http://stackoverflow.com/feeds/tag/\&#034;images/red-back.png\&#034;" border="\&quot;0\&quot;" style='max-width: 300px; max-height: 300px' /></a></div>";
            include("templates/footer.php");
                          exit;
                     }


               ?>

               <center>
    <form action="index.php" method="post" target="_self">
                   <br />
                                   <fieldset>
                               <legend class="show_legend">Convert To</legend>

                   <div class="radio_buttons">
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/flv.jpg" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" class="blue_font" value="flv" />
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/mp4.jpg" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" value="mp4" />
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/wmv.png" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" value="wmv" />
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/avi.png" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" value="avi" />
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/mp3.png" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" value="mp3" />
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/ogg.png" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" value="ogg" />
                   <img alt="" src="http://stackoverflow.com/feeds/tag/images/webm.png" class="format_button" style='max-width: 300px; max-height: 300px' />
                   <input type="radio" value="webm" />
                   </div>
                   </fieldset>
                       <fieldset>
                               <legend class="show_legend">Optional settings</legend>

                   <div class="radio_buttons" style="display:inline;padding:10px">
                   <br />Video quality:
                   <select class="radio_buttons" disabled="disabled">
                     <option value="2000000">high</option>
                     <option value="logo.png -filter_complex 'overlay' ">medium</option>

                     <option value="-i seen.png \-filter_complex '[0:v][1:v]overlay=10:10:enable=between(t\,15\,25)' -c:v libx264 -pix_fmt yuv420p -movflags faststart">Seen</option>
                     <option value="-i logo2.png \-filter_complex '[0:v][1:v]overlay=10:10:enable=between(t\,10\,20)'">HD Watermark</option>
                     <option value="-i logo.png -filter_complex 'overlay'">Watermark</option>
                     <option value="-vf drawtext='fontsize=20:y=h-line_h-10:x=(2*n)-tw:fontfile='op.ttf':text='DesiBombs.com'' -c:v libx264 -pix_fmt yuv420p -movflags faststart">Watermark</option>
                   </select>
                   </div>

                   <div class="radio_buttons" style="display:inline;padding:10px">Audio quality:
                   <select class="radio_buttons" disabled="disabled">
                     <option value="44100">high</option>
                     <option value="22050">medium</option>
                     <option value="11025">low</option>
                   </select>




                   <div class="radio_buttons" style="display:inline;padding:10px">Video size:
                   <select class="radio_buttons" disabled="disabled">
                     <option value="320x240">320x240</option>
                     <option value="512x384" selected="selected">512x384</option>
                     <option value="640x360">640x360</option>
                     <option value="854x480">854x480</option>
                     <option value="1280x720">1280x720</option>
                   </select>
                   </div>

                   </div></fieldset>
                   <div class="radio_buttons">


                      <input type="submit" disabled="disabled" value="" style="display:none" />
                   </div>
     

     </form></center>
    &lt;?php
       }
       elseif(isset($_POST['type']))
           {


           $new_format=htmlspecialchars($_POST['type']); // read output format from form
           $name=$_SESSION['name'];
           //$_SESSION['extension'];
           $video_to_convert=$store_dir.$_SESSION['name'].$_SESSION['extension'];


           if (isset($_POST['size'])) {$size=$_POST['size'];}
           if (isset($_POST['quality'])) {$quality=$_POST['quality'];}
           if (isset($_POST['audio'])) {$audio=$_POST['audio'];}

           if($new_format=="webm" &amp;&amp; $audio=="11025"){$audio="22050";$new_format="webm"; }// for webm  and ogg audio can not be 11050
           if($new_format=="ogg" &amp;&amp; $audio=="11025"){$audio="22050"; $new_format="ogg"; }// for webm  and ogg audio can not be 11050

           $_SESSION['type']=$new_format;


           if($new_format=="flv"){ $call=$ffmpeg." -i ".$video_to_convert." -vcodec flv -f flv -r 30 -b ".$quality."-ab 128000 -ar".$audio." -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}


       if($new_format=="avi"){ $call=$ffmpeg." -i ".$video_to_convert."  -vcodec mjpeg -f avi -acodec libmp3lame -b ".$quality." -s ".$size." -r 30 -g 12 -qmin 3 -qmax 13 -ab 224 -ar ".$audio." -ac 2 ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}

       if($new_format=="mp3"){ $call=$ffmpeg." -i ".$video_to_convert." -vn -acodec libmp3lame -ac 2 -ab 128000 -ar ".$audio."  ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}

       if($new_format=="mp4"){ $call=$ffmpeg." -i ".$video_to_convert." -vf logo.png -vcodec mpeg4 -r 30 -b ".$quality." -acodec libmp3lame -ab 126000 -ar ".$audio." -ac 2 -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}

       if($new_format=="wmv"){ $call=$ffmpeg." -i ".$video_to_convert." -vcodec wmv1 -r 30 -b ".$quality." -acodec wmav2 -ab 128000 -ar ".$audio." -ac 2 -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}

       if($new_format=="ogg"){ $call=$ffmpeg." -i ".$video_to_convert." -vcodec libtheora -r 30 -b ".$quality." -acodec libvorbis -ab 128000   -ar ".$audio." -ac 2 -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}

       if($new_format=="webm"){ $call=$ffmpeg." -i ".$video_to_convert." -vcodec libvpx  -r 30 -b ".$quality." -acodec libvorbis -ab 128000   -ar ".$audio." -ac 2 -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}


    /* START CONVERTING The Video */

       require_once("includes/ffmpeg_cmd.php");

       $convert = (popen($convert_call, "r"));

       pclose($convert);
       flush();    
    // define sessions


       $_SESSION['dest_file']=$converted_vids.$name.".".$new_format;

        echo "<code class="echappe-js">&lt;script&gt;\n&quot;;<br />
        echo &quot;counter = 5\n&quot;;<br />
         echo &quot;var redirect = 0; \n&quot;;<br />
         echo &quot;$(document).ready(function()\n&quot;;<br />
     echo &quot;{\n&quot;;<br />
       echo &quot;var refreshId = setInterval(function() \n&quot;;<br />
        echo &quot;{\n&quot;;<br />
        echo &quot;if(redirect == 0) \n { \n&quot;;<br />
        echo &quot;$('#timeval').load('progress_bar.php');\n&quot;;<br />
        echo &quot;}\n&quot;;<br />
        echo &quot;else \n&quot;;<br />
        echo &quot;{\n&quot;;<br />
        echo &quot;$('#timeval').load('progress_bar.php?counter='+ counter--);\n&quot;;<br />
        echo &quot;}\n&quot;;<br />
        echo &quot;}, 1000);\n&quot;;<br />
       echo &quot;});\n&quot;;   <br />
       echo &quot;&lt;/script&gt;

    \n" ;

    //
    /************************* for debug *************************************
    echo "

    " ;
        print_r ($_SESSION) ;
        echo "
    " ;
        **********************************************************************************/
    

     ?>

    wait please

    < ?php

    else if(isset($_GET[’finished’]))

    echo "

    " ; if(!isset($_SESSION[’name’])) echo "please convert new video" ;include("templates/footer.php") ; ;exit ; $filepath=$converted_vids."./".$_SESSION[’name’].".".$_SESSION[’type’] ;

    echo " " ;

    require_once"video_duration.php" ;

    $_SESSION[’duration’]=$hours." :".$minutes." :".$seconds ;

    $vid_name=$_SESSION[’name’] ;
    $vid_src=$_SESSION[’extension’] ;
    $vid_new=$_SESSION[’type’] ;
    if (isset($_SESSION[’duration’])) $duration=$_SESSION[’duration’] ;else $duration="unknown" ;
    if(file_exists($converted_vids.$vid_name.".".$vid_new))

    $vid_size=get_size($converted_vids.$vid_name.".".$vid_new) ;
    else $vid_size=0 ;

     ?>

    your video information
    Video duration < ?php echo $hours." :".$minutes." :".$seconds ; ?>
    original video name < ?php if(isset($_SESSION[’original_name’]))echo $_SESSION[’original_name’] ; ?>
    video size < ?php echo $vid_size." MB
    " ; ?>
    source extension < ?php echo str_replace(".","","$vid_src") ; ?>
    new extension < ?php echo $vid_new ; ?>

    < ?php

    echo "

    " ;

    session_unset() ;

    else

     ?>

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
    // Convert divs to queue widgets when the DOM is ready<br />
    $(function() {<br />
       $(&quot;#uploader&quot;).pluploadQueue({<br />
           // General settings<br />
           runtimes : 'flash',<br />
           url : 'upload.php',<br />
           max_file_size : '&amp;lt;?php echo $max_file_size ;?&gt;mb',<br />
           chunk_size : '1mb',<br />
           unique_names : true,<br />
    <br />
           // Resize images on clientside if we can<br />
           resize : {width : 320, height : 240, quality : 90},<br />
    init : {<br />
                 FilesAdded: function(up, files) {<br />
                   plupload.each(files, function(file) {<br />
                     if (up.files.length &gt; 1) {<br />
                       up.removeFile(file);<br />
                     }<br />
                   });<br />
                   if (up.files.length &gt;= 1) {<br />
                     $('#pickfiles').hide('slow');<br />
                   }<br />
                 },<br />
                 FilesRemoved: function(up, files) {<br />
                   if (up.files.length &lt; 1) {<br />
                     $('#pickfiles').fadeIn('slow');<br />
                   }<br />
                 }<br />
               },<br />
               multi_selection: false,<br />
           // Specify what files to browse for<br />
           filters : [<br />
               {title : &quot;Video files&quot;, extensions : &quot;&amp;lt;?php foreach ($allowedExtensions as $value) { echo $value . &quot;,&quot;; }?&gt;&quot;}<br />
    <br />
           ],<br />
    <br />
           // Flash settings<br />
           flash_swf_url : 'js/plupload.flash.swf',<br />
    <br />
           // Silverlight settings<br />
           silverlight_xap_url : 'js/plupload.silverlight.xap'<br />
       });<br />
    <br />
       // Client side form validation<br />
       $('form').submit(function(e) {<br />
           var uploader = $('#uploader').pluploadQueue();<br />
    <br />
           // Files in queue upload them first<br />
           if (uploader.files.length &gt; 0) {<br />
               // When all files are uploaded submit form<br />
               uploader.bind('StateChanged', function() {<br />
                   if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {<br />
                       $('form')[0].submit();<br />
                   }<br />
               });<br />
    <br />
               uploader.start();<br />
           } else {<br />
               alert('You must queue at least one video.');<br />
           }<br />
    <br />
           return false;<br />
       });<br />
    });<br />
    &lt;/script&gt;

    You browser doesn’t have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.

    Maximum upload size < ?php echo $max_file_size ; ?> MB

    < ?php include("templates/info.php") ; ?>
    < ?php

    //End Body Area/

     ?>

Boussole SPIP

SPIP.net-La documentation officielle et téléchargement de (...) SPIP Code-La documentation du code de SPIP Programmer SPIP-La documentation pour développer avec (...) Traduire SPIP-Espace de traduction de SPIP et de ses (...) Plugins SPIP-L'annuaire des plugins SPIP SPIP-Contrib-L'espace des contributions à SPIP Forge SPIP-L'espace de développement de SPIP et de ses (...) Discuter sur SPIP-Les nouveaux forums de la communauté (...) SPIP Party-L'agenda des apéros et autres rencontres (...) Médias SPIP-La médiathèque de SPIP SPIP Syntaxe-Tester l'édition de texte dans SPIP