Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (38)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5785)

  • gstreamer rtsp streaming chain with LGPL elements

    25 avril 2016, par user3612009

    The following chain seem to work well to stream video :

    gst-launch filesrc location=/home/manusha/Downloads/movies/<movie file="file">.mkv ! decodebin ! ffenc_mpeg4 bitrate=5000000 ! rtpmp4vpay mtu=1400 pt=96 ssrc=0 timestamp-offset=0 seqnum-offset=0 send-config=true ! udpsink host=127.0.0.1 port=5000
    </movie>

    This chain is able to receive the stream and play it :

    gst-launch udpsrc uri=udp://127.0.0.1:5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d88007d0a041e1463000001b24c61766335322e3132332e30, payload=(int)96, ssrc=(uint)298758266, clock-base=(uint)3097828288, seqnum-base=(uint)63478" ! rtpmp4vdepay ! ffdec_mpeg4 ! autovideosink

    My problem is, both ffdec_mpeg4 and ffenc_mpeg4 are GPL licensed and will not suit my purpose because I need to redistribute them. I am lookiing for advice on alternative stream chains that I can form only with LGPL licensed elements. The streaming to be used only inside a LAN, but it need to support HD quality streaming.

  • Transcoding video using ffmpeg from the internet or over http

    19 juillet 2015, par Robin

    I have a project for transcoding videos. Right now I am passing the absolute path of the video as the input variable, as such :

    inputfile = str(MEDIA_ROOT)+'/'+str(video.original_video)

    Here the MEDIA_ROOT is /home/user/code/Project/Viu/static/media

    And then

    subprocess.call(
           'ffmpeg -i '+ inputfile +' -codec:v libx264 -crf 23 -preset faster -codec:a libfdk_aac -vbr 4 \-movflags faststart -vf scale="720:trunc(ow/a/2)*2",format=yuv420p '+ outputfile,
           shell=True
       )

    This is ok for now. But I will be keeping those videos on different location from the server, how can I convert videos from that location over the internet or http?

    I tried this :

    inputfile = 'http://localhost:8000/media/'+str(video.original_video)

    But I get this error :

    [2015-07-19 13:27:14,933: INFO/MainProcess] Received task: vids.tasks.convert_video[41e36bc6-0d6a-4756-99fb-cb8005a4fbe3]
    [2015-07-19 13:27:14,944: INFO/Worker-2] running
    ffmpeg version N-73632-g39a04eb Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
     libavutil      54. 28.100 / 54. 28.100
     libavcodec     56. 47.100 / 56. 47.100
     libavformat    56. 40.100 / 56. 40.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 21.100 /  5. 21.100
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    [h264 @ 0x9d46060] AVC: nal size 371788
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -530775991
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 1666002647
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -1986130888
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -710433401
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -723464079
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 378679291
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 1766542096
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -470898291
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -402699497
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 64441658
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 1892506351
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 1362707160
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -1845744002
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -327264949
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -14647022
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 332446592
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -673972274
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 2091272674
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -1219100086
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -1117890504
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -1221891828
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 1674360084
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size 1114909540
    [h264 @ 0x9d46060] no frame!
    [h264 @ 0x9d46060] AVC: nal size -1619615275
    [h264 @ 0x9d46060] no frame!
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x9d43be0] decoding for stream 0 failed
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x9d43be0] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(bt470bg/bt709/bt709), 1920x1080, 43842 kb/s): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://localhost:8000/media/uploaded_files/1437312433_3_test1.MOV':
     Metadata:
       major_brand     : qt  
       minor_version   : 537331968
       compatible_brands: qt  CAEP
       creation_time   : 2014-07-25 22:11:02
     Duration: 00:00:48.68, start: 0.000000, bitrate: 8611 kb/s
       Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), none(bt470bg/bt709/bt709), 1920x1080, 43842 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc (default)
       Metadata:
         creation_time   : 2014-07-25 22:11:02
       Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
       Metadata:
         creation_time   : 2014-07-25 22:11:02
    [buffer @ 0x9d47c40] Unable to parse option value "-1" as pixel format
       Last message repeated 1 times
    [buffer @ 0x9d47c40] Error setting option pix_fmt to value -1.
    [graph 0 input from stream 0:0 @ 0x9de4d00] Error applying options to the filter.
    Error opening filters!

    I will really appreciate your help and guidance. Thank you.

  • Compiling FFMPEG on CentOS DigitalOcean

    29 juillet 2015, par coder_uk

    I set up a DigitalOcean instance running CentOS 6.5 and successfully followed the guide to compile FFMPEG (https://trac.ffmpeg.org/wiki/CompilationGuide/Centos). Hurrah !

    But of course I realised that by default, DigitalOcean creates a root user and so ffmpeg now lives in /root/bin/ffmpeg. Which isn’t ideal because when I want to exec the ffmpeg bin from nginx, I would have to run nginx as root for it to have permission.

    Questions ...

    1) Long-shot, but presumably if I change the owner of the ffmpeg binary to nginx, it still won’t work, because nginx won’t be able to access the /root folder it is in. Correct ?

    2) I could run nginx as root (’user root’). But this seems like a very bad idea. Correct ?

    3) Which leaves me with the option of creating a new user, and then compiling ffmpeg into its home folder. But : which user ? EC2 creates ’ec2-user’, so should I make my own equivalent for DO ? But then won’t I have to run nginx as that user, else I’ll run into the same problem ?

    Or should I compile ffmpeg into the ’nginx’ home folder, if indeed it has one ? Is that how it is supposed to be done ?

    Since compiling ffmpeg takes ages, I don’t want to keep doing it, and the static files all seem very out of date. Thanks