Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (69)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6439)

  • Scrape mp4 file from a URL ? [on hold]

    22 juillet 2013, par TJE

    I am running ffmpeg on my server and am using it with PHP. I was wondering if it was possible to enter a URL of a web page and have it search the source code for a .mp4 file. Then use that as the uploaded file in the HTML form and process it with PHP. I would also like to be able to scrape other data found on the page.

    Can someone recommend a good tutorial or lesson for scraping data by just entering a URL in an HTML form ? Or just answer my question if it's simple. I am a bit of a noob at this.

  • Mix Audio tracks with offset in SOX

    4 août 2012, par Laramie

    From ASP.Net, I am using FFMPEG to convert flv files on a Flash Media Server to wavs that I need to mix into a single MP3 file. I originally attempted this entirely with FFMPEG but eventually gave up on the mixing step because I don't believe it it possible to combine audio only tracks into a single result file. I would love to be wrong.

    I am now using FFMPEG to access the FLV files and extract the audio track to wav so that SOX can mix them. The problem is that I must offset one of the audio tracks by a few seconds so that they are synchronized. Each file is one half of a conversation between a student and a teacher. For example teacher.wav might need to begin 3.3 seconds after student.wav. I can only figure out how to mix the files with SOX where both tracks begin at the same time.

    My best attempt at this point is :

    ffmpeg -y -i rtmp://server/appName/instance/student.flv -ac 1 student.wav
    ffmpeg -y -i rtmp://server/appName/instance/teacher.flv -ac 1 teacher.wav

    sox -m student.wav teacher.wav combined.mp3 splice 3.3

    These tools (FFMEG/SoX) were chosen based on my best research, but are not required. Any working solution would allow an ASP.Net service to input the two FMS flvs and create a combined MP3 using open-source or free tools.

    EDIT :
    I was able to offset the files using the delay switch in SOX.

    sox -M student.wav teacher.wav combined.mp3 delay 2.8

    I'm leaving the question open in case someone has a better approach than the combined FFMPEG/SOX solution.

  • parsing different ffmpeg -i output

    11 août 2012, par Jizbo Jonez

    I have a bit of code that gets a video files duration, width, height and framerate which works fine for some videos -

    $output = `ffmpeg -i /var/thismovie.avi`;
    preg_match('/Duration: (.*?),.*?Video:.*?0x.*?([0-9]+)x([[0-9]+).*?([0-9]+) fps/i'
    ,$output , $result);

    The problem is there are other videos that give a slightly different output information, for example the above code works with this output -

    Input #0, avi, from '/var/www/vhosts/thissite.com/httpdocs/video1.avi':
    Duration: 00:00:10.76, start: 0.000000, bitrate: 5180 kb/s
    Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 128 kb/s

    but another video gives this info and will not give any results when used with the above code -

    Input #0, avi, from '/var/www/vhosts/thissite.com/httpdocs/video2.avi':
    Duration: 00:00:05.68, start: 0.000000, bitrate: 887 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 640x272 [SAR 1:1 DAR 40:17], 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s

    The difference between the two outputs is in the Stream #0:0 part. The fist output shows 7 different pieces of information separated by a comma, the last output only shows 6 bits. The missing piece of info in the last output is the frame rate (fps) but apparently I can use the value for tbr instead.

    So my question is, how can I modify the code I am using to cover both types of outputs ?