Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (52)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (9454)

  • FFmpeg hangs when using -vsync 1 for libvpx

    31 mars 2014, par user3466413

    I'm trying to transcode a .mov, ultimately generated by GoToMeeting, to a .webm. I've found to get the audio and video in sync for other formats that I need -vsync 1 and encoding at a constant framerate using -r:v 30. This causes FFmpeg to take the input .mov file, which is variable framerate, and transform it to constant framerate at 30 frames per second. In doing so it duplicates frames, but appears to just make many reference frames so the file size doesn't get massive.

    This approach works perfectly fine when encoding using libx264 and aac to a .mp4 container. This makes a file playable in all browsers that support MPEG-4. But, when I encode using using libvpx and libtheora to a .webm container for other browsers, particularly Chrome, FFmpeg just hangs or runs ridiculously slowly. It doesn't respond to pressing Q to abort it, either ; I have to kill the process.

    So, I get output that looks like this :

    user@virtualbox:~/Desktop$ ffmpeg -y -i original.mov -vcodec libvpx -acodec libvorbis -r:v 30 -vsync 1 omgwork.webm
    ffmpeg version N-61874-g57e939d Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar 27 2014 11:00:31 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
     configuration: --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      52. 69.100 / 52. 69.100
     libavcodec     55. 55.100 / 55. 55.100
     libavformat    55. 35.101 / 55. 35.101
     libavdevice    55. 11.100 / 55. 11.100
     libavfilter     4.  3.100 /  4.  3.100
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x254b940] decoding for stream 0 failed
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2014-03-20 02:09:22
     Duration: 03:08:26.72, start: 0.000000, bitrate: 75 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1368x728 [SAR 1:1 DAR 171:91], 20 kb/s, 0.60 fps, 300 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 47 kb/s (default)
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:2(eng): Data: none (rtp  / 0x20707472), 6 kb/s
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:3(und): Data: none (rtp  / 0x20707472), 0 kb/s
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
    [libvpx @ 0x255e460] v1.2.0
    Output #0, webm, to 'omgwork.webm':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       encoder         : Lavf55.35.101
       Stream #0:0(und): Video: vp8 (libvpx), yuv420p, 1368x728 [SAR 1:1 DAR 171:91], q=-1--1, 200 kb/s, 1k tbn, 30 tbc (default)
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:1(eng): Audio: vorbis (libvorbis), 16000 Hz, mono, fltp (default)
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libvpx)
     Stream #0:1 -> #0:1 (aac -> libvorbis)
    Press [q] to stop, [?] for help
    frame=  117 fps= 10 q=0.0 size=       4kB time=00:00:03.90 bitrate=   8.0kbits/s dup=111 drop=0

    Note how it says it's three minutes into transcoding...and it stays there for minutes on end. This video takes only about 10 minutes to completely transcode to MPEG-4 and there is no delay whatsoever from the Press [q] to stop, [?] for help message and to the first progress message. For WebM, the progress message only appears after a few minutes, and then just crawls along so slowly that it would take literally days to complete.

    When this is happening, FFmpeg maxes out all the CPU cores I give it (for example -threads 4 uses all four CPU cores). Aside from making my CPU burst into flames, it doesn't speed things up at all.

    I've tried :

    • Using Windows and Linux. Both do the same thing.
    • Using the latest available Windows binary and compiling FFmpeg from the Git repository. No improvement or change.
    • Using -vsync 0 and -vsync 2. The file does transcode when I do this, but the audio and video remain out of sync just as it did with other formats I tried. -vsync 1 seems absolutely essential for this to work,
    • Searching, and the closest I could find was bug #3208. But, I'm not specifying -fflags at all ; you can see the exact command I'm running.

    Ideas ?

  • ffmpeg : Image2 => Error while opening encoder

    22 novembre 2012, par user1844282

    I get the following error ffmpeg.

    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    ffmpeg -f image2 -i %05d.jpg -vcodec libx264 foo.mp4

    I'm pretty sure I've used this exact command before and it's been fine. This is my terminal output. Any help would be appreciated.

    $ ffmpeg -f image2 -i %05d.jpg -vcodec libx264 foo.mp4
    ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
     built on Nov 22 2012 17:59:05 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
     configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
     libavutil      51. 73.101 / 51. 73.101

     libavcodec     54. 59.100 / 54. 59.100

     libavformat    54. 29.104 / 54. 29.104

     libavdevice    54.  2.101 / 54.  2.101

     libavfilter     3. 17.100 /  3. 17.100

     libswscale      2.  1.101 /  2.  1.101

     libswresample   0. 15.100 /  0. 15.100

     libpostproc    52.  0.100 / 52.  0.100

    Input #0, image2, from '%05d.jpg':
     Duration: 00:00:04.44, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg, yuvj420p, 1201x900 [SAR 1:1 DAR 1201:900], 25 fps, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 0x7fab0881aa00] width not divisible by 2 (1201x900)
    Output #0, mp4, to 'foo.mp4':
       Stream #0:0: Video: h264, yuvj420p, 1201x900 [SAR 1:1 DAR 1201:900], q=-1--1, 90k tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg -> libx264)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  • ffmpeg : Image2 => Error while opening encoder

    29 mai 2019, par user1844282

    I get the following error ffmpeg.

    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    ffmpeg -f image2 -i %05d.jpg -vcodec libx264 foo.mp4

    I’m pretty sure I’ve used this exact command before and it’s been fine. This is my terminal output. Any help would be appreciated.

    $ ffmpeg -f image2 -i %05d.jpg -vcodec libx264 foo.mp4
    ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
     built on Nov 22 2012 17:59:05 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
     configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
     libavutil      51. 73.101 / 51. 73.101

     libavcodec     54. 59.100 / 54. 59.100

     libavformat    54. 29.104 / 54. 29.104

     libavdevice    54.  2.101 / 54.  2.101

     libavfilter     3. 17.100 /  3. 17.100

     libswscale      2.  1.101 /  2.  1.101

     libswresample   0. 15.100 /  0. 15.100

     libpostproc    52.  0.100 / 52.  0.100

    Input #0, image2, from '%05d.jpg':
     Duration: 00:00:04.44, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg, yuvj420p, 1201x900 [SAR 1:1 DAR 1201:900], 25 fps, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 0x7fab0881aa00] width not divisible by 2 (1201x900)
    Output #0, mp4, to 'foo.mp4':
       Stream #0:0: Video: h264, yuvj420p, 1201x900 [SAR 1:1 DAR 1201:900], q=-1--1, 90k tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg -> libx264)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height