Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (32)

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

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3706)

  • find in bash to convert files with ffmpeg - paths being changed

    20 avril 2017, par J V

    Trying to convert a bunch of files with ffmpeg and find.

    find -name "*.mkv" | while read f
    do ffmpeg -i "$f" -c copy -y "${f%.*}.mp4"
    done

    This should work right ? It results in :

    + read f
    + ffmpeg -i '/file.mkv' -c copy -y '/file.mp4'
    ffmpeg version N-61155-g61ff043 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  7 2014 19:17:59 with gcc 4.8 (Debian 4.8.2-16)
    /file.mkv: No such file or directory

    So I naturally try sticking the missing dot in front of the variable :

    find -name "*.mkv" | while read f
    do ffmpeg -i ".$f" -c copy -y ".${f%.*}.mp4"
    done

    The result :

    + read f
    + ffmpeg -i '../file.mkv' -c copy -y '../file.mp4'
    ffmpeg version N-61155-g61ff043 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  7 2014 19:17:59 with gcc 4.8 (Debian 4.8.2-16)
    ../file.mkv: No such file or directory

    It’s specifically removing the dot at the worst possible time. Any idea what’s causing this and how to fix it ?

    PS : -print0 in find has the same problem, and none of the files have newlines etc.

    Edit : As requested, the echo. The echo works as expected :

    find -name "*.mkv" | while read f
    do echo ffmpeg -i "$f" -c copy -y "${f%.*}.mp4"
    done

    + read f
    + echo ffmpeg -i './file.mkv' -c copy -y './file.mp4'
    ffmpeg -i ./file.mkv -c copy -y ./file.mp4

    Edit2 : With a file with a space and one without, the filename without is changed. If I rm the one with a space the one without works fine.

    $ ls
    + ls
    file.mkv  file two.mkv
    $ find -name "*.mkv" | while read f; do ffmpeg -i "$f" -c copy -y "${f%.*}.mp4"; done
    + find -name '*.mkv'
    + read f
    + ffmpeg -i './file two.mkv' -c copy -y './file two.mp4'
    ffmpeg version N-61155-g61ff043 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  7 2014 19:17:59 with gcc 4.8 (Debian 4.8.2-16)
     configuration: --arch=amd64 --enable-pthreads --enable-libopencv --enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtheora --enable-vaapi --enable-runtime-cpudetect --enable-libvorbis --enable-zlib --enable-swscale --enable-libcdio --enable-bzlib --enable-libdc1394 --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-libpulse --enable-vdpau --enable-libvpx --enable-gpl --enable-x11grab --enable-libx264 --enable-filters
     libavutil      52. 66.101 / 52. 66.101
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.101 / 55. 33.101
     libavdevice    55. 11.100 / 55. 11.100
     libavfilter     4.  3.100 /  4.  3.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, matroska,webm, from './file two.mkv':
     Metadata:
       COMPATIBLE_BRANDS: isommp42
       MAJOR_BRAND     : mp42
       MINOR_VERSION   : 0
       ENCODER         : Lavf55.33.101
     Duration: 00:08:15.54, start: 0.000000, bitrate: 194 kb/s
       Stream #0:0(und): Audio: aac, 44100 Hz, stereo, fltp (default)
       Metadata:
         CREATION_TIME   : 2014-03-07 04:33:17
         LANGUAGE        : und
         HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011
    Output #0, mp4, to './file two.mp4':
     Metadata:
       COMPATIBLE_BRANDS: isommp42
       MAJOR_BRAND     : mp42
       MINOR_VERSION   : 0
       encoder         : Lavf55.33.101
       Stream #0:0(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo (default)
       Metadata:
         CREATION_TIME   : 2014-03-07 04:33:17
         LANGUAGE        : und
         HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    size=   11698kB time=00:08:15.53 bitrate= 193.4kbits/s    
    video:0kB audio:11614kB subtitle:0 data:0 global headers:0kB muxing overhead 0.724668%
    + read f
    + ffmpeg -i /file.mkv -c copy -y /file.mp4
    ffmpeg version N-61155-g61ff043 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  7 2014 19:17:59 with gcc 4.8 (Debian 4.8.2-16)
     configuration: --arch=amd64 --enable-pthreads --enable-libopencv --enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtheora --enable-vaapi --enable-runtime-cpudetect --enable-libvorbis --enable-zlib --enable-swscale --enable-libcdio --enable-bzlib --enable-libdc1394 --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-libpulse --enable-vdpau --enable-libvpx --enable-gpl --enable-x11grab --enable-libx264 --enable-filters
     libavutil      52. 66.101 / 52. 66.101
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.101 / 55. 33.101
     libavdevice    55. 11.100 / 55. 11.100
     libavfilter     4.  3.100 /  4.  3.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    /file.mkv: No such file or directory
    + read f
  • How to find out the file extension for extracting audio tracks with ffmpeg and python ?

    6 juin 2018, par seenorth

    I want my python program to extract the audio tracks from various video files without changing the audio codec. For this I call the following command :

    ffmpeg -i "input" -vn -acodec copy "output.???"

    However this only works, if the file extension of the output file is known. Is there a way to find out the corresponding file extension ?

  • ffmpeg Unable to find a suitable output format for 'ffmpeg -i '

    20 mai 2017, par Ramos

    Hi everyone i try to mirror my video file i use this library for ffmpeg

    compile ’com.writingminds:FFmpegAndroid:0.3.2’

    and this is my commande :

    uriPathOut = getInternalDirectoryPath() + "/Movies/3.mp4" ;
    uriPathIn = getInternalDirectoryPath() + "/Movies/1.mp4" ;

    cmd = new String[]"ffmpeg -i",uriPathIn," -vf \"vflip\" -metadata:s:v rotate=180 ",uriPathOut ;

    and i always get this error :

    ’[NULL @ 0xb84192d0] Unable to find a suitable output format for ’ffmpeg -i’
    ffmpeg -i : Invalid argument’

    is there any solution help me please.