Recherche avancée

Médias (91)

Autres articles (98)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (4995)

  • Segmenting an audio stream or audio only file

    15 janvier 2013, par Luuk D. Jansen

    There is need for an audio only link for HTTP-live streaming. I now use the segmenter in FFMPEG for the video, and that works great. However, when giving an audio-file the segmenter does not seem to work, just creates one segment.

    The call to FFMPEG for the segmentation is :

    ffmpeg -i data/media/1/2/encoded.mp3 -y -c copy -flags global_header
    -map 0 -f segment -segment_time 10 -segment_list data/media/1/2/fileList.txt -segment_format libmp3lame
    data/media/1/2/segment_%05d.mp3

    I did put as the -segment_format 'libmp3lame' in, but it doesn't seem to make a difference.

    The first step is the encoding, this is the bedbug output :

    20:11:36,158 DEBUG ~ FFMPEG: ffmpeg version 0.10.2.git-d3d5e84 Copyright (c) 2000-2012 the FFmpeg developers
    20:11:36,158 DEBUG ~ FFMPEG:   built on May  2 2012 19:00:38 with clang 3.0 (tags/Apple/clang-211.10.1)
    20:11:36,158 DEBUG ~ FFMPEG:   configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
    20:11:36,158 DEBUG ~ FFMPEG:   libavutil      51. 44.100 / 51. 44.100
    20:11:36,158 DEBUG ~ FFMPEG:   libavcodec     54. 12.100 / 54. 12.100
    20:11:36,158 DEBUG ~ FFMPEG:   libavformat    54.  3.100 / 54.  3.100
    20:11:36,158 DEBUG ~ FFMPEG:   libavdevice    53.  4.100 / 53.  4.100
    20:11:36,158 DEBUG ~ FFMPEG:   libavfilter     2. 66.101 /  2. 66.101
    20:11:36,158 DEBUG ~ FFMPEG:   libswscale      2.  1.100 /  2.  1.100
    20:11:36,158 DEBUG ~ FFMPEG:   libswresample   0. 10.100 /  0. 10.100
    20:11:36,158 DEBUG ~ FFMPEG:   libpostproc    52.  0.100 / 52.  0.100
    20:11:36,162 DEBUG ~ FFMPEG: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'data/media/1/1/test.m4a':
    20:11:36,162 DEBUG ~ FFMPEG:   Metadata:
    20:11:36,162 DEBUG ~ FFMPEG:     major_brand     : mp42
    20:11:36,162 DEBUG ~ FFMPEG:     minor_version   : 1
    20:11:36,163 DEBUG ~ FFMPEG:     compatible_brands: mp42mp41
    20:11:36,163 DEBUG ~ FFMPEG:     creation_time   : 2011-12-07 18:53:04
    20:11:36,163 DEBUG ~ FFMPEG:   Duration: 00:00:24.20, start: 0.000000, bitrate: 40 kb/s
    20:11:36,163 DEBUG ~ FFMPEG:     Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, s16, 39 kb/s
    20:11:36,163 DEBUG ~ FFMPEG:     Metadata:
    20:11:36,163 DEBUG ~ FFMPEG:       creation_time   : 2011-12-07 18:53:04
    20:11:36,163 DEBUG ~ FFMPEG:       handler_name    : Apple Sound Media Handler
    20:11:36,170 DEBUG ~ FFMPEG: [mpegts @ 0x7fe4c404d000] muxrate VBR, pcr every 4 pkts, sdt every 200, pat/pmt every 40 pkts
    20:11:36,171 DEBUG ~ FFMPEG: Output #0, mpegts, to '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/encoded.mp3':
    20:11:36,171 DEBUG ~ FFMPEG:   Metadata:
    20:11:36,171 DEBUG ~ FFMPEG:     major_brand     : mp42
    20:11:36,171 DEBUG ~ FFMPEG:     minor_version   : 1
    20:11:36,171 DEBUG ~ FFMPEG:     compatible_brands: mp42mp41
    20:11:36,171 DEBUG ~ FFMPEG:     creation_time   : 2011-12-07 18:53:04
    20:11:36,171 DEBUG ~ FFMPEG:     encoder         : Lavf54.3.100
    20:11:36,171 DEBUG ~ FFMPEG:     Stream #0:0(eng): Audio: mp3, 48000 Hz, stereo, s16, 64 kb/s
    20:11:36,171 DEBUG ~ FFMPEG:     Metadata:
    20:11:36,171 DEBUG ~ FFMPEG:       creation_time   : 2011-12-07 18:53:04
    20:11:36,171 DEBUG ~ FFMPEG:       handler_name    : Apple Sound Media Handler
    20:11:36,171 DEBUG ~ FFMPEG: Stream mapping:
    20:11:36,171 DEBUG ~ FFMPEG:   Stream #0:0 -> #0:0 (aac -> libmp3lame)
    20:11:36,171 DEBUG ~ FFMPEG: Press [q] to stop, [?] for help
    20:11:36,673 DEBUG ~ FFMPEG: size=     109kB time=00:00:12.79 bitrate=  69.5kbits/s    
    20:11:37,156 DEBUG ~ FFMPEG: size=     209kB time=00:00:24.24 bitrate=  70.7kbits/s    
    20:11:37,156 DEBUG ~ FFMPEG: video:0kB audio:190kB global headers:0kB muxing overhead 10.301383%

    Then the next is the segmentation (version 0.10.2 cannot do both at the same time yet) :

    20:11:37,211 DEBUG ~ FFMPEG: ffmpeg version 0.10.2.git-d3d5e84 Copyright (c) 2000-2012 the FFmpeg developers
       20:11:37,212 DEBUG ~ FFMPEG:   built on May  2 2012 19:00:38 with clang 3.0 (tags/Apple/clang-211.10.1)
       20:11:37,212 DEBUG ~ FFMPEG:   configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm
       20:11:37,212 DEBUG ~ FFMPEG:   libavutil      51. 44.100 / 51. 44.100
       20:11:37,212 DEBUG ~ FFMPEG:   libavcodec     54. 12.100 / 54. 12.100
       20:11:37,212 DEBUG ~ FFMPEG:   libavformat    54.  3.100 / 54.  3.100
       20:11:37,212 DEBUG ~ FFMPEG:   libavdevice    53.  4.100 / 53.  4.100
       20:11:37,212 DEBUG ~ FFMPEG:   libavfilter     2. 66.101 /  2. 66.101
       20:11:37,212 DEBUG ~ FFMPEG:   libswscale      2.  1.100 /  2.  1.100
       20:11:37,212 DEBUG ~ FFMPEG:   libswresample   0. 10.100 /  0. 10.100
       20:11:37,212 DEBUG ~ FFMPEG:   libpostproc    52.  0.100 / 52.  0.100
       20:11:37,226 DEBUG ~ FFMPEG: [mpegts @ 0x7fccc2049800] max_analyze_duration 5000000 reached at 5016000
       20:11:37,226 DEBUG ~ FFMPEG: Input #0, mpegts, from '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/encoded.mp3':
       20:11:37,226 DEBUG ~ FFMPEG:   Duration: 00:00:24.12, start: 1.376978, bitrate: 71 kb/s
       20:11:37,226 DEBUG ~ FFMPEG:   Program 1
       20:11:37,226 DEBUG ~ FFMPEG:     Metadata:
       20:11:37,226 DEBUG ~ FFMPEG:       service_name    : Service01
       20:11:37,226 DEBUG ~ FFMPEG:       service_provider: FFmpeg
       20:11:37,226 DEBUG ~ FFMPEG:     Stream #0:0[0x100](eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 64 kb/s
       20:11:37,226 DEBUG ~ FFMPEG: Output #0, segment, to '/Users/Luuk/Documents/Java/idoms-server/data/media/1/2/segment_%05d.mp3':
       20:11:37,226 DEBUG ~ FFMPEG:   Metadata:
       20:11:37,226 DEBUG ~ FFMPEG:     encoder         : Lavf54.3.100
       20:11:37,226 DEBUG ~ FFMPEG:     Stream #0:0(eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 64 kb/s
       20:11:37,226 DEBUG ~ FFMPEG: Stream mapping:
       20:11:37,226 DEBUG ~ FFMPEG:   Stream #0:0 -> #0:0 (copy)
       20:11:37,226 DEBUG ~ FFMPEG: Press [q] to stop, [?] for help
       20:11:37,238 DEBUG ~ FFMPEG: size=       0kB time=00:00:24.28 bitrate=   0.0kbits/s    
       20:11:37,238 DEBUG ~ FFMPEG: video:0kB audio:190kB global headers:0kB muxing overhead -100.000000%
  • How to batch convert mp4 files to ogg with ffmpeg using a bash command or Ruby

    3 avril 2013, par TJ Sherrill

    I am running a OSX, don't know tons about video conversions. But I have like 200 videos that are all in mp4 format and won't play in Firefox. I need to convert them to ogg to use the html5 video tag.

    These files live in a folder structure that makes it hard to do files one at a time. I would like the bash command or Ruby command to go through all child folders and find all .mp4's and convert them.

    I found one reference of how to do this with Google : http://athmasagar.wordpress.com/2011/05/12/a-bash-script-to-convert-mp4-files-to-oggogv/

    #!/bin/bash
    for f in $(ls *mp4 | sed ‘s/\(.*\)\..*/\1/’)
    do
    ffmpeg -i $f.mp4 -acodec vorbis -vcodec libtheora $f.ogg
    done

    But have no idea how to convert this from linux to osx.

  • ffmpeg not finding vcodec libx264

    30 juillet 2013, par Ofeargall

    I've installed the latest ffmpeg but it seems unable to locate the video codecs. Do I need to completeley remove ffmpeg and re run the ./configure differently in order for ffmpeg to find the video codecs ?

    Here's my current configuration :

    FFmpeg version git-f61cbc2, Copyright (c) 2000-2011 the FFmpeg developers
     built on Jan 18 2011 10:59:49 with gcc 4.0.1 (Apple Inc. build 5465)
     configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.94. 0 / 52.94. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0

    Or, can I just re-run the make command to include the library ?

    Here's my snippet for transcoding :

    ffmpeg -i ~/Desktop/watercarts.mov -vcodec libx264 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s 480x320 ~/Desktop/watercartsipod.mp4

    And the error :

    Unknown encoder 'libx264'

    Thank you in advance.