Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (62)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

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

  • PHP-FFMpeg Error while opening encoder for output stream

    5 janvier 2019, par Valor_

    I’m trying to use this PHP-FFMpeg library, but I’m keep getting errors like

    Error while opening encoder for output stream #0:0

    This is my PHP code

    private function createTeaserVideos($fullVideoPath, $databasePath, $uploadPath) {
           $ffmpeg = FFMpeg::create([
               'ffmpeg.binaries' => '/usr/bin/ffmpeg',
               'ffprobe.binaries' => '/usr/bin/ffprobe',
               'timeout'          => 0,
           ]);

           $ffmpeg->getFFMpegDriver()->listen(new \Alchemy\BinaryDriver\Listeners\DebugListener());
           $ffmpeg->getFFMpegDriver()->on('debug', function ($message) {
               var_dump($message);
           });

           // Create teaser_video_thumb
           $videoNameThumb = $this->randomTimeString() . '-thumb.mp4';
           $video = $ffmpeg->open($fullVideoPath);
           $video
               ->filters()
               ->resize(new \FFMpeg\Coordinate\Dimension(400, 280))
               ->synchronize();
           $video->save(new \FFMpeg\Format\Video\X264('aac', 'libx264'), $uploadPath . $videoNameThumb);
       }

    So what I’m trying to do here. User uploads his video and I’m trying to resize it and create one smaller video for the preview. The problem that I’m keep getting it is

    ffmpeg version 2.8.15-0ubuntu0.16.04.1' (length=46)
    Copyright (c) 2000-2018 the FFmpeg developers' (length=54)
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609' (length=72)
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv' (length=1135)
     WARNING: library configuration mismatch' (length=49)
     avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc' (length=1413)
     libavutil      54. 31.100 / 54. 31.100' (length=48)
     libavcodec     56. 60.100 / 56. 60.100' (length=48)
     libavformat    56. 40.101 / 56. 40.101' (length=48)
     libavdevice    56.  4.100 / 56.  4.100' (length=48)
     libavfilter     5. 40.101 /  5. 40.101' (length=48)
     libavresample   2.  1.  0 /  2.  1.  0' (length=48)
     libswscale      3.  1.101 /  3.  1.101' (length=48)
     libswresample   1.  2.101 /  1.  2.101' (length=48)
     libpostproc    53.  3.100 / 53.  3.100' (length=48)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/vagrant/workspace/spot-scouting-adminpage/static/locations/MjY5MjI2Y2E0NDExOWNmZmQwN/teaser/f4095e9eeb364fe187bf1ed42eedc198.mp4':' (length=185)
     Metadata:' (length=19)
       major_brand     : mp42' (length=34)
       minor_version   : 0' (length=31)
       compatible_brands: mp42mp41' (length=39)
       creation_time   : 2019-01-04 12:46:43' (length=49)
     Duration: 00:00:08.41, start: 0.000000, bitrate: 10261 kb/s' (length=69)
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9982 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)' (length=153)
       Metadata:' (length=21)
         creation_time   : 2019-01-04 12:46:43' (length=51)
         handler_name    : Alias Data Handler' (length=50)
         encoder         : AVC Coding' (length=42)
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)' (length=109)
       Metadata:' (length=21)
         creation_time   : 2019-01-04 12:46:43' (length=51)
         handler_name    : Alias Data Handler' (length=50)
    -async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.' (length=107)
    [libx264 @ 0x136f620] height not divisible by 2 (400x225)' (length=65)
    Output #0, mp4, to '/home/vagrant/workspace/spot-scouting-adminpage/static/locations/MjY5MjI2Y2E0NDExOWNmZmQwN/teaser/gY0RfV9c0y06592770015466174550YfY9-thumb.mp4':' (length=172)
     Metadata:' (length=19)
       major_brand     : mp42' (length=34)
       minor_version   : 0' (length=31)
       compatible_brands: mp42mp41' (length=39)
       Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, 25 fps (default)' (length=83)
       Metadata:' (length=21)
         creation_time   : 2019-01-04 12:46:43' (length=51)
         handler_name    : Alias Data Handler' (length=50)
         start_time      : 0' (length=33)
         encoder         : Lavc56.60.100 libx264' (length=53)
       Stream #0:1(eng): Audio: aac, 0 channels, 128 kb/s (default)' (length=72)
       Metadata:' (length=21)
         creation_time   : 2019-01-04 12:46:43' (length=51)
         handler_name    : Alias Data Handler' (length=50)
         encoder         : Lavc56.60.100 aac' (length=49)
    Stream mapping:' (length=23)
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))' (length=63)
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))' (length=60)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height' (length=127)
    ' (length=8)

    I can’t figure out what is the problem or how to solve it. Can someone please help me out ? I’m using Ubuntu 16 and I have installed ffmpeg via apt-get install ffmpeg.
    If you need any additional infomations, please let me know and I will provide. Thank you

  • MP4Box does not create final segment

    5 janvier 2019, par Dhruva

    MP4Box is not creating the final segment of video when I dash it. If I run this command on the command line I get only 15 segments out of 16(there is no error) and running it in Google’s Shaka player gives me a 404 at the end of the video saying that the 16th video segment is not found. I am running MP4Box version 0.5.2.

    MP4Box -dash 4000 -rap -frag-rap -sample-groups-traf -profile dashavc264:live -bs-switching multi -url-template video-700k-encrypted.mp4 video-1000k-encrypted.mp4 video-1500k-encrypted.mp4 video-2000k-encrypted.mp4 audio-encrypted.mp4 -out "dash_protected/manifest.mp4"

    .mpd file

    <?xml version="1.0"?>

    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H1M0.096S" maxsegmentduration="PT0H0M4.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash264">
    <programinformation moreinformationurl="http://gpac.sourceforge.net">
     
    </programinformation>

    <period duration="PT0H1M0.096S">
     <adaptationset segmentalignment="true" bitstreamswitching="true" maxwidth="1024" maxheight="576" maxframerate="24" par="16:9" lang="eng">
      <segmenttemplate initialization="manifest_set1_init.mp4"></segmenttemplate>
      <contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection>
      <representation mimetype="video/mp4" codecs="avc3.64002a" width="852" height="480" framerate="24" sar="1:1" startwithsap="1" bandwidth="1477735">
       <segmenttemplate timescale="12288" media="source-video-1500k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
      </representation>
      <representation mimetype="video/mp4" codecs="avc3.64002a" width="512" height="288" framerate="24" sar="1:1" startwithsap="1" bandwidth="689308">
       <segmenttemplate timescale="12288" media="source-video-700k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
      </representation>
      <representation mimetype="video/mp4" codecs="avc3.64002a" width="1024" height="576" framerate="24" sar="1:1" startwithsap="1" bandwidth="1968345">
       <segmenttemplate timescale="12288" media="source-video-2000k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
      </representation>
      <representation mimetype="video/mp4" codecs="avc3.64002a" width="640" height="360" framerate="24" sar="1:1" startwithsap="1" bandwidth="994771">
       <segmenttemplate timescale="12288" media="source-video-1000k-encrypted_dash_track1_$Number$.m4s" startnumber="1" duration="49152"></segmenttemplate>
      </representation>
     </adaptationset>
     <adaptationset segmentalignment="true" lang="eng">
      <contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection>
      <representation mimetype="audio/mp4" codecs="mp4a.40.2" audiosamplingrate="22050" startwithsap="1" bandwidth="69486">
       <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
       <segmenttemplate timescale="22050" media="source-audio-encrypted_dash$Number$.m4s" startnumber="1" duration="88045" initialization="source-audio-encrypted_dashinit.mp4"></segmenttemplate>
      </representation>
     </adaptationset>
    </period>
    </mpd>
  • About Ffmpeg,Console show 'frame=0 fps=0.0 q=0.0 Lsize=0kB time=00:00:00.00' No data pull&push

    9 janvier 2019, par Lus

    I want to use Ffmpeg to pull&push video stream from HLS to RTMP.at first it’s normal,but when I open more,it’s run normally ,but no video data pull&push

    Environment:Windows64+Ngg-§rtmp-static+Ffmpeg-static+Java1.8

    It’s useless,even if I restart rtmp-server.

    ffmpeg -i xxx/live.m3u8 -vcodec h264-s 720*480 -an -f flv -y rtmp://xxx

    The first few video streams is normal,but when I open more streams (5+),
    it run normally,but no data pull.like this.

    2019-01-08 10:58:15.658  INFO ->frame=0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=720 speed=   0x
    2019-01-08 10:58:16.598  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:16.984  INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik30.ts' for reading
    2019-01-08 10:58:17.083  INFO ->frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=744 speed=   0x    
    2019-01-08 10:58:18.033  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:18.146  INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik31.ts' for reading
    2019-01-08 10:58:18.267  INFO ->frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=770 speed=   0x    
    2019-01-08 10:58:19.220  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:19.317  INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik32.ts' for reading
    2019-01-08 10:58:19.415  INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik33.ts' for reading
    2019-01-08 10:58:19.494  INFO ->frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=795 speed=   0x    
    2019-01-08 10:58:20.375  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:20.486  INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik34.ts' for reading