
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (39)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (8605)
-
Dreamcast Anniversary Programming
10 septembre 2010, par Multimedia Mike — Game HackingThis day last year saw a lot of nostalgia posts on the internet regarding the Sega Dreamcast, launched 10 years prior to that day (on 9/9/99). Regrettably, none of the retrospectives that I read really seemed to mention the homebrew potential, which is the aspect that interested me. On the occasion of the DC’s 11th anniversary, I wanted to remind myself how to build something for the unit and do so using modern equipment and build tools.
Background
Like many other programmers, I initially gained interest in programming because I desired to program video games. Not content to just plunk out games on a PC, I always had a deep, abiding ambition to program actual video game hardware. That is, I wanted to program a purpose-built video game console. The Sega Dreamcast might be the most ideal candidate to ever emerge for that task. All that was required to run your own software on the unit was the console, a PC, some free software tools, and a special connectivity measure.The Equipment
Here is the hardware required (ideally) to build software for the DC :- The console itself (I happen to have 3 of them laying around, as pictured above)
- Some peripherals : Such as the basic DC controller, the DC keyboard (flagship title : Typing of the Dead), and the visual memory unit (VMU)
- VGA box : The DC supported 480p gaming via a device that allowed you to connect the console straight to a VGA monitor via 15-pin D-sub. Not required for development, but very useful. I happen to have 3 of them from different third parties :
- Finally, the connectivity measure for hooking the DC to the PC.
There are 2 options here. The first is rare, expensive and relatively fast : A DC broadband adapter. The second is slower but much less expensive and relatively easy to come by– the DC coder’s cable. This was a DB-9 adapter on one end and a DC serial adapter on the other, and a circuit in the middle to monkey with voltage levels or some such ; I’m no electrical engineer. I procured this model from the notorious Lik Sang, well before that outfit was sued out of business.
Dealing With Legacy
Take a look at that coder’s cable again. DB-9 ? When was the last time you owned a computer with one of those ? And then think farther back to the last time to had occasion to plug something into one of those ports (likely a serial mouse).
A few years ago, someone was about to toss out this Belkin USB to DB-9 serial converter when I intervened. I foresaw the day when I would dust off the coder’s cable. So now I can connect a USB serial cable to my Eee PC, which then connects via converter to a different serial cable, one which has its own conversion circuit that alters the connection to yet another type of serial cable.
Bits is bits is bits as far as I’m concerned.
Putting It All Together
Now to assemble all the pieces (plus a monitor) into one development desktop :
The monitor says “dcload 1.0.3, idle…”. That’s a custom boot CD-ROM that is patiently waiting to receive commands, code and data via the serial port.
Getting The Software
Back in the day, homebrew software development on the DC revolved around these components :- GNU binutils : for building base toolchains for the Hitachi SH-4 main CPU as well as the ARM7-based audio coprocessor
- GNU gcc/g++ : for building compilers on top of binutils for the 2 CPUs
- Newlib : a C library intended for embedded systems
- KallistiOS : an open source, real-time OS developed for the DC
The DC was my first exposure to building cross compilers. I developed some software for the DC in the earlier part of the decade. Now, I am trying to figure out how I did it, especially since I think I came up with a few interesting ideas at the time.
Struggling With the Software Legacy
The source for KallistiOS has gone untouched since about 2004 but is still around thanks to Sourceforge. The instructions for properly building the toolchain have been lost to time, or would be were it not for the Internet Archive’s copy of a site called Hangar Eleven. Also, KallistiOS makes reference to a program called ‘dc-tool’ which is needed on the client side for communicating with dcload. I was able to find this binary at the Boob ! site (well-known in DC circles).I was able to build the toolchain using binutils 2.20.1, gcc 4.5.1 and newlib 1.18.0. Building the toolchain is an odd process as it requires building the binutils, then building the C compiler, then newlib, and then building the C compiler again along with the C++ compiler because the C++ compiler depends on newlib.
With some effort, I got the toolchain to build KallistiOS and most of its example programs. I documented most of the tweaks I had to make, several of them exactly the same as this one that I recently discovered while resurrecting a 10-year-old C program (common construct in C programming of old ?).
Moment of Truth
So I had some example programs built as ELF files. I told dc-tool to upload and run them on the waiting console. Unfortunately, the tool would just sort of stall, though some communication had evidently taken place. It has been many years since I have seen this in action but I recall that something more ought to be happening.Plan B (Hardware)
This is the point that I remember that I have been holding onto one rather old little machine that still has a DB-9 serial port. It’s not especially ergonomic to set up. I have to run it on my floor because, to connect it to my network, I need to run a 25′ ethernet cable that just barely reaches from the other room. The machine doesn’t seem to like USB keyboards, which is a shame since I have long since ditched any PS/2 keyboards. Fortunately, the box still has an old Gentoo distro and is running sshd, a holdover from its former life as a headless box.
Now when I run dc-tool, both the PC and DC report the upload progress while pretty overscan bars oscillate on the DC’s monitor. Now I’m back in business, until…
Plan C (Software)
None of these KallistiOS example programs are working. Some are even reporting catastrophic failures (register dumps) via the serial console. That’s when I remember that gcc can be a bit fickle on CPU architectures that are not, shall we say, first-class citizens. Back in the day, gcc 2.95 was a certified no-go for SH-4 development. 3.0.3 or 3.0.4 was called upon at the time. As I’m hosting this toolchain on x86_64 right now, gcc 3.0.4 can’t even be built (predates the architecture).One last option : As I searched through my old DC project directories, I found that I still have a lot of the resulting binaries, the ones I built 7-8 years ago. I upload a few of those and I finally see homebrew programming at work again, including this old program (described in detail here).
Next Steps
If I ever feel like revisiting this again, I suppose I can try some of the older 4.x series to see if they build valid programs. Alternatively, try building an x86_32-hosted 3.0.4 toolchain which ought to be a known good. And if that fails, search a little bit more to find that there are still active Dreamcast communities out there on the internet which probably have development toolchain binaries ready for download. -
FFMPEG AMF Hardware Acceleration on AMD Ryzen™ 7 7700 Server in Ubuntu 22.04 [closed]
4 décembre 2024, par LoNormalyI was trying to make ffmpeg available with AMF and have access to the AMF hardware acceleration (in
ffmpeg -hwaccels
) but failed.

