Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (55)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (7853)

  • Apply filters to video while preview and save it with applied filter and original audio in android

    27 novembre 2019, par FreakInDroid

    I am new to video processing. I want to apply a filter to a video at runtime, and I want to save that video after filter applied.

    Regarding this I’m doing a research. I has gone through many libraries but I’m struggling to achieve my aim.

    Developement environment

    Migw-64 with windows 7 64 bit
    Android Studio 2.1 preview 5
    heap space 4GB
    com.android.tools.build:gradle:2.1.0
    android-ndk-r12-win-x86_64
    com.android.tools.build:gradle-experimental:0.7.0  --> to build NDK

    I have tried

    1. AndroidFastImageprocessingLibrary

      Chrisbatt -> AndroidFastImageProcessing in github

      This library use GLSurfaceview to display filters but we could not save it to mp4 file.

      So I found another implementation of it icmobilelab -> AndroidFastImageProcessing in github

      This library use JavaCV with ffmpeg compiled. But it failed.

    2. JavaCV

      JavaCV use outdated ffmpeg and it is abandoned.

    3. Grafika -> on github

      I tried Android Fast Image Processing with RecordFBOActivity in grafika. But i have failed. This library use MediaRecorder to record the contents of GLSurfaceView. But it records video without audio (I have tested the RecordFBOActivity and analyze the code).

    4. filter packs in platform_frameworks

      github.com/android/platform_frameworks_base/blob/master/media/mca/filterpacks/java/android/filterpacks/videosink/MediaEncoderFilter.java
      its android 4.2 edited core. I can’t run this code because too many jni dependencies.

    5. ffmpeg

      github.com/guardianproject/android-ffmpeg
      I tried ffmpeg3.1 compilation procedure implemented by guardianproject. it successfullay built a static library but i cannot build dynamic library (so files). I’m stuck with a linker error. I think the linking order matters. I tried the linking order specified in below link
      https://fritzone.wordpress.com/2010/05/11/link-with-static-ffmpeg/
      but it won’t help. the following error occurs

      [armeabi-v7a] SharedLibrary  : libffmpeg.so
      jni/ffmpeg.c:200: error: undefined reference to 'av_frame_alloc'
      jni/ffmpeg.c:201: error: undefined reference to 'av_frame_alloc'
      jni/ffmpeg.c:209: error: undefined reference to 'av_register_all'
      jni/ffmpeg.c:210: error: undefined reference to 'avfilter_register_all'
      jni/ffmpeg.c:45: error: undefined reference to 'avformat_open_input'
      jni/ffmpeg.c:50: error: undefined reference to 'avformat_find_stream_info'
      jni/ffmpeg.c:56: error: undefined reference to 'av_find_best_stream'
      jni/ffmpeg.c:63: error: undefined reference to 'av_opt_set_int'
      jni/ffmpeg.c:66: error: undefined reference to 'avcodec_open2'
      jni/ffmpeg.c:67: error: undefined reference to 'av_log'
      jni/ffmpeg.c:78: error: undefined reference to 'avfilter_get_by_name'
      jni/ffmpeg.c:79: error: undefined reference to 'avfilter_get_by_name'
      jni/ffmpeg.c:80: error: undefined reference to 'avfilter_inout_alloc'
      jni/ffmpeg.c:81: error: undefined reference to 'avfilter_inout_alloc'
      jni/ffmpeg.c:85: error: undefined reference to 'avfilter_graph_alloc'
      jni/ffmpeg.c:98: error: undefined reference to 'avfilter_graph_create_filter'
      jni/ffmpeg.c:106: error: undefined reference to 'avfilter_graph_create_filter'
      jni/ffmpeg.c:113: error: undefined reference to 'av_int_list_length_for_size'
      jni/ffmpeg.c:113: error: undefined reference to 'av_opt_set_bin'
      jni/ffmpeg.c:116: error: undefined reference to 'av_log'
      jni/ffmpeg.c:131: error: undefined reference to 'av_strdup'
      jni/ffmpeg.c:142: error: undefined reference to 'av_strdup'
      jni/ffmpeg.c:147: error: undefined reference to 'avfilter_graph_parse_ptr'
      jni/ffmpeg.c:151: error: undefined reference to 'avfilter_graph_config'
      jni/ffmpeg.c:155: error: undefined reference to 'avfilter_inout_free'
      jni/ffmpeg.c:156: error: undefined reference to 'avfilter_inout_free'
      jni/ffmpeg.c:218: error: undefined reference to 'av_read_frame'
      jni/ffmpeg.c:223: error: undefined reference to 'avcodec_decode_video2'
      jni/ffmpeg.c:230: error: undefined reference to 'av_frame_get_best_effort_timestamp'
      jni/ffmpeg.c:233: error: undefined reference to 'av_buffersrc_add_frame_flags'
      jni/ffmpeg.c:234: error: undefined reference to 'av_log'
      jni/ffmpeg.c:240: error: undefined reference to 'av_buffersink_get_frame'
      jni/ffmpeg.c:171: error: undefined reference to 'av_rescale_q'
      jni/ffmpeg.c:246: error: undefined reference to 'av_frame_unref'
      jni/ffmpeg.c:248: error: undefined reference to 'av_frame_unref'
      jni/ffmpeg.c:251: error: undefined reference to 'av_packet_unref'
      jni/ffmpeg.c:254: error: undefined reference to 'avfilter_graph_free'
      jni/ffmpeg.c:255: error: undefined reference to 'avcodec_close'
      jni/ffmpeg.c:256: error: undefined reference to 'avformat_close_input'
      jni/ffmpeg.c:257: error: undefined reference to 'av_frame_free'
      jni/ffmpeg.c:258: error: undefined reference to 'av_frame_free'
      jni/include/libavutil/error.h:111: error: undefined reference to 'av_strerror'
      collect2.exe: error: ld returned 1 exit status
      make: *** [obj/local/armeabi/libffmpeg.so] Error 1
    6. MediaCodec, MediaExtractor,MediaRecord,MediaMuxer

      Finally I planned to combine AndroidFastImageProcessing with MediaCodec, MediaExtractor,MediaRecord,MediaMuxer.

      So I try to Extract audio from video using mediamuxer
      https://gist.github.com/sayan801/9a39ccad0818d2b3499a.
      I use mp4 video (MIME Type video/avc that have 2 tracks audio and video) to extract audio but the resultant file is corrupted (just 4 kb)

    I think this question is another view of the existing problem if anybody experienced this problem please guide me.

  • Problems with video length when join video file using ffmpeg concat [migrated]

    27 décembre 2013, par nhanpt

    I have 3 videos, open.avi :duration 0:46:37.885933 , middle.avi : 0:02:56.991927, fin.avi : 0:02:48.199268.
    I try to concat 3 videos using command :

    ffmpeg -i "concat:fin.avi|open.avi|middle.avi" -preset ultrafast -c copy -y vide.avi

    ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 16 2013 22:38:01 with gcc 4.8.1 (GCC) 20130603 (Red Hat 4.8.1-1)
    configuration : —prefix=/usr —bindir=/usr/bin —datadir=/usr/share/ffmpeg —incdir=/usr/include/ffmpeg —libdir=/usr/lib —mandir=/usr/share/man —arch=i686 —optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' —enable-bzlib —disable-crystalhd —enable-frei0r —enable-gnutls —enable-libass —enable-libcelt —enable-libdc1394 —disable-indev=jack —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-openal —enable-libopencv —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-libvorbis —enable-libv4l2 —enable-libvpx —enable-libx264 —enable-libxvid —enable-x11grab —enable-avfilter —enable-avresample —enable-postproc —enable-pthreads —disable-static —enable-shared —enable-gpl —disable-debug —disable-stripping —shlibdir=/usr/lib —cpu=i686 —enable-runtime-cpudetect
    libavutil 52. 18.100 / 52. 18.100
    libavcodec 54. 92.100 / 54. 92.100
    libavformat 54. 63.104 / 54. 63.104
    libavdevice 54. 3.103 / 54. 3.103
    libavfilter 3. 42.103 / 3. 42.103
    libswscale 2. 2.100 / 2. 2.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 2.100 / 52. 2.100
    Input #0, avi, from 'concat:fin.avi|open.avi|middle.avi' :
    Duration : 00:02:48.20, start : 0.000000, bitrate : 28159 kb/s
    Stream #0:0 : Video : mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, 11.20 tbr, 11.20 tbn, 11.20 tbc
    Output #0, avi, to 'vide.avi' :
    Metadata :
    ISFT : Lavf54.63.104
    Stream #0:0 : Video : mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, q=2-31, 11.20 tbn, 11.20 tbc
    Stream mapping :
    Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame=27988 fps=2386 q=-1.0 Lsize= 578159kB time=00:41:38.70 bitrate=1895.5kbits/s
    video:577498kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.114549%

    When I change the oder of input video :

    Input #0, avi, from 'concat:open.avi|middle.avi|fin.avi':

    Duration : 00:46:37.89, start : 0.000000, bitrate : 1692 kb/s
    Stream #0:0 : Video : mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, 8.61 tbr, 8.61 tbn, 8.61 tbc
    Output #0, avi, to 'vide.avi' :
    Metadata :
    ISFT : Lavf54.63.104
    Stream #0:0 : Video : mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, q=2-31, 8.61 tbn, 8.61 tbc
    Stream mapping :
    Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame=27988 fps=2343 q=-1.0 Lsize= 578159kB time=00:54:11.01 bitrate=1456.9kbits/s
    video:577498kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.114549%

    What can I do to fix it ?

  • PHP ffmpeg conversion error

    6 mars 2016, par Enn Fenn

    I tried to convert some videos with ffmpeg and PHP.

    When I execute the following command in PHP exec()

    /usr/local/bin/ffmpeg -i /home/test/public_html/test.m4v -vcodec libx264 -acodec libmp3lame -r 30 -s 640x480 -b 100k /home/test/public_html/output_640x480_test.m4v

    Output :

    /usr/local/bin/ffmpeg: line 4: /var/log/ffmpeg.log: Permission denied
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
     built on Apr 18 2012 05:19:10 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
     configuration: --prefix=/usr/local/src/ffmpeg --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
     libpostproc   51. 2. 0 / 51. 2. 0

    Seems stream 1 codec frame rate differs from container frame rate: 1200.00 (1200/1) -> 10.00 (10/1)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/test/public_html/test.m4v':
     Metadata:
       major_brand     : M4VP
       minor_version   : 1
       compatible_brands: M4VPM4V M4A mp42isom
       creation_time   : 2013-03-14 10:08:25
       encoder         : Mac OS X v10.7.4 (CMA 891, CM 705.78, x86_64)
       date            : 2013-03-10T14:05:41+1100
     Duration: 00:00:02.30, start: 0.000000, bitrate: 245 kb/s
       Stream #0.0(und): Audio: aac, 32000 Hz, 2 channels (FC), s16, 31 kb/s
       Metadata:
         creation_time   : 2013-03-14 10:08:25
       Stream #0.1(und): Video: h264, yuv420p, 400x226 [PAR 1:1 DAR 200:113], 216 kb/s, 10.35 fps, 10 tbr, 600 tbn, 1200 tbc
       Metadata:
         creation_time   : 2013-03-14 10:08:25
    [buffer @ 0xf6093c0] w:400 h:226 pixfmt:yuv420p
    [scale @ 0xf609790] w:400 h:226 fmt:yuv420p -> w:640 h:480 fmt:yuv420p flags:0xa0000004
    [libx264 @ 0xf605cd0] broken ffmpeg default settings detected
    [libx264 @ 0xf605cd0] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 0xf605cd0] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 0xf605cd0] speed presets are listed in x264 --help
    [libx264 @ 0xf605cd0] profile is optional; x264 defaults to high
    Output #0, ipod, to '/home/test/public_html/output_640x480_test.m4v':
       Stream #0.0(und): Video: libx264, yuv420p, 640x480 [PAR 150:113 DAR 200:113], q=2-31, 800 kb/s, 90k tbn, 10 tbc
       Metadata:
         creation_time   : 2013-03-14 10:08:25
       Stream #0.1(und): Audio: libmp3lame, 32000 Hz, 2 channels, s16, 64 kb/s
       Metadata:
         creation_time   : 2013-03-14 10:08:25
    Stream mapping:
     Stream #0.1 -> #0.0
     Stream #0.0 -> #0.1
    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    </profile></speed>

    The same conversion is working fine in another server. But not in our current server. What should I do to get rid of this error ?