Recherche avancée

Médias (91)

Autres articles (49)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

Sur d’autres sites (5409)

  • Catch if the Java proccess crashed

    17 janvier 2012, par VSheyanov

    I run java process to convert video using ffmpeg.exe.

    Runtime rt = Runtime.getRuntime();
    String cmd = FFMPEGFULLPATH + " -y -i " + '"' + mpeg4File + '"' + " -vcodec libx264 -vsync 2 " + '"' + H264file + '"';

    Process pr = rt.exec(cmd);

    ThreadedTranscoderIO errorHandler = new ThreadedTranscoderIO(pr.getErrorStream(), "Error Stream");
    errorHandler.start();
    ThreadedTranscoderIO inputHandler = new ThreadedTranscoderIO(pr.getInputStream(), "Output Stream");
    inputHandler.start();

    try {
         pr.waitFor();
    } catch (InterruptedException e) {
         LiveApplication.logger.info("Some shit happens during convertation 2 ");
         throw new IOException("UseTranscoderBlocking - Run_FFMPEG - process interrupted " + e);                  
    }

    But when the process started, sometimes especially with big files, but not always i get this windows message :

    enter image description here

    This happens only on Windows server 2008 and didn't happened on Windows 7.

    I have 2 questions :

    1. Why this process fails ?
    2. Can I catch this fail in Java, close
      this window and continue thread execution (maybe I'll restart this
      proccess).

    Thanks !

  • Saying Goodbye To Old Machines

    1er décembre 2014, par Multimedia Mike — General, powerpc, via

    I recently sent a few old machines off for recycling. Both had relevance to the early days of the FATE testing effort. As is my custom, I photographed them (poorly, of course).

    First, there’s the PowerPC-based Mac Mini I procured thanks to a Craigslist ad in late 2006. I had plans to develop automated FFmpeg building and testing and was already looking ahead toward testing multiple CPU architectures. Again, this was 2006 and PowerPC wasn’t completely on the outs yet– although Apple’s MacTel transition was in full swing, the entire new generation of video game consoles was based on PowerPC.


    PPC Mac Mini pieces

    Click for larger image


    I remember trying to find a Mac Mini PPC on Craigslist. Many were to be found, but all asked more than the price of even a new Mac Mini Intel, always because the seller was leaving all of last year’s applications and perhaps including a monitor, neither of which I needed. Fortunately, I found this bare Mac Mini. Also fortunate was the fact that it was far easier to install Linux on it than the first PowerPC machine I owned.

    After FATE operation transitioned away from me, I still kept the machine in service as an edge server and automated backup machine. That is, until the hard drive failed on reboot one day. Thus, when it was finally time to recycle the computer, I felt it necessary to disassemble the machine and remove the hard drive for possible salvage and then for destruction.

    If you’ve ever attempted to upgrade or otherwise service this style of Mac Mini, you will no doubt recognize the pictured paint scraper tool as standard kit. I have had that tool since I first endeavored to upgrade the RAM to 1 GB from the standard 1/2 GB. Performing such activities on a Mac Mini is tedious, but only if you care about putting it back together afterwards.

    The next machine is a bit older. I put it together nearly a decade ago, early in 2005. This machine’s original duty was “download agent”– this would be more specifically called a BitTorrent machine in modern tech parlance. Back then, I placed it on someone else’s woefully underutilized home broadband connection (with their permission, of course) when I was too cheap to upgrade from dialup.


    VIA small form factor front

    Click for larger image


    This is a small form factor system from VIA that was clearly designed with home theater PC (HTPC) use cases in mind. It has a VIA C3 x86-compatible CPU (according to my notes, Centaur VIA Samuel 2 stepping 03, flags : fpu de tsc msr cx8 mtrr pge mmx 3dnow) and 128 MB of RAM (initially ; I upgraded it to 512 MB some years later, just for the sake of doing it). And then there was the 120 GB PATA HD for all that downloaded goodness.


    VIA machine small form factor inside

    Click for larger image


    I have specific memories of a time when my main computer at home wasn’t working correctly for one reason or another. Instead, I logged into this machine remotely via SSH to make several optimizations and fixes on FFmpeg’s VP3/Theora video decoder, all from the terminal, without being able to see the decoded images with my own eyes (which is why I insist that even blind people could work on video codecs).

    By the time I got my own broadband, I had become inspired to attempt the automated build and test system for FFmpeg. This was the machine I used for prototyping early brainstorms of FATE. By the time I put a basic build/test system into place in early 2008, I had much faster computers that could build and test the project– obvious limitation of this machine is that it could take at least 1/2 hour to build the entire codebase, and that was the project from 8 years ago.

    So the machine got stuffed in a closet somewhere along the line. The next time I pulled it out was in 2010 when I wanted to toy with Dreamcast programming once more (the machine appears in one of the photos in this post). This was the only machine I still owned which still had an RS-232 serial port (I didn’t know much about USB serial converters yet), plus it still had a bunch of pre-compiled DC homebrew binaries (I was having trouble getting the toolchain to work right).

    The next time I dusted off this machine was late last year when I was trying some experiments with the Microsoft Xbox’s IDE drive (a photo in that post also shows the machine ; this thing shows up a lot on this blog). The VIA machine was the only machine I still owned which had 40-pin IDE connectors which was crucial to my experiment.

    At this point, I was trying to make the machine more useful which meant replacing the ancient Gentoo Linux distribution as well as simply interacting with it via a keyboard and mouse. I have a long Evernote entry documenting a comedy of errors revolving around this little box. The interaction troubles were due to the fact that I didn’t have any PS/2 keyboards left and I couldn’t make a USB keyboard work with it. Diego was able to explain that I needed to flip a bit in the BIOS to address this which worked. As for upgrading the OS, I tried numerous Linux distributions large and small, mostly focusing on the small. None worked. I eventually learned that, while I was trying to use i686 distributions, this machine did not actually qualify as an i686 CPU ; installations usually booted but failed because the default kernel required the cmov instruction. I was advised to try i386 distros instead. My notes don’t indicate whether I had any luck on this front before I gave up and moved on.

    I just made the connection that this VIA machine has two 40-pin IDE connectors which means that the thing was technically capable of supporting up to 4 IDE devices. Obviously, the computer couldn’t really accommodate that in terms of space or power. When I wanted to try installing a new OS, I needed take off the top and connect a rather bulky IDE CD-ROM drive. This computer’s casing was supposed to be able to support a slimline optical drive (perhaps like the type found in laptops), but I could never quite visualize how that was supposed to work, space-wise. When I disassembled the PowerPC Mac Mini, I realized I might be able to repurpose that machines optical drive for this computer. Obviously, I thought better of trying since both machines are off to the recycle pile.

    I would still like to work on the Xbox project a bit more, but I procured a different, unused, much more powerful yet still old computer that has a motherboard with 1 PATA connector in addition to 6 SATA connectors. If I ever get around to toying with Linux kernel development, this should be a much more appropriate platform to use.

    I thought about turning this machine into an old Windows XP (and lower, down to Windows 3.1) gaming platform ; the capabilities of the machine would probably be perfect for a huge portion of my Windows game collection. But I think the lack of an optical drive renders this idea intractable. External USB drives are likely out of the question since there is very little chance that this motherboard featured USB 2.0 (the specs don’t mention 2.0, so the USB ports are probably 1.1).

    So it is with fond memories that I send off both machines, sans hard drives, to the recycle pile. I’m still deciding on an appropriate course of action for failed hard drives, though.

  • FFmpeg - downmixing FLAC 6.1 to AAC 5.1

    7 juillet 2014, par Martijn

    I can’t seem to figure out how to do this. I’ve been staring at these commands :
    https://trac.ffmpeg.org/wiki/AudioChannelManipulation

    But to no avail. It’s a tad above my level, sadly. Here’s the ffmpeg -i output for the video in question :

    ffmpeg version N-64012-g61df081 Copyright (c) 2000-2014 the FFmpeg developers
     built on Jun 16 2014 22:01:59 with gcc 4.8.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
     libavutil      52. 89.100 / 52. 89.100
     libavcodec     55. 67.100 / 55. 67.100
     libavformat    55. 43.100 / 55. 43.100
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  8.100 /  4.  8.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, matroska,webm, from '[Coalgirls]_Spirited_Away_(1920x1038_Blu-ray_FLAC)_[92372194].mkv':
     Metadata:
       title           : Spirited Away
       encoder         : libebml v1.3.0 + libmatroska v1.4.0
       creation_time   : 2014-07-03 01:32:13
     Duration: 02:04:32.29, start: 0.000000, bitrate: 15972 kb/s
       Chapter #0.0: start 0.000000, end 99.099000
       Metadata:
         title           : 00:00:00.000
       Chapter #0.1: start 99.099000, end 196.238000
       Metadata:
         title           : 00:01:39.099
       Chapter #0.2: start 196.238000, end 443.526000
       Metadata:
         title           : 00:03:16.238
       Chapter #0.3: start 443.526000, end 645.395000
       Metadata:
         title           : 00:07:23.526
       Chapter #0.4: start 645.395000, end 1023.022000
       Metadata:
         title           : 00:10:45.395
       Chapter #0.5: start 1023.022000, end 1368.534000
       Metadata:
         title           : 00:17:03.022
       Chapter #0.6: start 1368.534000, end 1716.048000
       Metadata:
         title           : 00:22:48.534
       Chapter #0.7: start 1716.048000, end 2008.173000
       Metadata:
         title           : 00:28:36.048
       Chapter #0.8: start 2008.173000, end 2301.674000
       Metadata:
         title           : 00:33:28.173
       Chapter #0.9: start 2301.674000, end 2651.816000
       Metadata:
         title           : 00:38:21.674
       Chapter #0.10: start 2651.816000, end 2906.821000
       Metadata:
         title           : 00:44:11.816
       Chapter #0.11: start 2906.821000, end 3271.351000
       Metadata:
         title           : 00:48:26.821
       Chapter #0.12: start 3271.351000, end 3729.017000
       Metadata:
         title           : 00:54:31.351
       Chapter #0.13: start 3729.017000, end 4091.587000
       Metadata:
         title           : 01:02:09.017
       Chapter #0.14: start 4091.587000, end 4476.847000
       Metadata:
         title           : 01:08:11.587
       Chapter #0.15: start 4476.847000, end 4750.579000
       Metadata:
         title           : 01:14:36.847
       Chapter #0.16: start 4750.579000, end 5139.760000
       Metadata:
         title           : 01:19:10.579
       Chapter #0.17: start 5139.760000, end 5478.890000
       Metadata:
         title           : 01:25:39.760
       Chapter #0.18: start 5478.890000, end 5853.806000
       Metadata:
         title           : 01:31:18.890
       Chapter #0.19: start 5853.806000, end 6318.937000
       Metadata:
         title           : 01:37:33.806
       Chapter #0.20: start 6318.937000, end 6625.118000
       Metadata:
         title           : 01:45:18.937
       Chapter #0.21: start 6625.118000, end 6771.098000
       Metadata:
         title           : 01:50:25.118
       Chapter #0.22: start 6771.098000, end 6914.199000
       Metadata:
         title           : 01:52:51.098
       Chapter #0.23: start 6914.199000, end 7253.580000
       Metadata:
         title           : 01:55:14.199
       Chapter #0.24: start 7253.580000, end 7472.288000
       Metadata:
         title           : 02:00:53.580
       Stream #0:0: Video: h264 (High 10), yuv420p10le(tv, bt709), 1920x1038, SAR 1:1 DAR 320:173, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
       Metadata:
         title           : Spirited Away
       Stream #0:1(jpn): Audio: flac, 48000 Hz, 6.1, s32 (default)
       Metadata:
         title           : 6.1 FLAC
       Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : 5.1 AC3
       Stream #0:3(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : 5.1 AC3
       Stream #0:4(ger): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : 5.1 AC3
       Stream #0:5(fin): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
       Metadata:
         title           : 2.0 AC3
       Stream #0:6(kor): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : 5.1 AC3
       Stream #0:7(chi): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : 5.1 AC3
       Stream #0:8(chi): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
       Metadata:
         title           : 5.1 AC3
       Stream #0:9(eng): Subtitle: ssa (default)
       Metadata:
         title           : English
       Stream #0:10(fre): Subtitle: ssa
       Metadata:
         title           : French
       Stream #0:11(ger): Subtitle: ssa
       Metadata:
         title           : German
       Stream #0:12(eng): Subtitle: ssa
       Metadata:
         title           : Songs + Signs
       Stream #0:13: Attachment: ttf
       Metadata:
         filename        : MyriadPro-Regular.otf
         mimetype        : application/x-truetype-font
       Stream #0:14: Attachment: ttf
       Metadata:
         filename        : MyriadPro-SemiboldIt.otf
         mimetype        : application/x-truetype-font
       Stream #0:15: Attachment: ttf
       Metadata:
         filename        : Vesta-Bold.otf
         mimetype        : application/x-truetype-font
       Stream #0:16: Attachment: ttf
       Metadata:
         filename        : Vesta-Bold_2.otf
         mimetype        : application/x-truetype-font
       Stream #0:17: Attachment: ttf
       Metadata:
         filename        : AR CENA_0.TTF
         mimetype        : application/x-truetype-font
       Stream #0:18: Attachment: ttf
       Metadata:
         filename        : tahomabd.ttf
         mimetype        : application/x-truetype-font
       Stream #0:19: Attachment: ttf
       Metadata:
         filename        : palai.ttf
         mimetype        : application/x-truetype-font
       Stream #0:20: Attachment: ttf
       Metadata:
         filename        : pala.ttf
         mimetype        : application/x-truetype-font

    As you can see, one of the streams is a FLAC 6.1 stream. I wanted to convert that to AAC, and I know how to do that, basically like this :

    ffmpeg -i "input.mkv" -codec:v copy -codec:a aac -strict -2 -b:a 320k -f matroska "output.mkv"

    But apparently AAC doesn’t support 6.1 audio :

    ...
    [aac @ 03b26860] Unsupported number of channels: 7
    Output #0, matroska, to 'd:\Movies\[Coalgirls]_Spirited_Away_(1920x1038_Blu-ray_FLAC)_[92372194].aac.mkv':
       Stream #0:0(jpn): Video: h264, yuv420p10le, 1920x1038 [SAR 1:1 DAR 320:173], q=2-31, 23.98 fps, 90k tbn, 1k tbc (default)
       Stream #0:1(jpn): Audio: aac, 0 channels, 128 kb/s (default)
       Metadata:
         encoder         : Lavc55.67.100 aac
       Stream #0:2(eng): Subtitle: ssa, 128 kb/s (default)
       Metadata:
         encoder         : Lavc55.67.100 ssa
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (flac (native) -> aac (aac))
     Stream #0:9 -> #0:2 (ssa (native) -> ssa (native))
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    That’s fine, so I wanted to downmix it to 5.1 and encode as AAC. But I can’t seem to work out how to. Any advice ?