Recherche avancée

Médias (91)

Autres articles (61)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (8529)

  • undefined reference to 'ff_put_pixels_clamped_mmx'

    24 avril 2017, par Aviv Sharon

    I have a windows 8.1 64 bit, intel i7.
    I am trying to build ffmpeg dynamic libraries (dll) from sources, version 3.2.4 For that, I cloned ffmpeg git repository, and checked out tag n3.2.4
    I installed mingw64 in my windows 8.1, opened a mingw64 shell.
    I ran "configure" command before building, with the following switches :

    ./configure --prefix=ffmpeg/ --disable-gpl --disable-nonfree --enable-shared --disable-static --disable-doc  --disable-yasm --disable-debug --disable-network

    On some point, in the link phase, it exits with these ld errors :

    WINDRES libswresample/swresampleres.o
    GEN     libswresample/libswresample.ver
    LD      libswresample/swresample-2.dll
    sed -e "s/ @[^ ]*//" libswresample/swresample-2.orig.def > libswresample/swresample-2.def; dlltool -m i386:x86-64 -d libswresample/swresample-2.def -l libswresample/swresample.lib -D swresample-2.dll
    LD      libavcodec/avcodec-57.dll
    libavcodec/x86/simple_idct.o: In function `ff_simple_idct_put_mmx':
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:911: undefined reference to `ff_put_pixels_clamped_mmx'
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:911:(.text+0x1fb0): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `ff_put_pixels_clamped_mmx'
    libavcodec/x86/simple_idct.o: In function `ff_simple_idct_add_mmx':
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:916: undefined reference to `ff_add_pixels_clamped_mmx'
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:916:(.text+0x1fe0): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `ff_add_pixels_clamped_mmx'
    libavcodec/x86/simple_idct.o: In function `ff_simple_idct_put_sse2':
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:921: undefined reference to `ff_put_pixels_clamped_sse2'
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:921:(.text+0x2010): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `ff_put_pixels_clamped_sse2'
    libavcodec/x86/simple_idct.o: In function `ff_simple_idct_add_sse2':
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:926: undefined reference to `ff_add_pixels_clamped_sse2'
    C:\GitRepos\ffmpeg/libavcodec/x86/simple_idct.c:926:(.text+0x2040): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `ff_add_pixels_clamped_sse2'

    Found out that adding -mcmodel=large switch as suggested in some places should fix it.
    After I added it, I only left with the "undefined reference" errors, which I have a feeling that is related to 64/32 bit issues :

    GEN     libswresample/libswresample.ver
    LD      libswresample/swresample-2.dll
    sed -e "s/ @[^ ]*//" libswresample/swresample-2.orig.def > libswresample/swresample-2.def; dlltool -m i386:x86-64 -d libswresample/swresample-2.def -l libswresample/swresample.lib -D swresample-2.dll
    LD      libavcodec/avcodec-57.dll
    libavcodec/x86/simple_idct.o:simple_idct.c:(.rdata$.refptr.ff_add_pixels_clamped_sse2[.refptr.ff_add_pixels_clamped_sse2]+0x0): undefined reference to `ff_add_pixels_clamped_sse2'
    libavcodec/x86/simple_idct.o:simple_idct.c:(.rdata$.refptr.ff_put_pixels_clamped_sse2[.refptr.ff_put_pixels_clamped_sse2]+0x0): undefined reference to `ff_put_pixels_clamped_sse2'
    libavcodec/x86/simple_idct.o:simple_idct.c:(.rdata$.refptr.ff_add_pixels_clamped_mmx[.refptr.ff_add_pixels_clamped_mmx]+0x0): undefined reference to `ff_add_pixels_clamped_mmx'
    libavcodec/x86/simple_idct.o:simple_idct.c:(.rdata$.refptr.ff_put_pixels_clamped_mmx[.refptr.ff_put_pixels_clamped_mmx]+0x0): undefined reference to `ff_put_pixels_clamped_mmx'
    collect2.exe: error: ld returned 1 exit status
    make: *** [library.mak:94: libavcodec/avcodec-57.dll] Error 1

    Please help,
    thanks

  • Q : Bash script infinite loop causing ffmpeg spam

    6 juillet 2017, par Kārlis K.

    Can’t seem to figure this one out... I have a set up NGINX server with the excellent RTMP extension and everything is working fine. However, I’m trying to restream/push a copy of a couple specific streams that need to be streamed in another RTMP stream application (specifically, these streams are streamed to application "static" but in the current situation also need to be pushed over to "live"). The process of restreaming/pushing a stream in NGINX-RTMP is relatively simple, however, in my case I need to selectively push a couple of streams instead of every stream being streamed to the application "static".

    Idea is to have NGINX-RTMP pass the stream name off to the bash script, which then does the restreaming without interrupting any other streams or services.

    With some success, I’ve tried doing this by creating a bash scrip..

    The relevant NGINX config bit that runs the bash script is :

    exec_publish /etc/nginx/rtmp_conf.d/stream_id.sh $name;

    I tried it with an "if / else"

    if [ $1 == "stream_name_1" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_1 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_0
    elif [ $1 == "stream_name_2" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_2 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_1
    elif [ $1 == "stream_name_3" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_3 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_2
    elif [ $1 == "stream_name_4" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_4 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_3
    else
           echo "FAIL" >> /etc/nginx/rtmp_conf.d/stream.log && echo date > /etc/nginx/rtmp_conf.d/stream.log
           exit
    fi

    And I tried it with Switches

    case "$1" in
           "stream_name_1")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_1 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_0
           ;;
           "stream_name_2")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_2 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_1
           ;;
           "stream_name_3")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_3 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_2
           ;;
           "stream_name_4")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_4 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_3
           ;;
           echo "FAIL " >> /etc/nginx/rtmp_conf.d/stream.log && echo date > /etc/nginx/rtmp_conf.d/stream.log
    esac

    Problem with both is that they both end up spamming a ton of ffmpeg processes ... and I don’t know why - I’ve tried changing the code but I either end up with ffmpeg not firing at all or spamming the server.

  • Q : Bash scrip infinite loop causing ffmpeg spam

    6 juillet 2017, par Kārlis K.

    Can’t seem to figure this one out... I have a set up NGINX server with the excellent RTMP extension and everything is working fine. However, I’m trying to restream/push a copy of a couple specific streams that need to be streamed in another RTMP stream application (specifically, these streams are streamed to application "static" but in the current situation also need to be pushed over to "live"). The process of restreaming/pushing a stream in NGINX-RTMP is relatively simple, however, in my case I need to selectively push a couple of streams instead of every stream being streamed to the application "static".

    Idea is to have NGINX-RTMP pass the stream name off to the bash script, which then does the restreaming without interrupting any other streams or services.

    With some success, I’ve tried doing this by creating a bash scrip..

    The relevant NGINX config bit that runs the bash script is :

    exec_publish /etc/nginx/rtmp_conf.d/stream_id.sh $name;

    I tried it with an "if / else"

    if [ $1 == "stream_name_1" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_1 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_0
    elif [ $1 == "stream_name_2" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_2 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_1
    elif [ $1 == "stream_name_3" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_3 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_2
    elif [ $1 == "stream_name_4" ]; then
           ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_4 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_3
    else
           echo "FAIL" >> /etc/nginx/rtmp_conf.d/stream.log && echo date > /etc/nginx/rtmp_conf.d/stream.log
           exit
    fi

    And I tried it with Switches

    case "$1" in
           "stream_name_1")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_1 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_0
           ;;
           "stream_name_2")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_2 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_1
           ;;
           "stream_name_3")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_3 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_2
           ;;
           "stream_name_4")
               ffmpeg -re -i rtmp://127.0.0.1:2000/static/stream_name_4 -vcodec libx264 -acodec copy -f flv rtmp://127.0.0.1:2000/live/live_3
           ;;
           echo "FAIL " >> /etc/nginx/rtmp_conf.d/stream.log && echo date > /etc/nginx/rtmp_conf.d/stream.log
    esac

    Problem with both is that they both end up spamming a ton of ffmpeg processes ... and I don’t know why - I’ve tried changing the code but I either end up with ffmpeg not firing at all or spamming the server.