Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (33)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

  • 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 timecode based on filename

    9 mars 2023, par marven

    I have xxxxx videofiles that need to get a timecode (for working in premiere)&#xA;The filenames are all like this 2023-03-08 12.59.59 AndSomeRandowNumbers.&#xA;Is that possible with ffmpeg ?&#xA;Or if that is not possible : can ffmpeg use an other date from the metadata and use that as timecode (with exiftool is possible to use the filename and write it as creation date, and other, but not as timecode) ?

    &#xA;

    ffmpeg -i file.mov -map 0 -map -0:d -c copy -timecode 02:10:22:33 outputfile.mov&#xA;that is the code that works to change the timecode to 02:10:22:33

    &#xA;

  • Building FFmpeg with NVIDIA GPU Hardware Acceleration in docker image, cannot load libnvcuvid.so.1 and libnvidia-encode.so.1

    22 mars 2023, par konovification

    I'm trying to build FFmpeg with NVIDIA GPU Hardware Acceleration following these instructions : https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/index.html#compiling-for-linux. The Docker image I'm using is nvidia/cuda:12.0.1-devel-ubuntu20.04

    &#xA;

    Running the test command ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i bbb.mp4 -c:a copy -c:v h264_nvenc -b:v 5M output.mp4, I get the following output :

    &#xA;

    ffmpeg version N-109965-ge50a02b0f6 Copyright (c) 2000-2023 the FFmpeg developers                                                                                                                                                                                               &#xA;  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)                                                                                                                                                                                                                              &#xA;  configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared                                                                                          &#xA;  libavutil      58.  3.100 / 58.  3.100                                                                                                                                                                                                                                        &#xA;  libavcodec     60.  6.100 / 60.  6.100                                                                                                                                                                                                                                        &#xA;  libavformat    60.  4.100 / 60.  4.100                                                                                                                                                                                                                                        &#xA;  libavdevice    60.  2.100 / 60.  2.100                                                                                                                                                                                                                                        &#xA;  libavfilter     9.  4.100 /  9.  4.100                                                                                                                                                                                                                                        &#xA;  libswscale      7.  2.100 /  7.  2.100                                                                                                                                                                                                                                        &#xA;  libswresample   4. 11.100 /  4. 11.100                                                                                                                                                                                                                                        &#xA;-vsync is deprecated. Use -fps_mode                                                                                                                                                                                                                                             &#xA;Passing a number to -vsync is deprecated, use a string argument as described in the manual.                                                                                                                                                                                     &#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;bbb.mp4&#x27;:                                                                                                                                                                                                                              &#xA;  Metadata:                                                                                                                                                                                                                                                                     &#xA;    major_brand     : isom                                                                                                                                                                                                                                                      &#xA;    minor_version   : 1                                                                                                                                                                                                                                                         &#xA;    compatible_brands: isomavc1                                                                                                                                                                                                                                                 &#xA;    creation_time   : 2013-12-16T17:44:39.000000Z                                                                                                                                                                                                                               &#xA;    title           : Big Buck Bunny, Sunflower version                                                                                                                                                                                                                         &#xA;    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013                                                                                                                                                                                                      &#xA;    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net                                                                                                                                                                                         &#xA;    genre           : Animation                                                                                                                                                                                                                                                 &#xA;    composer        : Sacha Goedegebure                                                                                                                                                                                                                                         &#xA;  Duration: 00:10:34.60, start: 0.000000, bitrate: 3481 kb/s                                                                                                                                                                                                                    &#xA;  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn (default)&#xA;    Metadata:                                                                                                                           &#xA;      creation_time   : 2013-12-16T17:44:39.000000Z                                                                                     &#xA;      handler_name    : GPAC ISO Video Handler                                                                                          &#xA;      vendor_id       : [0][0][0][0]                                                                                                    &#xA;  Stream #0:1[0x2](und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)                                     &#xA;    Metadata:                                                                                                                           &#xA;      creation_time   : 2013-12-16T17:44:42.000000Z                                                                                     &#xA;      handler_name    : GPAC ISO Audio Handler                                                                                          &#xA;      vendor_id       : [0][0][0][0]                                                                                                                                                                                                                                            &#xA;  Stream #0:2[0x3](und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)                                                                                                                                                                          &#xA;    Metadata:                                                                                                                                                                                                                                                                   &#xA;      creation_time   : 2013-12-16T17:44:42.000000Z                                                                                                                                                                                                                             &#xA;      handler_name    : GPAC ISO Audio Handler                                                                                                                                                                                                                                  &#xA;      vendor_id       : [0][0][0][0]                                                                                                                                                                                                                                            &#xA;    Side data:                                                                                                                                                                                                                                                                  &#xA;      audio service type: main                                                                                                                                                                                                                                                  &#xA;Stream mapping:                                                                                                                                                                                                                                                                 &#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))                                                                                                                                                                                                                      &#xA;  Stream #0:2 -> #0:1 (copy)                                                                                                                                                                                                                                                    &#xA;Press [q] to stop, [?] for help                                                                                                                                                                                                                                                 &#xA;[h264 @ 0x55bd878c2d80] Cannot load libnvcuvid.so.1                                                                                                                                                                                                                             &#xA;[h264 @ 0x55bd878c2d80] Failed loading nvcuvid.                                                                                                                                                                                                                                 &#xA;[h264 @ 0x55bd878c2d80] Failed setup for format cuda: hwaccel initialisation returned error.                                                                                                                                                                                    &#xA;[h264_nvenc @ 0x55bd86f5e680] Cannot load libnvidia-encode.so.1                                                                                                                                                                                                                 &#xA;[h264_nvenc @ 0x55bd86f5e680] The minimum required Nvidia driver for nvenc is 520.56.06 or newer                                                                                                                                                                                &#xA;[vost#0:0/h264_nvenc @ 0x55bd86f5e1c0] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;Conversion failed! &#xA;

    &#xA;

    Output from nvidia-smi :

    &#xA;

    &#x2B;-----------------------------------------------------------------------------&#x2B;&#xA;| NVIDIA-SMI 525.85.05    Driver Version: 525.85.05    CUDA Version: 12.0     |&#xA;|-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |&#xA;| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |&#xA;|                               |                      |               MIG M. |&#xA;|===============================&#x2B;======================&#x2B;======================|&#xA;|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |&#xA;| 27%   43C    P8    12W / 250W |    500MiB / 11264MiB |      1%      Default |&#xA;|                               |                      |                  N/A |&#xA;&#x2B;-------------------------------&#x2B;----------------------&#x2B;----------------------&#x2B;&#xA;                                                                               &#xA;&#x2B;-----------------------------------------------------------------------------&#x2B;&#xA;| Processes:                                                                  |&#xA;|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |&#xA;|        ID   ID                                                   Usage      |&#xA;|=============================================================================|&#xA;&#x2B;-----------------------------------------------------------------------------&#x2B;&#xA;

    &#xA;

    The shared libraries are not part of the docker image. What are my options to add them ?

    &#xA;