Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (45)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (5473)

  • ffmpeg Windows : standard transcode produces file that "uses unsupported encoding settings" [duplicate]

    17 août 2022, par David M. Cotter

    using the basic command :

    


    ffmpeg -i infile.mp4 -vcodec libx264 -acodec aac output.mp4


    


    poduces a file that can't be played by the standard Windows Media Player app.
Is there something i'm missing ?

    


    Here is the log data.

    


    C:> \\Mac\depot\kJams\External\ffmpeg\win\bin\ffmpeg.exe -i "\\Mac\Home\Desktop\Christina lying down.AVI" -vcodec libx264 -acodec aac output.mp4
ffmpeg version git-2019-11-01-53c21c2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20191010
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 35.101 / 56. 35.101
  libavcodec     58. 60.100 / 58. 60.100
  libavformat    58. 33.100 / 58. 33.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 66.100 /  7. 66.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from '\\Mac\Home\Desktop\Christina lying down.AVI':
  Metadata:
    creation_time   : 2006-01-26 18:19:22
    encoder         : CanonMVI02
  Duration: 00:00:07.70, start: 0.000000, bitrate: 14928 kb/s
    Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 14896 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, mono, u8, 88 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_u8 (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0f06a740] Too many bits 6408.707483 > 6144 per frame requested, clamping to max
[libx264 @ 0f068b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0f068b40] profile High 4:2:2, level 3.0, 4:2:2, 8-bit
[libx264 @ 0f068b40] 264 - core 158 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=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=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.mp4':
  Metadata:
    encoder         : Lavf58.33.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj422p(pc), 640x480, q=-1--1, 30 fps, 1000k tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.60.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), 11025 Hz, mono, fltp, 66 kb/s
    Metadata:
      encoder         : Lavc58.60.100 aac
