Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (33)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5286)

  • Publish local .mp4 video from android to wowza using FFmpeg

    13 mars 2016, par Parth Doshi

    I am trying to publish a local .mp4 video from my sdcard to wowza using the ffmpeg java wrapper.

    I have used the library for executing ffmpeg commands on Android

    On Android, my code looks as follows :

    FfmpegController objController = new FfmpegController(MainActivity.this, new File("/tmp"));
                   //objController.installBinaries(MainActivity.this,true);
                   mFfmpegBin = objController.installBinary(MainActivity.this, R.raw.ffmpeg, "ffmpeg", true);
                   //no just extract the audio
                   ArrayList<string> cmd = new ArrayList<string>();

                   //-f dshow -i video="Integrated Camera" out.mp4
                   cmd.add(mFfmpegBin);
                   //cmd.add("-sample_fmts");
                   cmd.add("-re");
                   cmd.add("-i");      
                   cmd.add("/sdcard/sample.mp4");
                   cmd.add("-c");
                   cmd.add("copy");
                   cmd.add("-f");
                   cmd.add("flv");
                   cmd.add("rtsp://192.168.1.35:1936/live/myStream");

                   objController.execFFMPEG(cmd, new ShellUtils.ShellCallback() {

                       @Override
                       public void shellOut(String shellLine) {
                           // TODO Auto-generated method stub
                           System.out.println("shell out" + " "  +shellLine);
                       }

                       @Override
                       public void processComplete(int exitValue) {
                           // TODO Auto-generated method stub
                           System.out.println("process complete::" + " " +exitValue);

                       }
                   });

               }catch(Exception ex){
                   ex.printStackTrace();
               }
           }
    </string></string>

    Now, when I execute the command, I get the following logs

    shell out Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/sdcard/sample.mp4':
    shell out rtmp://192.168.1.35:1936/live/myStream: Protocol not found

    Why is the protocol not supported on Android. When I run the same ffmpeg command from windows command line using ffmpeg then it works fine.

    The command is,

    ffmpeg -re -i sample.mp4 -c copy -f flv rtmp ://192.168.1.35:1936/live/myStream

    Can please someone help ?

  • ffmpeg multiple input video in grid and simultaneous audio

    13 février 2023, par Hnusny Pleb

    i would like to copy a video into n videos in one grid :&#xA;best example : https://www.youtube.com/watch?v=lYKDTLGH-TQ&ab_channel=TheRabbit_123

    &#xA;

    This is my code, its working, but problem is, the audio seems to be like its played by one version.. I want the "echo" thats created by a lot of files like on the video above.

    &#xA;

    def create_4_in_one(number):&#xA;shutil.copy("start.mp4", f"video.mp4")&#xA;for i in range(number):&#xA;    shutil.copy("video.mp4", f"temp_videa/{i}.mp4")&#xA;    subprocess.call(f&#x27;ffmpeg -y -i video.mp4 -vf "scale=iw/2:ih/2" -c:a copy video_half.mp4&#x27;,&#xA;                  shell=True)&#xA;    subprocess.call(f&#x27;ffmpeg -y -i video_half.mp4 -i video_half.mp4 -i video_half.mp4 -i video_half.mp4 -filter_complex "[0:v][1:v]hstack[t];[2:v][3:v]hstack[b];[t][b]vstack[v]; [0:a][1:a][2:a][3:a]amerge=inputs=4[a]" -map "[v]" -map "[a]" -map 0:a -map 1:a -map 2:a -map 3:a -c:a aac -b:a 128k -ac 2 -shortest output.mp4&#x27;,&#xA;                  shell=True)&#xA;    os.remove("video.mp4")&#xA;    os.remove("video_half.mp4")&#xA;    os.rename(&#x27;output.mp4&#x27;, &#x27;video.mp4&#x27;)&#xA;&#xA;os.remove("video.mp4")&#xA;

    &#xA;

    Thanks in advance.

    &#xA;

  • Using ffmpeg with C++ : Undefined symbols for architecture x86_64

    31 mars 2017, par JavaRunner

    I’m dealing with one example of FFMPEG called is "muxing.c".

    So I tried to compile that file with two Makefiles. The first one is for C-language :

    FFMPEG_LIBS=    libavdevice                        \
                   libavformat                        \
                   libavfilter                        \
                   libavcodec                         \
                   libswresample                      \
                   libswscale                         \
                   libavutil                          \

    CFLAGS := -Wall -g $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
    LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) -lm $(LDLIBS)

    SOURCES=        muxing                             \

    OBJS=$(addsuffix .o,$(SOURCES))

    all: $(OBJS) $(SOURCES)

    That makefile compiles well. But if I trying to move this code to C++ : I rename muxing.c to muxing.cpp and use this Makefile :

    CC=g++

    FFMPEG_LIBS=    libavdevice                        \
                   libavformat                        \
                   libavfilter                        \
                   libavcodec                         \
                   libswresample                      \
                   libswscale                         \
                   libavutil                          \

    CPPFLAGS := -Wall -g $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CPPFLAGS)
    LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) -lm $(LDLIBS)

    SOURCES=        muxing                             \

    OBJS=$(addsuffix .o,$(SOURCES))

    all: $(OBJS) $(SOURCES)

    I get a bunch of error like this :

    $ g++   muxing.o  -L/usr/local/Cellar/ffmpeg/3.2.4/lib -lavdevice -lavformat -lavfilter -lavcodec -lswresample -lswscale -lavutil  -lm -o muxing
    Undefined symbols for architecture x86_64:
     "av_dict_set(AVDictionary**, char const*, char const*, int)", referenced from:
         _main in muxing.o
     "av_strerror(int, char*, unsigned long)", referenced from:
         av_make_error_string(char*, unsigned long, int) in muxing.o
     "avio_closep(AVIOContext**)", referenced from:
         _main in muxing.o
     "swr_convert(SwrContext*, unsigned char**, int, unsigned char const**, int)", referenced from:
         write_audio_frame(AVFormatContext*, OutputStream*) in muxing.o
     "av_dict_copy(AVDictionary**, AVDictionary const*, int)", referenced from:
         open_video(AVFormatContext*, AVCodec*, OutputStream*, AVDictionary*) in muxing.o
         open_audio(AVFormatContext*, AVCodec*, OutputStream*, AVDictionary*) in muxing.o
     "av_dict_free(AVDictionary**)", referenced from:
         open_video(AVFormatContext*, AVCodec*, OutputStream*, AVDictionary*) in muxing.o
         open_audio(AVFormatContext*, AVCodec*, OutputStream*, AVDictionary*) in muxing.o
     "av_rescale_q(long long, AVRational, AVRational)", referenced from:
         write_audio_frame(AVFormatContext*, OutputStream*) in muxing.o
     "av_compare_ts(long long, AVRational, long long, AVRational)", referenced from:
         _main in muxing.o
         get_video_frame(OutputStream*) in muxing.o
         get_audio_frame(OutputStream*) in muxing.o

    Is that mean those libs are not ready to work with x64 ? I strongly need to mix that code (muxing.c) with my C++ code because I have to render a video on the fly using ImageMagick (my code was written with C++) for the frames.

    How can I mix C++ and C in this case ?

    My env is : OS X 10.12.3