Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (53)

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

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4406)

  • FFmpeg converting to .265 corrupts videos

    25 juin 2022, par Alfa

    I'm trying to convert and compress videos in React Native using FFmpegKit, what is strange is it is very slow regardless of the preset I use, Also, no matter how big the input video is, it always produces a video less than 1MB that is corrupt.
This is my first time using FFmpeg, I'm using it due to the lack of good video compressing libraries on React Native.

    


    My command looks like this :

    


    const getFFmpegCommand = (input: string, output: string) => {
  const scale = `"scale='if(gte(iw,ih),min(720,iw),-2):if(lt(iw,ih),min(720,ih),-2)'"`;
  const preset = '-preset veryfast ';
  const ffmpegCommand = `-i ${input} -y -crf 28 -vf ${scale} ${preset} -c:v libx265 ${output}`;
  return ffmpegCommand;
};


    


    This is my log output

    


        ffmpeg version v4.5-dev-3393-g30322ebe3c
    LOG   Copyright (c) 2000-2021 the FFmpeg developers
    LOG  
    LOG    built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
    LOG    configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --disable-sdl2 --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl
    LOG    libavutil      57. 13.100 / 57. 13.100
    LOG    libavcodec     59. 15.102 / 59. 15.102
    LOG    libavformat    59. 10.100 / 59. 10.100
    LOG    libavdevice    59.  1.100 / 59.  1.100
    LOG    libavfilter     8. 21.100 /  8. 21.100
    LOG    libswscale      6.  1.102 /  6.  1.102
    LOG    libswresample   4.  0.100 /  4.  0.100
    LOG  Guessed Channel Layout for Input Stream #0.1 : mono
    LOG  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///data/user/0/com.orbis.cybersight/files/95fdb965-5074-421f-b6b0-9e67332550ca/VID_20220625_211041.mp4':
    LOG    Metadata:
    LOG      major_brand     :
    LOG  mp42
    LOG  
    LOG      minor_version   :
    LOG  0
    LOG  
    LOG      compatible_brands:
    LOG  isommp42
    LOG  
    LOG      creation_time   :
    LOG  2022-06-25T19:11:17.000000Z
    LOG  
    LOG      location        :
    LOG  +37.4234-122.0839/
    LOG  
    LOG      location-eng    :
    LOG  +37.4234-122.0839/
    LOG  
    LOG      com.android.version:
    LOG  11
    LOG  
    LOG    Duration:
    LOG  00:00:33.68
    LOG  , start:
    LOG  0.000000
    LOG  , bitrate:
    LOG  8302 kb/s
    LOG  
    LOG    Stream #0:0
    LOG  [0x1]
    LOG  (eng)
    LOG  : Video: h264 (avc1 / 0x31637661), yuv420p(tv, gbr/reserved/reserved, progressive), 1280x720, 9007 kb/s
    LOG  , SAR 1:1 DAR 16:9
    LOG  ,
    LOG  22.69 fps,
    LOG  90k tbr,
    LOG  90k tbn
    LOG   (default)
    LOG  
    LOG      Metadata:
    LOG        creation_time   :
    LOG  2022-06-25T19:11:17.000000Z
    LOG  
    LOG        handler_name    :
    LOG  VideoHandle
    LOG  
    LOG        vendor_id       :
    LOG  [0][0][0][0]
    LOG  
    LOG      Side data:
    LOG  
    LOG  displaymatrix: rotation of -90.00 degrees
    LOG  
    LOG    Stream #0:1
    LOG  [0x2]
    LOG  (eng)
    LOG  : Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, fltp, 12 kb/s
    LOG   (default)
    LOG  
    LOG      Metadata:
    LOG        creation_time   :
    LOG  2022-06-25T19:11:17.000000Z
    LOG  
    LOG        handler_name    :
    LOG  SoundHandle
    LOG  
    LOG        vendor_id       :
    LOG  [0][0][0][0]
    LOG  
    LOG  [h264 @ 0xebd4c280] The "sub_text_format" option is deprecated: Deprecated, does nothing
    LOG  [amrnb @ 0xebd4dc00] The "sub_text_format" option is deprecated: Deprecated, does nothing
    LOG  Stream mapping:
    LOG    Stream #0:0 -> #0:0
    LOG   (h264 (native) -> hevc (libx265))
    LOG  
    LOG    Stream #0:1 -> #0:1
    LOG   (amr_nb (amrnb) -> aac (native))
    LOG  
    LOG  Press [q] to stop, [?] for help
    LOG  [aac @ 0xebd4a5d0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
    LOG  Output #0, mp4, to '/storage/emulated/0/Android/data/com.orbis.cybersight/files/3dfb9ef6-6cb3-4adf-9777-8fb4c7762dc7.mp4':
    LOG    Metadata:
    LOG      major_brand     :
    LOG  mp42
    LOG  
    LOG      minor_version   :
    LOG  0
    LOG  
    LOG      compatible_brands:
    LOG  isommp42
    LOG  
    LOG      com.android.version:
    LOG  11
    LOG  
    LOG      location        :
    LOG  +37.4234-122.0839/
    LOG  
    LOG      location-eng    :
    LOG  +37.4234-122.0839/
    LOG  
    LOG      encoder         :
    LOG  Lavf59.10.100
    LOG  
    LOG    Stream #0:0
    LOG  (eng)
    LOG  : Video: hevc (hev1 / 0x31766568), yuv420p(tv, gbr/reserved/reserved, progressive), 720x1280 [SAR 1:1 DAR 9:16], q=2-31
    LOG  ,
    LOG  22.69 fps,
    LOG  2502k tbn
    LOG   (default)
    LOG  
    LOG      Metadata:
    LOG        creation_time   :
    LOG  2022-06-25T19:11:17.000000Z
    LOG  
    LOG        handler_name    :
    LOG  VideoHandle
    LOG  
    LOG        vendor_id       :
    LOG  [0][0][0][0]
    LOG  
    LOG        encoder         :
    LOG  Lavc59.15.102 libx265
    LOG  
    LOG      Side data:
    LOG  
    LOG  cpb:
    LOG  bitrate max/min/avg: 0/0/0 buffer size: 0
    LOG  vbv_delay: N/A
    LOG  
    LOG  
    LOG  displaymatrix: rotation of -0.00 degrees
    LOG  
    LOG    Stream #0:1
    LOG  (eng)
    LOG  : Audio: aac (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 48 kb/s
    LOG   (default)
    LOG  
    LOG      Metadata:
    LOG        creation_time   :
    LOG  2022-06-25T19:11:17.000000Z
    LOG  
    LOG        handler_name    :
    LOG  SoundHandle
    LOG  
    LOG        vendor_id       :
    LOG  [0][0][0][0]
    LOG  
    LOG        encoder         :
    LOG  Lavc59.15.102 aac


    


  • Youtube-dl and Ffmpeg

    25 juin 2022, par Joksy

    i have made a music bot with discord.py, but i get this info thing and it doesnt work anymore error [youtube] QxYdBvB8sOY: Downloading webpage 985104597242773505 [2022-06-25 07:45:51] [INFO    ] discord.player: Preparing to terminate ffmpeg process 37580. [2022-06-25 07:45:51] [INFO    ] discord.player: ffmpeg process 37580 has not terminated. Waiting to terminate... [2022-06-25 07:45:51] [INFO    ] discord.player: ffmpeg process 37580 should have terminated with a return code of 1. this is my code

    


    import discord
import os
import asyncio
import youtube_dl
from discord import *

token = "token is here"
prefix = "j!"
blocked_words = ["blocked words are here"]

voice_clients = {}

yt_dl_opts = {'format': 'bestaudio/best'}
ytdl = youtube_dl.YoutubeDL(yt_dl_opts)

ffmpeg_options = {'options': "-vn"}

intents = discord.Intents.default()
intents.message_content = True

client = discord.Client(intents=intents)


programmer_role = "987018590152699964"
            


@client.event
async def on_ready():
    print(f"Bot logged in as {client.user}")

@client.event
async def on_message(msg):
    if msg.author != client.user:
        if msg.content.lower().startswith(f"{prefix}info"):
            await msg.channel.send(f"Hi, Im JoksysBot Made By Joksy!")

        for text in blocked_words:
            if text in str(msg.content.lower()):
                await msg.delete()
                await msg.channel.send("Hey, Dont Say That!")
                return
        if msg.content.startswith(f"{prefix}play"):

            try:
                voice_client = await msg.author.voice.channel.connect()
                voice_clients[voice_client.guild.id] = voice_client
            except:
                print("error")

            try:
                url = msg.content.split()[1]

                loop = asyncio.get_event_loop()
                data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=False))

                song = data['url']
                player = discord.FFmpegPCMAudio(song, **ffmpeg_options, executable="C:\\Users\\jonas\\Documents\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\bin\\ffmpeg.exe")

                voice_clients[msg.guild.id].play(player)

            except Exception as err:
                print(err)

        if msg.content.startswith(f"{prefix}pause"):
            try:
                voice_clients[msg.guild.id].pause()
            except Exception as err:
                print(err)

        if msg.content.startswith(f"{prefix}resume"):
            try:
                voice_clients[msg.guild.id].resume()
            except Exception as err:
                print(err)

        if msg.content.startswith(f"{prefix}stop"):
            try:
                voice_clients[msg.guild.id].stop()
                await voice_clients[msg.guild.id].disconnect()
            except Exception as err:
                print(err)

