Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (52)

  • 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 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (7784)

  • ffmpeg video merging issues for videos recorded from andriod mobile phone

    14 avril 2021, par Nishit Modi

    Following is the command I'm using :

    


    sudo ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[1]tpad=start_mode=clone:start_duration=15[tr];[0][tr]xstack=inputs=2:layout=0_0|w0_0[v];[1:a]adelay=15s:all=true[a1];[0:a][a1]amix=inputs=2[a]" -map "[v]" -map "[a]" output.mp4


    


    It took a couple of hours to merge the videos. Original videos are 6 MBs in size. Merged video is approx 2 GB in size.

    


    It is working fine with videos recorded from the iphone.

    


    Update :
The issue is regarding different fps in different videos. If two videos are of different fps, then it is taking too long and eventually break.

    


    Full log :

    


    ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[1]tpad=start_mode=clone:start_duration=15[tr];[0][tr]xstack=inputs=2:layout=0_0|w0_0[v];[1:a]adelay=15s:all=true[a1];[0:a][a1]amix=inputs=2[a]" -map "[v]" -map "[a]" output_ia_2.mp4
    ffmpeg version 4.3.2-0york0~16.04 Copyright (c) 2000-2021 the FFmpeg developers
      built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
      configuration: --prefix=/usr --extra-version='0york0~16.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
      libavutil      56. 51.100 / 56. 51.100
      libavcodec     58. 91.100 / 58. 91.100
      libavformat    58. 45.100 / 58. 45.100
      libavdevice    58. 10.100 / 58. 10.100
      libavfilter     7. 85.100 /  7. 85.100
      libavresample   4.  0.  0 /  4.  0.  0
      libswscale      5.  7.100 /  5.  7.100
      libswresample   3.  7.100 /  3.  7.100
      libpostproc    55.  7.100 / 55.  7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '97FD4344-23C3-4668-AA40-E5E724338352-3149-0000018389D9630F.mp4':
      Metadata:
        major_brand     : qt  
        minor_version   : 0
        compatible_brands: qt  
        creation_time   : 2021-04-09T00:43:28.000000Z
      Duration: 00:00:15.03, start: 0.000000, bitrate: 10342 kb/s
        Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 226 kb/s (default)
        Metadata:
          creation_time   : 2021-04-09T00:43:28.000000Z
          handler_name    : Core Media Audio
        Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709), 720x1280, 10111 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
        Metadata:
          creation_time   : 2021-04-09T00:43:28.000000Z
          handler_name    : Core Media Video
          encoder         : H.264
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'android_ritesh.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2021-04-13T06:39:16.000000Z
        com.android.version: 10
      Duration: 00:00:09.59, start: 0.000000, bitrate: 5288 kb/s
        Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 720x1280, 5152 kb/s, SAR 1:1 DAR 9:16, 17.31 fps, 59.94 tbr, 90k tbn, 180k tbc (default)
        Metadata:
          creation_time   : 2021-04-13T06:39:16.000000Z
          handler_name    : VideoHandle
        Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
        Metadata:
          creation_time   : 2021-04-13T06:39:16.000000Z
          handler_name    : SoundHandle
    Stream mapping:
      Stream #0:0 (aac) -> amix:input0
      Stream #0:1 (h264) -> xstack:input0
      Stream #1:0 (h264) -> tpad
      Stream #1:1 (aac) -> adelay
      xstack -> Stream #0:0 (libx264)
      amix -> Stream #0:1 (aac)
    Press [q] to stop, [?] for help
    [swscaler @ 0x5628692bd340] deprecated pixel format used, make sure you did set range correctly
    [mp4 @ 0x562868aa7dc0] Frame rate very high for a muxer not efficiently supporting it.
    Please consider specifying a lower framerate, a different muxer or -vsync 2
    [libx264 @ 0x562868af2400] MB rate (648000000) > level limit (16711680)
    [libx264 @ 0x562868af2400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x562868af2400] profile High, level 6.2
    [libx264 @ 0x562868af2400] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output_ia_2.mp4':
      Metadata:
        major_brand     : qt  
        minor_version   : 0
        compatible_brands: qt  
        encoder         : Lavf58.45.100
        Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1440x1280, q=-1--1, 90k tbn, 90k tbc (default)
        Metadata:
          encoder         : Lavc58.91.100 libx264
        Side data:
          cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
        Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
        Metadata:
          encoder         : Lavc58.91.100 aac
    More than 1000 frames duplicated      0kB time=00:00:00.00 bitrate=N/A speed=   0x    
