Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (104)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6585)

  • Python get Audio/Video frames separately from video file

    3 juillet 2016, par AlvaroAV

    What i’m trying to do :

    Hi !

    I’m trying to store the Video and Audio information from a video file. I would like to store video frames and audio frames separately in different variables.

    My intention is to manage video/files and do some actions with the audio and video frame list, but to do what I’m plannign to do I need to store this audio/video frames separately. I’ve read a lot of questions in StackOverflow about python and audio/video managing.

    Most people recommend to use OpenCV or ffmpeg to manage videos. I saw some scripts using these libraries to get video(only video) frames, but none of them are getting audio, most of them are just getting video frames and save them as RGB images. I also check some scripts where people get audio frames from a mp3 file, but I’m not sure if you can do that in a video file

    Most important thing to me is to know the best way to manage video and audio separately. I’m not looking for people to do my code, just asking to point me in a good direction.

    One of the things I’m trying to do is to send this information via socket, but as I said I need the audio and video frames to be in separated variables (yes, i’m wondering about an stream app, but that’s not the only thing I’m trying to do)

    I know I should give more information, and maybe show some code, but I don’t have any concret code I tried some things, but I’ve never been capable to separate audio and video. I know that each format has his own encryption, and at the end I decided to use "mp4" as video format but I don’t know neither if this is the best format for what I’m trying to do.

    Resume :

    Is openCV the best way to manage video and audio separately ?

    Wich is the easiest way to separate video and audio frames ? Is it possible ?

    Wich is the best documentation I should read to learn about video/audio management ?

    I would like to do the things with my own code, and use in the less way possible openCV or other libraries.

    My "basic" idea is to get a "list" of audio and video frames, and then I would like to do some operations, but right now I can’t find the best way for me to manage a vide using python. I even wonder if could be possible to manage a video as raw data

    I need to know wich is the best library to manage videos using python, for me the best library, will be the one that allows me to manage the videos more "freely"

    I’ve already checked :

    I’ve read too many questions on this theme, the most recent are :

    How to extract audio from video file

    Split audio video separately from given video using MLT

    Embed audio video in python gui

  • Dreamcast Development Desktop

    28 mars 2011, par Multimedia Mike — Sega Dreamcast

    Some people are curious about what kind of equipment is required to program a Sega Dreamcast. This is my setup :



    It’s a bit overcomplicated. The only piece in that picture which doesn’t play a role in the Dreamcast development process is the scanner. The Eee PC does the heavy lifting of development (i.e., text editing and cross compilation) and uploads to the Dreamcast via a special serial cable. Those are the most essential parts and are really the only pieces necessary for a lot of algorithmic stuff (things that can be validated via a serial console). But then I have to go up a level where I output video. That’s where things get messy.



    The Mac Mini and giant monitor really just act as a glorified TV in this case. Ideally, it will be more than that. The DC outputs audio and video via composite cables to a Canopus DV capture bridge. That’s connected via FireWire to the external hard drive underneath the Mac Mini, which is connected to the Mac. Adobe Premiere Pro handles the DV capture / display.

    One day I hope to have something worthwhile to capture.

  • ffmpeg stream offset command (-itsoffset) not working

    12 juillet 2013, par jen

    I would really appreciate if someone could give some pointers regarding the use of itsoffset with ffmpeg. I have read a number of posts on this subject, some of them explain very clearly how to re-synchronize audio and video with -itsoffset, but I haven't been able to make it work.
    My avi file is encoded with ffmpeg, in two passes, using the following command for the second pass :

    ffmpeg -i whole-vts_01.avs -pass 2 -y -vcodec libxvid -vtag XVID -b:v 1300K -g 240 -trellis 2 -mbd rd -flags +mv4+aic -acodec ac3 -ac 2 -ar 48000 -b:a 128k output.avi

    For whatever reason, I end up with a 1 sec delay in the video (or the audio is 1 sec early). It doesn't happen too often but I see it from time to time.
    Among other attempts, I have tried the following :

    (1) ffmpeg -i output.avi -itsoffset 00:00:01.0 -i output.avi -vcodec copy -acodec copy -map 0:0 -map 1:1 output-resynched.avi
    (2) ffmpeg -i output.avi -itsoffset 00:00:01.0 -i output.ac3 -vcodec copy -acodec copy -map 0:0 -map 1:0 output-resynched2.avi
    (3) ffmpeg -itsoffset -00:00:01.00 -i output.avi output-resynched8.avi
    (4) ffmpeg -i output.avi -itsoffset -1.0 -i output.avi -vcodec copy -acodec copy -map 0:1 -map 1:0 output-resynched13.avi

    Here are the results :

    1. Audio garbled and only 5m 35 s long vs. 1h 41m.
    2. (Output.ac3 is audio component of output.avi) Video and audio
      identical to original, offset didn't work
    3. Audio did get shifted, but original encoding parameters replaced with default ones (as expected).
    4. Audio garbled and only 9m 56s long vs. 1h 41m.

    I see that many people explain, and apparently use the process described above, but it doesn't seem to be working for me. Am I missing something obvious ? I would very much like to be able to use -itsoffset as it is cleaner than my workaround solution.

    FWIW, here is a different, and longer way of obtaining the desired result :

    First create a shifted video only file using -ss :

    ffmpeg -i output.avi -ss 1.0 -vcodec copy -an oupput_videoshifted.avi

    Then extract the audio :

    ffmpeg -i output.avi -vn -acodec copy outputaudioonly.ac3

    And finally remux both components :

    ffmpeg -i output_videoshifted.avi -i output_audioonly.ac3 -vcodec copy -acodec copy -map 0:0 -map 1:0 output-resynched14.avi

    The process works, is fast enough, but I would really prefer to use the one pass -itsoffset solution.