Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (48)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (8970)

  • ffmpeg -bsf:v h264_mp4 toannexb not working in debien

    5 avril 2017, par Ruydo

    i have to append video with a audio and merge the output with anther video mp4
    i use this code to append video with audio

    ffmpeg -i "out1.mp4" -i "desc1.mp3" -c:v copy -c:a aac -strict experimental "output2.mp4"

    its work in windows but in my server lunix i have this error

    root@ns:~# ffmpeg -i /var/www/hespress/17/out1.mp4 -i /var/www/hespress/17/desc1.mp3 -c:v copy -c:a aac -strict experimental /var/www/hespress/17/output2.mp4
    ffmpeg version 0.8.20-6:0.8.20-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
     built on Jan 19 2017 11:13:36 with gcc 4.7.2
    The ffmpeg program is only provided for script compatibility and will be removed
    in a future release. It has been deprecated in the Libav project to allow for
    incompatible command line syntax improvements in its replacement called avconv
    (see Changelog for details). Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/hespress/17/out1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf53.21.1
     Duration: 00:00:20.03, start: 0.000000, bitrate: 1374 kb/s
       Stream #0.0(und): Video: h264 (Main), yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 1371 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
    [mp3 @ 0xa06c40] max_analyze_duration reached
    Input #1, mp3, from '/var/www/hespress/17/desc1.mp3':
     Metadata:
       encoder         : Lavf53.21.1
     Duration: 00:00:19.53, start: 0.000000, bitrate: 192 kb/s
       Stream #1.0: Audio: mp3, 44100 Hz, mono, s16, 192 kb/s
    Unrecognized option 'c:v'
    Failed to set value 'copy' for option 'c:v'

    when i went to merge two file i use this code

    ffmpeg -i intro.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts '.$dossier.'/intermediate1.ts

    in windows its work but in server debian i have this error

    root@ns205125:~# ffmpeg -i /var/www/hespress/intro.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /var/www/hespress/17/intermediate1.ts
    ffmpeg version 0.8.20-6:0.8.20-0+deb7u1, Copyright (c) 2000-2014 the Libav developers
     built on Jan 19 2017 11:13:36 with gcc 4.7.2
    The ffmpeg program is only provided for script compatibility and will be removed
    in a future release. It has been deprecated in the Libav project to allow for
    incompatible command line syntax improvements in its replacement called avconv
    (see Changelog for details). Please use avconv instead.
    [aac @ 0x3938ba0] Input buffer exhausted before END element found

    Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 30.00 (30/1)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/hespress/intro.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2017-03-27 23:03:04
     Duration: 00:00:12.92, start: 0.000000, bitrate: 2598 kb/s
       Stream #0.0(eng): Video: h264 (Baseline), yuv420p, 1280x720, 2479 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc
       Metadata:
         creation_time   : 2017-03-27 23:03:04
       Stream #0.1(eng): Audio: aac, 48000 Hz, mono, s16, 127 kb/s
       Metadata:
         creation_time   : 2017-03-27 23:03:04
    Unrecognized option 'c'
    Failed to set value 'copy' for option 'c'
    root@ns205125:~#
  • Makefile for c++ program cannot be compiled properly

    20 mars 2017, par Wei

    I am quite new to c++ Makefile. Recently, I am trying to re-implement the dense trajectory algorithm introduced by this paper : https://lear.inrialpes.fr/people/wang/dense_trajectories

    However, I was struggling with Makefile that they provided for quite a while. The Makefile is as follows :

    # set the binaries that have to be built
    TARGETS := DenseTrack Video

    # set the build configuration set
    BUILD := release
    #BUILD := debug

    # set bin and build dirs
    BUILDDIR := .build_$(BUILD)
    BINDIR := $(BUILD)

    # libraries
    LDLIBS = $(addprefix -l, $(LIBS) $(LIBS_$(notdir $*)))
    LIBS := \
       opencv_core opencv_highgui opencv_video opencv_imgproc \
       avformat avdevice avutil avcodec swscale

    # set some flags and compiler/linker specific commands
    CXXFLAGS = -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall $(CXXFLAGS_$(BUILD)) -I. -I/usr/local/include -I/home/wei/ffmpeg_build/include
    CXXFLAGS_debug := -ggdb
    CXXFLAGS_release := -O3 -DNDEBUG -ggdb
    LDFLAGS = -L/usr/local/lib -L/home/wei/ffmpeg_build/lib -pipe -Wall $(LDFLAGS_$(BUILD))
    LDFLAGS_debug := -ggdb
    LDFLAGS_release := -O3 -ggdb

    include make/generic.mk

    I can verify that my opencv2.4.2 and ffmpeg5.4.0 are successfully installed in Ubuntu 16.04, by running an example using those two libraries.

    For opencv :
    The lib path is : /usr/local/lib

    libavcodec.a                   libopencv_gpu.so.2.4  
       libopencv_photo.so.2.4
    libavdevice.a                  libopencv_gpu.so.2.4.2        libopencv_photo.so.2.4.2
    libavfilter.a                  libopencv_highgui.so          libopencv_stitching.so
    libavformat.a                  libopencv_highgui.so.2.4      libopencv_stitching.so.2.4
    libavutil.a                    libopencv_highgui.so.2.4.2    libopencv_stitching.so.2.4.2
    libopencv_calib3d.so           libopencv_imgproc.so          libopencv_ts.so
    libopencv_calib3d.so.2.4       libopencv_imgproc.so.2.4      libopencv_ts.so.2.4
    libopencv_calib3d.so.2.4.2     libopencv_imgproc.so.2.4.2    libopencv_ts.so.2.4.2
    libopencv_contrib.so           libopencv_legacy.so           libopencv_video.so
    libopencv_contrib.so.2.4       libopencv_legacy.so.2.4       libopencv_video.so.2.4
    libopencv_contrib.so.2.4.2     libopencv_legacy.so.2.4.2     libopencv_video.so.2.4.2
    libopencv_core.so              libopencv_ml.so               libopencv_videostab.so
    libopencv_core.so.2.4          libopencv_ml.so.2.4           libopencv_videostab.so.2.4
    libopencv_core.so.2.4.2        libopencv_ml.so.2.4.2         libopencv_videostab.so.2.4.2
    libopencv_features2d.so        libopencv_nonfree.so          libpostproc.a
    libopencv_features2d.so.2.4    libopencv_nonfree.so.2.4      libswresample.a
    libopencv_features2d.so.2.4.2  libopencv_nonfree.so.2.4.2    libswscale.a
    libopencv_flann.so             libopencv_objdetect.so        pkgconfig
    libopencv_flann.so.2.4         libopencv_objdetect.so.2.4    python2.7
    libopencv_flann.so.2.4.2       libopencv_objdetect.so.2.4.2  python3.5
    libopencv_gpu.so               libopencv_photo.so

    The include path is : usr/local/include :

    libavcodec   libavfilter  libavutil    libswresample  opencv
    libavdevice  libavformat  libpostproc  libswscale     opencv2

    For ffmpeg :
    The lib path is : /home/user/ffmpeg_build/lib

    libavcodec.a   libavfilter.a  libavutil.a   libfdk-aac.la  libswresample.a  libx265.a
    libavdevice.a  libavformat.a  libfdk-aac.a  libpostproc.a  libswscale.a     pkgconfig

    The include path is : /home/user/ffmpeg/include

    fdk-aac     libavdevice  libavformat  libpostproc    libswscale     x265.h
    libavcodec  libavfilter  libavutil    libswresample  x265_config.h

    So when I make it with Makefile, I did not get error but it seems linking is working properly, nor is the compiled output.

    I tried to directly compile with g++ command.

    sudo g++ -o Video -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall -I. -I/usr/local/include -O3 -DNDEBUG -ggdb -L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lavformat -lavdevice -lavutil -lavcodec -lswscale *.h Video.cpp

    However,it returns errors as :

    /tmp/ccjYmwI4.o: In function `main':
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:33: undefined reference to `cvCreateFileCapture'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:48: undefined reference to `cvQueryFrame'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:57: undefined reference to `cvCopy'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:60: undefined reference to `cvShowImage'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:61: undefined reference to `cvWaitKey'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:53: undefined reference to `cvCreateImage'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:70: undefined reference to `cvDestroyWindow'
    /home/wei/Documents/dt/dense_trajectory_release_v1.2/Video.cpp:41: undefined reference to `cvNamedWindow'
    collect2: error: ld returned 1 exit status

    I have been working on this issue for several days. Any help or suggestions would be really appreciated.

    Thanks

  • How to Play a Video file in javacv / javacpp

    28 mars 2017, par Floesmaan

    Does someone have some example code to play a simple video file with the current javaCPP/javaCV version and the FFmpegFrameGrabber ?

    I tried this solution, but its apparently too old and does not work with the current javacv version because of an incompatible FrameGrabber interface (returns a "Frame"-Object instead of an "IplImage"-Object). If I change the code manually (using Frame instead of IplImage), it returns the error message :

    java.lang.VerifyError: Bad type on operand stack
    Exception Details:
     Location:
       org/bytedeco/javacv/FFmpegFrameGrabber.startUnsafe()V @1291: invokespecial
     Reason:
       Type 'org/bytedeco/javacpp/avutil$AVFrame' (current frame, stack[2]) is not assignable to 'org/bytedeco/javacpp/Pointer'
     Current Frame:
       bci: @1291
       flags: { }
       locals: { 'org/bytedeco/javacv/FFmpegFrameGrabber', integer, 'org/bytedeco/javacpp/avformat$AVInputFormat', 'org/bytedeco/javacpp/avutil$AVDictionary', integer, 'org/bytedeco/javacpp/avcodec$AVCodec', integer, integer, integer, integer }
       stack: { uninitialized 1283, uninitialized 1283, 'org/bytedeco/javacpp/avutil$AVFrame' }
     Bytecode:
       0x0000000: 2a01 b500 332a bb00 8659 01b7 0087 b500............

    FYI : I’m comparing different java libraries for playing video files and extract their pixel data (xuggler, vlcj, ...) and search for the best one. I really like to include javacv in my tests but it’s not working :(