Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (61)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (8727)

  • avfilter : add bilateral_cuda filter

    30 août 2022, par Mohamed Khaled Mohamed
    avfilter : add bilateral_cuda filter
    

    GSoC 2022

    Signed-off-by : Mohamed Khaled <mohamed.elbassiony00@eng-st.cu.edu.eg>
    Signed-off-by : Timo Rothenpieler <timo@rothenpieler.org>

    • [DH] Changelog
    • [DH] compat/cuda/cuda_runtime.h
    • [DH] configure
    • [DH] doc/filters.texi
    • [DH] libavfilter/Makefile
    • [DH] libavfilter/allfilters.c
    • [DH] libavfilter/version.h
    • [DH] libavfilter/vf_bilateral_cuda.c
    • [DH] libavfilter/vf_bilateral_cuda.cu
  • How to Combine two Live Streams(mjpeg + pcm) for ffmpeg or ffplay playback ?

    7 septembre 2022, par sharimken

    What's the correct command to combine two live streams (mjpeg + pcm) for playback ?&#xA;Currently, I have to playback them separately via ffplay. Is it possible to combine them as one for playback ?

    &#xA;

    //video stream mjpeg&#xA;ffplay "udp://127.0.0.1:3001"&#xA;&#xA;//audio stream raw pcm&#xA;ffplay -f s16le -ac 1 -ar 11025 "udp://127.0.0.1:3002"&#xA;

    &#xA;

    I found some example commands suggested by others, but not sure how to implement for my above use case. https://superuser.com/questions/1410764/how-to-play-two-remote-streams-simultaneously

    &#xA;

    ffmpeg -headers X -i .. -headers Y -i .. -c copy -f nut - | ffplay -f nut -i -&#xA;

    &#xA;

    Edit 2022/09/07 :

    &#xA;

    Thanks for @kesh suggestion, below script works for first 1 second with video and sound.

    &#xA;

    ffmpeg -i "udp://127.0.0.1:3001" \&#xA;-f s16le -ac 1 -ar 11025 -i "udp://127.0.0.1:3002" \&#xA;-c copy -f nut - | ffplay -f nut -i -&#xA;

    &#xA;

    However, sound was muted after first error occured.

    &#xA;

    udp://127.0.0.1:3001: Input/output error&#xA;

    &#xA;

    Updates :&#xA;Above issue has been solved, with below commands :

    &#xA;

    ffmpeg -i "udp://127.0.0.1:3001?overrun_nonfatal=1&amp;fifo_size=100000" \&#xA;-f s16le -ac 1 -ar 11025 -i "udp://127.0.0.1:3002?overrun_nonfatal=1&amp;fifo_size=100000" \&#xA;-c copy -f nut - | ffplay -f nut -i -&#xA;

    &#xA;

    However, if the mjpeg stream is paused or skipped few frames, the audio will stop too. It's not necessary to sync them, and how to keep the audio stream playing as long as it receives data ?

    &#xA;

    Q1 : the default video fps is 25, can I set it to 30 or 60 ?

    &#xA;

    Q2 : pcm data stream is consistence, but mjpeg is not consistence. audio stream will stop once mjpeg is paused/resumed. What's the best solution ?

    &#xA;

  • Laravel ffmpeg failed to execute command

    4 septembre 2022, par John smith

    I'm using protonemedia/laravel-ffmpeg package everything works fine on localhost but on the live server, there is an error message shown.

    &#xA;

    ProtoneMedia\ LaravelFFMpeg\ Exporters\ EncodingException&#xA;&#xA;ffmpeg failed to execute command &#x27;/usr/bin/ffmpeg&#x27; &#x27;-y&#x27; &#x27;-threads&#x27; &#x27;12&#x27; &#x27;-i&#x27; &#x27;/www/wwwroot/hamza/storage/app/upload/videos/uofH50IWXt3Doqacxkd2tATboUT5gLfVGaAWyvsS.mp4&#x27; &#x27;-map&#x27; &#x27;0&#x27; &#x27;-vcodec&#x27; &#x27;libx264&#x27; &#x27;-b:v&#x27; &#x27;1000k&#x27; &#x27;-sc_threshold&#x27; &#x27;0&#x27; &#x27;-g&#x27; &#x27;48&#x27; &#x27;-hls_playlist_type&#x27; &#x27;vod&#x27; &#x27;-hls_time&#x27; &#x27;10&#x27; &#x27;-hls_segment_filename&#x27; &#x27;/www/wwwroot/hamza/storage/app/streamable_videos/21_0_1000_%05d.ts&#x27; &#x27;-master_pl_name&#x27; &#x27;temporary_segment_playlist_0.m3u8&#x27; &#x27;-acodec&#x27; &#x27;aac&#x27; &#x27;-b:a&#x27; &#x27;128k&#x27; &#x27;/www/wwwroot/hamza/storage/app/streamable_videos/21_0_1000.m3u8&#x27;: Error Output: ffmpeg version 3.4.11 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags=&#x27;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic&#x27; --extra-ldflags=&#x27;-Wl,-z,relro &#x27; --extra-cflags=&#x27; &#x27; --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 Unrecognized option &#x27;master_pl_name&#x27;. Error splitting the argument list: Option not found&#xA;

    &#xA;

    I'm using a job to do conversation

    &#xA;

    ConvertVideoForStreaming.php Job :

    &#xA;

    &lt;?php&#xA;&#xA;namespace App\Jobs;&#xA;set_time_limit(60000);&#xA;&#xA;use FFMpeg;&#xA;use Carbon\Carbon;&#xA;use App\Models\Video;&#xA;use FFMpeg\Format\Video\X264;&#xA;use Illuminate\Bus\Queueable;&#xA;use Illuminate\Queue\SerializesModels;&#xA;use Illuminate\Support\Facades\Storage;&#xA;use Illuminate\Queue\InteractsWithQueue;&#xA;use Illuminate\Contracts\Queue\ShouldQueue;&#xA;use Illuminate\Foundation\Bus\Dispatchable;&#xA;&#xA;class ConvertVideoForStreaming implements ShouldQueue&#xA;{&#xA;    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;&#xA;&#xA;    public $video;&#xA;&#xA;    public function __construct(Video $video)&#xA;    {&#xA;        $this->video = $video;&#xA;    }&#xA;&#xA;    public function handle()&#xA;    {&#xA;        // create some video formats...&#xA;        $lowBitrateFormat  = (new X264)->setKiloBitrate(500);&#xA;        $highBitrateFormat = (new X264)->setKiloBitrate(3000);&#xA;&#xA;        // open the uploaded video from the right disk...&#xA;        FFMpeg::fromDisk($this->video->disk)&#xA;            ->open($this->video->path)&#xA;&#xA;            // call the &#x27;exportForHLS&#x27; method and specify the disk to which we want to export...&#xA;            ->exportForHLS()&#xA;            ->withRotatingEncryptionKey(function ($filename, $contents) {&#xA;                Storage::disk(&#x27;streamable_keys&#x27;)->put($filename, $contents);&#xA;            })&#xA;            // we&#x27;ll add different formats so the stream will play smoothly&#xA;            // with all kinds of internet connections...&#xA;            ->addFormat($lowBitrateFormat)&#xA;            ->addFormat($highBitrateFormat)&#xA;&#xA;            // call the &#x27;save&#x27; method with a filename...&#xA;            ->toDisk(&#x27;streamable_videos&#x27;)&#xA;            ->save($this->video->id . &#x27;.m3u8&#x27;);&#xA;&#xA;        // update the database so we know the convertion is done!&#xA;        $this->video->update([&#xA;            &#x27;converted_for_streaming_at&#x27; => Carbon::now(),&#xA;        ]);&#xA;    }&#xA;}&#xA;

    &#xA;

    I'm storing the key at custom disk "streamable_keys", and converted videos should be stored in "streamable_videos".

    &#xA;

    the streamable keys are generated and saved to a directory without any issues, but streamable videos are not saved to the directory.

    &#xA;

    after some tracks I found that the problem happens in this line of code :

    &#xA;

            ->save($this->video->id . &#x27;.m3u8&#x27;);&#xA;

    &#xA;

    all the lines before that line work perfectly.

    &#xA;

    any ideas on how to fix that ?

    &#xA;

    Full error screenshot

    &#xA;

    ConvertVideoForStreaming.php

    &#xA;