Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (57)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (7582)

  • Trouble getting HTML5 vidio to play, in Firefox 33

    16 janvier 2015, par Randy

    I’m preparing to update some old pages to HTML5, and was surprised to see that it worked in Chrome, but not the latest Firefox (v.33.1... also tried v.32). What is odd is this... In Firefox it actually WILL play IF you "coax it". If you move the video position slider to someplace beyond the start (about 5 seconds in) and THEN click play, all is well. Further inspection showed that when I click play, the file pointer was jumping to the end of the file leaving my "poster" photo intact, leading the viewer to think there is nothing else they can do. If, however, you manually move the pointer back to anyplace beyond the first couple of seconds of the file (really !), and THEN click the PLAY button, FF will play the rest of the video fine.

    Sometimes i think that to the more technically minded among us, the universe doles out the weirder problems, while God laughs.

    I’d suspect video file corruption, but all my conversions were made with the very reliable ffmpeg utility, and tested with VLC. Again, it works fine from Chrome, which supposedly uses the same video format. Here’s a link...

    FF will play the older type ogv files, so if this is one of those things where FF, now at version 33 is at fault, I’ll have to detect the browser and write the order myself with a document.write(). But it would be nice to know if there is a more straigh forward solution.

    Note that I have tried adding the mime types to my HTACESS file. But the fact that the behavior is the same when point my browsers directly the file on my local machine, makles me doubt that is the problem.

    http://pixyland.org/peterpan/OurWedding2a.html

    And here is the page code

     



       

       







    <table align="center" border="1"><tr><td align="center">
    <div align="center">

    <video width="640" height="480" controls="controls" poster="Imagezz/Wedding/arIMG_2280.JPG">
    <source src="../vids/Arrival.mp4" type="video/mp4">  
    <source src="../vids/Arrival.webm" type="video/webm">
    <source src="../vids/Arrival.ogv" type="video/ogg">



    <p>If you are unable to view the video, here are some links to download <br />
     in a a few well supported video formats. You may be able to just download <br />
     and play one of these files without the browser.<br /><br />
     <strong>Download Video:</strong>nbsp;
       nbsp;<a href="http://stackoverflow.com/feeds/vids/Arrival.mp4">"MP4"</a>
       nbsp;<a href="http://stackoverflow.com/feeds/vids/Arrival.webm">"WEBM"</a>
       nbsp;<a href="http://stackoverflow.com/feeds/vids/Arrival.ogv">"Ogg"</a>
    </p>

    </source></source></source></video>
    </div>
    </td></tr></table>
  • Trouble getting video stream from Bebop 2 (python, open cv and ffmpeg)

    20 décembre 2018, par Seb A

    I’m currently working with the Bebop 2 drone from parrot and I would like to get the video stream from the bebop and to use the frame I get. To control the bebop I’m using this library : https://github.com/amymcgovern/pyparrot.

    First I’ve tried to use opencv by opening the sdp file used by the bebop to stream the video with this code :

    capture = cv2.VideoCapture('./bebop.sdp')

       while True :
           rt,img = capture.read()
           cv2.imshow("cam",img)
           cv2.waitKey(10)

    here is the content of the sdp file :

    c=IN IP4 192.168.42.1
    m=video 55004 RTP/AVP 96
    a=rtpmap:96 H264/90000

    but I got this error

    [rtp @ 0000020b890b3300] Protocol 'rtp' not on whitelist 'file,crypto'!
    warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:808)
    warning: ./bebop.sdp (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:809)
    False
    OpenCV Error: Assertion failed (size.width>0 &amp;&amp; size.height>0) in cv::imshow, file C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp, line 331
    Traceback (most recent call last):
    File "pilotage.py", line 109, in <module>
      _main_(args)
    File "pilotage.py", line 56, in main
      cv2.imshow('drone view',im)
    cv2.error: C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:331: error: (-215) size.width>0 &amp;&amp; size.height>0 in function cv::imshow
    </module>

    I’ve seen that this is due to the ffmpeg command used by opencv that does not include the option -protocol_whitelist
    So I tried to get the image directly with ffmpeg by using this command

    "ffmpeg -protocol_whitelist \"file,rtp,udp\"  -i  ./bebop.sdp -r 30 -b:v 800k image_%03d.png &amp;"

    But the images I got were awful and useless.
    Like this one :
    bad quality photo

    So I tried different options to improve the quality but I can’t get it to work.
    Thanks for your help.

    I’m on windows 10 and using latest python version

  • Trouble using ffmpeg in c# how to correctly format string to upscale videos ?

    30 décembre 2020, par user14527374

    So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it.

    &#xA;

    I think I must have a string format issue :

    &#xA;

    private void HD_Click(object sender, EventArgs e)&#xA;        {&#xA;            if (textBox1.Text == null)&#xA;            {&#xA;                MessageBox.Show("You&#x27;ve not selected your video file yet. Please do so before continuing, cheers.");&#xA;&#xA;            }&#xA;            else&#xA;            {&#xA;             &#xA;                    var originFilePath = textBox1.Text;&#xA;                    string name = Path.GetFileName(originFilePath);&#xA;                    byte[] bytes = null;&#xA;                    using (FileStream fileStream = new FileStream(originFilePath, FileMode.Open, FileAccess.Read))&#xA;                    {&#xA;                        using (MemoryStream ms = new MemoryStream())&#xA;                        {&#xA;                            fileStream.CopyTo(ms);&#xA;                            bytes = ms.ToArray();&#xA;                        }&#xA;&#xA;                        var localStoragePath = Path.Combine(Path.GetTempPath(), name);&#xA;                        var directoryPath = Path.GetDirectoryName(localStoragePath);&#xA;                        Directory.CreateDirectory(directoryPath);&#xA;                        File.WriteAllBytes(localStoragePath, bytes);&#xA;                        Console.WriteLine($"File copy successful: {File.Exists(localStoragePath)}");&#xA;                        var readBack = File.ReadAllBytes(localStoragePath);&#xA;                        Console.WriteLine($"Read file Back: {readBack.Length}, {localStoragePath}");&#xA;                    var resizedFolderPath = @"C:\upscaledvideohere";&#xA;                        Directory.CreateDirectory(resizedFolderPath);&#xA;                        var resizedFiePath = Path.Combine(resizedFolderPath, Path.GetFileName(localStoragePath));&#xA;&#xA;                        var psi = new ProcessStartInfo();&#xA;                        psi.FileName = @"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\binffmpeg.exe";&#xA;                        psi.Arguments = $"-i \"{localStoragePath}\" -vf scale=1080 \"{resizedFiePath}\"";&#xA;                        psi.RedirectStandardOutput = false;&#xA;                        psi.RedirectStandardError = false;&#xA;                        psi.UseShellExecute = true;&#xA;                        Console.WriteLine($"Args: {psi.Arguments}");&#xA;&#xA;                        try&#xA;                        {&#xA;                            using (Process exeProcess = Process.Start(psi))&#xA;                            {&#xA;                                Console.WriteLine($"process started with processId: {exeProcess.Id}");&#xA;                                exeProcess.WaitForExit();&#xA;                                Console.WriteLine($"Exit Code: {exeProcess.ExitCode}");&#xA;                            }&#xA;                        }&#xA;                        catch (Exception ex)&#xA;                        {&#xA;                            Console.WriteLine(ex.StackTrace.ToString());&#xA;                            Console.WriteLine(ex.Message.ToString());&#xA;                            return;&#xA;                        }&#xA;                        Console.WriteLine($"process completed");&#xA;                        Console.WriteLine($"Temp Out Exists: {File.Exists(resizedFiePath)}");&#xA;                    }&#xA;&#xA;                    Console.ReadLine();&#xA;                }&#xA;            }&#xA;        &#xA;    &#xA;

    &#xA;

    I am wondering where the string format error could be ? Thank you.

    &#xA;