Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (68)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • subprocess.call can't find file/shutil.which failed in pycharm

    4 décembre 2022, par Percy Yang

    I am trying to transform a mp3 to a wav file in pycharm using subprocess

    


    import subprocess
subprocess.call(['ffmpeg', '-i','test.mp3','test.wav'])


    


    It returns error of not finding file, so I change the 'ffmpeg' to its path on my pc and it work.

    


    The problem is that I am making an app and others might install ffpmeg on other's location (since it is download with zip and can be unzip at any place), but I don't know how to get its full path.

    


    I tried using os module

    


    import os
print(os.path('ffmpeg.exe'))


    


    but it seems like it is not able to get the path of exe

    


    Traceback (most recent call last):&#xA;  File "C:\Users\Percy\PycharmProjects\APP\test3.py", line 8, in <module>&#xA;    print(os.path(&#x27;ffmpeg.exe&#x27;))&#xA;TypeError: &#x27;module&#x27; object is not callable&#xA;</module>

    &#xA;

    I also tried shutil module

    &#xA;

    import shutil&#xA;print(shutil.which(&#x27;ffmpeg&#x27;))&#xA;print(shutil.which(&#x27;ffmpeg.exe&#x27;))&#xA;

    &#xA;

    but it returns 2 None (prob wrong cause I am 100% sure I have installed ffmpeg)

    &#xA;

    None&#xA;None&#xA;

    &#xA;

    I want to ask if there is any way to get the full path of ffmpeg in pycharm or any method that I can make ffmpeg install in designated path with the app when it is downloaded by users

    &#xA;

  • FFMPEG : invalid data found when processing input, but same input works in FFPLAY

    20 janvier 2023, par SoerenS

    I have a TCP stream with raw 8-bit image data (1280x720) that I receive and display with FFPLAY without problems, but it´s not possible to process the same input with FFMPEG.

    &#xA;

    This works :

    &#xA;

    ffplay -i tcp://127.0.0.1:8485\?listen -f rawvideo -pixel_format gray -video_size 1280x720

    &#xA;

    But when I try to process the same stream with FFMPEG, it always immediatly returns after the first frame with :

    &#xA;

    tcp://127.0.0.1:8485\?listen: Invalid data found when processing input

    &#xA;

    I tried the following commands :

    &#xA;

    ffmpeg -i tcp://127.0.0.1:8485\?listen -f rawvideo -pixel_format gray -video_size 1280x720&#xA;ffmpeg -i tcp://127.0.0.1:8485\?listen -f rawvideo -pixel_format gray -video_size 1280x720 -c:v mjpeg -f mjpeg -qscale 6 test.avi

    &#xA;

    Same behavior under Windows and Ubuntu. FFMPEG and FFPLAY are from the same set of prebuilt binaries. Version command returns N-107067-g5d5a014199-20220609. Unfortunately I have no access to the code of the stream origin. Any idea about a potential root-cause and what I could try ?

    &#xA;

  • How to make linker ld find a file ?

    21 avril 2015, par haxan7

    I am cross compiling opencv with FFmpeg and it is throwing the following error :

    /root/work/codesourcery/arm-2013.05/bin/../lib/gcc/arm-none-linux-gnueabi/4.7.3/../../../../arm-none-linux-gnueabi/bin/ld : warning : libavcodec.so.56, needed by ../../lib/libopencv_highgui.so.2.4.10, not found (try using -rpath or -rpath-link)

    I have the libavcodec.so.56, and have put the relevant path to $PKG_CONFIG_PATH.

    doing a pkg-config —list-all | grep avcodec returns

    libavcodec                     libavcodec - FFmpeg codec library

    ls -al libs folder returns

    -rw-r--r-- 1 root root 93416352 Apr 21 06:57 libavcodec.a
    lrwxrwxrwx 1 root root       23 Apr 21 06:57 libavcodec.so -> libavcodec.so.56.34.100*
    lrwxrwxrwx 1 root root       23 Apr 21 06:57 libavcodec.so.56 -> libavcodec.so.56.34.100*
    -rwxr-xr-x 1 root root 10949836 Apr 21 06:57 libavcodec.so.56.34.100*

    Here are the contents of libavcodec.pc file

    prefix=/root/ARM_Install
    exec_prefix=${prefix}
    libdir=${prefix}/lib
    includedir=${prefix}/include

    Name: libavcodec
    Description: FFmpeg codec library
    Version: 56.34.100
    Requires:
    Requires.private: libswresample >= 1.1.100, libavutil >= 54.22.101
    Conflicts:
    Libs: -L${libdir}  -lavcodec
    Libs.private: -lxvidcore -lx264 -lm -pthread -ldl
    Cflags: -I${includedir}

    How can I make the liker find this file ?