Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (68)

  • 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

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (8159)

  • avformat/matroskadec : Use AV_DICT_DONT_STRDUP_VAL to save av_strdup

    10 novembre 2019, par Andreas Rheinhardt
    avformat/matroskadec : Use AV_DICT_DONT_STRDUP_VAL to save av_strdup
    

    This will likely also fix CID 1452562, a false positive resulting from
    Coverity thinking that av_dict_set() automatically frees its key and
    value parameters (even without the AV_DICT_DONT_STRDUP_* flags).

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/matroskadec.c
  • In Powershell, how do you select different parts of a string and output them to variable separately and display them in line ?

    23 mai 2020, par HASJ

    I am trying to create a progress bar for FFmpeg, much like python's FFpb and got far enough that I can capture FFmpeg's output to variable and save the needed info in variables, but only after it ends.

    &#xA;&#xA;

    This command saves each line outputted by FFmpeg into the $RedirectOutput variable as objects :

    &#xA;&#xA;

    $RedirectOutput = ffmpeg.exe -y -v quiet -stats -hide_banner -hwaccel cuda -i &#x27;input&#x27; -c:v hevc_nvenc -preset slow -crf 18 -an -t 300 &#x27;output&#x27; 2>&amp;1&#xA;

    &#xA;&#xA;

    $RedirectOutput then becomes :

    &#xA;&#xA;

    frame=  124 fps=0.0 q=14.0 size=     768kB time=00:00:04.03 bitrate=1559.9kbits/s speed=8.04x&#xA;frame=  480 fps=479 q=14.0 size=    3840kB time=00:00:15.90 bitrate=1978.5kbits/s speed=15.9x&#xA;frame=  865 fps=576 q=17.0 size=    7424kB time=00:00:28.73 bitrate=2116.6kbits/s speed=19.1x&#xA;frame= 1256 fps=627 q=17.0 size=   10496kB time=00:00:41.76 bitrate=2058.7kbits/s speed=20.9x&#xA;frame= 1698 fps=678 q=16.0 size=   14080kB time=00:00:56.50 bitrate=2041.5kbits/s speed=22.6x&#xA;frame= 2074 fps=691 q=16.0 size=   17152kB time=00:01:09.03 bitrate=2035.4kbits/s speed=  23x&#xA;frame= 2515 fps=718 q=16.0 size=   20992kB time=00:01:23.73 bitrate=2053.7kbits/s speed=23.9x&#xA;frame= 2972 fps=742 q=18.0 size=   25088kB time=00:01:38.96 bitrate=2076.7kbits/s speed=24.7x&#xA;frame= 3404 fps=755 q=18.0 size=   28928kB time=00:01:53.36 bitrate=2090.4kbits/s speed=25.2x&#xA;...&#xA;

    &#xA;&#xA;

    Here I save each piece of necessary information into their respective variables :

    &#xA;&#xA;

    $videoFps     = $RedirectOutput -replace "(frame=)(\s&#x2B;)?(\d&#x2B;)(.*)", "$3"&#xA;$videoFps     = $RedirectOutput -replace "(.*)(fps=)(\d&#x2B;)(.*)", "$3"&#xA;$videoSpeed   = $RedirectOutput -replace "(.*)(speed=)(\d&#x2B;.*)x", "$3"&#xA;$videoBitrate = $RedirectOutput -replace "(.*)(bitrate=)(\d&#x2B;)(.*)", "$3"&#xA;

    &#xA;&#xA;

    Now that the arrays were created, I'd need to write these to the console periodically, in a formatted fashion (that I'll figure out eventually), as the FFmpeg conversion is running (instead of when it finished) and in a singular line, but I don't know how to proceed.

    &#xA;&#xA;

    Do I save FFmpeg's output to a file instead of a variable and try to read from there ? If so, how do I read it after each write ? With a while loop ?

    &#xA;&#xA;

    Wouldn't that be a performance issue ? I have to say, that isn't a great concern of mine, for now. Just want it to work.

    &#xA;

  • Can ffmpeg copy parts from an rmvb file without re-encoding ?

    24 juin 2017, par Eng. M.Hamdy

    I want to fast copy parts from an rmvb file without re-encoding. This command works fine with mp4 files but not with rmbv (I dropped start time and duration here) :

    ffmpeg -i input -c copy output

    when I use it with rmvb like this :

    ffmpeg -i 1.rmvb -c copy 1.mp4

    I get this error :

    [mp4 @ 00bb8980] Could not find tag for codec rv40 in stream #0, codec
    not curre ntly supported in container Could not write header for
    output file #0 (incorrect codec parameters ?) : Invali d argument
    Stream mapping : Stream #0:1 -> #0:0 (copy) Stream #0:0 -> #0:1
    (copy)

    I also tried this :

    ffmpeg -i 1.rmvb -c copy 2.rmvb

    and got this error :

    [NULL @ 04748980] Unable to find a suitable output format for ’2.rmvb’
    2.rmvb : Invalid argument

    I tried this command :

    ffmpeg -i 1.rmvb -c:v copy -c:a aac -strict experimental -b:a 128k 1.mp4

    and got this error :

    [mp4 @ 046e0020] Could not find tag for codec rv40 in stream #0, codec
    not curre ntly supported in container Could not write header for
    output file #0 (incorrect codec parameters ?) : Invali d argument Error
    initializing output stream 0:1 — [aac @ 046e1bc0] Qavg : nan
    Conversion failed !

    I read this topic :
    but the solution does not work for me.. After many trials, this is the command that worked (and took too long time) :

    ffmpeg -i 1.rmvb -c:v libx264 -b:a 32k output.mp4

    But I do not want to re-encode the file. Any solution ?

    Edit :
    I tried :

    ffmpeg -i 1.rmvb -c copy 1.mkv

    ffmpeg version N-86447-gfeb13ae Copyright (c) 2000-2017 the FFmpeg
    developers built with gcc 7.1.0 (GCC) configuration : —enable-gpl
    —enable-version3 —enable-cuda —enable-cuvid —e nable-d3d11va —enable-dxva2 —enable-libmfx —enable-nvenc —enable-avisynth — enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls
    —enable-iconv
    —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-li bfreetype —enable-libgme —enable-libgsm —enable-libilbc —enable-libmodplug -
    -enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enabl e-libopenh264 —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-li bsnappy —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolam e —enable-libvidstab —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable
    -libxavs —enable-libxvid —enable-libzimg —enable-lzma —enable-zlib libavutil 55. 63.100 / 55. 63.100 libavcodec 57. 98.100 /
    57. 98.100 libavformat 57. 73.100 / 57. 73.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 92.100 / 6. 92.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 /
    2. 8.100 libpostproc 54. 6.100 / 54. 6.100 [rm @ 033a7520] Invalid stream index 2 for index at pos 206099254 Input #0, rm, from
    ’1.rmvb’ : Metadata :
    title : ArabSeed.CoM
    author : ArabSeed.CoM
    copyright : ArabSeed.CoM
    comment :
    ASMRuleBook : #($Bandwidth >= 0),Stream0Bandwidth = 64082, Stream1Bandwi dth = 285918 ;
    Audiences : Easy RealMedia Tool’s Audience ;
    audioMode : music
    Creation Date : 4/22/2010 4:31:14
    Description : This File is Created by Easy RealMedia Tools@ !
    Email : rick@redcheek.net
    Generated By : Easy RealMedia Tools V1.8x
    HomeWeb : http://redcheek.net
    Keywords : ArabSeed.CoM
    Modification Date : 4/22/2010 4:31:14
    videoMode : normal Duration : 01:16:35.69, start : 0.000000, bitrate : 358 kb/s
    Stream #0:0 : Audio : cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 64 kb/ s
    Stream #0:1 : Video : rv40 (RV40 / 0x30345652), yuv420p, 720x408, 280 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc Output #0, matroska, to
    ’1.mkv’ : Metadata :
    title : ArabSeed.CoM
    author : ArabSeed.CoM
    copyright : ArabSeed.CoM
    comment :
    ASMRuleBook : #($Bandwidth >= 0),Stream0Bandwidth = 64082, Stream1Bandwi dth = 285918 ;
    Audiences : Easy RealMedia Tool’s Audience ;
    audioMode : music
    Creation Date : 4/22/2010 4:31:14
    Description : This File is Created by Easy RealMedia Tools@ !
    Email : rick@redcheek.net
    Generated By : Easy RealMedia Tools V1.8x
    HomeWeb : http://redcheek.net
    Keywords : ArabSeed.CoM
    Modification Date : 4/22/2010 4:31:14
    videoMode : normal
    encoder : Lavf57.73.100
    Stream #0:0 : Video : rv40 (RV40 / 0x30345652), yuv420p, 720x408, q=2-31, 280 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1 : Audio : cook ([255][255][255][255] / 0xFFFFFFFF), 44100 Hz, ster eo, fltp, 64 kb/s Stream mapping : Stream #0:1 -> #0:0
    (copy) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help
    [matroska @ 05228980] The Matroska muxer does not yet support muxing
    cook av_interleaved_write_frame() : Not yet implemented in FFmpeg,
    patches welcome Error writing trailer of 1.mkv : Not yet implemented in
    FFmpeg, patches welcome frame= 21 fps=0.0 q=-1.0 Lsize= 0kB
    time=00:00:01.48 bitrate= 0.0kbits /s speed= 148x video:2kB
    audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ove
    rhead : unknown Conversion failed !

    I also tried :

    ffmpeg -i 1.rmvb -c copy 1.avi

    ffmpeg version N-86447-gfeb13ae Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 7.1.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
    nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
    enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
    --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
    bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
    -enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
    e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
    bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
    e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
    --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
    -libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 63.100 / 55. 63.100
     libavcodec     57. 98.100 / 57. 98.100
     libavformat    57. 73.100 / 57. 73.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 92.100 /  6. 92.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [rm @ 00077520] Invalid stream index 2 for index at pos 206099254
    Input #0, rm, from '1.rmvb':
     Metadata:
       title           : ArabSeed.CoM
       author          : ArabSeed.CoM
       copyright       : ArabSeed.CoM
       comment         :
       ASMRuleBook     : #($Bandwidth >= 0),Stream0Bandwidth = 64082, Stream1Bandwi
    dth = 285918;
       Audiences       : Easy RealMedia Tool's Audience;
       audioMode       : music
       Creation Date   : 4/22/2010 4:31:14
       Description     : This File is Created by Easy RealMedia Tools@!
       Email           : rick@redcheek.net
       Generated By    : Easy RealMedia Tools V1.8x
       HomeWeb         : http://redcheek.net
       Keywords        : ArabSeed.CoM
       Modification Date: 4/22/2010 4:31:14
       videoMode       : normal
     Duration: 01:16:35.69, start: 0.000000, bitrate: 358 kb/s
       Stream #0:0: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 64 kb/
    s
       Stream #0:1: Video: rv40 (RV40 / 0x30345652), yuv420p, 720x408, 280 kb/s, 25
    fps, 25 tbr, 1k tbn, 1k tbc
    Could not write header for output file #0 (incorrect codec parameters ?): Operat
    ion not permitted
    Stream mapping:
     Stream #0:1 -> #0:0 (copy)
     Stream #0:0 -> #0:1 (copy)
       Last message repeated 1 times