Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (36)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (4696)

  • FFmpeg works out mp3 duration with file input, but fails with pipe ?

    16 août 2012, par user1599160

    I am trying to get PCM data from mp3's using ffmpeg, but the files are stored on a database, gridfs, so I am trying to use pipes to give ffmpeg the data with some sucess, however there is one file which ffmpeg handles correctlt if fed the filename as an input, and incorrectly when given the file as a pipe :( any idea why ?

    ffmpeg -i - -f s16le -acodec pcm_s16le output.raw < testMp3s/test-corrupt.mp3

    gives

    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
    configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --        enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex -- enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --  disable-debug --disable-static
    libavutil      51. 54.100 / 51. 54.100
    libavcodec     54. 23.100 / 54. 23.100
    libavformat    54.  6.100 / 54.  6.100
    libavdevice    54.  0.100 / 54.  0.100
    libavfilter     2. 77.100 /  2. 77.100
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0. 15.100 /  0. 15.100
    libpostproc    52.  0.100 / 52.  0.100
    [mp3 @ 0x16d7100] Unknown attached picture mimetype: JPG, skipping.
    [mp3 @ 0x16d7100] max_analyze_duration 5000000 reached at 5015510
    [mp3 @ 0x16d7100] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from 'pipe:':
    Metadata:
    album           : FreshNewMusik.Com
    encoded_by      : iTunes 10.6.3
    title           : No Lie (Freestyle)
    artist          : Lil Wayne
    album_artist    : Lil Wayne
    genre           : Hip-Hop/Rap
    TT3             : twitter.com/jakejarvis
    date            : 2012
    Duration: N/A, start: 0.000000, bitrate: 320 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s

    Yet

    ffmpeg -i testMp3s/test-corrupt.mp3 -f s16le -acodec pcm_s16le output.raw

    gives

    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    built on Jun  9 2012 13:50:13 with gcc 4.7.0 20120505 (prerelease)
    configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --    enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
    libavutil      51. 54.100 / 51. 54.100
    libavcodec     54. 23.100 / 54. 23.100
    libavformat    54.  6.100 / 54.  6.100
    libavdevice    54.  0.100 / 54.  0.100
    libavfilter     2. 77.100 /  2. 77.100
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0. 15.100 /  0. 15.100
    libpostproc    52.  0.100 / 52.  0.100
    [mp3 @ 0xf33100] Unknown attached picture mimetype: JPG, skipping.
    [mp3 @ 0xf33100] max_analyze_duration 5000000 reached at 5015510
    [mp3 @ 0xf33100] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from 'testMp3s/test-corrupt.mp3':
    Metadata:
    album           : FreshNewMusik.Com
    encoded_by      : iTunes 10.6.3
    title           : No Lie (Freestyle)
    artist          : Lil Wayne
    album_artist    : Lil Wayne
    genre           : Hip-Hop/Rap
    TT3             : twitter.com/jakejarvis
    date            : 2012
    Duration: 00:02:33.86, start: 0.000000, bitrate: 320 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s

    How do I get the duration with the pipe ? (the data is available on memory in a python app)

  • Extract image from video in Python using ffmpeg and subprocess

    13 juin 2021, par Mevon

    Me and a friend are currently working on a twitter bot which uploads images taken from randomly chosen video files.
    
We are using ffmpeg, with subprocess.call(), to get out.jpg from a video file,
    
which is working fine when the subtitles are hardcoded into the video.
    
We've also made it burn the subtitles into the out.jpg outside of python, but when trying it inside pyhton with subprocess.call() it won't work and it will say :

    


    Output /file/path/to/file.mkv same as Input #0 - exiting
FFmpeg cannot edit existing files in-place.


    


    This is the code for harcoded subtitles.

    


    subprocess.call(
        ['ffmpeg', '-y', '-ss', str(randomTime), '-i', filepath, '-vframes', '1', '-vf', 'scale=1920:1080', '-q:v', '1',
         '-qmin', '1', tmpfilename])


    


    And this the code for non hardcoded subtitles.

    


    subprocess.call(
        ['ffmpeg', '-y', '-ss', str(randomTime), '-copyts', '-i', filepath, '-vf', 'subtitles', filepath, '-vframes', '1', '-vf', 'scale=1920:1080',
         '-vf', '-q:v', '1', '-qmin', '1', '-frames:v', '1', tmpfilename])


    


    Also both me and my friend are not so sure if calling ffmpeg using subprocess.call() is the right way to do it in python.
    
Any kind of help is welcome and please ask me for more code or more details if needed.

    


  • avcodec/ttmlenc : add support for region positioning and sizing

    29 mars 2021, par Jan Ekström
    avcodec/ttmlenc : add support for region positioning and sizing
    

    The ASS margins are utilized to generate percentual values, as
    the usage of cell-based sizing and offsetting seems to be not too
    well supported by renderers.

    Signed-off-by : Jan Ekström <jan.ekstrom@24i.com>

    • [DH] libavcodec/ttmlenc.c
    • [DH] tests/ref/fate/sub-ttmlenc