Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (74)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (7107)

  • VLC3 compilation error : linking issue with the libavutil library

    4 octobre 2017, par Ivan Kolesnikov

    I tried to compile VLC3 in ubuntu15.10 a long time, but still no luck.
    I configured FFmpeg as follow :

     /ffmpeg-3.3.3$ ./configure —cpu=native —enable-pthreads —enable-bzlib —enable-libdc1394 —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-libfdk-aac —enable-nonfree —enable-gpl —enable-swscale —enable-libcdio —enable-libxcb —enable-libx264 —enable-libxvid —enable-libopencore-amrnb —enable-version3 —enable-libopencore-amrwb —enable-libvo-amrwbenc —enable-nvenc —enable-openssl —enable-decklink —extra-cflags=-I/home/ivan/Downloads/Blackmagic_DeckLink_SDK_10.9.5/Linux/include —extra-ldflags=-ldl —extra-libs=-ldl —enable-pic

    And configured VLC3 wth the following parameters :

     /vlc-3.0.0-git$ ./configure
    —with-decklink-sdk=I/home/ivan/Downloads/Blackmagic_DeckLink_SDK_10.9.5/Linux/include —disable-chromecas

    The compilation looks fine. Then I tried :

    $ sudo make install

    And got the following error :

     CCLD     libavio_plugin.la
    /usr/local/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_free':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:899: undefined reference to `XCloseDisplay'
    /usr/local/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:929: undefined reference to `XOpenDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:934: undefined reference to `vaGetDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:941: undefined reference to `XDisplayName'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:931: undefined reference to `XDisplayName'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:958: undefined reference to `vaGetDisplayDRM'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:929: undefined reference to `XOpenDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:931: undefined reference to `XDisplayName'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:936: undefined reference to `XDisplayName'
    /usr/local/lib/libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_create':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:431: undefined reference to `XOpenDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:437: undefined reference to `XDisplayString'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:439: undefined reference to `XDefaultScreen'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:439: undefined reference to `vdp_device_create_x11'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:433: undefined reference to `XDisplayName'
    /usr/local/lib/libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_free':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:410: undefined reference to `XCloseDisplay'
    collect2: error: ld returned 1 exit status
    Makefile:12577: recipe for target 'libavio_plugin.la' failed
    make[4]: *** [libavio_plugin.la] Error 1
    make[4]: Leaving directory '/home/ivan/vlc-3.0.0-git/modules'
    Makefile:25280: recipe for target 'install-recursive' failed
    make[3]: *** [install-recursive] Error 1
    make[3]: Leaving directory '/home/ivan/vlc-3.0.0-git/modules'
    Makefile:25679: recipe for target 'install' failed
    make[2]: *** [install] Error 2
    make[2]: Leaving directory '/home/ivan/vlc-3.0.0-git/modules'
    Makefile:1519: recipe for target 'install-recursive' failed
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory '/home/ivan/vlc-3.0.0-git'
    Makefile:1985: recipe for target 'install' failed

    I already saw the following questions related this situation :
    question1,
    question2,
    question3

    As I understand from these questions, I should move to the end the following libraries in the compile command :

    -lvdpau -lX11 -lva*

    But I still didn’t understand where is the place to moving these libraries.
    Please see the output results of the pkg-config command :

    $ pkg-config —libs libavcodec libavformat libswscale libavutil

    -L/usr/local/lib -lavformat -lXv -lX11 -lXext -lstdc++ -lvdpau -lva -lva-x11 -lX11 -lva -lva-drm -lva -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -ldc1394 -lssl -lcrypto -lxvidcore -lx264 -lvpx -lm -lvpx -lm -lvpx -lm -lvpx -lm -lvorbisenc -lvorbis -logg -lvo-amrwbenc -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lz -lgmp -lpulse -lopus -lopenjpeg -DOPJ_STATIC /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so -lopencv_calib3d /usr/lib/x86_64-linux-gnu/libopencv_contrib.so -lopencv_contrib /usr/lib/x86_64-linux-gnu/libopencv_core.so -lopencv_core /usr/lib/x86_64-linux-gnu/libopencv_features2d.so -lopencv_features2d /usr/lib/x86_64-linux-gnu/libopencv_flann.so -lopencv_flann /usr/lib/x86_64-linux-gnu/libopencv_gpu.so -lopencv_gpu /usr/lib/x86_64-linux-gnu/libopencv_highgui.so -lopencv_highgui
    /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so -lopencv_imgproc
    /usr/lib/x86_64-linux-gnu/libopencv_legacy.so -lopencv_legacy
    /usr/lib/x86_64-linux-gnu/libopencv_ml.so -lopencv_ml
    /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so -lopencv_objdetect
    /usr/lib/x86_64-linux-gnu/libopencv_ocl.so -lopencv_ocl
    /usr/lib/x86_64-linux-gnu/libopencv_photo.so -lopencv_photo
    /usr/lib/x86_64-linux-gnu/libopencv_stitching.so -lopencv_stitching
    /usr/lib/x86_64-linux-gnu/libopencv_superres.so -lopencv_superres
    /usr/lib/x86_64-linux-gnu/libopencv_ts.so -lopencv_ts
    /usr/lib/x86_64-linux-gnu/libopencv_video.so -lopencv_video
    /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_videostab
    -lopencore-amrwb -lopencore-amrnb -lmp3lame -lgsm -lfreetype -lfdk-aac -lgnutls -lcrystalhd -lm -llzma -lbz2 -lz -pthread -ldl -lavcodec -lXv -lX11 -lXext -lstdc++ -lvdpau -lva -lva-x11 -lX11 -lva -lva-drm -lva -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -ldc1394 -lssl -lcrypto -lxvidcore -lx264 -lvpx -lm -lvpx -lm -lvpx -lm -lvpx -lm -lvorbisenc -lvorbis -logg -lvo-amrwbenc -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lz -lgmp -lpulse -lopus -lopenjpeg -DOPJ_STATIC /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so -lopencv_calib3d
    /usr/lib/x86_64-linux-gnu/libopencv_contrib.so -lopencv_contrib
    /usr/lib/x86_64-linux-gnu/libopencv_core.so -lopencv_core
    /usr/lib/x86_64-linux-gnu/libopencv_features2d.so -lopencv_features2d
    /usr/lib/x86_64-linux-gnu/libopencv_flann.so -lopencv_flann
    /usr/lib/x86_64-linux-gnu/libopencv_gpu.so -lopencv_gpu
    /usr/lib/x86_64-linux-gnu/libopencv_highgui.so -lopencv_highgui
    /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so -lopencv_imgproc
    /usr/lib/x86_64-linux-gnu/libopencv_legacy.so -lopencv_legacy
    /usr/lib/x86_64-linux-gnu/libopencv_ml.so -lopencv_ml
    /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so -lopencv_objdetect
    /usr/lib/x86_64-linux-gnu/libopencv_ocl.so -lopencv_ocl
    /usr/lib/x86_64-linux-gnu/libopencv_photo.so -lopencv_photo
    /usr/lib/x86_64-linux-gnu/libopencv_stitching.so -lopencv_stitching
    /usr/lib/x86_64-linux-gnu/libopencv_superres.so -lopencv_superres
    /usr/lib/x86_64-linux-gnu/libopencv_ts.so -lopencv_ts
    /usr/lib/x86_64-linux-gnu/libopencv_video.so -lopencv_video
    /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_videostab
    -lopencore-amrwb -lopencore-amrnb -lmp3lame -lgsm -lfreetype -lfdk-aac -lgnutls -lcrystalhd -lm -llzma -lbz2 -lz -pthread -ldl -lswresample -lm -lswscale -lm -lavutil -lm

    And the results only for libavutil library :

    $ pkg-config —libs libavutil

    -L/usr/local/lib -lavutil -lm

    Please also see my VLC
    Makefile

    Can you please to point at the place where these libraries should be reordered ? Also my pkg-config output results are different from the results from the questions above. Any advice or links to solve this question will be helpful.

  • How to capture desktop using ffmpeg ? getting error when stop recording : System.InvalidOperationException : 'StandardIn has not been redirected.'

    4 octobre 2023, par SharonHemed

    I want it to record the entire desktop then when stopping to save the file to the hard drive. and to hide without the console window of the ffmpeg.

    


    but getting this exception error. and i'm setting the RedirectStandardInput to true.
