Recherche avancée

Médias (91)

Autres articles (45)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8091)

  • FFmpeg conversion to Photo-JPEG is blocky [duplicate]

    26 mai 2017, par Richard210363

    This question already has an answer here :

    I am converting .mp4 files to .mov with the Photo-JPEG codec to use in After Effects to reduce render times.

    I have looked up the FFmpeg commands to do this and come up with :

    ffmpeg -i tower-bridge.mp4 -an -pix_fmt yuvj420p -vcodec mjpeg -f mov -y tower-bridge.mov

    This works but when I look at the output video it is quite blocky ; like a mosaic.

    During the conversion I get this message :

    [swscaler @ 0000000008c97fe0] deprecated pixel format used, make sure you did set range correctly

    Research on-line suggests I can ignore this message.

    What can I do to improve the output quality ?

    MediaInfo report on Input file :

    Complete name : F :\london-tower-bridge.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom (isom/avc1/mp42)
    File size : 18.7 MiB
    Duration : 13 s 625 ms
    Overall bit rate : 11.5 Mb/s

    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Baseline@L4
    Format settings, CABAC : No
    Format settings, ReFrames : 3 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 13 s 625 ms
    Bit rate : 11.5 Mb/s
    Maximum bit rate : 26.8 Mb/s
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 24.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.231
    Stream size : 18.7 MiB (100%)
    Writing library : Zencoder Video Encoding System

    MediaInfo report on Output file :

    Complete name : F :\london-tower-bridge.mov
    Format : MPEG-4
    Format profile : QuickTime
    Codec ID : qt 0000.02 (qt )
    File size : 16.1 MiB
    Duration : 13 s 625 ms
    Overall bit rate mode : Variable
    Overall bit rate : 9 912 kb/s
    Writing application : Lavf57.72.101

    ID : 1
    Format : JPEG
    Codec ID : jpeg
    Duration : 13 s 625 ms
    Bit rate mode : Variable
    Bit rate : 9 910 kb/s
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 24.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.199
    Stream size : 16.1 MiB (100%)
    Language : English

  • Malformed header from CGI script

    13 janvier 2014, par user3188518

    This message is driving me crazy :

    Malformed header from CGI script:
    ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
     built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease)
     configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
     libavutil      52. 18.100 / 52. 18.100
     libavcodec     54. 92.100 / 54. 92.100
     libavformat    54. 63.104 / 54. 63.104
     libavdevice    54.  3.103 / 54.  3.103
     libavfilter     3. 42.103 /  3. 42.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    Guessed Channel Layout for  Input Stream #0.0 : stereo
    Input #0, wav, from '/projekt/aplikacja/app/92ed9478ecfa4a4dfb176f417d4ef66c/2014-01-12-220148_sample_1.wav':
     Duration: 00:02:35.62, bitrate: 1411 kb/s
       Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Output #0, wav, to '/projekt/aplikacja/app/webroot/files/preview/2014-01-12-234038_52d327f6b2939.wav':
     Metadata:
       ISFT            : Lavf54.63.104
       Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, 1411 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    size=     864kB time=00:00:05.01 bitrate=1411.3kbits/s    
    video:0kB audio:864kB subtitle:0 global headers:0kB muxing overhead 0.009042%
    Status: 302
    Location: http://www.example.org/
    Content-type: text/html

    After executing this function :

      public function createpreview(){
            if ($this->request->is('post')) {
              foreach($this->request->data['TrackId'] as $key => $value){
                   $TrackId[] = $key;
               }
               $this->Track->recursive = -1;
               $view =  $this->Track->find('all', array(
                                 'conditions' => array(
                                 "Track.id" => $TrackId
                                  )));
               ini_set('date.timezone', 'Europe/London');

              foreach ($view as $v){
                 $comand_1 = 'ffmpeg -i '.APP.'92ed9478ecfa4a4dfb176f417d4ef66c'.DS. $v['Track']['filename'].' 2>&1';
                 $time_data = shell_exec($comand_1);
                 $search = '/Duration: (.*?),/';
                 $duration = preg_match($search, $time_data, $matches, PREG_OFFSET_CAPTURE, 3);
                 $time = explode('.', $matches[1][0]);
                 $time = explode(":", $time[0]);
                 $seconds = $time[0]*3600 + $time[1]*60 + $time[2];
                 if ($seconds >= 30){

                $now = date('Y-m-d-His');
                    $prew_file_name = $now .'_'. uniqid().'.wav';
                    $comand_2 = 'ffmpeg  -ss 00:00:25.000 -analyzeduration 99999999  -i '.APP.'92ed9478ecfa4a4dfb176f417d4ef66c'.DS. $v['Track']['filename'].' -t 5 -c:v copy -c:a copy '.WWW_ROOT.'files'.DS.'preview'.DS.$prew_file_name;
                       $t = shell_exec($comand_2);
                       $this->Track->updateAll(array('Track.preview' => "'.$prew_file_name.'"), array('Track.id' => $v['Track']['id']));
                     }
                  }

           }
            header('Location: http://www.example.org/');
          // $this->redirect(array('controller'=>'albums', 'action'=>'menage_index'));
      }

    As far as i know this shell_exec($comand_2) couses error (after i comment it out, it redirects me correctly).Googling this didn't gave me answers, the wierd part is previews aka shell_exec($comand_2) are made and fine, i just can't get it to redirect me. I tried non cake way but it doesn't work either.

    What I'm doing wrong ?

  • Spotlight : Alwaysdata.com the company behind Piwik.org web hosting [Interview]

    11 avril 2013, par matt — About, Community

    Piwik is the result of the work of many talented individuals and companies. Today we’d like to showcase Alwaysdata.com, the awesome web hosting company providing managed hosting for all Piwik.org websites and services.

    I recently met and asked a few questions to Cyril, co-founder of Alwaysdata.com and Piwik core developer. Learn more in the interview below !

    What is Alwaysdata ?

    We are a French web hosting company created in 2006. If you need to host a website — a Piwik installation, for example — or even your domains/emails, we provide infrastructure and maintenance services.

    Who are your customers and what kind of work do you do ?

    We have several types of clients :

    • Individuals who need hosting for their personal site and who benefit from storage space with direct SSH access.
    • Web agencies who need hosting for their clients’ sites.
    • The largest customers, often on dedicated servers, for hosting their site/infrastructure.

    Our work falls into three categories :

    1. Support (via administration, telephone, Twitter, IRC, etc.)
    2. Development (in Python), primarily to add new features
    3. System administration, either for maintenance (e.g. adding servers), or for preparing new features

    What sets Alwaysdata apart from the large web hosting competition ?

    Two things :

    • Availability. We are a small team and often know our customers quite well. We are all on IRC, so you can contact us directly if you need any assistance.
    • Features. We are halfway between traditional web hosting and the cloud, combining the advantages of both.

    Are you using Piwik internally or with customers ? If so, how are you using Piwik ?

    All of our customers can view statistics for their sites via our global Piwik installation, without having to configure anything.

    To provide these analytics reports to our customers, we implemented import of the raw access logs in Piwik. The Log import toolkit is now a feature included in Piwik.

    What is the next big thing for Alwaysdata ?

    We are going to upgrade our pricing : instead of fixed costs, each of our clients will now pay exactly what they consume. This allows our clients the benefit of a very high quality service for the lowest possible price.

    We are also going to add native support for more technologies : Java, Node.js, ZeroMQ, etc.

    Thank you for your time and all the best to Alwaysdata for the future !

    Note from Matt, Piwik founder : Cyril and the team at Alwaysdata.com have been consistently great in their system administration work for Piwik.org services, providing a fast and reliable web hosting experience with top notch support and security practises. They also handled the migration of all services from our old servers with total piece of mind.

    Alwaysdata contributed to Piwik the popular Log Analytics toolkit. They are great software developers and system administrators with a passion for their work. Since 2006, they have been maintaining optimized hosting services for the entire web infrastructure (websites, domains, emails, databases, etc.), from the simplest to the most exotic. We do recommend their managed hosting services.

    Learn more