Recherche avancée

Médias (0)

Mot : - Tags -/masques

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (100)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (11496)

  • Stream specifier ':a' in filtergraph description [0:v][0:a][1:v][1:a]concat=a=1:n=2:v=1[s0][s1] matches no streams

    6 septembre 2022, par Mash

    I am using ffmpeg-python and I am trying to make a code that gets all the clips from a folder, converts all of them to the same format then merge all of them with their audio to one final video file.

    


    Here is how the python script looks like

    


    import os
import ffmpeg

dir = "./clips/"

# Reshape video
for f in os.listdir(dir):
  (
    ffmpeg
    .input(os.path.join(dir, f))
    .filter("scale", size="hd1080", force_original_aspect_ratio="increase")
    .filter('fps', fps=60, round='up')
    .output(str(os.path.join(dir, f))[:-4] + "_reshaped.mp4")
    .run()
  )

# Select reshaped video
files = []

for f in os.listdir(dir):
  if "_reshaped.mp4" in str(os.path.join(dir, f)):
    files.append(ffmpeg.input(str(os.path.join(dir, f))))

# eparate video and audio, then flat the array
video_and_audios_files = [item for sublist in map(lambda f: [f.video, f.audio], files) for item in sublist]

# concat all
joined = (
    ffmpeg
    .concat(*video_and_audios_files, v=1, a=1)
    .node
)