so i'm not sure why it's showing this error.

    


    The exception error is on the line

    


    process.StandardInput.BaseStream.Write(qKey, 0, 1);


    


    The full code

    


    using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NAudio.CoreAudioApi;
using NAudio.Wave;

namespace Desktop_Recorder
{
    public partial class Form1 : Form
    {
        Process process;

        public Form1()
        {
            InitializeComponent();

            process = new Process();
            Start(@"d:\test.mp4", 30);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            Stop();
        }

        public void Start(string FileName, int Framerate)
        {
            process.StartInfo.FileName = @"d:\ffmpeg\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  
            process.EnableRaisingEvents = false;
            process.StartInfo.WorkingDirectory = @"D:\"; // The output directory  
            process.StartInfo.Arguments = @"-y -f gdigrab -framerate " + Framerate +
                " -i desktop -preset ultrafast -pix_fmt yuv420p " + FileName;
            process.StartInfo.UseShellExecute = false;
            process.StartInfo.CreateNoWindow = false;
            process.StartInfo.RedirectStandardInput = true; //Redirect stdin
            process.StartInfo.RedirectStandardError = true;
            process.Start();
            System.Threading.Thread.Sleep(3000);  //Wait 3 seconds (for testing).
            Stop();
        }

        public void Stop()
        {
            byte[] qKey = Encoding.GetEncoding("gbk").GetBytes("q"); //Get encoding of 'q' key
            process.StandardInput.BaseStream.Write(qKey, 0, 1); //Write 'q' key to stdin of FFmpeg sub-processs
            process.StandardInput.BaseStream.Flush(); //Flush stdin (just in case).
            process.Close();
        }


