Recherche avancée

Médias (91)

Autres articles (29)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

Sur d’autres sites (4857)

  • ffmpeg converts .flv video to .gif with awful quality [migrated]

    22 février 2013, par Kamil Hismatullin

    I'm converting .flv movie to .gif file with ffmpeg.

    ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000  output.gif

    It works great, but output gif file has a very law quality.

    Any ideas how can I improve quality of converted gif ?

    Output of command :

    $ ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000  output.gif

    ffmpeg version 0.8.5-6:0.8.5-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the Libav developers
     built on Jan 24 2013 14:52:53 with gcc 4.7.2
    *** 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, mov,mp4,m4a,3gp,3g2,mj2, from 'input.flv':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2013-02-14 04:00:07
     Duration: 00:00:18.85, start: 0.000000, bitrate: 3098 kb/s
       Stream #0.0(und): Video: h264 (High), yuv420p, 1280x720, 2905 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
       Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 192 kb/s
       Metadata:
         creation_time   : 2013-02-14 04:00:07
    [buffer @ 0x92a8ea0] w:1280 h:720 pixfmt:yuv420p
    [scale @ 0x9215100] w:1280 h:720 fmt:yuv420p -> w:320 h:240 fmt:rgb24 flags:0x4
    Output #0, gif, to 'output.gif':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2013-02-14 04:00:07
       encoder         : Lavf53.21.1
       Stream #0.0(und): Video: rawvideo, rgb24, 320x240, q=2-31, 200 kb/s, 90k tbn, 10 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
    Stream mapping:
     Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    frame=  101 fps= 32 q=0.0 Lsize=    8686kB time=10.10 bitrate=7045.0kbits/s dup=0 drop=149    
    video:22725kB audio:0kB global headers:0kB muxing overhead -61.778676%

    Thanks.

  • aac-eld decode linux

    28 février 2013, par bernard

    I'm was in Vietnam and tried to learn Vietnames.
    The difficult thing is to learn the pronunciation and I made an Android App to record voices. Vietnamese people are very nice and I collected more than 500 sound files.

    Now I try to make a language learning app. To do that I try to reduce noise and normalize volume.

    I have chosen the following settings :

    this.recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
    this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC_ELD);
    this.recorder.setAudioEncodingBitRate(96000);
    this.recorder.setAudioSamplingRate(44100);

    (cordova AudioPlayer.java - default settings are crap)

    Now I have a problem. I'm not able to open the files with audacity or ffmpeg.

    ./ffmpeg -i /tmp/speaker__ualp__x%E1%BA%A5u.mp4 /tmp/uu.wav
    ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
     built on Feb 20 2013 10:50:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --enable-libfdk-aac
     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
    [aac @ 0xaada980] Audio object type 39 is not supported.
       Last message repeated 1 times
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/speaker__ualp__x%E1%BA%A5u.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 0
       compatible_brands: isom3gp4
       creation_time   : 2013-01-29 15:53:11
     Duration: 00:00:01.21, start: 0.000000, bitrate: 116 kb/s
       Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s
       Metadata:
         creation_time   : 2013-01-29 15:53:11
         handler_name    : SoundHandle
    [aac @ 0xaada980] Audio object type 39 is not supported.
    Output #0, wav, to '/tmp/uu.wav':
     Metadata:
       major_brand     : isom
       minor_version   : 0
       compatible_brands: isom3gp4
       Stream #0:0(eng): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
       Metadata:
         creation_time   : 2013-01-29 15:53:11
         handler_name    : SoundHandle
    Stream mapping:
     Stream #0:0 -> #0:0 (aac -> pcm_s16le)
    Error while opening decoder for input stream #0:0

    What can I do ?

  • Overlaying jpg onto Mp4 using -VF

    16 février 2013, par brux

    I am using the following command to overlay a jpg :

    ffmpeg -i in.mp4 -vf "movie=bb.png [movie] ; [in] [movie] overlay=0:0 [out]" -vcodec libx264 -acodec copy out.mp4

    This works as expected with the first file (listed below) but it doesnt work with the second file. There is no error when I try with the second file, rather is creates an unusually large file that would not open :

    File 1 :

    [me@me ~]$ ffmpeg -i 2013-02-08.mp4
    ffmpeg version 1.0.git Copyright (c) 2000-2012 the FFmpeg developers
     built on Jan 11 2013 00:12:08 with gcc 4.7.2 (GCC) 20120921 (Red Hat 4.7.2-2)
     configuration:
     libavutil      52.  8.100 / 52.  8.100
     libavcodec     54. 74.100 / 54. 74.100
     libavformat    54. 37.100 / 54. 37.100
     libavdevice    54.  3.100 / 54.  3.100
     libavfilter     3. 23.101 /  3. 23.101
     libswscale      2.  1.102 /  2.  1.102
     libswresample   0. 17.101 /  0. 17.101
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2013-02-08.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 2013-02-08 20:31:49
       encoder         : Lavf53.24.0
     Duration: 00:00:03.20, start: 0.000000, bitrate: 1030 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 1247 kb/s, 8.08 fps, 7.50 tbr, 15 tbn, 15 tbc
       Metadata:
         creation_time   : 2013-02-08 20:31:49
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 8000 Hz, mono, s16, 12 kb/s
       Metadata:
         creation_time   : 2013-02-08 20:31:49
         handler_name    : SoundHandler
    At least one output file must be specified

    File 2

    [me@me ~]$ ffmpeg -i aq.mp4
    ffmpeg version 1.0.git Copyright (c) 2000-2012 the FFmpeg developers
     built on Jan 11 2013 00:12:08 with gcc 4.7.2 (GCC) 20120921 (Red Hat 4.7.2-2)
     configuration:
     libavutil      52.  8.100 / 52.  8.100
     libavcodec     54. 74.100 / 54. 74.100
     libavformat    54. 37.100 / 54. 37.100
     libavdevice    54.  3.100 / 54.  3.100
     libavfilter     3. 23.101 /  3. 23.101
     libswscale      2.  1.102 /  2.  1.102
     libswresample   0. 17.101 /  0. 17.101
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aq.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 2013-02-19 20:33:16
       encoder         : Lavf53.24.0
     Duration: 00:00:03.20, start: 0.000000, bitrate: 1394 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 1451 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
       Metadata:
         creation_time   : 2013-02-19 20:33:16
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 8000 Hz, mono, s16, 12 kb/s
       Metadata:
         creation_time   : 2013-02-19 20:33:16
         handler_name    : SoundHandler
    At least one output file must be specified

    In case it is important I am capturing these videos with Android devices. The first mp4 file is created by a Nexus 7, the second (the file which wont overlay the image) is created using a HTC Desire.