Recherche avancée

Médias (91)

Autres articles (109)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • How to correctly close a console application using the youtube-dl process to download Twitch stream whenever I want

    24 juin 2023, par ElPavlillo

    The test program has the following code :

    


    string url = "https://www.twitch.tv/ricoy";
string outputPath = @"D:\ruta_del_archivo_salida.mp4";

ProcessStartInfo startInfo = new ProcessStartInfo
{
    FileName = "youtube-dl",
    Arguments = $"-f best -o \"{outputPath}\" \"{url}\"",
    //RedirectStandardOutput = true,
    UseShellExecute = false,
    CreateNoWindow = true
};

using (Process process = new Process())
{
    process.StartInfo = startInfo;
    process.Start();

    //var output = process.StandardOutput.ReadToEnd();
    //process.WaitForExit();

    Console.Read();
    KillProcessAndChildren(process.Id);
}

static void KillProcessAndChildren(int pid)
{
    // Cannot close 'system idle process'.
    if (pid == 0)
    {
        return;
    }
    ManagementObjectSearcher searcher = new ManagementObjectSearcher
            ("Select * From Win32_Process Where ParentProcessID=" + pid);
    ManagementObjectCollection moc = searcher.Get();
    foreach (ManagementObject mo in moc)
    {
        KillProcessAndChildren(Convert.ToInt32(mo["ProcessID"]));
    }
    try
    {
        Process proc = Process.GetProcessById(pid);
        proc.Kill();
    }
    catch (ArgumentException)
    {
        // Process already exited.
    }
}


    


    The problem is that when I press de key in the console the youtube-dl process gets kill and also de ffmpeg but the file is left with .part extension and does not work.

    


    I was expecting the code to left a .mp4 file but for reason it does not.

    


  • ffmpeg multiple rtsp cameras into sigle stream to youtube

    26 janvier 2017, par user3157121

    I have two rtsp ip cameras (dlink) and I want combine (merge) 2 stream in one video output and put it to yutube (live streaming).

    My first step is ok and my command is :

    ffmpeg
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -filter_complex "
    nullsrc=size=1600x448 [base];
    [0:v] setpts=PTS-STARTPTS, scale=800x448 [upperleft];
    [1:v] setpts=PTS-STARTPTS, scale=800x448 [upperright];
    [base][upperleft] overlay=shortest=1 [base];
    [base][upperright] overlay=shortest=1:x=800 [base]"
    -map [base] test.mp4

    My test.mp4 video output is ok.

    After that, I try to send this video to youtube live with this command :

    ffmpeg
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -filter_complex "
    nullsrc=size=1600x448 [base];
    [0:v] setpts=PTS-STARTPTS, scale=800x448 [upperleft];
    [1:v] setpts=PTS-STARTPTS, scale=800x448 [upperright];
    [base][upperleft] overlay=shortest=1 [base];
    [base][upperright] overlay=shortest=1:x=800 [base]"
    -map [base] -f flv "rtmp://a.rtmp.youtube.com/live2/xxx-xxxx-xxxx-xxxx"

    But the youtube stream does not receive data. (It seems to start but do not see the image). I think is a audio problem. But I don’t know how to insert a fake audio (I don’t want audio).

    Is there a solution ?

    Thanks,
    Mattia

  • ffmpeg multiple rtsp cameras into sigle stream to youtube

    17 mars 2020, par user3157121

    I have two rtsp ip cameras (dlink) and I want combine (merge) 2 stream in one video output and put it to yutube (live streaming).

    My first step is ok and my command is :

    ffmpeg
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -filter_complex "
    nullsrc=size=1600x448 [base];
    [0:v] setpts=PTS-STARTPTS, scale=800x448 [upperleft];
    [1:v] setpts=PTS-STARTPTS, scale=800x448 [upperright];
    [base][upperleft] overlay=shortest=1 [base];
    [base][upperright] overlay=shortest=1:x=800 [base]"
    -map [base] test.mp4

    My test.mp4 video output is ok.

    After that, I try to send this video to youtube live with this command :

    ffmpeg
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
    -filter_complex "
    nullsrc=size=1600x448 [base];
    [0:v] setpts=PTS-STARTPTS, scale=800x448 [upperleft];
    [1:v] setpts=PTS-STARTPTS, scale=800x448 [upperright];
    [base][upperleft] overlay=shortest=1 [base];
    [base][upperright] overlay=shortest=1:x=800 [base]"
    -map [base] -f flv "rtmp://a.rtmp.youtube.com/live2/xxx-xxxx-xxxx-xxxx"

    But the youtube stream does not receive data. (It seems to start but do not see the image). I think is a audio problem. But I don’t know how to insert a fake audio (I don’t want audio).

    Is there a solution ?

    Thanks,
    Mattia