More than 10000 frames duplicated   4352kB time=00:00:00.09 bitrate=358592.3kbits/s dup=8991 drop=0 speed=0.00141x    
frame=15000 fps=131 q=33.0 size=    7680kB time=00:00:00.16 bitrate=378802.6kbits/s dup=14985 drop=0 speed=0.00145x 


    


  • ffmpeg overlay fadein/fadeout is not working [duplicate]

    22 avril 2021, par user15602767

    This is my normal overlay filter without any fadein/fadeout

    


    ffmpeg -i .\urban_pop_b4.mp4 -i .\logos\cfe-coffee.png -filter_complex "overlay=700:300:enable=between(t\,3\,6)" output.mp4


    


    When I include the fade-in/fade-out option as in docs I dont get any overlay at all(no error thrown)

    


    ffmpeg -i .\urban_pop_b4.mp4 -i .\logos\cfe-coffee.png -filter_complex "[1:v]fade=t=in:st=5:d=1,fade=t=out:st=10:d=1[over];[0:v][over]overlay=700:300:enable=between(t\,3\,6)" output.mp4


    


    ffmpeg version 2021-04-07-git-c06465a70b-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers   built with gcc 10.2.0 (Rev6, Built by MSYS2 project)   configuration: --enable-gpl
--enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint   libavutil      56. 72.100 / 56. 72.100   libavcodec     58.135.100 / 58.135.100   libavformat    58. 77.100 /
58. 77.100   libavdevice    58. 14.100 / 58. 14.100   libavfilter     7.111.100 /  7.111.100   libswscale      5. 10.100 /  5. 10.100   libswresample   3. 10.100 /  3. 10.100   libpostproc    55. 10.100 /
55. 10.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\urban_pop.mp4':   Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.77.100   Duration: 00:00:21.05, start: 0.000000, bitrate: 413 kb/s   Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 832x432, 411 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0] Input #1, png_pipe, from '.\logos\cfe-coffee.png':   Duration: N/A, bitrate: N/A   Stream #1:0: Video: png, rgba(pc), 256x192, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream mapping:   Stream #0:0 (h264) -> overlay:main   Stream #1:0 (png) -> fade   overlay -> Stream #0:0 (libx264) Press [q] to stop, [?] for help [libx264 @ 00000271483e1240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 00000271483e1240] profile High, level 3.0, 4:2:0, 8-bit [libx264 @ 00000271483e1240] 264
- core 161 r3048 b86ae3c - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=20 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'output.mp4':   Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.77.100   Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 832x432, q=2-31, 20 fps, 10240 tbn (default)
    Metadata:
      encoder         : Lavc58.135.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A frame=  421 fps=0.0 q=-1.0 Lsize=    1052kB time=00:00:20.90 bitrate=