client.run(token)



    


    its weird since all the other code in my bot works fine like the !info command, so it must be an error with either youtube-dl or ffmpeg. But then again it doesnt join the voice call in the first place so that might be the error. i added ffmpeg to path but i still wrote the path to it here player = discord.FFmpegPCMAudio(song, **ffmpeg_options, executable="C:\\Users\\jonas\\Documents\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\ffmpeg-2022-06-16-git-5242ede48d-full_build\\bin\\ffmpeg.exe"). i followed this tutorial for the bot https://www.youtube.com/watch?v=Q8wxin72h50&t=1040s i did everything he did but it didnt work. My discord.py version is 2.0.0 my Python version is 3.10.5 and my youtube_dl version is 2021.12.17 my ffmpeg download is ffmpeg-2022-06-16-git-5242ede48d-full_build. I tested it on discord.py 1.73 and it worked fine. This was in intellij though whilst my main program is in Visual Studio Code but i couldnt see it making any big difference so it could be the intents that makes the program not work.I couldnt see any mistakes in the code but im new to discord.py, youtube_dl and ffmpeg stuff so unless visual studio code showed me what i did wrong, i wouldnt notice. But what did i do wrong and how can i fix it ?

    


  • ffmpeg how mkv to mp4 with attachment in subtitle [closed]

    17 juillet 2022, par SoonHiru

    i have trouble,,