At first, the kernel that the server as Ubuntu 22.04 came with was 5.15 and after contacting support I was explained that I need to upgrade the kernel to have access to /dev/dri.


So I upgraded to 6.8 and then I had access to /dev/dri and was able to use ffmpeg 7.1 with vaapi working.


In AMD, they have their own hardware acceleration named AMF, that allows much better speed and quality of transcoding.


I installed the AMD GPU drivers like it's explained here : https://www.amd.com/en/support/download/linux-drivers.html


I installed AMF as well, and compiled my own ffmpeg build with
--enable-amf
flag.

Still in ffmpeg -hwaccels I get access to vaapi and drm only.


Can you share if you know any solution to this enigma ?


These are the instructions with which I installed the drivers, AMF and ffmpeg with :


Install AMD GPU Pro Drivers:
wget https://repo.radeon.com/amdgpu-install…60203-1_all.deb
sudo apt install ./amdgpu-install_6.2.60203-1_all.deb

amdgpu-install --usecase=amf,multimedia -y
sudo amdgpu-install -y --usecase=amf,graphics --accept-eula --opencl=rocr,legacy --vulkan=amdvlk,pro



CompilationGuide/Ubuntu – FFmpeg
Compiling ffmpeg:

sudo apt-get update -qq && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
libgnutls28-dev \
libmp3lame-dev \
libtool \
libvorbis-dev \
meson \
ninja-build \
pkg-config \
texinfo \
wget \
yasm \
zlib1g-dev

sudo apt install libunistring-dev libaom-dev libdav1d-dev -y

mkdir -p ~/ffmpeg_sources ~/bin

