Recherche avancée

Médias (91)

Autres articles (77)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

  • ffmpeg error "Could not write header for output file #0 (incorrect codec parameters ?) : Operation not permitted Error initializing output stream 0:0"

    27 juillet 2022, par DevSharma

    I am running FFmpeg in my app and specifically in "Android 11" I am getting this error from several users

    


    I have researched a lot but no solution found.

    


    I thought there is something wrong with the codec parameter that is being passed since it is saying "incorrect codec parameters" but most of the parameters looks good.

    


    also verified if all the required file permission are granted and those are good too

    


    now I m unable to find the problem,

    


    please help, thanks

    


    Command:&#xA;/data/app/~~hyrHVcslcfdQcguX0rauRA==/<apppackage>-QbDCul7FXU4tVniSDeP1Sg==/lib/arm64/libffmpeg.so -i /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/VID-20220414-WA0010.mp4 -c:v libx264 -crf 23 -map 0:V -map 0:a? -map 0:s? -c:s mov_text -segment_time 26 -g 26 -sc_threshold 0 -force_key_frames expr:gte(t,n_forced*26) -reset_timestamps 1 -f segment -preset ultrafast /storage/emulated/0/Movies/splitVideoFolder/split_video%03d.mp4&#xA;&#xA;Error:&#xA;ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)&#xA;  configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/admin/AndroidStudioProjects/android-ndk-r21d/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/admin/AndroidStudioProjects/Tanner/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/local/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang&#x2B;&#x2B; --extra-libs=&#x27;-L/Users/admin/AndroidStudioProjects/Tanner/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-shared --disable-ffplay --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libass --enable-iconv --enable-libx264 --enable-gpl --disable-sdl2 --enable-zlib --enable-mediacodec&#xA;  libavutil      56. 55.100 / 56. 55.100&#xA;  libavcodec     58. 96.100 / 58. 96.100&#xA;  libavformat    58. 48.100 / 58. 48.100&#xA;  libavdevice    58. 11.101 / 58. 11.101&#xA;  libavfilter     7. 87.100 /  7. 87.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/VID-20220414-WA0010.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42isom&#xA;  Duration: 00:01:30.53, start: 0.000000, bitrate: 671 kb/s&#xA;    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 576x1024 [SAR 1:1 DAR 9:16], 539 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)&#xA;    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0xb400007727c64800] using SAR=1/1&#xA;[libx264 @ 0xb400007727c64800] using cpu capabilities: ARMv8 NEON&#xA;[libx264 @ 0xb400007727c64800] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 0xb400007727c64800] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=26 keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0&#xA;[segment @ 0xb400007727c28800] Opening &#x27;/storage/emulated/0/Movies/splitVideoFolder/split_video000.mp4&#x27; for writing&#xA;[segment @ 0xb400007727c28800] Failed to open segment &#x27;/storage/emulated/0/Movies/splitVideoFolder/split_video000.mp4&#x27;&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted&#xA;Error initializing output stream 0:0 --&#xA;[aac @ 0xb400007727c65700] Qavg: 18220.703&#xA;[aac @ 0xb400007727c65700] 2 frames left in the queue on closing&#xA;Conversion failed!&#xA;</apppackage>

    &#xA;

  • conversion failed on ffmpeg (When I uploaded code on my linux server and uploaded a video there I received following error please help) [closed]

    27 octobre 2020, par anurag tripathi
    ffmpeg version 4.3.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;libavutil 56. 51.100 / 56. 51.100&#xA;libavcodec 58. 91.100 / 58. 91.100&#xA;libavformat 58. 45.100 / 58. 45.100&#xA;libavdevice 58. 10.100 / 58. 10.100&#xA;libavfilter 7. 85.100 / 7. 85.100&#xA;libswscale 5. 7.100 / 5. 7.100&#xA;libswresample 3. 7.100 / 3. 7.100&#xA;libpostproc 55. 7.100 / 55. 7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;uploads/videos/5f981c0d231da.mp4&#x27;:&#xA;Metadata:&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands: isomiso2avc1mp41&#xA;encoder : Lavf58.45.100&#xA;Duration: 00:00:05.33, start: 0.000000, bitrate: 1940 kb/s&#xA;Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1597 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)&#xA;Metadata:&#xA;handler_name : VideoHandler&#xA;Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 351 kb/s (default)&#xA;Metadata:&#xA;handler_name : SoundHandler&#xA;Stream mapping:&#xA;Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x7b5fe00] deprecated pixel format used, make sure you did set range correctly&#xA;Output #0, image2, to &#x27;uploads/videos/thumbnails/158-5f981c178b4da.jpg&#x27;:&#xA;Metadata:&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands: isomiso2avc1mp41&#xA;encoder : Lavf58.45.100&#xA;Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 210x118 [SAR 944:945 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)&#xA;Metadata:&#xA;handler_name : VideoHandler&#xA;encoder : Lavc58.91.100 mjpeg&#xA;Side data:&#xA;cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;[image2 @ 0x7479340] Could not open file : uploads/videos/thumbnails/158-5f981c178b4da.jpg&#xA;av_interleaved_write_frame(): Input/output error&#xA;frame= 1 fps=0.0 q=3.4 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.161x&#xA;video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;ffmpeg version 4.3.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;libavutil 56. 51.100 / 56. 51.100&#xA;libavcodec 58. 91.100 / 58. 91.100&#xA;libavformat 58. 45.100 / 58. 45.100&#xA;libavdevice 58. 10.100 / 58. 10.100&#xA;libavfilter 7. 85.100 / 7. 85.100&#xA;libswscale 5. 7.100 / 5. 7.100&#xA;libswresample 3. 7.100 / 3. 7.100&#xA;libpostproc 55. 7.100 / 55. 7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;uploads/videos/5f981c0d231da.mp4&#x27;:&#xA;Metadata:&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands: isomiso2avc1mp41&#xA;encoder : Lavf58.45.100&#xA;Duration: 00:00:05.33, start: 0.000000, bitrate: 1940 kb/s&#xA;Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1597 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)&#xA;Metadata:&#xA;handler_name : VideoHandler&#xA;Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 351 kb/s (default)&#xA;Metadata:&#xA;handler_name : SoundHandler&#xA;Stream mapping:&#xA;Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x7d30e00] deprecated pixel format used, make sure you did set range correctly&#xA;Output #0, image2, to &#x27;uploads/videos/thumbnails/158-5f981c17cf36a.jpg&#x27;:&#xA;Metadata:&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands: isomiso2avc1mp41&#xA;encoder : Lavf58.45.100&#xA;Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 210x118 [SAR 944:945 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)&#xA;Metadata:&#xA;handler_name : VideoHandler&#xA;encoder : Lavc58.91.100 mjpeg&#xA;Side data:&#xA;cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;[image2 @ 0x764a340] Could not open file : uploads/videos/thumbnails/158-5f981c17cf36a.jpg&#xA;av_interleaved_write_frame(): Input/output error&#xA;frame= 1 fps=0.0 q=3.4 size=N/A time=00:00:00.04 bitrate=N/A speed=0.0794x frame= 1 fps=0.0 q=3.4 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.0774x&#xA;video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;ffmpeg version 4.3.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;libavutil 56. 51.100 / 56. 51.100&#xA;libavcodec 58. 91.100 / 58. 91.100&#xA;libavformat 58. 45.100 / 58. 45.100&#xA;libavdevice 58. 10.100 / 58. 10.100&#xA;libavfilter 7. 85.100 / 7. 85.100&#xA;libswscale 5. 7.100 / 5. 7.100&#xA;libswresample 3. 7.100 / 3. 7.100&#xA;libpostproc 55. 7.100 / 55. 7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;uploads/videos/5f981c0d231da.mp4&#x27;:&#xA;Metadata:&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands: isomiso2avc1mp41&#xA;encoder : Lavf58.45.100&#xA;Duration: 00:00:05.33, start: 0.000000, bitrate: 1940 kb/s&#xA;Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1597 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)&#xA;Metadata:&#xA;handler_name : VideoHandler&#xA;Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 351 kb/s (default)&#xA;Metadata:&#xA;handler_name : SoundHandler&#xA;Stream mapping:&#xA;Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x70c9e00] deprecated pixel format used, make sure you did set range correctly&#xA;Output #0, image2, to &#x27;uploads/videos/thumbnails/158-5f981c1860a62.jpg&#x27;:&#xA;Metadata:&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands: isomiso2avc1mp41&#xA;encoder : Lavf58.45.100&#xA;Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 210x118 [SAR 944:945 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)&#xA;Metadata:&#xA;handler_name : VideoHandler&#xA;encoder : Lavc58.91.100 mjpeg&#xA;Side data:&#xA;cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;frame= 0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x [image2 @ 0x69e3340] Could not open file : uploads/videos/thumbnails/158-5f981c1860a62.jpg&#xA;av_interleaved_write_frame(): Input/output error&#xA;frame= 1 fps=0.0 q=3.4 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.0535x&#xA;video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;Upload successful&#xA;

    &#xA;

  • Trouble using ffmpeg in c# how to correctly format string to upscale videos ?

    30 décembre 2020, par user14527374

    So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it.

    &#xA;

    I think I must have a string format issue :

    &#xA;

    private void HD_Click(object sender, EventArgs e)&#xA;        {&#xA;            if (textBox1.Text == null)&#xA;            {&#xA;                MessageBox.Show("You&#x27;ve not selected your video file yet. Please do so before continuing, cheers.");&#xA;&#xA;            }&#xA;            else&#xA;            {&#xA;             &#xA;                    var originFilePath = textBox1.Text;&#xA;                    string name = Path.GetFileName(originFilePath);&#xA;                    byte[] bytes = null;&#xA;                    using (FileStream fileStream = new FileStream(originFilePath, FileMode.Open, FileAccess.Read))&#xA;                    {&#xA;                        using (MemoryStream ms = new MemoryStream())&#xA;                        {&#xA;                            fileStream.CopyTo(ms);&#xA;                            bytes = ms.ToArray();&#xA;                        }&#xA;&#xA;                        var localStoragePath = Path.Combine(Path.GetTempPath(), name);&#xA;                        var directoryPath = Path.GetDirectoryName(localStoragePath);&#xA;                        Directory.CreateDirectory(directoryPath);&#xA;                        File.WriteAllBytes(localStoragePath, bytes);&#xA;                        Console.WriteLine($"File copy successful: {File.Exists(localStoragePath)}");&#xA;                        var readBack = File.ReadAllBytes(localStoragePath);&#xA;                        Console.WriteLine($"Read file Back: {readBack.Length}, {localStoragePath}");&#xA;                    var resizedFolderPath = @"C:\upscaledvideohere";&#xA;                        Directory.CreateDirectory(resizedFolderPath);&#xA;                        var resizedFiePath = Path.Combine(resizedFolderPath, Path.GetFileName(localStoragePath));&#xA;&#xA;                        var psi = new ProcessStartInfo();&#xA;                        psi.FileName = @"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\binffmpeg.exe";&#xA;                        psi.Arguments = $"-i \"{localStoragePath}\" -vf scale=1080 \"{resizedFiePath}\"";&#xA;                        psi.RedirectStandardOutput = false;&#xA;                        psi.RedirectStandardError = false;&#xA;                        psi.UseShellExecute = true;&#xA;                        Console.WriteLine($"Args: {psi.Arguments}");&#xA;&#xA;                        try&#xA;                        {&#xA;                            using (Process exeProcess = Process.Start(psi))&#xA;                            {&#xA;                                Console.WriteLine($"process started with processId: {exeProcess.Id}");&#xA;                                exeProcess.WaitForExit();&#xA;                                Console.WriteLine($"Exit Code: {exeProcess.ExitCode}");&#xA;                            }&#xA;                        }&#xA;                        catch (Exception ex)&#xA;                        {&#xA;                            Console.WriteLine(ex.StackTrace.ToString());&#xA;                            Console.WriteLine(ex.Message.ToString());&#xA;                            return;&#xA;                        }&#xA;                        Console.WriteLine($"process completed");&#xA;                        Console.WriteLine($"Temp Out Exists: {File.Exists(resizedFiePath)}");&#xA;                    }&#xA;&#xA;                    Console.ReadLine();&#xA;                }&#xA;            }&#xA;        &#xA;    &#xA;

    &#xA;

    I am wondering where the string format error could be ? Thank you.

    &#xA;