Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (69)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (10170)

  • Is it possible to adjust position of gdigrab recording region during recording ?

    30 novembre 2020, par adelima

    I'm using ffmpeg for recording video from defined desktop region by starting ffmpeg.exe as process with arguments like so :

    


        public static void StartRecording(Video v) {
        string outPath = Path.Combine(Application.StartupPath, "rec", $"{v.FileName}.mkv");
        v.FFMPEG = new Process {
            StartInfo = new ProcessStartInfo() {
                Arguments = $"-hide_banner -y -thread_queue_size 512 -f gdigrab -offset_x {v.Bounds.X} -offset_y {v.Bounds.Y} -video_size {v.Bounds.Width}x{v.Bounds.Height} -show_region 0 -i desktop -vf \"scale=trunc(iw/2)*2:trunc(ih/2)*2\" -c:v libx264 -preset ultrafast -crf 18 -pix_fmt yuv420p \"{outPath}\"",
                WindowStyle = ProcessWindowStyle.Hidden,
                CreateNoWindow = true,
                UseShellExecute = false,
                FileName = Path.Combine(Application.StartupPath, "bin", "ffmpeg.exe"),
                RedirectStandardOutput = true,
                RedirectStandardInput = true,
                RedirectStandardError = true,
            }
        };
        v.FFMPEG.Start();

        new Thread(() => {
            using(StreamReader sr = v.FFMPEG.StandardError) {
                while(!sr.EndOfStream) {
                    Debug.WriteLine(sr.ReadLine());
                }
            }
        }).Start();
    }

    public static void StopRecording(Video v) {
        using(StreamWriter sw = v.FFMPEG.StandardInput) {
            sw.WriteLine("q\n");
        }
        v.FFMPEG.WaitForExit();
        v.FFMPEG.Dispose();
    }


    


    Is it possible to make changes to the -offset_x and -offset_y arguments during recording ? I'm drawing the recording region bounds with directx and want to add a titlebar to it which can be dragged to move the recording region, but I'm not sure how I would let ffmpeg know that I want these offsets changed or whether it's even possible.

    


  • Revision 31219 : Pour compatibilité avec les recommandations des squelettes Z. Les classes ...

    31 août 2009, par rastapopoulos@… — Log

    Pour compatibilité avec les recommandations des squelettes Z.
    Les classes ne sont pas encore fixées, donc il vaut mieux ne pas les utiliser intensément. Mais je pense que cette structure couvre tous les cas et est lisible.
    Le but des classes est de ne pas imposer des balises particulières.

  • Start ffmpeg sound recording at system start doesn't work

    3 octobre 2022, par CheatingBoy

    I made a python script to record sound at System boot, but it doesn't work. I've tried using crontab and systemd but it doesn't work. If I start the program manually it works out fine.

    


    #!/bin/python3
import RPi.GPIO as GPIO
import time
import datetime
import subprocess
import os
import signal
GPIO.setmode(GPIO.BCM)
GPIO.setup(24, GPIO.IN)
GPIO.setup(23, GPIO.OUT)
print("Started Sound_Recorder_ULtimate_Control")
p = None
while True:
        time.sleep(0.5)
        if GPIO.input(24) == 1:
            if p is None:
                print("Preparing to recorde")
                today = datetime.datetime.now()
                time1 = "{}.{}.{}_{}:{}:{}".format(today.day , today.month, today.year, today.hour, today.minute, today.second)
                # Aufname starten
                command = "sh -c 'ffmpeg -f pulse -nostdin -i alsa_input.usb-FuZhou_Kingwayinfo_CO._LTD_TONOR_TC30_Audio_Device_20200707-00.mono-fallback /home/pi/sound_recorder/Recordes/'" + time1 + ".mp3"
                print(command)
                #subprocess.Popen(command)
                p = subprocess.Popen(command, stdout=subprocess.PIPE, 
                       shell=True, preexec_fn=os.setsid)
                print("Recording...")
                GPIO.output(23, GPIO.HIGH)
                time.sleep(2)    

            else:
                print("Terminate")
                os.killpg(os.getpgid(p.pid), signal.SIGTERM)
                GPIO.output(23, GPIO.LOW)
                p = None
                time.sleep(2)