412.3kbits/s speed=21.9x video:1046kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.552964% [libx264 @ 00000271483e1240] frame I:2     Avg QP:13.84  size: 19321 [libx264 @ 00000271483e1240] frame P:106   Avg QP:22.42  size:  3482 [libx264 @ 00000271483e1240] frame B:313   Avg QP:28.03  size:  2117 [libx264 @ 00000271483e1240] consecutive B-frames:  0.7%  0.5%  0.0% 98.8% [libx264 @ 00000271483e1240] mb I  I16..4: 54.9% 18.3% 26.8% [libx264 @ 00000271483e1240] mb P  I16..4:  0.7%  0.4%  1.3%  P16..4:  5.6% 
2.8%  1.6%  0.0%  0.0%    skip:87.6% [libx264 @ 00000271483e1240] mb B  I16..4:  0.1%  0.1%  0.4%  B16..8:  5.6%  2.4%  1.2%  direct: 0.5%  skip:89.8%  L0:49.1% L1:44.2% BI: 6.7% [libx264 @ 00000271483e1240] 8x8 transform intra:15.4% inter:6.9% [libx264 @ 00000271483e1240] coded y,uvDC,uvAC intra: 36.1% 8.1% 5.7% inter: 2.6% 0.2% 0.1% [libx264 @ 00000271483e1240] i16 v,h,dc,p: 59% 35%  5%  0% [libx264 @ 00000271483e1240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27%  9% 61%  0%  0%  0%  0%  0%  1% [libx264 @ 00000271483e1240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 30%  3%  3%  3%  3%  6%  4% [libx264 @ 00000271483e1240] i8c dc,h,v,p: 84% 13%  4%  0% [libx264 @ 00000271483e1240] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 00000271483e1240] ref P L0: 59.3%  4.0% 20.8% 15.9% [libx264 @ 00000271483e1240] ref B L0: 70.8% 21.6%  7.6% [libx264 @ 00000271483e1240] ref B L1: 87.6% 12.4% [libx264 @ 00000271483e1240] kb/s:406.82


    


    Already tried out ffmpeg overlay image with fade in and fade out

    


  • Unable to convert mov to mp4 using ffmpeg carrierwave in ruby

    9 avril 2021, par LearningROR

    I am unable to convert MOV files to MP4 using carrierwave and FFmpeg.

    


    It does upload mp4 file but does not convert it to mp4 and so on browser only sound gets played not the video.

    


    What I am missing here ? I tried most of the solutions.

    


    Code :

    


    class VideoUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
  include CarrierWave::Video
  include CarrierWave::Video::Thumbnailer
  include CarrierWave::FFmpeg
  # Choose what kind of storage to use for this uploader:
  storage :file
  # Override the directory where uploaded files will be stored.
  # This is a sensible default for uploaders that are meant to be mounted:
  def store_dir
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
  end
  version :video, :if => :video? do
    process :encode
  end
  version :thumb do
    process thumbnail: [{format: 'jpg', quality: 8, size: 360, logger: Rails.logger, square: false}]
    def full_filename for_file
      jpg_name for_file, version_name
    end
  end
  def encode
    tmp_path = File.join( File.dirname(current_path), "tmpfile.mp4" )
    movie = FFMPEG::Movie.new(current_path)
    movie.transcode(tmp_path, custom: %w(-c:v libx264 -c:a aac -vf format=yuv420p -movflags +faststart)) do |progress|
      puts progress
    end
    File.rename tmp_path, current_path
  end
  protected
  def video?(new_file)
    new_file.content_type.include? 'video'
  end
end


    


    Logs :

    


    I, [2021-04-09T15:33:24.783337 #9397]  INFO -- : Running transcoding...
["/usr/local/bin/ffmpeg", "-y", "-i", "/Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/sample_iTunes__1_.mov", "-c:v", "libx264", "-c:a", "aac", "-vf", "format=yuv420p", "-movflags", "+faststart", "/Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/tmpfile.mp4"]

0.0
0.08304093567251461
0.1672514619883041
0.2327485380116959
0.3229239766081871
0.4008187134502924
0.45426900584795327
0.5033918128654971
0.5403508771929825
0.6100584795321637
0.663859649122807
0.711812865497076
0.7657309941520468
0.8196491228070175
0.87953216374269
0.9394152046783625
1.0
1.0
I, [2021-04-09T15:33:33.555508 #9397]  INFO -- : Transcoding of /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/sample_iTunes__1_.mov to /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/video/tmpfile.mp4 succeeded

Running....ffmpegthumbnailer -i /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/thumb/sample_iTunes__1_.mov -o /Users/osx/workspace_ror/xxx-react/tmp/1617964403-459168728101935-0021-9213/thumb/tmpfile.jpg -c jpg -q 8 -s 360
Success!