Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (13)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

Sur d’autres sites (3345)

  • 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!


    


  • FFmpeg - Convert video changing resolution and bitrates

    8 avril 2021, par parvares

    I’m trying to convert a video and change these parameters :

    


    resolution : from 1.280x720 to 640x360 pixels

    


    average bitrate : from 1.410 to 300 kb/s

    


    maximum bitrate : from 1.680 to 2500 kb/s

    


    Sampling rate : from 48.0 to 44.1 kHz

    


    Bit rate audio : 128 kb/s

    


    I used this string with ffmpeg vers. 4.3.2-2021-02-20 full build :

    


    ffmpeg -i input.mp4 -c:v -vf scale=640:360 libx264 -b:v 300k -maxrate 2500k -bufsize 2500k -crf 25 -c:a -ar 44100 libfdk_aac -b:a 128k output.mp4


    


    I get the error : “ffmpeg unable to find a suitable output format for scale ‘640:360’ scale 640:360 : invalid argument”. Could you help me please ?

    


    Below is the original file analyzed by MediaInfo, thanks !

    


    General

    


    Complete name : C :\Users\parvares\Desktop\input.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 424 MiB
Duration : 38 min 21 s
Overall bit rate : 1 545 kb/s
Writing application : Lavf58.64.100

    


    Video

    


    ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 38 min 21 s
Bit rate : 1 410 kb/s
Maximum bit rate : 1 680 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.061
Stream size : 387 MiB (91%)
Writing library : x264 core 161 r3027 4121277
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / 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=12 / lookahead_threads=2 / 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=1 / keyint=250 / keyint_min=125 / scenecut=40 / intra_refresh=0 / rc_lookahead=125 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=1680 / vbv_bufsize=8400 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

    


    Audio

    


    ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 38 min 21 s
Bit rate mode : Constant
Bit rate : 129 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 35.3 MiB (8%)
Default : Yes
Alternate group : 1