Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (61)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (9337)

  • Rails Streamio FFMPEG taking a screenshot of the movie and upload with carrierwave

    5 juin 2016, par Felix

    I have got a Form where I can upload a movie. Its uploaded with carrierwave.

    In this process I want to Make a screenshot of the movie while uploading.

    How can I do this with Streamio FFMPEG.

    My code Looks like this at the moment.

    #Laedt ein Video hoch
    def uploadMovie
     @channels = Channel.all
     @vid = Movie.new(movies_params)

     @channel = Channel.find(params[:channel_id])
     @vid.channel = @channel

     if @vid.save
       flash[:notice] = t("flash.saved")
       render :add
     else
       render :add
     end
    end

    Do I have to do this in controller method or in the carrierwave uplaoder ?

    Update : I tried it this way :

    if @vid.save
     flash[:notice] = t("flash.saved")
     movieFile = FFMPEG::Movie.new(@vid.video.to_s)
     screenshot = movieFile.screenshot("uploads/screenshot", :seek_time => 10)
     render :add
    else

    But then I got tis error :

    s3.amazonaws.com/uploads/movie/video/6/2016-04-24_16.26.10.mp4' does not exist
  • avconv : from multiple png to movie not exporting correctly

    13 avril 2016, par abhra

    I am trying to generate a mp4 movie from a set of pngs using avconv on my debian8 system. The mp4 file its generating basically looping over the first figure for some time. Here is the command I am using

    avconv -r 10 -start_number 8 -i images_%06d.png -b:v 1000k -vf scale=640 :-1 test.mp4

    Output is

    avconv version 11.6-6:11.6-1 deb8u1, Copyright (c) 2000-2014 the Libav developers built on Mar 2 2016 23:00:02 with gcc 4.9.2
    (Debian 4.9.2-10) Input #0, image2, from ’images_%06d.png’ :
    Duration : 00:00:16.00, start : 0.000000, bitrate : N/A
    Stream #0.0 : Video : png, rgb24, 2400x1801, 25 fps, 25 tbn File ’test.mp4’ already exists. Overwrite ? [y/N] y [scale @ 0x820c60] The
    ::flags= option syntax is deprecated. Use either
    : : or w=:h=:flags=. [libx264 @ 0x837760]
    using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT
    BMI2 [libx264 @ 0x837760] profile High, level 2.2 [libx264 @ 0x837760]
    264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft
    2003-2014 - http://www.videolan.org/x264.html - options : cabac=1 ref=3
    deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
    mixed_ref=1 me_range=16 chroma_me=1 trellis=1 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=3 b_pyramid=2 b_adapt=1
    b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
    keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr
    mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
    ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to ’test.mp4’ : Metadata :
    encoder : Lavf56.1.0
    Stream #0.0 : Video : libx264, yuv420p, 640x480, q=-1—1, 1000 kb/s, 10 fps, 10 tbn, 10 tbc
    Metadata :
    encoder : Lavc56.1.0 libx264 Stream mapping : Stream #0:0 -> #0:0 (png (native) -> h264 (libx264)) Press ctrl-c to stop encoding frame= 17 fps= 0 q=0.0 size= 0kB time=10000000000.00
    bitrate= 0.0kbitframe= 34 fps= 32 q=0.0 size= 0kB
    time=10000000000.00 bitrate= 0.0kbitframe= 51 fps= 32 q=0.0 size=
    0kB time=10000000000.00 bitrate= 0.0kbitframe= 393 fps= 32 q=0.0
    Lsize= 139kB time=39.00 bitrate= 29.2kbits/s video:132kB
    audio:0kB other streams:0kB global headers:0kB muxing overhead :
    5.284794% [libx264 @ 0x837760] frame I:2 Avg QP : 3.69 size : 51320 [libx264 @ 0x837760] frame P:99 Avg QP : 0.32 size : 242 [libx264
    @ 0x837760] frame B:292 Avg QP : 0.15 size : 26 [libx264 @
    0x837760] consecutive B-frames : 0.8% 0.5% 0.0% 98.7% [libx264 @
    0x837760] mb I I16..4 : 45.5% 19.2% 35.3% [libx264 @ 0x837760] mb P
    I16..4 : 0.0% 0.0% 0.0% P16..4 : 0.9% 0.0% 0.0% 0.0% 0.0%
    skip:99.0% [libx264 @ 0x837760] mb B I16..4 : 0.0% 0.0% 0.0%
    B16..8 : 0.2% 0.0% 0.0% direct : 0.0% skip:99.8% L0:22.3% L1:77.7%
    BI : 0.0% [libx264 @ 0x837760] final ratefactor : -21.09 [libx264 @
    0x837760] 8x8 transform intra:18.9% inter:41.7% [libx264 @ 0x837760]
    coded y,uvDC,uvAC intra : 34.1% 0.0% 0.0% inter : 0.1% 0.0% 0.0%
    [libx264 @ 0x837760] i16 v,h,dc,p : 81% 14% 5% 0% [libx264 @
    0x837760] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 49% 14% 36% 0% 0% 0% 0%
    0% 0% [libx264 @ 0x837760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 36% 28% 19%
    3% 3% 2% 4% 2% 3% [libx264 @ 0x837760] i8c dc,h,v,p : 100% 0% 0%
    0% [libx264 @ 0x837760] Weighted P-Frames : Y:0.0% UV:0.0% [libx264 @
    0x837760] ref P L0 : 99.3% 0.0% 0.6% 0.1% [libx264 @ 0x837760] ref B
    L0 : 4.2% 95.8% [libx264 @ 0x837760] ref B L1 : 99.8% 0.2% [libx264 @
    0x837760] kb/s:27.34

    I have also tried

    cat *.png | avconv -f image2pipe -i - -b:v 1000k -vf scale=640 :-1 test2.mp4

    output shows

    avconv version 11.6-6:11.6-1 deb8u1, Copyright (c) 2000-2014 the Libav developers built on Mar 2 2016 23:00:02 with gcc 4.9.2
    (Debian 4.9.2-10) Codec AVOption b (set bitrate (in bits/s)) specified
    for output file #0 (test2.mp4) has not been used for any stream. The
    most likely reason is either wrong type (e.g. a video option with no
    video streams) or that it is a private option of some encoder which
    was not actually used for any stream. Output #0, image2pipe, to
    ’test2.mp4’ : Output file #0 does not contain any stream

    When getting frames fromtest.mp4

    avconv -i test.mp4 -r 30 -f image2 %04d.png

    I found 1000 or more copies of the images_000001.png.

    Would you please help, whether I have made any mistake in commands ? Or am I missing some codec options ? Thanks for the help.

  • Encoding of two full hd streams in Linux + GPU with Intel HD4000 / VA API / FFMPEG / OpenGL

    30 juin 2016, par qknight

    i want to encode/stream two full hd streams in realtime from my laptop to a remote location using linux/xorg on the host.

    VA API

    for this i’ve been playing with the VA API but the performance is pretty bad with 5.59 fps (see paste below).

    FFMPEG

    using ffmpeg with CPU encoding i get about 200 fps but then all cores of my Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz are busy and the fan turns on.

    future plans

    i want GPU support in encoding and later integrate this into a program which streams a virtual xorg ’screen’, see https://lastlog.de/wiki/index.php/Raspberry_PI_virtual_screen for more details on my plans.

    maybe h264 isn’t even what i want ? so if someone advices towards a different implementation, i’d welcome that.

    besides VA API there seems to be QuickSync but i didn’t experiment with that yet as it is not packaged on NixOS just yet.

    note : i need a library to have a smooth integration into the code.

    h264encode -w 1920 -h 1080 —profile MPSource frame is 1920x1080 and will code clip to 1920x1088 with crop
    

    INPUT:Try to encode H264...
    INPUT : Resolution : 1920x1080, 60 frames
    INPUT : FrameRate : 30
    INPUT : Bitrate : 14929920
    INPUT : Slieces : 1
    INPUT : IntraPeriod : 30
    INPUT : IDRPeriod : 60
    INPUT : IpPeriod : 1
    INPUT : Initial QP : 26
    INPUT : Min QP : 0
    INPUT : Source YUV : AUTO generated
    INPUT : Coded Clip : /tmp/test.264
    INPUT : Rec Clip : Not save reconstructed frame

    libva info : VA-API version 0.38.1
    libva info : va_getDriverName() returns 0
    libva info : Trying to open /run/opengl-driver/lib/dri/i965_drv_video.so
    libva info : Found init function __vaDriverInit_0_38
    libva info : va_openDriver() returns 0
    Use profile VAProfileH264Main
    Support rate control mode (0x12):CBR CQP
    RateControl mode : CQP
    Support VAConfigAttribEncPackedHeaders
    Support packed sequence headers
    Support packed picture headers
    Support packed slice headers
    Support packed misc headers
    Support 1 RefPicList0 and 1 RefPicList1
    Loading data into surface 15.....Complete surface loading
    \00000059(054456 bytes coded)

    PERFORMANCE : Frame Rate : 5.59 fps (60 frames, 10730 ms (178.83 ms per frame))
    PERFORMANCE : Compression ratio : 51:1
    PERFORMANCE : UploadPicture : 10467 ms (174.45, 97.55% percent)
    PERFORMANCE : vaBeginPicture : 0 ms (0.00, 0.00% percent)
    PERFORMANCE : vaRenderHeader : 1 ms (0.02, 0.01% percent)
    PERFORMANCE : vaEndPicture : 42 ms (0.70, 0.39% percent)
    PERFORMANCE : vaSyncSurface : 244 ms (4.07, 2.27% percent)
    PERFORMANCE : SavePicture : 7 ms (0.12, 0.07% percent)
    PERFORMANCE : Others : -31 ms (71582787.75, 40027653.91% percent)
    (Multithread enabled, the timing is only for reference)

    i’ve seen https://www.reddit.com/r/linux/comments/1qk1yu/is_there_currently_opensource_software_to_encode/ though but i’m not sure what do do with it.