how re-encode MKV to MP4 with attachment font in substitles, before im muxing font using mkvmerge

    


    
Stream #0:0 : Video : h264 (High), yuv420p(tv, bt709, progressive), 848x480 [SAR 160:159 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata :
      ENCODER : Lavc58.134.100 libx264
      BPS : 266289
      DURATION : 00:23:40.044000000
      NUMBER_OF_FRAMES : 34047
      NUMBER_OF_BYTES : 47267933
      _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
      _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
      _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn) : Audio : aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata :
      BPS : 128000
      DURATION : 00:23:40.108000000
      NUMBER_OF_FRAMES : 61159
      NUMBER_OF_BYTES : 22721748
      _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
      _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
      _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(ind) : Subtitle : ass (default) (forced)
    Metadata :
      BPS : 1126
      DURATION : 00:23:30.250000000
      NUMBER_OF_FRAMES : 1596
      NUMBER_OF_BYTES : 198591
      _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
      _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
      _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3 : Attachment : none
    Metadata :
      filename : ABELBECKER-LIGHT_0.TTF
      mimetype : font/ttf
      title : Imported font from sha202.ass
  Stream #0:4 : Attachment : none
    Metadata :
      filename : Leander_0.ttf
      mimetype : font/ttf
      title : Imported font from sha202.ass
  Stream #0:5 : Attachment : none
    Metadata :
      filename : OvertheRainbowFlipped_0.ttf
      mimetype : font/ttf
      title : Imported font from sha202.ass
  Stream #0:6 : Attachment : none
    Metadata :
      filename : QlassikBold_TB - Copy_0_0.ttf
      mimetype : font/otf
      title : Imported font from sha202.ass
Unsupported codec with id 0 for input stream 3
Unsupported codec with id 0 for input stream 4
Unsupported codec with id 0 for input stream 5
Unsupported codec with id 0 for input stream 6


    


    I try using script

    


    ffmpeg -i input.mkv -vf subtitles=input.mkv output.mp4


    


    when finished, only the subtitles, not with attachments fonts