// Install prerequisites
apt-get update && apt-get install -y \
build-essential \
pkg-config \
yasm \
nasm \
libtool \
automake \
cmake \
libx264-dev \
libx265-dev \
libvpx-dev \
libfdk-aac-dev \
libopus-dev \
libaom-dev \
libdrm-dev \
libva-dev \
vainfo
 
 
cd ~/ffmpeg_sources && \
wget https://ffmpeg.org/releases/ffmpeg-7.1.tar.bz2 && \
tar -xjf ffmpeg-7.1.tar.bz2 && \
mkdir ffmpeg_build && \
cd ffmpeg_build && \
mkdir include && \
cd include && \


// Install AMF
git clone https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git && \
mv ~/ffmpeg_build/include/AMF/amf ~/ffmpeg_build/include/ && \
rm -rf AMF && \

// From here: https://askubuntu.com/questions/1440…-ubuntu-20-04-5
// Correct install:
cd ~/
git clone https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git
mkdir /usr/local/include/AMF
cd /usr/local/include/AMF
ln -sf ~/AMF/amf/public/include/core
ln -sf ~/AMF/amf/public/include/components

// Install libvmaf
cd ~/ffmpeg_sources && \
wget https://github.com/Netflix/vmaf/archive/v3.0.0.tar.gz && \
tar xvf v3.0.0.tar.gz && \
mkdir -p vmaf-3.0.0/libvmaf/build && \

cd vmaf-3.0.0/libvmaf && \
meson setup build --buildtype=release --default-library=static --prefix="$HOME/ffmpeg_build" && \
ninja -C build && \
ninja -C build install

cd ~/ffmpeg_sources/ffmpeg-7.1
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--ld="g++" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-gnutls \
--enable-libaom \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libdav1d \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-libdrm \
--enable-vaapi \
--enable-libvmaf \
--enable-amf \
--enable-nonfree && \
PATH="$HOME/bin:$PATH" make && \
make -j$(nproc) install && \
hash -r


./ffmpeg -buildconf



Test VMAF to compare quality:
./ffmpeg -i input.mp4 -i reference.mp4 -lavfi libvmaf -f null -
// example output: [Parsed_libvmaf_0 @ 0x74a0f8004940] VMAF score: 98.930249ate=N/A speed=9.06x



-
Merge commit '896fe15dbb7b78de495c4a7dd75e7faec66778da'
14 mars 2019, par James AlmerMerge commit '896fe15dbb7b78de495c4a7dd75e7faec66778da'
* commit '896fe15dbb7b78de495c4a7dd75e7faec66778da' :
tests : Convert lavf pixfmt conversion tests to non-legacy test scriptsMerged-by : James Almer <jamrial@gmail.com>
- [DH] tests/Makefile
- [DH] tests/fate-run.sh
- [DH] tests/fate/avformat.mak
- [DH] tests/fate/pixfmt.mak
- [DH] tests/lavf-regression.sh
- [DH] tests/ref/lavf/pixfmt
- [DH] tests/ref/pixfmt/bgr24
- [DH] tests/ref/pixfmt/gray
- [DH] tests/ref/pixfmt/monob
- [DH] tests/ref/pixfmt/monow
- [DH] tests/ref/pixfmt/rgb24
- [DH] tests/ref/pixfmt/rgb32
- [DH] tests/ref/pixfmt/rgb555
- [DH] tests/ref/pixfmt/rgb565
- [DH] tests/ref/pixfmt/yuv410p
- [DH] tests/ref/pixfmt/yuv411p
- [DH] tests/ref/pixfmt/yuv420p
- [DH] tests/ref/pixfmt/yuv422p
- [DH] tests/ref/pixfmt/yuv440p
- [DH] tests/ref/pixfmt/yuv444p
- [DH] tests/ref/pixfmt/yuvj420p
- [DH] tests/ref/pixfmt/yuvj422p
- [DH] tests/ref/pixfmt/yuvj440p
- [DH] tests/ref/pixfmt/yuvj444p
- [DH] tests/ref/pixfmt/yuyv422