Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (98)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8210)

  • FFMPEG Executing Command Error (index entry 349 + TemporalOffset 1 = 350, which is out of bounds)

    21 octobre 2022, par Marcelo Lopes Nunes

    When I conversion file MXF using ffmpeg command :

    


    fmpeg -y -i TEST.mxf -vcodec mpeg2video -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 20000k -g 15 -bf 2 -r 25 -s 1920x1080 -aspect 16:9 -top 1 -flags:v +ilme+ildct -vf yadif=1 -acodec pcm_s24le -map 0:0 -map 0:a -map 0:a -map 0:a -map 0:a -ar 48000 -ac 1 CONVERT.mxf

    


    FFmpeg command Execution error index entry 349 + TemporalOffset 1 = 350, which is out of bounds below log.

    


      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
[mxf @ 0x560422b8bc20] index entry 349 + TemporalOffset 1 = 350, which is out of bounds
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2: mono


    


    So after this, the audio isn't synchronized with the movie.
I executed the same command with a lot of other MXFs it worked and I don't have the FFmpeg error in the log.

    


    Mediainfo MXF below.

    


            <track type="General">&#xA;            <videocount>1</videocount>&#xA;            <audiocount>2</audiocount>&#xA;            <othercount>3</othercount>&#xA;            <fileextension>mxf</fileextension>&#xA;            <format>MXF</format>&#xA;            XDCAM HD422&#xA;            1.3&#xA;            OP-1a&#xA;            Closed / Complete&#xA;            <filesize>91497029</filesize>&#xA;            <duration>14.000</duration>&#xA;            <overallbitrate>52284016</overallbitrate>&#xA;            <framerate>25.000</framerate>&#xA;            <framecount>350</framecount>&#xA;            <footersize>2629</footersize>&#xA;            <packagename>Source Package</packagename>&#xA;            0-00-00 00:00:00.000&#xA;            UTC 2022-10-19 10:23:49&#xA;            2022-10-19 11:23:49&#xA;            FFmpeg&#xA;            OP1a Muxer&#xA;            58.29.100.0.0&#xA;            58.29.100.0.0&#xA;        </track>&#xA;        <track type="Video">&#xA;            <streamorder>0</streamorder>&#xA;            <id>2</id>&#xA;            <format>MPEG Video</format>&#xA;            XDCAM HD422&#xA;            2&#xA;            4:2:2&#xA;            High&#xA;            Yes&#xA;            Default&#xA;            M=3, N=15&#xA;            Frame&#xA;            Frame&#xA;            <codecid>0D01030102046001-0401020201040300</codecid>&#xA;            <duration>14.000</duration>&#xA;            CBR&#xA;            <bitrate>50000000</bitrate>&#xA;            <width>1920</width>&#xA;            <height>1080</height>&#xA;            1920&#xA;            1080&#xA;            <pixelaspectratio>1.000</pixelaspectratio>&#xA;            <displayaspectratio>1.778</displayaspectratio>&#xA;            <framerate>25.000</framerate>&#xA;            <framecount>350</framecount>&#xA;            <colorspace>YUV</colorspace>&#xA;            <chromasubsampling>4:2:2</chromasubsampling>&#xA;            <bitdepth>8</bitdepth>&#xA;            <scantype>Interlaced</scantype>&#xA;            <scanorder>TFF</scanorder>&#xA;            Lossy&#xA;            <delay>0.000</delay>&#xA;            0.000&#xA;            00:00:00:00&#xA;            Group of pictures header&#xA;            Open&#xA;            Closed&#xA;            <streamsize>87500000</streamsize>&#xA;            <buffersize>2500608</buffersize>&#xA;            <extra>&#xA;                0&#xA;                8&#xA;            </extra>&#xA;        </track>&#xA;        <track type="Audio" typeorder="1">&#xA;            <streamorder>1</streamorder>&#xA;            <id>3</id>&#xA;            <format>PCM</format>&#xA;            Little&#xA;            Frame (AES)&#xA;            <codecid>0D01030102060300</codecid>&#xA;            <duration>14.000</duration>&#xA;            CBR&#xA;            <bitrate>1152000</bitrate>&#xA;            <channels>1</channels>&#xA;            <samplesperframe>1920</samplesperframe>&#xA;            <samplingrate>48000</samplingrate>&#xA;            <samplingcount>672000</samplingcount>&#xA;            <framerate>25.000</framerate>&#xA;            <framecount>350</framecount>&#xA;            <bitdepth>24</bitdepth>&#xA;            <delay>0.000</delay>&#xA;            No&#xA;            Container&#xA;            <streamsize>2016000</streamsize>&#xA;            0.02203&#xA;            <extra>&#xA;                0&#xA;                <locked>Yes</locked>&#xA;                <blockalignment>3</blockalignment>&#xA;            </extra>&#xA;        </track>&#xA;

    &#xA;

    I researched this problem on ffmpeg.org and I found "This implies there's a VBR index with slices. Probably because of mxf->slice_count = 1 ;&#xA;Slices are MXF's way of indexing VBR combined with CBR." but I don't know how I fix this.

    &#xA;

  • Why i get permission denied at docker ffmpeg execution

    24 octobre 2022, par Daniel Richter

    i want to make small gifs (miniclip) from a mp4 video using ffmpeg with php script in aws ecs.

    &#xA;

    The whole configuration is working with the symfony built-in server. Now i put the controller into local docker and now i get the following permission denied error :

    &#xA;

    ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.1 &#xA;(Alpine 11.2.1_git20220219) 20220219 configuration: --prefix=/usr --enable-avfilter -- &#xA;enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse -- &#xA;enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 -- &#xA;enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc -- &#xA;enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable- &#xA;libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static -- &#xA;disable-librtmp --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp -- &#xA;enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --disable-debug &#xA;libavutil 57. 17.100 / 57. 17.100 &#xA;libavcodec 59. 18.100 / 59. 18.100 &#xA;libavformat 59. 16.100 / 59. 16.100 &#xA;libavdevice 59. 4.100 / 59. 4.100 &#xA;libavfilter 8. 24.100 / 8. 24.100 &#xA;libswscale 6. 4.100 / 6. 4.100 &#xA;libswresample 4. 3.100 / 4. 3.100 &#xA;libpostproc 56. 3.100 / 56. 3.100 &#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, &#xA;from &#x27;https://vendery-streaming.fra1.cdn.digitaloceanspaces.com/myvideo.mp4&#x27;: Metadata: major_brand : isom minor_version : 512 &#xA;compatible_brands: isomiso2avc1mp41 &#xA;encoder : Lavf58.24.101 Duration: 00:18:10.37, start: 0.000000, &#xA;bitrate: 3405 kb/s Stream #0:0[0x1](und): &#xA;Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 540x960, 3331 kb/s, 30 &#xA;fps, 30 tbr, 15360 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] &#xA;Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, &#xA;fltp, 69 kb/s (default) &#xA;Metadata: handler_name : &#xA;SoundHandler vendor_id : [0][0][0][0] /var/www/html/public/myimage.gif: Permission denied&#xA;

    &#xA;

    What exactly tells me the error ? The folder /var/www/html/public/ exists but isnt writable ?

    &#xA;

    The command from php i run the script is :

    &#xA;

    $output = shell_exec(&#x27;/usr/bin/ffmpeg -y -ss 255 -t 4 -i &#x27;.$url.&#x27; -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 /var/www/html/public/&#x27;.$outputFile.&#x27; 2>&amp;1&#x27;);&#xA;echo $output;&#xA;

    &#xA;

    any idea is welcome.

    &#xA;

      &#xA;
    1. the user is wrong. shell_exec(&#x27;whoami&#x27;); gives me www-data, but why ?? My dockerfile have the following in : RUN chown -R root:root /var/www/html/public
    2. &#xA;

    &#xA;

    docker-compose.yaml

    &#xA;

    symfony:&#xA;    mem_limit: 500M&#xA;    mem_reservation: 500M&#xA;    container_name: &#x27;${APP_NAME}-${APP_ENV}-backend&#x27;&#xA;    #environment:&#xA;        #- DATABASE_URL="mysql://${MYSQL_USER}:${MYSQL_PASS}@database/${MYSQL_DB}?serverVersion=mariadb-10.8.3"&#xA;    build:&#xA;        context: .&#xA;        target: symfony&#xA;    #restart: unless-stopped&#xA;    ports:&#xA;        - 8000:8000 #browser / container&#xA;

    &#xA;

  • discord.player ffmpeg process 12040 successfully terminated with return code of 1

    28 novembre 2024, par morichh

    code :

    &#xA;

    @client.tree.command()&#xA;async def play(interaction: Interaction, url: str):&#xA;    global voice&#xA;    channel = interaction.user.voice.channel&#xA;    voice = get(client.voice_clients, Guild=interaction.guild)&#xA;    if voice and voice.is_connected():&#xA;        await voice.move_to(channel)&#xA;        await interaction.response.send_message(f"error")&#xA;    else:&#xA;        voice = await channel.connect()&#xA;        await interaction.response.send_message(f"joined")&#xA;    voice.play(discord.FFmpegPCMAudio(executable="C:/ffmpeg/bin/ffmpeg.exe", source = url))    &#xA;

    &#xA;

    error :

    &#xA;

    2022-12-10 19:32:48 INFO     discord.voice_client Connecting to voice...&#xA;2022-12-10 19:32:48 INFO     discord.voice_client Starting voice handshake... (connection attempt 1)&#xA;2022-12-10 19:32:48 INFO     discord.voice_client Voice handshake complete. Endpoint found russia9326.discord.media&#xA;2022-12-10 19:32:50 INFO     discord.player ffmpeg process 12040 successfully terminated with return code of 1.&#xA;

    &#xA;

    initially there was an error that ffmpeg was not found, I downloaded it separately, indicated the path to it and now it's coming out like this

    &#xA;