Recherche avancée

Médias (91)

Autres articles (56)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6449)

  • Send .mov file to ffmpeg via pipe (stdin)

    13 octobre 2014, par Ruslan Sharipov

    If specify file in -i option, ffmpeg successfully handles file : http://pastebin.com/cn4w4aR2

    But, if send file to ffmpeg via pipe (to stdin), i receive error stream 1, offset 0x24 : partial file :

       serafim@serafim:~/Downloads/mov $ cat RecordedVideo-6sec.MOV | ffmpeg -i pipe:0 -codec copy -bsf h264_mp4toannexb -f hls -hls_list_size 0 -hls_time 5 -y index.m3u8
    ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
     built on Aug 25 2014 19:47:15 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
     libavutil      52. 92.100 / 52. 92.100
     libavcodec     55. 69.100 / 55. 69.100
     libavformat    55. 48.100 / 55. 48.100
     libavdevice    55. 13.102 / 55. 13.102
     libavfilter     4. 11.100 /  4. 11.100
     libavresample   1.  3.  0 /  1.  3.  0
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc6a4816800] stream 1, offset 0x24: partial file
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc6a4816800] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), 720x1280, 1068 kb/s): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2014-10-12 10:51:18
     Duration: 00:00:04.06, bitrate: N/A
       Stream #0:0(und): Video: h264 (avc1 / 0x31637661), 720x1280, 1068 kb/s, 24.61 fps, 120 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2014-10-12 10:51:18
         handler_name    : Core Media Data Handler
         encoder         : H.264
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 64 kb/s (default)
       Metadata:
         creation_time   : 2014-10-12 10:51:18
         handler_name    : Core Media Data Handler
    [mpegts @ 0x7fc6a481b800] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
       Last message repeated 1 times
    [adts @ 0x7fc6a481e200] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
    Output #0, hls, to 'index.m3u8':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       encoder         : Lavf55.48.100
       Stream #0:0(und): Video: h264 (avc1 / 0x31637661), 720x1280, q=2-31, 1068 kb/s, 24.61 fps, 600 tbn, 600 tbc (default)
       Metadata:
         creation_time   : 2014-10-12 10:51:18
         handler_name    : Core Media Data Handler
         encoder         : H.264
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, 64 kb/s (default)
       Metadata:
         creation_time   : 2014-10-12 10:51:18
         handler_name    : Core Media Data Handler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc6a4816800] stream 1, offset 0x28: partial file
    pipe:0: Invalid data found when processing input
    frame=    0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    How send .mov file to ffmpeg via pipe ?

  • ffmpeg error : parsed_overlay framesync - Buffer queue overflow, dropping

    23 octobre 2014, par Tom

    On most video files my ffmpeg command works fine. but on some video files I get the following error code. something goes wrong with scaling and overlaying filters. but it depends on input files. I’m still searching for reasons and solutions. Maybe somebody knows more about it ?

       [Parsed_overlay_1 @ *] [framesync @ *] Buffer queue overflow, dropping."

    Input :

     ffmpeg
     -i "/var/www/vhosts/domain.com/httpdocs/video/temp/input.wmv"
     -i "/var/www/vhosts/domain.com/httpdocs/images/logo_w140.png"
     -filter_complex 'scale=trunc(oh*a/2)*2:320,overlay=main_w-overlay_w-10:main_h-overlay_h-10'
     -ss 00:00:00 -t 00:00:44 -r 24 -b:v 360k -bt 416k -vcodec libx264
     -preset veryslow -ar 11025 -y -acodec libfaac -ac 1 -ab 64k
     /var/www/vhosts/domain.com/httpdocs/Protected/41000/output.mp4

    Output :

     ffmpeg version 2.3.2 Copyright (c) 2000-2014 the FFmpeg developers
       built on Aug 13 2014 16:39:32 with gcc 4.4.5 (Debian 4.4.5-8)
       configuration: --enable-avfilter --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64 --enable-libfaac --enable-nonfree --enable-filter=movie --enable-libx264 --enable-gpl --enable-version3 --enable-postproc --enable-libvorbis --enable-libx264 --enable-x11grab --prefix=/usr --enable-libgsm --enable-libdc1394
       libavutil      52. 92.100 / 52. 92.100
       libavcodec     55. 69.100 / 55. 69.100
       libavformat    55. 48.100 / 55. 48.100
       libavdevice    55. 13.102 / 55. 13.102
       libavfilter     4. 11.100 /  4. 11.100
       libswscale      2.  6.100 /  2.  6.100
       libswresample   0. 19.100 /  0. 19.100
       libpostproc    52.  3.100 / 52.  3.100
     [wmv3 @ 0x2451bb0] Extra data: 8 bits left, value: 0
     [mjpeg @ 0x2450c70] ignoring invalid SAR: 0/0
     Guessed Channel Layout for  Input Stream #0.1 : stereo
     Input #0, asf, from '/var/www/vhosts/domain.com/httpdocs/video/temp/input.wmv':
       Metadata:
         WMFSDKNeeded    : 0.0.0.0000
         DeviceConformanceTemplate: MP@LL
         WMFSDKVersion   : 12.0.7601.17514
         IsVBR           : 0
       Duration: 00:00:43.99, start: 0.000000, bitrate: 1584 kb/s
         Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg), 320x240, 90k tbr, 90k tbn, 90k tbc
         Metadata:
           comment         : Movie/video screen capture
         Stream #0:1(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels, fltp, 96 kb/s
         Stream #0:2(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x240, 1500 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc
     Input #1, image2, from '/var/www/vhosts/domain.com/httpdocs/images/logo_w140.png':
       Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
         Stream #1:0: Video: png, rgba, 140x36, 25 tbr, 25 tbn, 25 tbc
     [swscaler @ 0x2432d50] deprecated pixel format used, make sure you did set range correctly
     [libx264 @ 0x249c3b0] using cpu capabilities: none!
     [libx264 @ 0x249c3b0] profile High, level 3.1
     [libx264 @ 0x249c3b0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=360 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
     [wmv3 @ 0x245da80] Extra data: 8 bits left, value: 0
     Output #0, mp4, to '/var/www/vhosts/domain.com/httpdocs/Protected/41000/b7fe950bc0ea5a3776c3893dc035a973.mp4':
       Metadata:
         WMFSDKNeeded    : 0.0.0.0000
         DeviceConformanceTemplate: MP@LL
         WMFSDKVersion   : 12.0.7601.17514
         IsVBR           : 0
         encoder         : Lavf55.48.100
         Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 426x320, q=-1--1, 360 kb/s, 24 fps, 12288 tbn, 24 tbc (default)
         Metadata:
           encoder         : Lavc55.69.100 libx264
         Stream #0:1(eng): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 11025 Hz, mono, s16, 64 kb/s
         Metadata:
           encoder         : Lavc55.69.100 libfaac
     Stream mapping:
       Stream #0:0 (mjpeg) -> scale (graph 0)
       Stream #0:2 (wmv3) -> overlay:overlay (graph 0)
       overlay (graph 0) -> Stream #0:0 (libx264)
       Stream #0:1 -> #0:1 (wmav2 (native) -> aac (libfaac))
     Press [q] to stop, [?] for help
     [mjpeg @ 0x2452690] ignoring invalid SAR: 0/0
     [Parsed_overlay_1 @ 0x244d8c0] [framesync @ 0x244d988] Buffer queue overflow, dropping.
         Last message repeated 161 times
     frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:06.73 bitrate=   0.1kbits/s[Parsed_overlay_1 @ 0x244d8c0] [framesync @ 0x244d988] Buffer queue overflow, dropping.
         Last message repeated 237 times
     frame=    1 fps=1.0 q=0.0 size=      13kB time=00:00:14.44 bitrate=   7.3kbits/s[Parsed_overlay_1 @ 0x244d8c0] [framesync @ 0x244d988] Buffer queue overflow, dropping.
         Last message repeated 238 times
     frame=    1 fps=0.7 q=0.0 size=      34kB time=00:00:22.43 bitrate=  12.6kbits/s[Parsed_overlay_1 @ 0x244d8c0] [framesync @ 0x244d988] Buffer queue overflow, dropping.
         Last message repeated 244 times
     frame=    1 fps=0.5 q=0.0 size=      55kB time=00:00:30.23 bitrate=  14.9kbits/s[Parsed_overlay_1 @ 0x244d8c0] [framesync @ 0x244d988] Buffer queue overflow, dropping.
         Last message repeated 241 times
     frame=    1 fps=0.4 q=0.0 size=      76kB time=00:00:38.12 bitrate=  16.4kbits/s[Parsed_overlay_1 @ 0x244d8c0] [framesync @ 0x244d988] Buffer queue overflow, dropping.
         Last message repeated 126 times
     frame=    2 fps=0.7 q=-1.0 Lsize=     126kB time=00:00:44.00 bitrate=  23.4kbits/s dup=0 drop=64
     video:3kB audio:118kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.045506%
     [libx264 @ 0x249c3b0] frame I:1     Avg QP:30.19  size:  1778
     [libx264 @ 0x249c3b0] frame P:1     Avg QP:34.00  size:   125
     [libx264 @ 0x249c3b0] mb I  I16..4: 54.1% 44.3%  1.7%
     [libx264 @ 0x249c3b0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4: 10.7%  0.4%  3.5%  0.0%  0.0%    skip:85.4%
     [libx264 @ 0x249c3b0] final ratefactor: 25.19
     [libx264 @ 0x249c3b0] 8x8 transform intra:44.3% inter:100.0%
     [libx264 @ 0x249c3b0] coded y,uvDC,uvAC intra: 20.9% 34.3% 0.2% inter: 0.0% 0.2% 0.0%
     [libx264 @ 0x249c3b0] i16 v,h,dc,p: 34% 20% 14% 33%
     [libx264 @ 0x249c3b0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9%  6% 15% 12% 15%  9% 13% 11% 10%
     [libx264 @ 0x249c3b0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 44% 14%  6%  4% 10%  5%  3%  5%
     [libx264 @ 0x249c3b0] i8c dc,h,v,p: 48% 26% 21%  5%
     [libx264 @ 0x249c3b0] Weighted P-Frames: Y:0.0% UV:0.0%
     [libx264 @ 0x249c3b0] kb/s:182.69
  • ffmpeg wont encode h264 mp4 video with libx264 installed

    2 décembre 2014, par el producer

    I’m trying to do a simple encoding of an mp4 in h264 to mp4 but I keep getting the error :

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

    I’m using this command :

    ffmpeg -i qDqMvfoapXh6FO3KMuYiZCcG.mp4 out.mp4

    I have compiled and installed from the ffmpeginstaller 8.0 from http://ffmpeginstaller.com/

    This was working until i removed everything containing ffmpeg in the file name so that I can install libvpx and recompile ffmpeg. I used this command (as root) to remove all traces of ffmpeg from my system (redhat)

    find / | grep -w ffmpeg | xargs rm -r -f
    find / | grep -w cpffmpeg | xargs rm -r -f
    find / | grep -w ffmpegscript | xargs rm -r -f

    Then I installed libvpx successfully and installed ffmpeg again but have not been able to encode h264 mp4 files since. Since them I have removed ffmpeg completely and recompiled a few times but haven’t got it to work again.

    Complete ffmpeg output :

    ffmpeg version N-68141-g4280150-syslint Copyright (c) 2000-2014 the FFmpeg developers
    built on Dec  1 2014 20:24:46 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
    configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl     --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-  amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
    libavutil      54. 15.100 / 54. 15.100
    libavcodec     56. 13.100 / 56. 13.100
    libavformat    56. 15.101 / 56. 15.101
    libavdevice    56.  3.100 / 56.  3.100
    libavfilter     5.  2.103 /  5.  2.103
    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 'qDqMvfoapXh6FO3KMuYiZCcG.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2014-12-01 04:18:17
    Duration: 00:00:22.61, start: 0.000000, bitrate: 12028 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 11968 kb/s, 29.88 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
    Metadata:
     rotate          : 90
     creation_time   : 2014-12-01 04:18:17
     handler_name    : VideoHandle
    Side data:
     displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
    Metadata:
     creation_time   : 2014-12-01 04:18:17
     handler_name    : SoundHandle
    [libx264 @ 0x2505ee0] using cpu capabilities: none!
    Output #0, mp4, to 'out.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, 29.97 fps (default)
    Metadata:
     rotate          : 90
     creation_time   : 2014-12-01 04:18:17
     handler_name    : VideoHandle
     encoder         : Lavc56.13.100 libx264
    Stream #0:1(eng): Audio: aac, 0 channels, 128 kb/s (default)
    Metadata:
     creation_time   : 2014-12-01 04:18:17
     handler_name    : SoundHandle
     encoder         : Lavc56.13.100 libfaac
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    Can someone explain why I keep getting this error now ?