Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (77)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (14636)

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

  • Writing H.264 RTP stream data to a container file

    2 avril 2018, par Kamal

    In a call, I receive RTP packets (h264 payload). I am trying to depacketize it and write it to a container file like mkv or mp4 using ffmpeg. However the output file is not playing. I am following below steps, please let me know whats wrong here.

    1. Got RTP packet
    2. Removed RTP header 12 bytes
    3. Read one more byte and calculated F, NRI & Type value. Type value comes to 1 most of the time, sometime it is 5 also.
    4. Since type is in between 1 & 23, it is of type single NAL unit.
    5. Allocates a buffer say BUF.
    6. Writes first 3 byte as 0x00 0x00 0x01.
    7. Then copy from video payload + 1 offset (since we have read 1 byte as described in point #3) to BUF
    8. Use this BUF to prepare avpacket and write this to output file using AV_Write_* API of ffmpeg. This part I have done correctly as it works fine for me in case of vp8 codec.
    9. Get the output file.
    10. However this file is not playing in ffmpeg.

    Please let me know of my approach is correct.

    I have observed sometimes group of packets coming with marker bit as 0, with same RTP timestamp. Do I need to concatenate such group of packets and write as single NALU, or each packet I should write as single NALU to output file.

  • Convert RTP packets to WAV or AU using ffmpeg

    8 août 2023, par Jonas Kongslund

    I have a file containing a sequence of RTP packets wrapped in UDP/IP packets. I want to convert this file to a WAV or AU file and was told that ffmpeg may be able to do the job. However the tool does not behave as I would expect. For some reason it is expecting an SDP file but I do not have such a file and I am wondering why it is needed since the RTP packets seem to contain enough information in order to do the conversion. Also it is reporting the wrong payload type.

    &#xA;&#xA;

    Any ideas ? Below is what I have tried. The RTP packets in the input file alaw.rtp only have payload types 8 (A-law) and 72 (RTCP related) so I do not know where payload type 105 is coming from.

    &#xA;&#xA;

    $ ffmpeg -f rtp -i alaw.rtp alaw.au&#xA;...&#xA;[rtp @ 0x9dbdfe0] Unsupported RTP version packet received&#xA;    Last message repeated 89 times&#xA;[rtp @ 0x9dbdfe0] Unable to receive RTP payload type 105 without an SDP file describing it&#xA;[rtp @ 0x9dbdfe0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, rtp, from &#x27;alaw.rtp&#x27;:&#xA;  Duration: N/A, bitrate: N/A&#xA;File &#x27;alaw.au&#x27; already exists. Overwrite ? [y/N] y&#xA;Output #0, au, to &#x27;alaw.au&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;&#xA;

    This is the version of ffmpeg that I have used

    &#xA;&#xA;

    ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1~lucid2&#xA;built on Nov 12 2012 15:20:22 with gcc 4.4.3&#xA;

    &#xA;