Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (30)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (6502)

  • avcodec/aacps_common : Combine huffman tabels

    26 septembre 2023, par Andreas Rheinhardt
    avcodec/aacps_common : Combine huffman tabels
    

    This allows to avoid the relocations inherent in an array
    to individual tables ; it also reduces padding.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/aacps_common.c
    • [DH] libavcodec/aacpsdata.c
  • Unmapping memory-mapped images that are created during processing

    23 avril 2013, par user2309283

    I have a pretty big issue, although I only have the symptoms, and a theory on the cause.

    I have a C++ application under Windows 7x64 that uses system calls to FFMPEG 0.7.13 to extract frames from videos. When running, the parent application maintains a nice, predicable memory footprint in memory profilers (task manager, RAMMap) of about 2MB. I can see the individual calls to FFMPEG also come and go without incident. The trouble is, after about 100 calls to FFMPEG, and 70,000+ PNGs created (no one directory has more than 1500 pngs), the Windows memory page size raises gradually from about 2.5GB to over 7.0GB, and the system is brought to its knees. The sum of the processes for all users is no where near the reported Memory Page amount.

    I thought it might be Windows Search indexing related, so I turned off the indexing for the output directories in question using SetFileAttributes() and FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, and while it seems to be working as advertised, it does not seem to combat the issue at hand. My current running theory is that all of these extracted PNGs are either fully or partially memory mapped, by FFMPEG or something else. I can also see the output PNGs under the RAMMap Physical Pages tab as standby mapped files.

    Question :
    - Is there enough information here to possibly diagnose the exact problem ?
    - Do I have a way to combat this issue ?

    Thanks in advance...

  • Python subprocess or os.system not working with ffmpeg

    13 février 2024, par confused

    I've been trying to get this darn programming run since last night and cannot seem to get anything to work. I want to first trim the video and then resize the video. I'm reading which video and what to give the final name from a text file, over 780 lines long, quite a few videos.

    &#xA;

    Thus far with every idea under the sun I have tried, subprocess and os.system, I can't get anything more than error statements or right now all I get is no file creation of any kind. How the heck do I get this to work correctly ?

    &#xA;

    import ffmpeg&#xA;import subprocess&#xA;import os&#xA;&#xA;os.chdir(&#x27;/home/Downloads/SRs/&#x27;)&#xA;a = open(&#x27;SRt.txt&#x27;, &#x27;r&#x27;)&#xA;b = a.readlines()&#xA;a.close()&#xA;for c in range(0, len(b)-1):&#xA;    words = list(b[c].split(" "))&#xA;    d = len(words)&#xA;    e = words[d-1]&#xA;    f = b[c].replace(e, &#x27;FR&#x27; &#x2B; str(c) &#x2B; &#x27;.mp4&#x27;)&#xA;    words[d-1] = &#x27;FR&#x27; &#x2B; str(c) &#x2B; &#x27;.mp4&#x27;&#xA;    print(f)&#xA;    subprocess.call(f, shell=True)&#xA;    subprocess.call([&#xA;        &#x27;ffmpeg&#x27;,&#xA;        &#x27;-i&#x27;,&#xA;        "&#x27;FR&#x27; &#x2B; str(c) &#x2B; &#x27;.mp4&#x27;",&#xA;        &#x27;-vf scale=320:240&#x27;,&#xA;        words[d-1],&#xA;        ])&#xA;

    &#xA;

    Here are some examples of what the original file would look like :

    &#xA;

     ffmpeg -i SR.mp4 -ss 00:00:00 -to 00:01:22 -c:v copy -a copy CPH.mp4&#xA; ffmpeg -i SR.mp4 -ss 00:01:24 -to 00:02:58 -c:v copy -a copy CG.mp4&#xA; ffmpeg -i SR.mp4 -ss 00:02:59 -to 00:05:41 -c:v copy -a copy CSGP.mp4&#xA;

    &#xA;

    Nothing fancy just separating video in its own individual segments and then resaving it before resizing it.

    &#xA;

    I tried :

    &#xA;

    z=subprocess.call(f, shell=True, stdout=subprocess.PIPE)&#xA;print(z)&#xA;

    &#xA;

    But all I get is '1'.

    &#xA;

    When I changed it to :

    &#xA;

    z=subprocess.call(f, shell=True, stderr=subprocess.PIPE)&#xA;print(z)&#xA;

    &#xA;

    All I get is '1'.

    &#xA;

    Maybe I'm doing something wrong.

    &#xA;