Recherche avancée

Médias (91)

Autres articles (71)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (7902)

  • Converting mp4 file downloaded via youtube-dl from periscope by using ffmpeg gives error

    20 mars 2018, par MonsterMMORPG

    This is command i have used to download from periscope by using latest youtube-dl

    youtube-dl -v periscopeurl

    Then i am running this command to convert it to a proper MP4

    ffmpeg -i gg.mp4 -c:v libx264 -preset veryslow -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p gg2.mp4

    I am using latest youtube-dl and ffmpeg

    The error i am getting is shown below

    So how can i fix this error ? The file can not be played properly on k lite mega codec player but it can be played on vlc player however can not go to any specific time etc. so it really needs to be properly re-encoded

    C:\temp>ffmpeg -i gg.mp4 -c:v libx264 -preset veryslow -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p gg2.mp4
    ffmpeg version N-90378-ge4eaaf7bf6 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3l
    ame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-li
    bvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-l
    ibvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enabl
    e-avisynth
     libavutil      56. 11.100 / 56. 11.100
     libavcodec     58. 14.100 / 58. 14.100
     libavformat    58. 10.100 / 58. 10.100
     libavdevice    58.  2.100 / 58.  2.100
     libavfilter     7. 13.100 /  7. 13.100
     libswscale      5.  0.102 /  5.  0.102
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'gg.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.10.100
     Duration: 00:56:45.15, start: 0.000000, bitrate: 174 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x568, 130 kb/s, 23.97 fps, 24 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 35 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 00000009eda7ce00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 00000009eda7ce00] profile High, level 3.1
    [libx264 @ 00000009eda7ce00] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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 d
    ecimate=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_look
    ahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Too many packets buffered for output stream 0:0.577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
    [libx264 @ 00000009eda7ce00] frame I:1     Avg QP:19.87  size: 30456
    [libx264 @ 00000009eda7ce00] frame P:36    Avg QP:19.68  size:  8765
    [libx264 @ 00000009eda7ce00] frame B:92    Avg QP:25.27  size:  1149
    [libx264 @ 00000009eda7ce00] consecutive B-frames:  0.8% 10.7%  0.0% 88.5%  0.0%  0.0%  0.0%  0.0%  0.0%
    [libx264 @ 00000009eda7ce00] mb I  I16..4:  8.3% 10.7% 81.0%
    [libx264 @ 00000009eda7ce00] mb P  I16..4:  0.9%  1.5%  1.0%  P16..4: 38.8% 16.4% 11.7%  3.1%  1.3%    skip:25.3%
    [libx264 @ 00000009eda7ce00] mb B  I16..4:  0.1%  0.1%  0.1%  B16..8: 21.5%  4.6%  2.1%  direct: 2.7%  skip:68.9%  L0:41.2% L1:45.6% BI:13.2%
    [libx264 @ 00000009eda7ce00] 8x8 transform intra:28.6% inter:10.9%
    [libx264 @ 00000009eda7ce00] direct mvs  spatial:93.5% temporal:6.5%
    [libx264 @ 00000009eda7ce00] coded y,uvDC,uvAC intra: 74.0% 65.1% 38.7% inter: 15.2% 8.0% 2.9%
    [libx264 @ 00000009eda7ce00] i16 v,h,dc,p: 49% 20% 23%  7%
    [libx264 @ 00000009eda7ce00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 12% 33%  3%  5%  5%  5%  5%  7%
    [libx264 @ 00000009eda7ce00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 10%  7%  9%  9% 11%  8% 11%
    [libx264 @ 00000009eda7ce00] i8c dc,h,v,p: 37% 24% 29% 10%
    [libx264 @ 00000009eda7ce00] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 00000009eda7ce00] ref P L0: 73.3%  6.3% 11.1%  1.8%  1.7%  1.2%  1.0%  0.5%  0.5%  0.4%  0.4%  0.4%  0.4%  0.4%  0.4%  0.3%
    [libx264 @ 00000009eda7ce00] ref B L0: 94.0%  3.8%  0.9%  0.3%  0.2%  0.2%  0.2%  0.1%  0.1%  0.1%  0.0%  0.0%  0.0%  0.0%  0.0%
    [libx264 @ 00000009eda7ce00] ref B L1: 97.7%  2.3%
    [libx264 @ 00000009eda7ce00] kb/s:672.35
    Conversion failed!

    C:\temp>
  • Block YouTube from source page when trying to download a video with youtube-dl

    18 mars 2018, par user3108268

    E.g. example.com/1 has a video hosted, you run youtube-dl example.com/1 and it all works fine, the video gets downloaded.

    E.g. example.com/2 also has a video, but it also has a YouTube trailer. If you run youtube-dl example.com/2 the hosted video gets completely ignored and only YouTube trailer gets downloaded.

    From what I see in the log is that the wanted local video playlist gets downloaded first and then ignored by getting overwritten by embedded YouTube playlist download.

    You can’t even get the url with --get-url or get format with --list-formats. It always prints the googlevideos URL for the YouTube trailer and lists only the YouTube trailer formats.

    I did manage to pull out the local video URL via --dump-pages and decoding the base64 encoded source. But the problem is that the URL contains a unique token each time the page example.com/2 is called, so passing the unique one-time video URL like e.g. example.com/2/video.php ?token=asdf to youtube-dl won’t download the video.

    So I figured somehow I need to bypass the YouTube trailer source and playlist when calling youtube-dl example.com/2 and trying to download local video and not the YouTube trailer.

  • ffmpeg stream video file from ubuntu to youtube

    14 mars 2018, par user3010452

    I’m trying to create a stream to youtube. I could see how preview button changes into enable state. However it never actually changes from offline.
    And it gives me several error. What am I doing wrong ?

        ffmpeg -i video.flv -f flv rtmp://a.rtmp.youtube.com/live2/XXXXXX


     ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers

         built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
         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
         libavutil      54. 31.100 / 54. 31.100
         libavcodec     56. 60.100 / 56. 60.100
         libavformat    56. 40.101 / 56. 40.101
         libavdevice    56.  4.100 / 56.  4.100
         libavfilter     5. 40.101 /  5. 40.101
         libavresample   2.  1.  0 /  2.  1.  0
         libswscale      3.  1.101 /  3.  1.101
         libswresample   1.  2.101 /  1.  2.101
         libpostproc    53.  3.100 / 53.  3.100
       Input #0, flv, from 'video.flv':
         Metadata:
           major_brand     : qt  
           minor_version   : 0
           compatible_brands: qt  
           com.apple.quicktime.creationdate: 2017-07-20T21:44:12+0700
           com.apple.quicktime.make: Apple
           com.apple.quicktime.model: iPhone 6s Plus
           com.apple.quicktime.software: 10.3.2
           encoder         : Lavf57.83.100
         Duration: 00:01:15.24, start: 0.000000, bitrate: 4454 kb/s
           Stream #0:0: Video: flv1, yuv420p, 1920x1080, 200 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc
           Stream #0:1: Audio: adpcm_swf, 44100 Hz, mono, s16, 176 kb/s
       Output #0, flv, to 'rtmp://a.rtmp.youtube.com/XXXXXX':
         Metadata:
           major_brand     : qt  
           minor_version   : 0
           compatible_brands: qt  
           com.apple.quicktime.creationdate: 2017-07-20T21:44:12+0700
           com.apple.quicktime.make: Apple
           com.apple.quicktime.model: iPhone 6s Plus
           com.apple.quicktime.software: 10.3.2
           encoder         : Lavf56.40.101
           Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080, q=2-31, 200 kb/s, 29.97 fps, 1k tbn, 29.97 tbc
           Metadata:
             encoder         : Lavc56.60.100 flv
           Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, mono, s16p
           Metadata:
             encoder         : Lavc56.60.100 libmp3lame
       Stream mapping:
         Stream #0:0 -> #0:0 (flv1 (flv) -> flv1 (flv))
         Stream #0:1 -> #0:1 (adpcm_swf (native) -> mp3 (libmp3lame))
       Press [q] to stop, [?] for help
       [flv @ 0x162bac0] Failed to update header with correct duration.ate=4125.4kbits/s    
       [flv @ 0x162bac0] Failed to update header with correct filesize.
       frame= 2255 fps=114 q=31.0 Lsize=   37863kB time=00:01:15.24 bitrate=4122.0kbits/s    
       video:37194kB audio:588kB subtitle:0kB other streams:0kB global

    headers:0kB mixing overhead : 0.213941%