Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (24)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7212)

  • ffmpeg - error processing files generated by premier pro 2022

    23 mai 2022, par QRrabbit

    Please help with the error, trying to re-encode the source file produced with prores 4444+alpha. Alpha channel is required in my case.

    


    I've tried two separate options, both are erroring out :

    


    $ ffmpeg -i Input.mxf -vcodec prores_ks -profile:v 4 -y Output.mxf 


    


    I'm getting this output

    


    ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 12.0.5 (clang-1205.0.22.9)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4_2 --enable-shared --enable-pthreads --enable-version3 --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-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mxf, from 'Input.mxf':
  Metadata:
    operational_pattern_ul: 060e2b34.04010101.0d010201.01010100
    uid             : b52947e8-d982-11ec-9a2d-b42e99ab5f4d
    generation_uid  : b52947e9-d982-11ec-a612-b42e99ab5f4d
    company_name    : Adobe Inc.
    product_name    : Premiere Pro
    product_version_num: 2.0.0.0.1
    product_version : 22.4.0
    application_platform: Mac OS X
    product_uid     : 0c3919fe-46e8-11e5-a151-feff819cdc9f
    toolkit_version_num: 5.3.6.0.1
    modification_date: 2022-05-22T03:53:15.000000Z
    material_package_umid: 0x060A2B340101010501010D1113000000F88BD5002197058861C9B42E99AB5F4D
    timecode        : 00:00:00;00
  Duration: 00:00:59.66, start: 0.000000, bitrate: 32803 kb/s
  Stream #0:0: Video: prores (4444) (ap4h / 0x68347061), yuva444p12le(tv, bt709, progressive), 1920x1080, SAR 1:1 DAR 16:9, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Metadata:
      file_package_umid: 0x060A2B34010101050101051213D028BEF88BD500219705880089B42E99AB5F4D
      file_package_name: Source Package
      track_name      : Track 1
Stream mapping:
  Stream #0:0 -> #0:0 (prores (native) -> prores (prores_ks))
Press [q] to stop, [?] for help
Output #0, mxf, to 'Output.mxf':
  Metadata:
    operational_pattern_ul: 060e2b34.04010101.0d010201.01010100
    uid             : b52947e8-d982-11ec-9a2d-b42e99ab5f4d
    generation_uid  : b52947e9-d982-11ec-a612-b42e99ab5f4d
    timecode        : 00:00:00;00
    material_package_umid: 0x060A2B340101010501010D1113000000F88BD5002197058861C9B42E99AB5F4D
    product_version_num: 2.0.0.0.1
    modification_date: 2022-05-22T03:53:15.000000Z
    application_platform: Mac OS X
    product_uid     : 0c3919fe-46e8-11e5-a151-feff819cdc9f
    toolkit_version_num: 5.3.6.0.1
    encoder         : Lavf58.76.100
  Stream #0:0: Video: prores (ap4h / 0x68347061), yuva444p10le(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn
    Metadata:
      file_package_umid: 0x060A2B34010101050101051213D028BEF88BD500219705880089B42E99AB5F4D
      file_package_name: Source Package
      track_name      : Track 1
      encoder         : Lavc58.134.100 prores_ks
[mxf @ 0x7fbbbc008200] could not get prores profile0:00.00 bitrate=N/A speed=   0x    
av_interleaved_write_frame(): Operation not permitted
Error writing trailer of Output.mxf: Unknown error occurred
frame=   33 fps= 27 q=-0.0 Lsize=       0kB time=00:00:00.03 bitrate=   0.0kbits/s speed=0.027x    
video:67kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!


    


    Above I can't even fully see the error since the red text over black background covers the screen :
enter image description here

    


    I have also tried the following encoding options :

    


     -c:v qtrle -pix_fmt argb 


    


    to which, I'm getting the following error :

    


    track 0: could not find essence container ul, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Error initializing output stream 0:0 --
Conversion failed!


    


    In case this is helpful, I'm displaying MediaInfo for the source file :