# merge video and audio
(
    ffmpeg
    .output(joined[0], joined[1], "./out.mp4")
    .run()
)



    


    Now here is my output, this is the output of the part of the code that merges every clip into one (aka the merge video and audio section of the code)

    


    ffmpeg version 5.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf &#xA;--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband&#xA;  libavutil      57. 28.100 / 57. 28.100&#xA;  libavcodec     59. 37.100 / 59. 37.100&#xA;  libavformat    59. 27.100 / 59. 27.100&#xA;  libavdevice    59.  7.100 / 59.  7.100&#xA;  libavfilter     8. 44.100 /  8. 44.100&#xA;  libswscale      6.  7.100 /  6.  7.100&#xA;  libswresample   4.  7.100 /  4.  7.100&#xA;  libpostproc    56.  6.100 / 56.  6.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./clips/clip1_reshaped.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.27.100&#xA;  Duration: 00:00:26.02, start: 0.000000, bitrate: 7432 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 7425 kb/s, 60 fps, 60 tbr, 15360 tbn (default)      &#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.37.100 libx264&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./clips/clip2_reshaped.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.27.100&#xA;  Duration: 00:00:05.00, start: 0.000000, bitrate: 11445 kb/s&#xA;  Stream #1:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt709/unknown, progressive), 1920x1080, 11438 kb/s, 60 fps, 60 tbr, 15360 tbn (default)        &#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.37.100 libx264&#xA;Stream specifier &#x27;:a&#x27; in filtergraph description [0:v][0:a][1:v][1:a]concat=a=1:n=2:v=1[s0][s1] matches no streams.&#xA;Traceback (most recent call last):&#xA;  File "c:\Users\USERNAME\Desktop\auto_poster\concat_vids.py", line 38, in <module>&#xA;    .run()&#xA;  File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\lib\site-packages\ffmpeg\_run.py", line 325, in run&#xA;    raise Error(&#x27;ffmpeg&#x27;, out, err)&#xA;ffmpeg._run.Error: ffmpeg error (see stderr output for detail)&#xA;</module>

    &#xA;

    Can I get some help please ? I am on Windows 10

    &#xA;

  • How do I convert that mp4 to the same format as this ts ?

    5 septembre 2022, par Orlando Bloom
    General&#xA;Complete name                            : D:/aaa.mp4&#xA;Format                                   : MPEG-4&#xA;Format profile                           : Base Media&#xA;Codec ID                                 : isom (isom/iso2/avc1/mp41)&#xA;File size                                : 2.73 MiB&#xA;Duration                                 : 6 s 154 ms&#xA;Overall bit rate mode                    : Variable&#xA;Overall bit rate                         : 3 715 kb/s&#xA;Encoded date                             : UTC 2022-09-04 09:49:04&#xA;Tagged date                              : UTC 2022-09-04 09:49:05&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L3.1&#xA;Format settings                          : CABAC / 2 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 2 frames&#xA;Codec ID                                 : avc1&#xA;Codec ID/Info                            : Advanced Video Coding&#xA;Duration                                 : 6 s 134 ms&#xA;Bit rate mode                            : Variable&#xA;Bit rate                                 : 3 578 kb/s&#xA;Maximum bit rate                         : 4 320 kb/s&#xA;Width                                    : 856 pixels&#xA;Height                                   : 480 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 30.000 FPS&#xA;Standard                                 : Component&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.290&#xA;Stream size                              : 2.62 MiB (96%)&#xA;Encoded date                             : UTC 2022-09-04 09:49:04&#xA;Tagged date                              : UTC 2022-09-04 09:49:05&#xA;Color range                              : Limited&#xA;Color primaries                          : BT.709&#xA;Transfer characteristics                 : BT.709&#xA;Matrix coefficients                      : BT.709&#xA;Codec configuration box                  : avcC&#xA;&#xA;Audio&#xA;ID                                       : 2&#xA;Format                                   : AAC LC&#xA;Format/Info                              : Advanced Audio Codec Low Complexity&#xA;Codec ID                                 : mp4a-40-2&#xA;Duration                                 : 6 s 154 ms&#xA;Source duration                          : 6 s 200 ms&#xA;Bit rate mode                            : Variable&#xA;Bit rate                                 : 137 kb/s&#xA;Maximum bit rate                         : 320 kb/s / 320 kb/s&#xA;Channel(s)                               : 2 channels&#xA;Channel layout                           : L R&#xA;Sampling rate                            : 44.1 kHz&#xA;Frame rate                               : 43.066 FPS (1024 SPF)&#xA;Compression mode                         : Lossy&#xA;Stream size                              : 104 KiB (4%)&#xA;Source stream size                       : 104 KiB (4%)&#xA;Default                                  : Yes&#xA;Alternate group                          : 1&#xA;Encoded date                             : UTC 2022-09-04 09:49:04&#xA;Tagged date                              : UTC 2022-09-04 09:49:05&#xA;mdhd_Duration                            : 6153&#xA;&#xA;&#xA;

    &#xA;

    General&#xA;ID                                       : 1 (0x1)&#xA;Complete name                            : D:/bbb.ts&#xA;Format                                   : MPEG-TS&#xA;File size                                : 3.13 MiB&#xA;Duration                                 : 10 s 763 ms&#xA;Overall bit rate mode                    : Variable&#xA;Overall bit rate                         : 2 434 kb/s&#xA;&#xA;Video&#xA;ID                                       : 256 (0x100)&#xA;Menu ID                                  : 1 (0x1)&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L3.2&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 4 frames&#xA;Codec ID                                 : 27&#xA;Duration                                 : 10 s 780 ms&#xA;Width                                    : 1 080 pixels&#xA;Height                                   : 606 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Variable&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Writing library                          : x264 core 142&#xA;Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=4 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=48 / lookahead_threads=4 / 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=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=20 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00&#xA;&#xA;Audio&#xA;ID                                       : 257 (0x101)&#xA;Menu ID                                  : 1 (0x1)&#xA;Format                                   : AAC LC&#xA;Format/Info                              : Advanced Audio Codec Low Complexity&#xA;Format version                           : Version 4&#xA;Muxing mode                              : ADTS&#xA;Codec ID                                 : 15-2&#xA;Duration                                 : 10 s 750 ms&#xA;Bit rate mode                            : Variable&#xA;Channel(s)                               : 2 channels&#xA;Channel layout                           : L R&#xA;Sampling rate                            : 44.1 kHz&#xA;Frame rate                               : 43.066 FPS (1024 SPF)&#xA;Compression mode                         : Lossy&#xA;Delay relative to video                  : -23 ms&#xA;&#xA;&#xA;

    &#xA;

    I tried "ffmpeg -i aaa.mp4 -c:v libx264 -c:a aac bbb.ts"

    &#xA;

    But the two converted ts, "-c copy" into a new mp4 cannot be played in the iPhone default player

    &#xA;

    I think my use of "ffmpeg -i aaa.mp4 -c:v libx264 -c:a aac bbb.ts" is wrong,

    &#xA;

    The following is the filler text, do not look

    &#xA;

    It looks like your post is mostly code ; please add some more details.&#xA;It looks like your post is mostly code ; please add some more details.&#xA;It looks like your post is mostly code ; please add some more details.

    &#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;