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 (4074)

  • Error with os.system in python script

    25 mai 2015, par Avery Ripoll Crocker

    I am creating a python script that will convert files using ffmpeg and unoconv. However when I run the program, rather than getting a converted file the program simply displays the text :

    sh: 1: unoconv -f: not found

    Here is the script for my program :

       path = raw_input("Please drag and drop the directory in which the file is stored into the terminal:")
       os.chdir(path[1:-2])
       filename = raw_input("Please enter the name of the file you would like to convert, including the file-type. e.g. test.txt, however please do make sure that the file-name does not have any spaces:")
       Fileextension = raw_input("What filetype would you like the program to convert your file to. E.g. .mp3: ")
       body, ext = os.path.splitext("filename")
       os.system("'ffmpeg -i ' + filename + body + Fileextension ")

    Any ideas as to why this happens ?

  • How to configure FFMPEG to generate position independent code on IOS

    8 juillet 2013, par madadi

    I am developing an app on iOS which makes use of FFMPEG for video decoding. I want to get 'position independent code' of FFMPEG working on my app. --enable-pic option in the FFMPEG configuration generates position independent code only if I set --disable-asm. I concluded this when I ran the otool on my app(otool -hv 'appname'). Below are the details :

    If I set --enable-pic alone, below is the output with otool :

    magic     cputype  cpusubtype  caps  filetype  ncmds  sizeofcmds  flags
    MH_MAGIC  ARM      V7          0x00  EXECUTE   29     3724        NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK

    If I set --enable-pic and --disable-asm below is the output with otool,

    magic     cputype  cpusubtype  caps  filetype  ncmds  sizeofcmds  flags
    MH_MAGIC  ARM      V7          0x00  EXECUTE   51     5520        NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK **PIE**

    Below are my configuration settings for FFMPEG(build-ffmpeg-ios.sh) :

    if [  `uname` =  "Darwin" ]; then
     SEDCMD="sed -i '' "
    else
     SEDCMD="sed -i "
    fi


    make clean
    ./configure \
       --prefix=$PREFIX \
       --enable-version3 \
       --enable-static \
       --disable-shared \
       --disable-doc \
       --disable-ffmpeg \
       --disable-ffplay \
       --disable-ffprobe \
       --disable-ffserver \
       --disable-avdevice \
       --disable-avfilter \
       --disable-postproc \
       --enable-small \
       --cross-prefix="$DEVROOT/usr/bin/" \
       --enable-cross-compile \
       --target-os=darwin \
       --arch=$ARCH \
       --cpu=$CPU \
       --cc="$CC" \
       --as="$AS" \
       --extra-cflags="$CFLAGS" \
       --extra-ldflags="$CFLAGS" \
       --disable-symver \
       --disable-debug \
       --disable-indevs \
       --disable-encoders \
       --disable-bsfs \
       --enable-pic \
       --disable-filters \
       $CONFIGURE_FLAGS || exit 1;
    $SEDCMD 's/HAVE_INLINE_ASM 1/HAVE_INLINE_ASM 0/g' config.h
    make install || exit 1;

    And below is the make file I use(iOS.mk) :

    FFMPEG_LIBS := libavcodec.a libavformat.a libavutil.a libswscale.a

    IOS_ARMV7_FFMPEG_LIB := $(addprefix build/ios/armv7/lib/, $(FFMPEG_LIBS))

    IOS_UNI_FFMPEG_LIB := $(addprefix build/ios/universal/lib/, $(FFMPEG_LIBS))



    IPHONE_SDK_VERSION := "5.0"
    IPHONE_DEPLOY_SDK := "3.2"

    ALL_IOS_LIBS := $(IOS_UNI_FFMPEG_LIB)

    build/ios/universal/lib/%.a : build/ios/armv7/lib/%.a
       mkdir -p build/ios/universal/lib
       lipo -create -output $@ $^



    $(IOS_ARMV7_FFMPEG_LIB):
       export PREFIX="`$(ABSPATH) build/ios/armv7`" && \
       export ARCH="arm" && \
       export CPU="cortex-a8" && \
       export IOS_BASE_SDK="$(IPHONE_SDK_VERSION)" && \
       export IOS_DEPLOY_TGT="$(IPHONE_DEPLOY_SDK)" && \
       export CONFIGURE_FLAGS="--enable-neon" && \
       export PATH="`$(ABSPATH) venders`:$$PATH" && \
       cd venders/ffmpeg && bash ../iphone-compile.sh arm7 ../build-ffmpeg-ios.sh

    Can someone please help me with getting the FFMPEG up and running with both 'pic' and assembly optimization enabled. Without assembly optimizastion, FFMPEG would not be helpful to me as the video decoding is extremely slow.

  • FFmpeg per stream metadata change with more audio streams

    22 août 2014, par tomasb

    I’m trying to change audio stream title for a movie which was originally with DTS sound. I have added AC3 version using -map parameter, want to keep both. My problem is that the AC3 audio stream bears DTS stream metadata. I am using FFmpeg 1.2

    Tried :

    ffmpeg -i movie.mkv -c copy \
    -metadata:s:1 title="AC3 5.1 640 kb/s" -y movie.temp.mkv

    this partially works, but output file contains only 1 of each stream type, i.e. 1 video, 1 audio and 1 subtitle stream. When i try to get all the streams contained in my mkv like this :

    ffmpeg -i movie.mkv -map 0 \
    -metadata:s:1 title="AC3 5.1 640 kb/s" -y movie.temp.mkv

    i am getting strange output :

    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (ac3 -> libvorbis)
     Stream #0:2 -> #0:2 (subrip -> ass)
     Stream #0:3 -> #0:3 (dca -> libvorbis)
     Stream #0:4 -> #0:4 (ac3 -> libvorbis)
     Stream #0:5 -> #0:5 (subrip -> ass)
    Press [q] to stop, [?] for help
    [libvorbis @ 0x12e5a40] Queue input is backward in time
       Last message repeated 19 times
    Queue input is backward in time      20kB time=00:00:01.05 bitrate= 156.8kbits/s    
    [libvorbis @ 0x12e5a40] Queue input is backward in time
       Last message repeated 17 times
    Queue input is backward in time      20kB time=00:00:01.99 bitrate=  83.0kbits/s    
    [libvorbis @ 0x12e5a40] Queue input is backward in time
       Last message repeated 5 times
    Queue input is backward in time=      20kB time=00:00:02.38 bitrate=  69.5kbits/s    
    [libvorbis @ 0x12e5a40] Queue input is backward in time
       Last message repeated 6 times
    Queue input is backward in time=      20kB time=00:00:02.87 bitrate=  57.5kbits/s    
    [libvorbis @ 0x12e5a40] Queue input is backward in time
    ...

    I have found information that FFmpeg’s attributes under linux are inconsistent when manipulating per stream metadata and doesn’t work as expected so I am looking for some alternative way how to proceed. (preferably with ffmpeg)

    Thanks for any help.