Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (61)

  • 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 (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (8375)

  • Interfacing to an Xbox Optical Drive

    1er octobre 2013, par Multimedia Mike — xbox

    The next generation Xbox is going to hit the streets soon. But for some reason, I’m still interested in the previous generation’s unit (i.e., the original Xbox). Specifically, I’ve always wondered if it’s possible to use the original Xbox’s optical drive in order to read Xbox discs from Linux. I was never curious enough to actually buy an Xbox just to find out but I eventually came across a cast-off console on a recycle pile.

    I have long known that the Xbox has what appears to be a more or less standard optical drive with a 40-pin IDE connector. The only difference is the power adapter which I surmise is probably the easiest way to turn a bit of standardized hardware into a bit of proprietary hardware. The IDE and power connectors look like this :


    Xbox optical drive connections

    Thus, I wanted to try opening an Xbox and plugging the optical drive into a regular PC, albeit one that supports IDE cables, and allow the Xbox to supply power to the drive. Do you still have hardware laying around that has 40-pin IDE connectors ? I guess my Mac Mini PPC fits the bill, but I’ll be darned if I’m going to pry that thing open again. I have another IDE-capable machine buried in my closet, last called into service when I needed a computer with a native RS-232 port 3 years ago. The ordeal surrounding making this old computer useful right now can be another post entirely.

    Here’s what the monstrosity looks like thanks to characteristically short IDE cable lengths :


    Xbox optical drive connected directly to PC

    Click for larger image


    Process :

    1. Turn on Xbox first
    2. Turn on PC

    Doing these things in the opposite order won’t work since the kernel really wants to see the drive when booting up. Inspecting the 'dmesg' log afterward reveals interesting items :

    <br />
    hdd: PHILIPS XBOX DVD DRIVE, ATAPI CD/DVD-ROM drive<br />
    hdd: host max PIO5 wanted PIO255(auto-tune) selected PIO4<br />
    hdd: UDMA/33 mode selected<br />
    [...]<br />
    hdd: ATAPI DVD-ROM drive, 128kB Cache<br />

    Why is that interesting ? When is the last time to saw disk devices prefixed by ‘hd’ rather than ‘sd’ ? Blast from the past. Oh, and the optical drive’s vendor string clearly indicates that this is an Xbox drive saying ‘hi !’.

    Time To Read
    When I first studied an Xbox disc in a normal optical drive, I noticed that I was able to read 6992 2048-byte sectors — about 14 MB of data — as reported by the disc table of contents (TOC). This is just enough data to play a standard DVD video animation that kindly instructs the viewer to please use a proper Xbox. At this point, I estimated that there must be something special about Xbox optical drive firmware that knows how to read alternate information on these discs and access further sectors.

    I ran my TOC query tool with an Xbox Magazine demo disc in the optical drive and it reported substantially more than 6992 sectors, enough to account for more than 2 GB of data. That’s promising. I then tried running 'dd' against the device and it was able to read… about 14 MB, an exact quantity of bytes that, when divided by 2048 bytes/sector, yields 6992 sectors.

    Future (Past ?) Work
    Assuming Google is your primary window into the broader internet, the world is beginning to lose its memory of things pertaining to the original Xbox (Microsoft’s naming scheme certainly doesn’t help searches). What I’m saying is that it can be difficult to find information about this stuff now. However, I was able to learn that a host needs to perform a sort of cryptographic handshake with the drive at the SCSI level before it is allowed to access the forbidden areas of the disc. I think. I’m still investigating this and will hopefully post more soon.

  • ffmpeg : Generate empty audio and video (working for video)

    17 septembre 2021, par David Ferris

    I'm trying to generate a black video with FFMPEG. I have accomplished this with the following :

    &#xA;

    ffmpeg -t 5 -f lavfi -i color=c=black:s=1920x1080 -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4&#xA;

    &#xA;

    Unfortunately this video doesn't have any audio tracks. Following this, I have tried to insert -i anullsrc=channel_layout=stereo:sample_rate=44100 :

    &#xA;

    ffmpeg -t 5 -i anullsrc=channel_layout=stereo:sample_rate=44100 -f lavfi -i color=c=black:s=1920x1080 -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4&#xA;

    &#xA;

    Unfortunately this gives the error :

    &#xA;

    &#xA;

    anullsrc=channel_layout=stereo:sample_rate=44100 : No such file or&#xA;directory

    &#xA;

    &#xA;

    How can I modify my initial script to generate a video with empty audio ?

    &#xA;

  • Video player scroll doesn't work after ffmpeg audio and video merge (NodeJS)

    1er novembre 2022, par Pietro Leto

    I made youtube downloader to download video from youtube using nodejs library ytdl-core. If I wanted to download video with best quality I had to download them without sound. So, in my script, I download audio and video separately and I merge them into an mp4 file.&#xA;What's the problem ? Video player scroll doesn't work. I can see the video but I can't going back or move on, and I can't see video duration.

    &#xA;

    const express = require("express");&#xA;const cors = require("cors");&#xA;const app = express();&#xA;const ffmpeg = require(&#x27;ffmpeg-static&#x27;);&#xA;const cp = require(&#x27;child_process&#x27;);&#xA;const ytdl = require("ytdl-core");&#xA;&#xA;app.use(cors());&#xA;&#xA;app.listen(3000, () => {&#xA;    console.log("Server is working at port 3000 !!");&#xA;});&#xA;&#xA;app.get(&#x27;/download&#x27;, (req,res) => {&#xA;    var url = req.query.URL;&#xA;    var formato = req.query.FORMAT;&#xA;&#xA;    try {&#xA;        let vid = ytdl(url,{filter:&#x27;videoonly&#x27;, quality:&#x27;highestvideo&#x27;})&#xA;        let aud = ytdl(url, {filter: &#x27;audioonly&#x27;, quality:&#x27;highestaudio&#x27;});&#xA;&#xA;        ytdl.getInfo(url).then(info => {&#xA;            titolo = info.videoDetails.title;&#xA;&#xA;            res.header("Content-Disposition", &#x27;attachment;  filename=&#x27; &#x2B; titolo &#x2B; &#x27;.mp4&#x27;);&#xA;&#xA;            const ffmpegProcess = cp.spawn(ffmpeg, [&#xA;                &#x27;-i&#x27;, `pipe:3`,&#xA;                &#x27;-i&#x27;, `pipe:4`,&#xA;                &#x27;-map&#x27;,&#x27;0:v:0&#x27;,&#xA;                &#x27;-map&#x27;,&#x27;1:a:0&#x27;,&#xA;                &#x27;-c:v&#x27;, &#x27;copy&#x27;,&#xA;                &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;                &#x27;-crf&#x27;,&#x27;27&#x27;,&#xA;                &#x27;-preset&#x27;,&#x27;veryfast&#x27;,&#xA;                &#x27;-movflags&#x27;,&#x27;frag_keyframe&#x2B;empty_moov&#x27;,&#xA;                &#x27;-f&#x27;,&#x27;mp4&#x27;,&#xA;                &#x27;-loglevel&#x27;,&#x27;error&#x27;,&#xA;                &#x27;-&#x27;&#xA;            ], {&#xA;                stdio: [&#xA;                &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;,&#xA;                ],&#xA;            });&#xA;              &#xA;            aud.pipe(ffmpegProcess.stdio[4]);&#xA;            vid.pipe(ffmpegProcess.stdio[3]);&#xA;            ffmpegProcess.stdio[1].pipe(res);&#xA;        });&#xA;    }&#xA;    catch(err) {&#xA;        console.log("Error with URL: " &#x2B; url &#x2B; "\nERROR: " &#x2B; err &#x2B; "\n\n");&#xA;    }&#xA;});&#xA;

    &#xA;

    I have not found alternatives to do this. I need a working script to download youtube videos with good quality.

    &#xA;