Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (63)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (9390)

  • Powershell Job Memory Consumption Issue

    14 juillet 2016, par Matt Wall

    I’ve been struggling with this for a week now and have exhausted all the methods and options I have found online. I am hoping someone here will be able to help me out with this.

    I am using powershell to start 8 jobs, each job running FFmpeg to stream a 7 minute file to a remote RTMP server. This is pulling from a file on the disk and each job uses a different file. The command is in a do while loop so that it is constantly restreaming.

    This is causing the shell I launched the jobs from to accumulate a massive amount of memory, consuming all that it can. In 24 hours it consumed 30 of the 32 GB of my server.

    Here is my launch code, any help would be appreciated.

    start-job -Name v6 -scriptblock {
    do { $d = $true; $f = Invoke-Expression -Command "ffmpeg -re -i `"C:\Shares\Matthew\180p_3000k.mp4`" -vcodec copy -acodec copy -f flv -y rtmp://<ip>/<appname>/<streamname>"; $f = $null }
    while ($d = $true)
    </streamname></appname></ip>

    }

    I’ve tried to receive the jobs and pipe it to out-null, I’ve tried setting $f to $null before starting the do while loop, and some other things I found online but to no avail. Thanks everyone for your time !

  • How to embed subtitles in multiple movies in an automated way using python ?

    8 juin 2023, par Ricardo Madela

    This python script identifies all movies with mp4 extension and, if they have subtitles in srt format, converts the subtitle encoding to utf-8 (without this conversion you will get error message) and starts building the movie with the subtitle embedded.

    &#xA;

    for filename in glob.glob("*.mp4"):&#xA;    print(str(filename))&#xA;    if &#x27;wsubs&#x27; not in filename:&#xA;        for legenda in glob.glob(filename.replace(".mp4",".srt")):&#xA;            try:&#xA;                with open(legenda, &#x27;r&#x27;) as arquivo_orig:&#xA;                    conteudo = arquivo_orig.read()&#xA;                with open(legenda, &#x27;w&#x27;, encoding=&#x27;utf-8&#x27;) as novo_arquivo:&#xA;                    novo_arquivo.write(conteudo)&#xA;            except Exception as e:&#xA;                print("J&#xE1; codificado")&#xA;            print(str(legenda))&#xA;            os.system(&#x27;ffmpeg -i "&#x27; &#x2B; str(filename) &#x2B; &#x27;" -vf subtitles="&#x27; &#x2B; str(legenda) &#x2B; &#x27;" -maxrate 2000000 -crf 20 "&#x27; &#x2B; str(filename.replace(&#x27;.mp4&#x27;,&#x27;-wsubs.mp4&#x27;)) &#x2B; &#x27;"&#x27;)&#xA;

    &#xA;

    The end result will be a subtitled movie with the expression "wsubs" at the end of the name. The original files will be preserved.

    &#xA;

  • Finding a string with AWK before or after an iteration of a repeated sequence

    9 novembre 2017, par dne202

    So I’ve got a text document that looks like this (truncated)

    [FRAME]
    pkt_pts_time=0.000000
    pict_type=I
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.250250
    pict_type=B
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.500500
    pict_type=P
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.750750
    pict_type=B
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.959292
    pict_type=I
    [/FRAME]

    This text was created with this command :

    ffprobe -select_streams v -show_frames -show_entries frame=pkt_pts_time,pict_type,frame_number -v quiet input.mp4

    As you can see, the [Frame] to [/Frame] sequence is repeated. So this is a way for me to count the frames and find which frame is an I frame. In each sequence the "pict_type=" value changes. I was wondering if there was a way for me to use AWK to input an iteration number and output the preceding pkt_pts_time value where the pict_type value equals I.

    For instance, if my frame number is 3. I would be able to enter the number 3 and the awk expression would go to the third [Frame] to [/Frame] sequence and then look back from there till it found a "pict_type=I" string. Then it would see that the pkt_pts_time for that sequence iteration was "pkt_pts_time=0.00000" and it would output 0.0000