frame=  231 fps=128 q=-1.0 Lsize=    1570kB time=00:00:07.70 bitrate=1668.3kbits/s speed=4.28x
video:1514kB audio:51kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.347234%
[libx264 @ 0f068b40] frame I:2     Avg QP:24.57  size: 27076
[libx264 @ 0f068b40] frame P:60    Avg QP:26.24  size: 12693
[libx264 @ 0f068b40] frame B:169   Avg QP:27.91  size:  4342
[libx264 @ 0f068b40] consecutive B-frames:  1.7%  1.7%  1.3% 95.2%
[libx264 @ 0f068b40] mb I  I16..4:  0.6% 97.6%  1.8%
[libx264 @ 0f068b40] mb P  I16..4:  0.1% 10.6%  0.5%  P16..4: 51.1% 17.9% 10.8%  0.0%  0.0%    skip: 8.9%
[libx264 @ 0f068b40] mb B  I16..4:  0.0%  1.2%  0.0%  B16..8: 51.8%  4.4%  0.7%  direct: 6.4%  skip:35.5%  L0:48.8% L1:46.4% BI: 4.8%
[libx264 @ 0f068b40] 8x8 transform intra:95.6% inter:78.5%
[libx264 @ 0f068b40] coded y,uvDC,uvAC intra: 89.0% 85.1% 53.7% inter: 29.0% 44.7% 6.7%
[libx264 @ 0f068b40] i16 v,h,dc,p: 19% 31%  8% 42%
[libx264 @ 0f068b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 33%  6%  7%  5%  9%  5%  8%
[libx264 @ 0f068b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 21% 18%  7% 10%  6% 11%  5%  6%
[libx264 @ 0f068b40] i8c dc,h,v,p: 67% 13% 15%  5%
[libx264 @ 0f068b40] Weighted P-Frames: Y:8.3% UV:6.7%
[libx264 @ 0f068b40] ref P L0: 35.8% 10.5% 35.1% 17.4%  1.2%
[libx264 @ 0f068b40] ref B L0: 76.1% 19.2%  4.7%
[libx264 @ 0f068b40] ref B L1: 92.7%  7.3%
[libx264 @ 0f068b40] kb/s:1609.92
[aac @ 0f06a740] Qavg: 34311.295


    


    Ignore this part, Stack Overflow now requires that i type something more so it's not "mostly code"

    


  • ffmpeg : "Input/output error" Read gif from named pipe ?

    23 octobre 2022, par Xirado

    I've been trying to debug this for hours now, and cannot seem to understand why it doesn't work.

    


    I want to overlay a png onto all frames of a gif, and since writing all the files to disk is slow, i wanted to use pipes.

    


    I created a named pipe using mkfifo imgstream1 and then launch ffmpeg :

    


    ffmpeg -report -hide_banner -v 9 -loglevel 99 -y -f gif -i imgstream1 out1.gif


    


    (This isn't actually useful as it just spits out the same gif again but it's simpler for debugging)

    


    After ffmpeg launches it waits for data from the pipe, so i write an actual gif file to the pipe using this kotlin code

    


    val backgroundFifo = File("imgstream1")
val inputOne = File("background.gif").readBytes()
println("background.gif -> ${inputOne.size} bytes")
val output = backgroundFifo.outputStream()
output.write(inputOne)
output.flush()
output.close()


    


    It prints : background.gif -> 7233247 bytes

    


    Now ffmpeg should read the bytes and spit out a gif, but it always seems to fail doing so.

    


    Opening an input file: imgstream1.
[gif @ 0x7714180] Opening 'imgstream1' for reading
[file @ 0x7714980] Setting default whitelist 'file,crypto,data'
[AVIOContext @ 0x7724dc0] Statistics: 7233247 bytes read, 0 seeks
imgstream1: Input/output error


    


    Sadly this does not give any further information, i'm already on the highest log level...

    


    I've tried multiple things :

    


      

    • -f image2pipe -> Works, but only loads the first 2 frames of the gif
    • 


    • Renaming the pipe to imgstream1.gif so ffmpeg thinks it's a gif file, no change.
    • 


    • Different ffmpeg versions
    • 


    • Using the actual gif as an ffmpeg input works
    • 


    


    At this point i have no idea what the problem might be, as ffmpeg seems to load all bytes.
It's worth noting that doing cat imgstream1 > file.gif produces the desired gif.

    


    Any help would be appreciated !

    


  • FFMPEG Kit issue in Banuba Video SDK : "FFmpegKit failed to start on brand"

    10 mai 2023, par Vivek Makwana

    I am trying to integrate Banuba Video Editor sdk in flutter.

    


    The issue i am facing is as below

    


    Banuba sdk works with native code for Android in Flutter

    


    So Banuba requires FFMPEG dependency to define in Native Android

    


    And I am already using 'ffmpeg_kit_flutter' plugin for flutter.

    


    So both the FFMPEG kits are conflicted and some of the functions are not found. due to that I am receiving the below error.

    


    When the app is launched I am receiving this Crash as mentioned

    


    **java.lang.Error: FFmpegKit failed to start on brand: google, model: sdk_gphone_x86, device: generic_x86_arm, api level: 30, abis: x86 armeabi-v7a armeabi, 32bit abis: x86 armeabi-v7a armeabi, 64bit abis: .&#xA;**  at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:50)&#xA;    at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:189)&#xA;    at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)&#xA;    at com.arthenica.ffmpegkit.FFmpegKitConfig.enableFFmpegSessionCompleteCallback(FFmpegKitConfig.java:864)&#xA;    at com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin.registerGlobalCallbacks(FFmpegKitFlutterPlugin.java:168)&#xA;    at com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin.init(FFmpegKitFlutterPlugin.java:652)&#xA;    at com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin.onAttachedToActivity(FFmpegKitFlutterPlugin.java:198)&#xA;    at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivityInternal(FlutterEngineConnectionRegistry.java:351)&#xA;    at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.attachToActivity(FlutterEngineConnectionRegistry.java:324)&#xA;    at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:194)&#xA;    at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:498)&#xA;    at com.sound.it.MainActivity.onCreate(MainActivity.kt:43)&#xA;    at android.app.Activity.performCreate(Activity.java:8000)&#xA;    at android.app.Activity.performCreate(Activity.java:7984)&#xA;    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)&#xA;    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)&#xA;    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)&#xA;    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)&#xA;    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)&#xA;    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)&#xA;    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)&#xA;    at android.os.Handler.dispatchMessage(Handler.java:106)&#xA;    at android.os.Looper.loop(Looper.java:223)&#xA;    at android.app.ActivityThread.main(ActivityThread.java:7656)&#xA;    at java.lang.reflect.Method.invoke(Native Method)&#xA;    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)&#xA;    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)&#xA;**Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "av_log_default_callback" referenced by "/data/app/~~umF3qlB9U53L4peU9nKYuQ==/com.sound.it-agqiFlNmMe17AHMK5gYIHw==/lib/x86/libffmpegkit.so"...**&#xA;    at java.lang.Runtime.loadLibrary0(Runtime.java:1087)&#xA;    at java.lang.Runtime.loadLibrary0(Runtime.java:1008)&#xA;    at java.lang.System.loadLibrary(System.java:1664)&#xA;    at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:48)&#xA;</clinit>

    &#xA;

    Looking for the solutions

    &#xA;