Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (70)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (13326)

  • php ming flash slideshow to mp4/avi

    19 août 2013, par Stefan

    After hours of searching and trying i finally got a nice script together that generates a good looking Flash .swf file with a nice transaction in between de images.
    It works great if you access the swf file directly in a browser, depending on the amount of images the flash created takes anywhere between 10 and 60 seconds.
    But when uploading to Youtube the movie created flashed by in one second.
    Because swf isnt really a accepted fileformat for Youtube we decided to convert the flash file to mp4 or avi using ffmpeg.
    Unfortunally that didnt work, it had the same effect as the youtube movie.
    We had a old version of ffmpeg and updated that to a recent version and tried to convert again with the same result.
    The main thing i see is that ffmpeg cant see the swf file duration and bitrate, they are both 'N/A' while were do set them in the php script.

    Now i have to admit i havent really tested with the new version because the commandline options are a little different but ill work on that after i post this.
    In the previous version we tried setting the framerate of the source swf file, but that didnt work either.

    Anyone here that can has a idea ? it would be greatly appriciated.

    PHP Ming Script :

         $fps = 30;
            foreach($objects as $objectId => $images){
                   // START FLASH MOVIE
                   $m = new SWFMovie();
                   $m->setDimension($width, $height);
                   $m->setBackground(0, 0, 0);
                   $m->setRate($fps);
                   $m->setFrames(count($images)*202); //count(images)* 2 breaks *($fps*$breakTime)+22(fadeOut))

                   $i = 0;
                   foreach($images as $image){

                       // REMOVE THE BACKGROUND IMAGE
                       if($behind){
                           $m->remove($behind);
                       }
                       // # REMOVE

                       // LOAD NEW IMAGE
                       $img = new SWFBitmap(fopen($image,"rb"));
                       $pic = $m->add($img);
                       $pic->setdepth(3);
                       // # LOAD

                       // BREAK TIME
                       for($j=1;$j<=($fps*$breakTime);$j++){
                           $m->nextFrame();
                       }
                       $m->remove($pic);
                       // # BREAK

                       // LOAD THE NEXT IMAGE AS BACKGROUND, IF LAST IMAGE, LOAD FIRST
                       $nextBackgrondImage =($images[$i+1]) ? $images[$i+1] : $images[0] ;
                       $img = new SWFBitmap(fopen($nextBackgrondImage,"rb"));
                       $behind = $m->add($img);
                       $behind->setdepth(2);
                       // # LOAD

                       // AND FADE OUT AGAIN
                       $img = fadeOut($image, $width, $height);
                       $pic = $m->add($img);
                       $pic->setdepth(3);
                       // # FADE OUT

                       // BREAK TIME
                       for($j=1;$j<=($fps*$breakTime);$j++){
                           $m->nextFrame();
                       }
                       $m->remove($pic);
                       # BREAK
                       $i++;
                   }      
                   $m->save('./flash/'.$nvmId.'_'.$objectId.'.swf');  
               unset($m);
               }
    }

    FFMPEG version :

    root@server:~# ffmpeg -version
    \FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug 15 2013 20:43:21 with gcc 4.4.5
     configuration: --enable-libmp3lame --enable-libtheora --enable-libx264
     --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads
     --enable-libvorbis --enable-gpl --enable-x11grab --enable-nonfree
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    FFmpeg SVN-r26402
    libavutil     50.36. 0 / 50.36. 0
    libavcore      0.16. 1 /  0.16. 1
    libavcodec    52.108. 0 / 52.108. 0
    libavformat   52.93. 0 / 52.93. 0
    libavdevice   52. 2. 3 / 52. 2. 3
    libavfilter    1.74. 0 /  1.74. 0
    libswscale     0.12. 0 /  0.12. 0
    libpostproc   51. 2. 0 / 51. 2. 0

    FFMPEG command

    root@server:~# ffmpeg -r 30  -i '/pathTo/public_html/flash/73003_8962011.swf' -vcodec libx264 /pathTo/public_html/flash/out.mp4

    [swf @ 0x16c2510] Estimating duration from bitrate, this may be inaccurate
    Input #0, swf, from '/pathTo/public_html/flash/73003_8962011.swf':
     Duration: N/A, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj420p, 360x480, 30 fps, 30 tbr, 30 tbn, 30 tbc
    [buffer @ 0x16d5850] w:360 h:480 pixfmt:yuvj420p
    [libx264 @ 0x16d4d80] broken ffmpeg default settings detected
    [libx264 @ 0x16d4d80] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 0x16d4d80] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 0x16d4d80] speed presets are listed in x264 --help
    [libx264 @ 0x16d4d80] profile is optional; x264 defaults to high
    Output #0, mp4, to &#39;/pathTo/public_html/out.mp4&#39;:
       Stream #0.0: Video: libx264, yuvj420p, 360x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    </profile></speed>
  • Invalid and inefficient vfw-avi packed B frames detected

    16 août 2015, par seyong

    I got message Invalid and inefficient vfw-avi packed B frames detected while video was converted.

    After converting the video, I checked pixel values in video. Values are different from original video. Why values change after converting ?

    and I use lossless intra-frame video codec ’ffv1’

    command :
    ffmpeg
    -i input_video -vcodec ffv1 -acodec pcm_s16le output_video

    ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers  
    built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC)   configuration:
    --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib   libavutil      52. 13.100 / 52. 13.100   libavcodec     54. 86.100 / 54. 86.100   libavformat    54. 59.106 / 54. 59.106   libavdevice    54.  3.102 / 54.  3.102   libavfilter     3. 32.100 /  3. 32.100   libswscale      2.  1.103 /
    2.  1.103   libswresample   0. 17.102 /  0. 17.102   libpostproc    52.  2.100 / 52.  2.100 [mpeg4 @ 02e218c0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from
    'D:\video_output\avi\1.avi':   Metadata:
       encoder         : Lavf54.59.106   Duration: 00:04:25.52, start: 0.000000, bitrate: 2744 kb/s
       Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (DX50 / 0x30355844), yuv420p, 720x544 [SAR 1:1 DAR 45:34], 25 tbr, 25 tbn, 25
    tbc
       Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s Output #0, matroska, to 'D:\video_output\avi\1_2.mkv':
    Metadata:
       encoder         : Lavf54.59.106
       Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 720x544 [SAR 1:1 DAR 45:34], q=2-31, 200 kb/s, 1k tbn, 25 tbc
       Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping:   Stream #0:0 -> #0:0 (mpeg4 -> ffv1)   Stream #0:1 ->
    #0:1 (ac3 -> pcm_s16le) Press [q] to stop, [?] for help [mpeg4 @ 02e27920] Invalid and inefficient vfw-avi packed B frames detected
    frame=   36 fps=0.0 q=0.0 size=    1916kB time=00:00:01.56
    bitrate=10008.5kbits/s
    ...
    frame= 6565 fps= 46 q=0.0 size=  862611kB time=00:04:22.72
    bitrate=26897.5kbits/s     frame= 6594 fps= 46 q=0.0 size=  864799kB
    time=00:04:23.87 bitrate=26848.0kbits/s     frame CRC mismatch frame=
    6629 fps= 46 q=0.0 size=  866407kB time=00:04:25.20
    bitrate=26763.2kbits/s     frame= 6638 fps= 46 q=0.0 Lsize=  866521kB
    time=00:04:25.56 bitrate=26730.5kbits/s    

    video:816725kB audio:49668kB subtitle:0 global headers:0kB muxing
    overhead 0.014713%

    c++ code

    void ProcessVideo::processFrame1(string fileName1, string fileName2) {
    this->capture.open(fileName1);
    if (!this->capture.isOpened())
       cout&lt;&lt;"video1 error";

    get_videoInfo();

    set_videoInfo();

    this->capture1.open(fileName2);
    if (!this->capture1.isOpened())
       cout&lt;&lt;"video2 error";

    cv::Mat frame; // current video frame
    cv::Mat frame1; // current video frame

    cv::namedWindow("image1");
    cv::namedWindow("image2");

    int count = 0;
    int count1 = 0;

    while (1) {
       capture >> frame;
       capture1 >> frame1;

       if (frame.empty()) {
           //break;
           cout&lt;&lt;"Frame1 Empty"&lt;::iterator it=frame.begin();
       cv::Mat_::iterator itend=frame.end();

       if (frame1.empty()) {
           //break;
           cout&lt;&lt;"Frame2 Empty"&lt;::iterator it1=frame1.begin();
       cv::Mat_::iterator itend1=frame1.end();

       if(frame.empty() &amp;&amp; frame1.empty()) {
           break;
       }

       count1++;

       int i=0,j=0,k=0;

       while(it!=itend &amp;&amp; it1!=itend1) {
           ++it;
           ++it1;

           count++;

           if((*it)[0] != (*it1)[0]){
               i++;
           }
           else if((*it)[1] != (*it1)[1]){
               j++;
           }
           else if((*it)[2] != (*it1)[2]){
               k++;
           }
       }
       cout&lt;&lt;"count diffrent pixel : "&lt;capture.release();
    this->capture1.release();

    }

  • OUTPUT webcam video over rtp

    20 août 2013, par Manjinder Singh Sekhon

    I'm currently trying to stream webcam video from beagleboard black to my laptop and am using this line of code :

    avconv -f video4linux2 -i /dev/video0 -debug -vcodec mpeg2video -r 25 -pix_fmt yuv420p -me_method epzs -b 2600k -bt 256k -f rtp rtp ://192.168.1.12:5004

    the program starts working, but after a while it doesn't really do anything.
    debug log :

    avconv version v0.8.4, Copyright (c) 2000-2012 the Libav developers
     built on May 20 2013 13:00:42 with gcc 4.7.3 20130205 (prerelease)
     configuration: --enable-shared --enable-pthreads --enable-gpl --enable-postproc --enable-avfilter --cross-prefix=arm-angstrom-linux-gnueabi- --prefix=/usr --enable-avserver --enable-avplay --enable-x11grab --enable-libtheora --enable-libvorbis --enable-libx264 --arch=arm --target-os=linux --enable-cross-compile --extra-cflags=&#39; -fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone&#39; --extra-ldflags=&#39;-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed&#39; --sysroot=/build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/beaglebone --enable-hardcoded-tables --cpu=cortex-a8
     libavutil    51. 22. 1 / 51. 22. 1
     libavcodec   53. 35. 0 / 53. 35. 0
     libavformat  53. 21. 0 / 53. 21. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 15. 0 /  2. 15. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  52.  0. 0 / 52.  0. 0
    [video4linux2 @ 0x2dae0] [3]Capabilities: 84000001
    [video4linux2 @ 0x2dae0] Querying the device for the current frame size
    [video4linux2 @ 0x2dae0] Setting frame size to 640x480
    [video4linux2 @ 0x2dae0] The V4L2 driver changed the pixel format from 0x32315559 to 0x56595559
       Last message repeated 1 times
    [video4linux2 @ 0x2dae0] The V4L2 driver changed the pixel format from 0x50323234 to 0x56595559
    [video4linux2 @ 0x2dae0] The V4L2 driver set input_id: 0, input: Camera 1

    from what I can see, the program stops because it can't get any input from webcam. The webcam works when I use a opencv program.(so /dev/video0 definitly works.) Any ideas. I've also tried using ffmpeg, but i get message that I should use avconv.