enter image description here

    


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

    


    ProtoneMedia\ LaravelFFMpeg\ Exporters\ EncodingException

ffmpeg failed to execute command '/usr/bin/ffmpeg' '-y' '-threads' '12' '-i' '/www/wwwroot/hamza/storage/app/upload/videos/uofH50IWXt3Doqacxkd2tATboUT5gLfVGaAWyvsS.mp4' '-map' '0' '-vcodec' 'libx264' '-b:v' '1000k' '-sc_threshold' '0' '-g' '48' '-hls_playlist_type' 'vod' '-hls_time' '10' '-hls_segment_filename' '/www/wwwroot/hamza/storage/app/streamable_videos/21_0_1000_%05d.ts' '-master_pl_name' 'temporary_segment_playlist_0.m3u8' '-acodec' 'aac' '-b:a' '128k' '/www/wwwroot/hamza/storage/app/streamable_videos/21_0_1000.m3u8': 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='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --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 'master_pl_name'. Error splitting the argument list: Option not found


    


    I'm using a job to do conversation

    


    ConvertVideoForStreaming.php Job :

    


    <?php

namespace App\Jobs;
set_time_limit(60000);

use FFMpeg;
use Carbon\Carbon;
use App\Models\Video;
use FFMpeg\Format\Video\X264;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Storage;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;

class ConvertVideoForStreaming implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    public $video;

    public function __construct(Video $video)
    {
        $this->video = $video;
    }

    public function handle()
    {
        // create some video formats...
        $lowBitrateFormat  = (new X264)->setKiloBitrate(500);
        $highBitrateFormat = (new X264)->setKiloBitrate(3000);

        // open the uploaded video from the right disk...
        FFMpeg::fromDisk($this->video->disk)
            ->open($this->video->path)

            // call the 'exportForHLS' method and specify the disk to which we want to export...
            ->exportForHLS()
            ->withRotatingEncryptionKey(function ($filename, $contents) {
                Storage::disk('streamable_keys')->put($filename, $contents);
            })
            // we'll add different formats so the stream will play smoothly
            // with all kinds of internet connections...
            ->addFormat($lowBitrateFormat)
            ->addFormat($highBitrateFormat)

            // call the 'save' method with a filename...
            ->toDisk('streamable_videos')
            ->save($this->video->id . '.m3u8');

        // update the database so we know the convertion is done!
        $this->video->update([
            'converted_for_streaming_at' => Carbon::now(),
        ]);
    }
}


    


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

    


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

    


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

    


            ->save($this->video->id . '.m3u8');


    


    all the lines before that line work perfectly.

    


    any ideas on how to fix that ?

    


    Full error screenshot

    


    ConvertVideoForStreaming.php

    


  • FFMPEG muxed as a private data stream and may not be recognized upon reading

    4 mars 2021, par Jimmy

    I've came across a mkv with a codec of hevc , while trying to either convert it to m3u8 or mp4 I received this following message :

    


    [mpegts @ 0x7f94de014600] Stream 1, codec flac, is muxed as a private data stream and may not be recognized upon reading.

    


    Is there something wrong with my ffmpeg parameters ?

    


    To m3u8 :
#1 :

    


    ffmpeg -i aaa.mkv -s 1920x1080 -codec copy -bsf:v hevc_mp4toannexb -start_number 0 -hls_time 10 -segment_time 10 -hls_list_size 0 -f hls aaa.m3u8


    


    #2 :

    


    ffmpeg -i aaa.mkv -s 1920x1080 -codec copy -c:v libx264 -bsf:v hevc_mp4toannexb -start_number 0 -hls_time 10 -segment_time 10 -hls_list_size 0 -f hls aaa.m3u8


    


    To mp4 :

    


    #1 :

    


    ffmpeg -i aaa.mkv -c copy ccc.mp4


    


    #2 :

    


    ffmpeg -y -i aaa.mkv -codec copy -strict -2 ccc.mp4


    


    Edit :
