Recherche avancée

Médias (91)

Autres articles (94)

  • 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 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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 (6330)

  • FFMPEG SCREENSHOT GENERATE ERROR : No such filter : 'tile' [duplicate]

    23 mai 2013, par itseasy21

    This question is an exact duplicate of :

    i have been trying on making multiple screenshots from a video file using ffmpeg and i succeed too in command but the only problem is while executing that i am getting this error :

    No such filter: 'tile'
    Error opening filters!

    The command i execute is :

    ffmpeg -ss 00:00:10 -i './tmp/try.avi' -vcodec mjpeg -vframes 1 -vf 'select=not(mod(n\,1000)),scale=320:240,tile=2x3' './tmp/try.jpg'

    The output i get is :

    xxxxx@xxxx.com [~/public_html/xxxx]# ffmpeg -ss 00:00:10 -i './tmp/try.avi' -vcodec mjpeg -vframes 1 -vf 'select=not(mod(n\,1000)),scale=320:240,tile=2x3' './tmp/try.jpg'

    ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
     built on Mar 10 2012 18:07:20 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libdirac --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
     libavutil    50. 43. 0 / 50. 43. 0
     libavcodec   52.123. 0 / 52.123. 0
     libavformat  52.111. 0 / 52.111. 0
     libavdevice  52.  5. 0 / 52.  5. 0
     libavfilter   1. 80. 0 /  1. 80. 0
     libswscale    0. 14. 1 /  0. 14. 1
     libpostproc  51.  2. 0 / 51.  2. 0

    Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 25.00 (25/1)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './tmp/try.avi':
     Metadata:
       major_brand     : 3gp4
       minor_version   : 512
       compatible_brands: isomiso23gp4
       creation_time   : 1970-01-01 00:00:00
     Duration: 00:09:24.82, start: 0.000000, bitrate: 118 kb/s
       Stream #0.0(und): Video: h263, yuv420p, 176x144 [PAR 12:11 DAR 4:3], 102 kb/s, 25 fps, 25 tbr, 25 tbn, 29.97 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
       Stream #0.1(und): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
    [buffer @ 0x1ad89a0] w:176 h:144 pixfmt:yuv420p tb:1/1000000 sar:12/11 sws_param:
    No such filter: 'tile'
    Error opening filters!

    any solution for this ????

  • How to extract subtitles from .wtv file using ffmpeg ?

    20 mai 2013, par user1978421

    does anyone know how to extract subtitles from a wtv file using ffmpeg ?
    i have tried many different commands. None of them works.
    the closest is this one

    ffmpeg -i input.wtv -vn -an -codec:s:0 srt test.srt

    But it complains Error while encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    what does that really mean ??

    The complete console output is as follows

    ffmpeg version N-52233-gee94362 Copyright (c) 2000-2013 the FFmpeg developers
     built on Apr 18 2013 02:50:33 with gcc 4.8.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 26.100 / 52. 26.100
     libavcodec     55.  2.100 / 55.  2.100
     libavformat    55.  2.100 / 55.  2.100
     libavdevice    55.  0.100 / 55.  0.100
     libavfilter     3. 56.103 /  3. 56.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  3.100 / 52.  3.100
    [wtv @ 0269bac0] truncated file
       Last message repeated 3 times
    [mpeg2video @ 02692f60] Invalid frame dimensions 0x0.
       Last message repeated 12 times
    [wtv @ 0269bac0] max_analyze_duration 5000000 reached at 5016000 microseconds
    Input #0, wtv, from '16 and Pregnant- Unseen Moments_Viva_2013_04_09_19_57_00.wtv':
     Metadata:
       WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
       WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
       Title           : 16 and Pregnant: Unseen Moments
       WM/SubTitleDescription: Dr Drew hosts a look at the exclusive moments we didn't see from the second season of 16 and Pregnant.
       genre           : Documentary;Reality TV
       WM/OriginalReleaseTime: 0
       WM/MediaCredits : ;;;
       service_provider: Viva
       service_name    : Viva
       WM/MediaOriginalChannel: 16
       WM/MediaOriginalChannelSubNumber: 0
       WM/MediaOriginalBroadcastDateTime: 2011-12-13T00:00:00Z
       WM/MediaOriginalRunTime: 38377217299
       WM/MediaIsStereo: false
       WM/MediaIsRepeat: true
       WM/MediaIsLive  : false
       WM/MediaIsTape  : false
       WM/MediaIsDelay : false
       WM/MediaIsSubtitled: false
       WM/MediaIsMovie : false
       WM/MediaIsPremiere: false
       WM/MediaIsFinale: false
       WM/MediaIsSAP   : false
       WM/MediaIsSport : false
       WM/Provider     : MediaCenterDefault
       WM/VideoClosedCaptioning: false
       WM/WMRVEncodeTime: 2013-04-09 18:57:02
       WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant: Unseen Moments
       WM/WMRVServiceID: !Generated!be3ff88ee57a4cadb0334ef3df5bc91b
       WM/WMRVProgramID: !MCProgram!37282063
       WM/WMRVRequestID: 0
       WM/WMRVScheduleItemID: 0
       WM/WMRVQuality  : 0
       WM/WMRVOriginalSoftPrePadding: 480
       WM/WMRVOriginalSoftPostPadding: 60
       WM/WMRVHardPrePadding: -300
       WM/WMRVHardPostPadding: 0
       WM/WMRVATSCContent: false
       WM/WMRVDTVContent: true
       WM/WMRVHDContent: false
       Duration        : 38379654765
       WM/WMRVEndTime  : 2013-04-09 20:01:00
       WM/WMRVBitrate  : 2.118481
       WM/WMRVKeepUntil: 0
       WM/WMRVActualSoftPrePadding: 477
       WM/WMRVActualSoftPostPadding: 60
       WM/WMRVContentProtected: false
       WM/WMRVContentProtectedPercent: 0
       WM/WMRVExpirationSpan: 9223372036854775807
       WM/WMRVInBandRatingSystem: 255
       WM/WMRVInBandRatingLevel: 255
       WM/WMRVInBandRatingAttributes: 0
       WM/WMRVWatched  : true
     Duration: 01:03:58.07, start: 1.509175, bitrate: 2118 kb/s
       Stream #0:0[0x22](eng): Subtitle: dvb_subtitle
       Stream #0:1[0x23](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s
       Stream #0:2[0x24]: Video: mpeg2video (Main), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
       Stream #0:3[0x0]: Video: mjpeg, yuvj420p, 189x200 [SAR 96:96 DAR 189:200], 90k tbr, 90k tbn, 90k tbc
       Metadata:
         title           : TV Thumbnail
    File 'test.srt' already exists. Overwrite ? [y/N] Output #0, srt, to 'test.srt':
     Metadata:
       WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
       WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
       Title           : 16 and Pregnant: Unseen Moments
       WM/SubTitleDescription: Dr Drew hosts a look at the exclusive moments we didn't see from the second season of 16 and Pregnant.
       genre           : Documentary;Reality TV
       WM/OriginalReleaseTime: 0
       WM/MediaCredits : ;;;
       service_provider: Viva
       service_name    : Viva
       WM/MediaOriginalChannel: 16
       WM/MediaOriginalChannelSubNumber: 0
       WM/MediaOriginalBroadcastDateTime: 2011-12-13T00:00:00Z
       WM/MediaOriginalRunTime: 38377217299
       WM/MediaIsStereo: false
       WM/MediaIsRepeat: true
       WM/MediaIsLive  : false
       WM/MediaIsTape  : false
       WM/MediaIsDelay : false
       WM/MediaIsSubtitled: false
       WM/MediaIsMovie : false
       WM/MediaIsPremiere: false
       WM/MediaIsFinale: false
       WM/MediaIsSAP   : false
       WM/MediaIsSport : false
       WM/Provider     : MediaCenterDefault
       WM/VideoClosedCaptioning: false
       WM/WMRVEncodeTime: 2013-04-09 18:57:02
       WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant: Unseen Moments
       WM/WMRVServiceID: !Generated!be3ff88ee57a4cadb0334ef3df5bc91b
       WM/WMRVProgramID: !MCProgram!37282063
       WM/WMRVRequestID: 0
       WM/WMRVScheduleItemID: 0
       WM/WMRVQuality  : 0
       WM/WMRVOriginalSoftPrePadding: 480
       WM/WMRVOriginalSoftPostPadding: 60
       WM/WMRVHardPrePadding: -300
       WM/WMRVHardPostPadding: 0
       WM/WMRVATSCContent: false
       WM/WMRVDTVContent: true
       WM/WMRVHDContent: false
       Duration        : 38379654765
       WM/WMRVEndTime  : 2013-04-09 20:01:00
       WM/WMRVBitrate  : 2.118481
       WM/WMRVKeepUntil: 0
       WM/WMRVActualSoftPrePadding: 477
       WM/WMRVActualSoftPostPadding: 60
       WM/WMRVContentProtected: false
       WM/WMRVContentProtectedPercent: 0
       WM/WMRVExpirationSpan: 9223372036854775807
       WM/WMRVInBandRatingSystem: 255
       WM/WMRVInBandRatingLevel: 255
       WM/WMRVInBandRatingAttributes: 0
       WM/WMRVWatched  : true
       Stream #0:0(eng): Subtitle: srt
    Stream mapping:
     Stream #0:0 -> #0:0 (dvbsub -> srt)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  • Ffmpeg set duration using node-fluent-ffmpeg

    23 mai 2013, par Vprnl

    I'm really new to the world of ffmpeg so please excuses me if this is a stupid queston.

    I'm using the module Node-fluent-ffmpeg to stream a movie and convert it from avi to webm.
    So far so good (it plays the video), but I'm having trouble parsing the duration to the player. My ultimate goal is to be able to skip ahead in the movie. But first the player needs to know how long the video is.

    my code is as followed :

    var stat = fs.statSync(movie);

    var start = 0;
    var end = 0;
    var range = req.header('Range');
    if (range != null) {
    start = parseInt(range.slice(range.indexOf('bytes=')+6,
     range.indexOf('-')));
    end = parseInt(range.slice(range.indexOf('-')+1,
     range.length));
    }
    if (isNaN(end) || end == 0) end = stat.size-1;
    if (start > end) return;

    res.writeHead(206, { // NOTE: a partial http response
       'Connection':'close',
       'Content-Type':'video/webm',
       'Content-Length':end - start,
       'Content-Range':'bytes '+start+'-'+end+'/'+stat.size,
       'Transfer-Encoding':'chunked'
    });

    var  proc = new ffmpeg({ source: movie, nolog: true, priority: 1, timeout:15000})
       .toFormat('webm')
       .withVideoBitrate('1024k')
       .addOptions(['-probesize 900000', '-analyzeduration 0', '-bufsize 14000'])
       .writeToStream(res, function(retcode, error){
       if (!error){
           console.log('file has been converted succesfully',retcode);
       }else{
           console.log('file conversion error',error);
       }
    });

    I tried to set the header with a start and a end based on this article : http://delog.wordpress.com/2011/04/25/stream-webm-file-to-chrome-using-node-js/

    I also looked in the FFmpeg documentation and found -f duration and -ss.
    But I don't quite know how to convert the byte range to seconds.

    I feel like I'm pretty close to a solution but my inexperience with the subject matter prohibits me from getting it to work. If I'm unclear in any way please let me know. (I have a tendency of explaining things fuzzy.)

    Thanks in advance !