Recherche avancée

Médias (91)

Autres articles (69)

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

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (9234)

  • How to make java JMF work to make a video using multiple images ?

    31 janvier 2013, par jeet

    I'm trying to use JMF to make a video using multiple jpg images.
    These images are also saved using ImageIO of Java itself.
    Unfortunately, I cannot find a code sample or a working code/class to accomplish make the video using JMF.

    There was a JpegImagesToMovie.java class here :
    http://www.oracle.com/technetwork/java/javase/documentation/jpegimagestomovie-176885.html
    but that link seems broken.

    Can someone please post a working code, or tell me some other way of making videos with java and a different class ?

    I think a working code on this page might help others like me in future.

    BTW, I also tried to use ffmpeg to compile the video, but that says similar to :

    image2 codec not found

    When we use java ImageIO to make jpg images, are they not compatible with ffmpeg codecs ?

    java command :

    ImageIO.write(capture, "jpg", new File( uploadPath, filename));

    This is the ffmpeg error :

    ffmpeg.exe -f image2 -i pic\s%d.jpeg -vcodec mpeg2video vid\video.mpg
    FFmpeg version SVN-r7760, Copyright (c) 2000-2006 Fabrice Bellard, et al.
     configuration:  --enable-memalign-hack --enable-gpl --cpu=i686 --enable-swscaler --enable-pthreads --enable-avisynth --enable-mp3lame --enable-xvid --enable-x264 --enable-libnut --enable-libogg --enable-vorbis --enable-libtheora --enable-faad --enable-faac --enable-libgsm --enable-dts --enable-a52 --enable-amr_nb --enable-amr_wb
     libavutil version: 49.2.0
     libavcodec version: 51.29.0
     libavformat version: 51.8.0
     built on Jan 29 2007 19:58:47, gcc: 3.4.6
    [image2 @ 00931554]Could not find codec parameters (Video: mjpeg)
    pic\sd.jpeg: could not find codec parameters
  • ubuntu ffmpeg filters

    29 décembre 2012, par DmitryR

    I'm converting video using ffmpeg on ubuntu.
    Console output is :

    ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
     built on Nov  6 2012 16:51:33 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    [libspeex @ 0x1ed9560] Missing Speex header, assuming defaults.
    [flv @ 0x1ed57a0] decoding for stream 0 failed
    [flv @ 0x1ed57a0] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from '/data/media/hdfvr_temp/videoStream_1355078401768_654.flv':
     Metadata:
       creationdate    : Sun Dec 9 18:40:13
     Duration: 00:00:03.00, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: [0][0][0][0] / 0x0000, 1k tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: libspeex, 16000 Hz, 1 channels, s16
    [buffer @ 0x1ed94a0] Invalid pixel format string '-1'
    Error opening filters!

    What filters does it want ?
    It was installed by sudo apt-get install ffmpeg, LTS 12.04

    Update : command is ffmpeg -i input.flv output.mp4

  • ffmpeg watermark bottom right corner

    8 décembre 2012, par John Doe

    I am not sure why, but I cannot seem to get a watermark rendered on the bottom right corner of my video using ffmpeg.

    I am using the following command :

    ffmpeg –i faded.mov -vf "movie=logo.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo.mov

    I see the following output :

    ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
     built on Nov  6 2012 16:50:25 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, avi, from 'faded.mov':
     Metadata:
       encoder         : MEncoder svn r34540 (Ubuntu), built with gcc-4.6
     Duration: 00:00:20.02, start: 0.000000, bitrate: 3136 kb/s
       Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 50 tbr, 50 tbn, 50 tbc
       Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    [buffer @ 0x905b7a0] w:1280 h:720 pixfmt:yuv420p
    [movie @ 0x90527e0] seek_point:0 format_name:(null) file_name:logo2.png stream_index:0
    [overlay @ 0x9053080] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed filter 0 movie' and the filter 'Parsed filter 1 overlay'
    [scale @ 0x9054ba0] w:144 h:144 fmt:bgra -> w:144 h:144 fmt:yuva420p flags:0x4
    [overlay @ 0x9053080] main w:1280 h:720 fmt:yuv420p overlay x:568 y:288 w:144 h:144 fmt:yuva420p
    [overlay @ 0x9053080] main_tb:1/1000000 overlay_tb:1/25 -> tb:1/1000000 exact:1
    Output #0, mov, to 'outputvideo3.mov':
     Metadata:
       encoder         : Lavf53.21.0
       Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 tbn, 50 tbc
       Stream #0.1: Audio: libvo_aacenc, 48000 Hz, 2 channels, s16, 200 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Press ctrl-c to stop encoding
    frame= 1001 fps=137 q=31.0 Lsize=    3668kB time=20.02 bitrate=1501.1kbits/s    
    video:3159kB audio:492kB global headers:0kB muxing overhead 0.460112%

    hussan@ubuntu:~/Documents/testvideo$ ffmpeg –i faded.mov -vf "movie=logo2.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo3.mov
    ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
     built on Nov  6 2012 16:50:25 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Unable to find a suitable output format for '–i'

    If anyone has any ideas that would be greatly appreciated !