Recherche avancée

Médias (1)

Mot : - Tags -/berlin

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10866)

  • How to blend/merge two videos in android programmatically

    25 octobre 2015, par endryha

    As description says I am trying to create a video which consists of background video and semi-transparent video overlay on top of it.

    My initial attempt was to use ffmpeg for android https://github.com/WritingMinds/ffmpeg-android-java and use blend filter in overlay mode.

    But it turned out that ffmpeg android library is built on top of ffmpeg 2.4 but blend filter is available since ffmpeg 2.6. So far ffmpeg failed for me and I am looking for alternative solution.

    Any advices are warmly appreciated.

    UPDATE#1

    I finally managed to build ffmpeg 2.6.4 for android which contains blend filter but another issue appeared. When it start video processing it just stops in the beginning and never ends, there is not output from ffmpeg tool, no errors, no warnings, there is nothing that can help me to trace down the problem.

    On android device it runs following command :

    /data/user/0/com.test.app/files/ffmpeg
    -i /storage/emulated/0/Android/data/com.test.app/files/video/vid1.mp4
    -i /storage/emulated/0/Android/data/com.test.app/files/video/overlay.mp4
    -filter_complex blend=all_mode='overlay':all_opacity=0.8"
    -strict -2 /storage/emulated/0/Android/data/com.test.app/files/video/blended.mp4

    And there is following output :

    ffmpeg version n2.6.4 Copyright (c) 2000-2015 the FFmpeg developers
      built with gcc 4.8 (GCC)
      configuration: --target-os=linux --cross-prefix=/media/ubuntu/data/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/media/ubuntu/data/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/media/ubuntu/data/ffmpeg-android/ffmpeg-pkg-config --prefix=/media/ubuntu/data/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/media/ubuntu/data/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/media/ubuntu/data/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
      libavutil      54. 20.100 / 54. 20.100
      libavcodec     56. 26.100 / 56. 26.100
      libavformat    56. 25.101 / 56. 25.101
      libavdevice    56.  4.100 / 56.  4.100
      libavfilter     5. 11.102 /  5. 11.102
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  1.100 /  1.  1.100
      libpostproc    53.  3.100 / 53.  3.100
    [h264 @ 0xb5e03000] no frame!
    [aac @ 0xb5e03400] Input buffer exhausted before END element found
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.test.app/files/video/vid1.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2015-08-30 17:19:07
      Duration: 00:00:05.03, start: 0.000000, bitrate: 3449 kb/s
        Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x640, 3381 kb/s, SAR 1:1 DAR 1:1, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
        Metadata:
          creation_time   : 2015-08-30 17:19:07
          handler_name    : VideoHandle
        Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
        Metadata:
          creation_time   : 2015-08-30 17:19:07
          handler_name    : SoundHandle
    [h264 @ 0xb5e03800] no frame!
    [aac @ 0xb5e04400] Input buffer exhausted before END element found
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.test.app/files/video/overlay.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2015-08-30 17:19:07
      Duration: 00:00:05.03, start: 0.000000, bitrate: 3449 kb/s
        Stream #1:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x640, 3381 kb/s, SAR 1:1 DAR 1:1, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
        Metadata:
          creation_time   : 2015-08-30 17:19:07
          handler_name    : VideoHandle
        Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
        Metadata:
          creation_time   : 2015-08-30 17:19:07
          handler_name    : SoundHandle

    After this output ffmpeg process is still running but it doesn’t provide any response... I am not sure how to deal with such issue, maybe I can try to use different codecs which works better on android or enable some debugging logging in ffmpeg.
    Any advices would help.

    UPDATE#2

    Thank you

  • FFMPEG conversion creates a smaller files despite unchanged codecs

    26 octobre 2015, par Idan

    I have a h264/aac video mp4 file that FFMPEG says this about :

     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2015-10-15 16:41:52
     Duration: 00:03:36.20, start: 0.000000, bitrate: 4298 kb/s
       Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         creation_time   : 2015-10-15 16:41:53
         handler_name    : Core Media Data Handler
       Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4160 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 2015-10-15 16:41:53
         handler_name    : Core Media Data Handler
         encoder         : H.264

    Then, I run a conversion on it while keeping it the same codecs and resolution with this command line :

    ffmpeg -i x.mp4 -vcodec h264 -acodec libvo_aacenc y.mp4

    The resulting output file info is :

     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.36.100
     Duration: 00:03:36.29, start: 0.033333, bitrate: 1913 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1780 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    It seems that the input and output file should be identical but the input file is 116MB and the resulting output file is 51.7MB.

    If the codecs and resolution are the same and there is not change in the video quality for the naked eye, why is the file size is so different ?

  • ffmpeg : Resource temporarily unavailable

    26 octobre 2015, par Cabbage soup

    I’m trying to run ffmpeg on a linux server (info from uname -a) :

    Linux comp32 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 11:21:14 CST 2012 x86_64 x86_64 x86_64 GNU/Linux

    ffmpeg (together with the required encoders and decoders) compiles successfully on the system, but when I try to perform a basic operation like the following : ffmpeg -v debug -i example.m4v image%d.jpg, I get a slightly cryptic error message :

    ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.7.1 (GCC)
    configuration: --prefix=/users/albanie/local/usr
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 40.101 /  5. 40.101
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
    Splitting the commandline.
    Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument 'example.m4v'.
    Reading option 'image%d.jpg' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option v (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file example.m4v.
    Successfully parsed a group of options.
    Opening an input file: example.m4v.
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ee2380] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ee2380] ISO: File Type Major Brand: M4V
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ee2380] Before avformat_find_stream_info() pos: 185580655 bytes read:927102 seeks:1
    [h264 @ 0x2ee3720] no picture
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ee2380] All info found
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ee2380] After avformat_find_stream_info() pos: 24214 bytes read:959870 seeks:2 frames:3
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'example.m4v':
    Metadata:
     major_brand     : M4V
     minor_version   : 512
     compatible_brands: isomiso2avc1
     encoder         : Lavf56.25.101
    Duration: 00:13:47.93, start: 0.033333, bitrate: 1793 kb/s
    Stream #0:0(und), 2, 1/30000: Video: h264 (High), 4 reference frames (avc1 / 0x31637661), yuv420p(left), 720x576 [SAR 64:45 DAR 16:9], 1001/60000, 1656 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    Stream #0:1(eng), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
     handler_name    : SoundHandler
    Successfully opened the file.
    Parsing a group of options: output file image%d.jpg.
    Successfully parsed a group of options.
    Opening an output file: image%d.jpg.
    Successfully opened the file.
    detected 32 logical cores
    [graph 0 input from stream 0:0 @ 0x303f7c0] Setting 'video_size' to value '720x576'
    [graph 0 input from stream 0:0 @ 0x303f7c0] Setting 'pix_fmt' to value '0'
    [graph 0 input from stream 0:0 @ 0x303f7c0] Setting 'time_base' to value '1/30000'
    [graph 0 input from stream 0:0 @ 0x303f7c0] Setting 'pixel_aspect' to value '64/45'
    [graph 0 input from stream 0:0 @ 0x303f7c0] Setting 'sws_param' to value 'flags=2'
    [graph 0 input from stream 0:0 @ 0x303f7c0] Setting 'frame_rate' to value '30000/1001'
    [graph 0 input from stream 0:0 @ 0x303f7c0] w:720 h:576 pixfmt:yuv420p tb:1/30000 fr:30000/1001 sar:64/45 sws_param:flags=2
    [format @ 0x2f750c0] compat: called with args=[yuvj420p|yuvj422p|yuvj444p]
    [format @ 0x2f750c0] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p'
    [auto-inserted scaler 0 @ 0x2f75f00] Setting 'flags' to value 'bicubic'
    [auto-inserted scaler 0 @ 0x2f75f00] w:iw h:ih flags:'bicubic' interl:0
    [format @ 0x2f750c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
    [AVFilterGraph @ 0x303f720] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
    [auto-inserted scaler 0 @ 0x2f75f00] picking yuvj420p out of 3 ref:yuv420p alpha:0
    [swscaler @ 0x2f664a0] deprecated pixel format used, make sure you did set range correctly
    [auto-inserted scaler 0 @ 0x2f75f00] w:720 h:576 fmt:yuv420p sar:64/45 -> w:720 h:576 fmt:yuvj420p sar:64/45 flags:0x4
    [mjpeg @ 0x2ee96c0] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores
    [mjpeg @ 0x2ee96c0] intra_quant_bias = 96 inter_quant_bias = 0
    Output #0, image2, to 'image%d.jpg':
    Metadata:
     major_brand     : M4V
     minor_version   : 512
     compatible_brands: isomiso2avc1
     encoder         : Lavf56.25.101
    Stream #0:0(und), 0, 1001/30000: Video: mjpeg, 1 reference frame, yuvj420p(pc, left), 720x576 [SAR 64:45 DAR 16:9], 1001/30000, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
     handler_name    : VideoHandler
     encoder         : Lavc56.60.100 mjpeg
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Error while opening decoder for input stream #0:0 : Resource temporarily unavailable
    [AVIOContext @ 0x2eeaee0] Statistics: 959870 bytes read, 2 seeks

    I also tried using a static build off ffmpeg, downloaded from here, but got the same resource temporarily unavailable message. Any ideas on how I might be able to fix this ?