Recherche avancée

Médias (91)

Autres articles (75)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (11897)

  • Losing Audio When Converting VOB to MPEG-2 using FFMPEG [closed]

    29 avril 2015, par Nathan

    I’m using FFMPEG to convert VOB files to MPEG2 using

    ffmpeg -i file.vob -c copy
    out.mpg

    .

    It’s converting the video fine, but the audio doesn’t play on the resulting
    files. I get the

    [mpeg @ 0x118afc0] max_analyze_duration 5000000 reached at 5005000

    error, but setting -analyzeduration to 9999999 or higher doesn’t get
    rid of the error.

    I think it’s reading the stream correctly :

    Metadata :
      encoder : Lavf53.32.100
      Stream #0:0 : Video : mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31,
                          6124 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
      Stream #0:1 : Audio : ac3, 48000 Hz, stereo, 256 kb/s`
    

    Here’s info on my install

    ffmpeg version 0.10.6 Copyright (c) 2000-2012 the FFmpeg developers
    built on Dec 11 2012 23:58:43 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
    configuration : —prefix=/usr —bindir=/usr/bin —datadir=/usr/share/ffmpeg
    
    — incdir=/usr/include/ffmpeg —libdir=/usr/lib64 —mandir=/usr/share/man
    — arch=x86_64 —extra-cflags=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
    - fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic’
    — enable-bzlib —disable-crystalhd —enable-gnutls —enable-libass
    — enable-libcdio —enable-libcelt —enable-libdc1394 —disable-indev=jack
    — enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-openal
    — enable-libopenjpeg —enable-libpulse —enable-librtmp —enable-libschroedinger
    — enable-libspeex —enable-libtheora —enable-libvorbis —enable-libv4l2
    — enable-libx264 —enable-libxvid —enable-x11grab —enable-avfilter
    — enable-postproc —enable-pthreads —disable-static —enable-shared
    — enable-gpl —disable-debug —disable-stripping —shlibdir=/usr/lib64
    — enable-runtime-cpudetect libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100
  • how to call a c function in the C++ function with the same name ?

    25 juillet 2013, par wolfz

    how to call a c function in the C++ function with the same name ?
    calling 'extern "c"' to use c header and ": :"operation to use the c function,
    but the link error occur.

    my code :

    extern "C" {
    #include <libavcodec></libavcodec>avcodec.h>
    }
    ...
    class DllAvCodec
    {
     public:
     ...
     virtual void av_free_packet(AVPacket *pkt) { ::av_free_packet(pkt); }
     ...
    }

    the error :

    D:/player/jni/lib/DllAvCodec.h:143: error: undefined reference to &#39;av_free_packet(AVPacket*)&#39;

    why the code "::av_free_packet(pkt)" invoke undefined ?

    my Android.mk is :

    LOCAL_PATH := $(call my-dir)
    DEFINES += \
              -DTARGET_POSIX \
              -DTARGET_LINUX \
              -D_LINUX \
              -DTARGET_ANDROID \
              -D__STDC_CONSTANT_MACROS

    ######################################
    #build ffmpeg prebuilt lib
    ######################################
    include $(CLEAR_VARS)  
    LOCAL_MODULE := libavcodec
    LOCAL_SRC_FILES := lib/lib/libavcodec.a
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)  
    LOCAL_MODULE := libavfilter  
    LOCAL_SRC_FILES := lib/lib/libavfilter.a
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)  
    LOCAL_MODULE := libavformat  
    LOCAL_SRC_FILES := lib/lib/libavformat.a  
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)  
    LOCAL_MODULE := libavutil  
    LOCAL_SRC_FILES := lib/lib/libavutil.a  
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)  
    LOCAL_MODULE := libpostproc  
    LOCAL_SRC_FILES := lib/lib/libpostproc.a  
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)  
    LOCAL_MODULE := libswresample  
    LOCAL_SRC_FILES := lib/lib/libswresample.a  
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)  
    LOCAL_MODULE := libswscale  
    LOCAL_SRC_FILES := lib/lib/libswscale.a
    LOCAL_EXPORT_C_INCLUDES +=$(LOCAL_PATH)/lib/include
    include $(PREBUILT_STATIC_LIBRARY)


    ######################################
    #build lib
    ######################################
    include $(CLEAR_VARS)
    LOCAL_MODULE:= player
    base := $(LOCAL_PATH)

    LOCAL_SRC_FILES += ......

    LOCAL_CPPFLAGS += -Wall -fexceptions $(DEFINES)  
    LOCAL_LDLIBS += -llog -lz
    LOCAL_LDFLAGS += -L../jni/lib/lib  -lavcodec -lavformat  -lavutil -lavfilter -lpostproc  -lswscale -lswresample

    LOCAL_STATIC_LIBRARIES := libavcodec \
                             libavformat \
                             libavutil \
                             libavfilter \
                             libpostproc \
                             libswscale \
                             libswresample

    include $(BUILD_SHARED_LIBRARY)
  • How can combine two separate scripts being piped together to make one script instead of two ?

    27 mars 2016, par user556068

    For the past couple hours I’ve been banging my head against the wall trying to figure out something I thought would be simple. Maybe it is but it’s beyond me at the moment. So I have now two scripts. Originallly they were part of the same but I could never make it work how it should. So the first part uses curl to download a file from a site. Then using grep and sedto filter out the text I need which is then put into a plain text file as a long list of website urls ; one per line. The last part of the 1st script calls on youtube -dl to read the batch file in order to obtain the web addresses where the actual content is located. I hope that makes sense.

    youtube-dl reads the batch file and outputs a new list urls into the terminal. This second list is not saved to file because it doesn’t need to be. These urls change from day to day or hour to hour. Using the read command, these urls are then passed to ffmpeg using a predetermined set of arguments for the input and output. Ffmpeg is executed on every url it receives and runs quietly in the background.

    The first paragraph describes script1.sh and paragraph 2 obviously describes script2.sh. When I pipe them together like script1.sh | script2.sh it works better than I ever thought possible. Maybe i’m nitpicking at this point but the idea is to have 1 unified script. For the moment I have simplified it by adding an alias to my .bash_profile.

    Here are the last two commands of script1.

    sed 's/\"\,/\//g' > "$HOME/file2.txt";
    cat $HOME/file2.txt | youtube-dl --ignore-config -iga -

    The trailing - allows youtube-dl to read from stdin.

    The second part of the script ; what I’m calling script2 at this point begins with

    while read -r input
    do
    ffmpeg [arg] [input] [arg2] [output]

    What am i not seeing that is causing the script to hang when the two halves are combined yet work perfectly if one is piped into the other ?