        private void btnStartRecording_Click(object sender, EventArgs e)
        {

        }
    }
}


    


  • FFmpeg is giving me nightmares

    8 juin 2016, par Guillermo

    So, I’m trying to save animations with the animation.save command. I installed ffmpeg in Windows 10 by placing a folder with its binaries in my drive C :\, I have also set the path in my system variables like C :\ffmpeg\bin, and finally, my code for the animation function saving looks like this

    if save=='True':
        mywriter = animation.FFMpegWriter()
        plt.rcParams['animation.ffmpeg_path'] = 'C:/ffmpeg/bin'
        ani.save('mymovie.avi',writer=mywriter,fps=30)

    and all other kind of variants such as :

       mpl.animation.ffmpeg_path = r'C:\ffmpeg\bin'
       mpl.animation.ffmpeg_path = 'C:\\ffmpeg\\bin'

    No matter what I do, the result is always :

    File "<stdin>", line 2, in <module>
    File "Plot.py", line 168, in animate
    ani.save('mymovie.avi',writer=mywriter,fps=30)
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 801, in save
    with writer.saving(self._fig, filename, dpi):
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\contextlib.py", line 17, in __enter__
    return self.gen.next()
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 194, in saving
    self.setup(*args)
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 184, in setup
    self._run()
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 212, in _run
    creationflags=subprocess_creation_flags)
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
    WindowsError: [Error 5] Access Denied
    </module></stdin>

    Any ideas ? :D

    ------------------------------------------------------------------------------

    EDIT : I will reference this answer as it is the one that helped me the best :
    http://stackoverflow.com/a/27017734/6050676

    It worked perfectly when using :

    plt.rcParams['animation.ffmpeg_path'] = 'C:\\ffmpeg\\bin\\ffmpeg.exe'