Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (81)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • 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

Sur d’autres sites (9560)

  • FFmpeg and types of samples

    23 juillet 2015, par Kyborg2011

    Decoded audio using FFmpeg (function avcodec_decode_audio3) and try to reproduce it through Audiotrack in Android. When playing I hear some growling. No music. On the forums advised that the problem with the samples. Question : how to solve this problem, if it is associated with a mismatch of types of samples ? Code decoding :

           while (av_read_frame(pFormatCtx, &packet)>= 0) {
               if (aCodecCtx->codec_type == AVMEDIA_TYPE_AUDIO) {
                           int data_size = AVCODEC_MAX_AUDIO_FRAME_SIZE * 2;
                           int size=packet.size;
    int decoded = 0;
                           while(size > 0) {
                                   int len = avcodec_decode_audio3(aCodecCtx, (uint16_t *) pAudioBuffer, &data_size, &packet);


                                   jbyte *bytes = (*env)->GetByteArrayElements(env, array, NULL);
                                   memcpy(bytes + decoded, (uint16_t *) pAudioBuffer, len);
                                   (*env)->ReleaseByteArrayElements(env, array, bytes, 0);

                                   (*env)->CallStaticVoidMethod(env, cls, mid, array);


                                   size -= len;
                                   decoded += len;
                                   }
               }

        }

    Java code :

       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);

            int bufSize = AudioTrack.getMinBufferSize(44100,                                AudioFormat.CHANNEL_CONFIGURATION_MONO,
                           AudioFormat.ENCODING_PCM_16BIT);
           track = new AudioTrack(AudioManager.STREAM_MUSIC, 44100, AudioFormat.CHANNEL_CONFIGURATION_MONO,
                       AudioFormat.ENCODING_PCM_16BIT, bufSize, AudioTrack.MODE_STREAM);
           track.play();

               bytes = new byte[bufSize];
               int res = main(2, "/sdcard/muzika_iz_reklami_bmw_5_series_-_bmw_5_series.mp3", bytes);


               System.out.println(res);
       }
       private static void play(byte[] play) {

           track.write(play, 0, play.length);
       }

    How to solve this problem ?
    P.S. The file itself is checked - the standard player plays. Format : mp3.

  • Server side video mixing

    16 mars 2014, par Nicolas Goy

    I have a serie of video files encoded in mpeg2 (I can change this encoding), and I have to produce a movie in flash flv (this is a requirement, I can't change that encoding).

    One destination movie is a compilation of different source video files.

    I have a playlist defining the destination movie. For example :

    Video file        Position        Offset       Length
    little_gnomes     0               0            8.5
    fairies           5.23            0.12         12.234
    pixies            14              0            9.2

    Video file is the name of the file, position is when the file should be started (in the master timeline), offset is the offset within the video file, and length is the length of the video to play. The numbers are seconds (in double).

    This would result in something like that (final movie timeline) :

                  0--5.23|--8.5|--14|--17.464|--23.2|
    little_nomes   **************
    fairies               *********************
    pixies                           *****************

    Where video overlaps, the last video to be added override the last one, the audio should be mixed.

    The resulting video track would be :

                  0--5.23|--8.5|--14|--17.464|--23.2|
    little_nomes   *******
    fairies               ***********
    pixies                           *****************

    While the resulting audio would be :

                  0--5.23|--8.5|--14|--17.464|--23.2|
    little_nomes   11111112222222
    fairies               222222211112222222222
    pixies                           22222222221111111

    Where 1 or 2 is the number of mixed audio tracks.

    There can be a maximum of 3 audio tracks.

    I need to write a program which takes the playlist as input and produce the flv file. I'm open to any solution (must be free/open source).

    An existing tool that can do that would be the simplest, but I found none. As for making my own solution, I found only ffmpeg, I was able to do basic things with it, but the documentation is terribly lacking.

    It can be any language, it doesn't have to be super fast (if it takes 30 minutes to build a 1h movie it's fine).

    The solution will run on opensolaris based x64 servers. If I have to use linux, this would work too. But windows is out of the question.

  • FFmpeg : Concatenating two video files causing static output

    15 octobre 2015, par roy

    I have two .avi video files that I am trying to concat together.

    I have a files.txt that has in it :

    file './1_tmp.avi'
    file './2_tmp.avi'

    FFprobe for 1_tmp.avi gives me :

    ffprobe version 2.7.2 Copyright (c) 2007-2015 the FFmpeg developers
     built with gcc 4.8.5 (Gentoo 4.8.5 p1.3, pie-0.6.2)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags=' ' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-vaapi --disable-vdpau --enable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libfreetype --disable-libsoxr --enable-pthreads --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libaacplus --disable-libfaac --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --disable-libxvid --enable-x11grab --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx-i
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from '1_tmp.avi':
     Metadata:
       encoder         : Lavf56.36.100
     Duration: 00:00:19.00, start: 0.000000, bitrate: 179869 kb/s
       Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgr0, 1024x768, 180390 kb/s, 18 fps, 18 tbr, 18 tbn, 18 tbc

    and for 2_tmp.avi :

    ffprobe version 2.7.2 Copyright (c) 2007-2015 the FFmpeg developers
     built with gcc 4.8.5 (Gentoo 4.8.5 p1.3, pie-0.6.2)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags=' ' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-vaapi --disable-vdpau --enable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libfreetype --disable-libsoxr --enable-pthreads --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libaacplus --disable-libfaac --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --disable-libxvid --enable-x11grab --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx-i
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from '2_tmp.avi':
     Metadata:
       encoder         : Lavf56.36.100
     Duration: 00:00:56.00, start: 0.000000, bitrate: 160560 kb/s
       Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgr0, 1024x768, 160714 kb/s, 18 fps, 18 tbr, 18 tbn, 18 tbc

    There are only video streams, they look to be the same codecs/fps

    I am using this command to concatenate them :

    ffmpeg -f concat -i files.txt -c:v copy -y output.avi

    I don’t get any output from the terminal and it outputs a file.

    The file opens and the content in 1_tmp.avi plays fine, at the same quality, but when it gets to the point in the video where 2_tmp.avi should be, it’s pixelated static all the way through (see image below).

    static screen for second file after concatentation - mama **did not** say there would be days like this.

    If I use a command like :

    ffmpeg -i 1_tmp.avi -i 2_tmp.avi -filter_complex "[0:0] [1:0] concat=n=2:v=1 [v]" -map "[v]" output.avi

    I do get full output of both videos merged together, but it is dropped to an mpeg codec and the quality loss is noticeably prominent.