FFMPEG dump :

    


    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.27)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --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
Input #0, matroska,webm, from 'aaa.mkv':
  Metadata:
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2016-12-20T17:13:09.000000Z
  Duration: 00:24:18.92, start: 0.000000, bitrate: 4395 kb/s
    Chapter #0:0: start 0.000000, end 96.096000
    Metadata:
      title           : CHAPTER00
    Chapter #0:1: start 96.096000, end 134.050000
    Metadata:
      title           : CHAPTER01
    Chapter #0:2: start 134.050000, end 224.099000
    Metadata:
      title           : CHAPTER02
    Chapter #0:3: start 224.099000, end 708.082000
    Metadata:
      title           : CHAPTER03
    Chapter #0:4: start 708.082000, end 1302.050000
    Metadata:
      title           : CHAPTER04
    Chapter #0:5: start 1302.050000, end 1392.015000
    Metadata:
      title           : CHAPTER05
    Chapter #0:6: start 1392.015000, end 1428.051000
    Metadata:
      title           : CHAPTER06
    Chapter #0:7: start 1428.051000, end 1458.920000
    Metadata:
      title           : CHAPTER07
    Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS             : 3671317
      BPS-eng         : 3671317
      DURATION        : 00:24:18.916000000
      DURATION-eng    : 00:24:18.916000000
      NUMBER_OF_FRAMES: 34979
      NUMBER_OF_FRAMES-eng: 34979
      NUMBER_OF_BYTES : 669518018
      NUMBER_OF_BYTES-eng: 669518018
      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)
    Metadata:
      BPS             : 722497
      BPS-eng         : 722497
      DURATION        : 00:24:18.920000000
      DURATION-eng    : 00:24:18.920000000
      NUMBER_OF_FRAMES: 17097
      NUMBER_OF_FRAMES-eng: 17097
      NUMBER_OF_BYTES : 131758259
      NUMBER_OF_BYTES-eng: 131758259
      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, hls, to 'aaa.m3u8':
  Metadata:
    encoder         : Lavf58.45.100
    Chapter #0:0: start 0.000000, end 96.096000
    Metadata:
      title           : CHAPTER00
    Chapter #0:1: start 96.096000, end 134.050000
    Metadata:
      title           : CHAPTER01
    Chapter #0:2: start 134.050000, end 224.099000
    Metadata:
      title           : CHAPTER02
    Chapter #0:3: start 224.099000, end 708.082000
    Metadata:
      title           : CHAPTER03
    Chapter #0:4: start 708.082000, end 1302.050000
    Metadata:
      title           : CHAPTER04
    Chapter #0:5: start 1302.050000, end 1392.015000
    Metadata:
      title           : CHAPTER05
    Chapter #0:6: start 1392.015000, end 1428.051000
    Metadata:
      title           : CHAPTER06
    Chapter #0:7: start 1428.051000, end 1458.920000
    Metadata:
      title           : CHAPTER07
    Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)
    Metadata:
      BPS             : 3671317
      BPS-eng         : 3671317
      DURATION        : 00:24:18.916000000
      DURATION-eng    : 00:24:18.916000000
      NUMBER_OF_FRAMES: 34979
      NUMBER_OF_FRAMES-eng: 34979
      NUMBER_OF_BYTES : 669518018
      NUMBER_OF_BYTES-eng: 669518018
      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s16 (default)
    Metadata:
      BPS             : 722497
      BPS-eng         : 722497
      DURATION        : 00:24:18.920000000
      DURATION-eng    : 00:24:18.920000000
      NUMBER_OF_FRAMES: 17097
      NUMBER_OF_FRAMES-eng: 17097
      NUMBER_OF_BYTES : 131758259
      NUMBER_OF_BYTES-eng: 131758259
      _STATISTICS_WRITING_APP: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.4.2 ('So High') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2016-12-20 17:13:09
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-20 17:13:09
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x7f8b8a020e00] Stream 1, codec flac, is muxed as a private data stream and may not be recognized upon reading.