Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (74)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (5489)

  • Writing numpy arrays using cv2 VideoWriter

    8 juillet 2015, par JustInTime

    I have a problem with writing a toy example video using opencv2.3.1 VideoWriter, here is how I do it :

    writer = cv2.VideoWriter('test1.avi',cv.CV_FOURCC('P','I','M','1'),25,(640,480))
    for i in range(1000):
       x = np.random.randint(10,size=(480,640)).astype('uint8')
       writer.write(x)
    #del writer (with or without tested)

    I tried every possible combination resulting with a 0 bytes file if the extension was mpg, and 5.5kb if it was avi. I should say that some pointed out that I should build the ffmpeg library from source and not apt-get it. Well I did that on a fresh machine based on the help of this site http://vinayhacks.blogspot.com/2011/11/installing-opencv-231-with-ffmpeg-on-64.html. which also presented an error while compiling opencv(the error was related to ffmpeg). Now I am really out of ideas, How to generate a video using OPENCV ?

    Thanks in advance

  • Writing numpy arrays using cv2 VideoWriter

    8 juillet 2015, par JustInTime

    I have a problem with writing a toy example video using opencv2.3.1 VideoWriter, here is how I do it :

    writer = cv2.VideoWriter('test1.avi',cv.CV_FOURCC('P','I','M','1'),25,(640,480))
    for i in range(1000):
       x = np.random.randint(10,size=(480,640)).astype('uint8')
       writer.write(x)
    #del writer (with or without tested)

    I tried every possible combination resulting with a 0 bytes file if the extension was mpg, and 5.5kb if it was avi. I should say that some pointed out that I should build the ffmpeg library from source and not apt-get it. Well I did that on a fresh machine based on the help of this site http://vinayhacks.blogspot.com/2011/11/installing-opencv-231-with-ffmpeg-on-64.html. which also presented an error while compiling opencv(the error was related to ffmpeg). Now I am really out of ideas, How to generate a video using OPENCV ?

    Thanks in advance

  • Accessing web content with ffmpeg on android

    9 janvier 2017, par Pure_eyes

    I’m using ffmpeg inside my xamarin.android project,by accessing a statically build version for the corresponding architecture of the device.
    I’m using https://www.johnvansickle.com/ffmpeg/, static builds which support https protocol.
    I’m calling ffmpeg by starting a new process and passing the arguments.Here is a pseudo code for the operation :

    arguments = {'-i',inputFileName,...}
    run('./ffmpeg',arguments,redirectOutput = true,...)
        .OnOutput(s) => log(s)

    Now,I want to access a file in the web, directly with ffmpeg, since from my testing it is more efficient in term of bandwidth, and speed.

    The problem i’m facing is that because i’m using a static build of ffmpeg, we need to statically link gclib, which results loss of dns resolution as stated in the readme :

    A limitation of statically linking glibc is the loss of DNS resolution. Installing
    nscd through your package manager will fix this or you can use
    "ffmpeg -i http://<ip address="address" here="here">/"</ip> instead of "ffmpeg -i http://example.com/"

    But the content that i’m trying to get provides strictly only through HTTPS,so there is no way to access it via the ip.
    But on Linux systems i had no problem accessing the content(With the same command as for android), thanks to nscd, which isn’t present in android.

    • Is there anyway to use android’s dns resolution ?
    • Or compile ffmpeg
      differently, as stated in this
      question ?Maybe using android
      NDK would default this ?Would ffmpeg even work then ?
    • Or somehow pipe the content, to
      ffmpeg’s stdin, and tell it to input from pipe (Would it still be
      more efficient, than downloading and saving the file, then running
      ffmpeg ) ?

    All suggestions are welcomed !

    EDIT

    As for SushiHangover advice, i was able to implement it via piping,i came up with two ways :

    Process ffmpegProcess = new Process();
    ffmpegProcess.StartInfo.FileName = "ffmpeg";
    ffmpegProcess.StartInfo.Arguments = ....
    ffmpegProcess.StartInfo.UseShellExecute = false;
    ffmpegProcess.StartInfo.RedirectStandardInput = true;
    ffmpegProcess.Start();

    //Way 1
    var data = await GetBytesAsync();
    await ffmpegProcess.StandardInput.BaseStream.WriteAsync(b, 0,b.Length);

    // Way 2
    await (await GetStreamAsync()).CopyToAsync(ffmpegProcess.StandardInput.BaseStream);

    Which both work, but they aren’t efficient in term of bandwidth as ffmpeg itself, i tested the network traffic with NetBalancer.

    Way 1 (Fresh Data - First time running program) : 401 KB Upload/ 19.7 MB Download
    Way 1 (Second time running program) : 334.3 KB Upload/ 17.7 MB Download
    Way 2 (Second time running program) : 370 KB Upload/ 16.6 MB Download
    Through FFmpeg Only (Fresh Data - First time running program) : 142.4 KB Upload / 5.3 MB Download
    Through FFmpeg Only (Second time running program) : 67.5 KB Upload / 3.7 MB Download

    Who can i overcome the gap ? I speculate that ffmpeg only reads the headers, and able to download only the needed audio stream based on my arguments, rather than the whole video as my snippets do.