Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (69)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (8324)

  • Getting "Your FFProbe version is too old..." error in Laravel during file upload with FFMpeg

    9 septembre 2020, par pjotr79

    currently I'm working on a video uploader (to S3) script in Laravel. I'd like to get some info about the uploaded video and later I'd like to create thumbnails as well (with the help of this plugin). As a first step I've installed the FFMpeg with brew :

    


    $ brew update
$ brew upgrade
$ brew cleanup
$ brew install ffmpeg --force
$ brew link ffmpeg


    


    Then in composer

    


    $ composer require php-ffmpeg/php-ffmpeg


    


    When I'm checking the installation I get the following

    


    which ffmpeg
/usr/local/bin/ffmpeg

which ffprobe
/usr/local/bin/ffprobe


    


    By checking the version :

    


    ffmpeg -version
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
    built with Apple clang version 11.0.3 (clang-1103.0.32.62)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
    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


    


    The path also seems to be ok

    


    echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin


    


    But when I'm trying to upload a video file (sample.mp4) I have the following error message :
Your FFProbe version is too old and does not support -help option, please upgrade.

    


    Here's the snippet from my code to test the upload :

    


        use FFMpeg;


    public function upload(Request $request)
    {
        if ($request->hasFile('files')) {
            $files = $request->file('files');
            foreach ($files as $key => $file) {
                $filename = pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME);
                $extension = $file->getClientOriginalExtension();
                $filename = str_slug($filename).'.'.$extension;
                Storage::disk('s3Files')->put($filename, file_get_contents($file),'public');
                $fileurl = \Config::get('s3.files').$filename;

                $ffprobe = FFMpeg\FFProbe::create([
                    'ffmpeg.binaries'  => '/usr/local/bin/ffmpeg',
                    'ffprobe.binaries' => '/usr/local/bin/ffprobe'
                ]);

                $filesave = new File();
                $filesave->name = $filename;
                $filesave->type = $file->getClientMimeType();
                $filesave->size = $file->getSize();
                $filesave->duration = $ffprobe->format($fileurl)->get('duration');
                $filesave->save();

            }
        }
    }


    


    Now I spent hours to try to find a solution (also checking this thread here, but I couldn't solve the issue.

    


    My dev environment runs on Mac OS X 10.15.5, with Nginx and PHP 7.4.

    


    Do you have any idea how could I fix this problem ?

    


  • Using FFMPEG with Xvfb, Can't get a smooth video output

    13 juillet 2020, par Emax

    I'm trying to stream to twitch from a linux server, I've installed Xvfb and FFMPEG, the live starts fine, but I can't get a smooth video output.

    


    Setps :

    


    Xvfb :1 -screen 0 1920x1080x24 &amp;&#xA;export DISPLAY=:1&#xA;&#xA;&#xA;ffmpeg -probesize 60M -video_size "1920x1080" -framerate 60 -f x11grab -i :1.0 -f flv -ac 2 -crf 23 \&#xA;       -vcodec libx264 -g 120 -b:v 3000k -minrate 3000k -maxrate 3000k -pix_fmt yuv420p\&#xA;       -s "1920x1080" -preset veryfast -tune zerolatency -acodec libmp3lame -threads 4 -strict normal \&#xA;       -bufsize 12000k "rtmp://live-mil.twitch.tv/app/<key>"&#xA;</key>

    &#xA;

    I'm 100% sure that the app I'm trying to record output 60fps

    &#xA;

    Also the FFMPEG output is

    &#xA;

    ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --prefix=/usr --extra-version=&#x27;1~deb10u1&#x27; --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-avisynth --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;Input #0, x11grab, from &#x27;:1.0&#x27;:&#xA;  Duration: N/A, start: 1594669358.267783, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 60 fps, 59.94 tbr, 1000k tbn, 1000k tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x55a2b7e28ec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x55a2b7e28ec0] profile High, level 4.2&#xA;[libx264 @ 0x55a2b7e28ec0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=120 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3000 vbv_bufsize=12000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, flv, to &#x27;rtmp://live.twitch.tv/app/<key>&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.20.100&#xA;    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=-1--1, 3000 kb/s, 60 fps, 1k tbn, 60 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.35.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 3000000/0/3000000 buffer size: 12000000 vbv_delay: -1&#xA;frame=  436 fps= 61 q=22.0 size=     287kB time=00:00:08.73 bitrate= 269.1kbits/s dup=0 drop=0 speed=1.22x&#xA;</key>

    &#xA;

    I've also tryed to output the recording to an mp4 video file but I got the same result : a laggy video, It's like ffmpeg is recording the input at a lower framerate than 60, how can I fix this ?

    &#xA;

  • Playback FFmpeg stream through UDP

    11 juillet 2020, par Andrew Raleigh

    I'm using the following command to send ffmpeg data :

    &#xA;

    ./ffmpeg -i "" -pix_fmt yuv420p -tune zerolatency -preset ultrafast -f mpegts udp://127.0.0.1:23000

    &#xA;

    I then transmit and receive it to another computer through the srt protocol, and read it back on the end-point.

    &#xA;

    I play back with .\ffplay.exe -i udp://127.0.0.1:23000 -loglevel 40 and don't see a video. I can see data coming in from WireShark though. This is the log output :

    &#xA;

    ffplay version N-98438-gc6cdfdf9c3 Copyright (c) 2003-2020 the FFmpeg developers&#xA;  built with gcc 10.1.0 (Rev3, Built by MSYS2 project)&#xA;  configuration:  --cc=&#x27;ccache gcc&#x27; --cxx=&#x27;ccache g&#x2B;&#x2B;&#x27; --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-schannel --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libaom --disable-debug --enable-libsrt --extra-libs=-liconv --enable-version3&#xA;  libavutil      56. 55.100 / 56. 55.100&#xA;  libavcodec     58. 94.100 / 58. 94.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;Initialized direct3d renderer.&#xA;[mpegts @ 000002130b5eae00] Unable to seek back to the startf=0/0&#xA;&#xA;....&#xA;&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20791500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20794500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20800500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.=0/0&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20805000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20809500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20812500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 2 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20820000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20824500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.=0/0&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20829000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20838000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20842500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20847000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20853000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20857500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.=0/0&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20862000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20866500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20871000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20875500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20880000).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] Packet corrupt (stream = 0, dts = 20884500).&#xA;[mpeg2video @ 000002130b612300] Invalid frame dimensions 0x0.&#xA;    Last message repeated 1 times&#xA;[mpegts @ 000002130b5eae00] changing packet size to 204  0B f=0/0&#xA;[mpegts @ 000002130b5eae00] changing packet size to 188&#xA;[mpegts @ 000002130b5eae00] changing packet size to 204  0B f=0/0&#xA;[mpegts @ 000002130b5eae00] changing packet size to 188  0B f=0/0&#xA;[mpegts @ 000002130b5eae00] changing packet size to 204  0B f=0/0&#xA;[mpegts @ 000002130b5eae00] changing packet size to 188  0B f=0/0&#xA;

    &#xA;

    FFPlay and FFProbe both output the above. Usually FFPlay would show the video playing back, but in this case I get nothing. Any thoughts as to why ?

    &#xA;