Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (100)

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

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

Sur d’autres sites (11171)

  • yt_dlp gives a strange message : "Seek to desired resync point failed. Seeking to earliest point available instead." and "File ended prematurely"

    16 septembre 2023, par nikita goncharov

    I have a discord bot (discord.py) in python and it can play music. Lastly it had trouble in playing the music, giving some random warnings but it mostly worked. But now it gives me this message :

    


    [matroska,webm @ 000001570fe92d40] Seek to desired resync point failed. Seeking to earliest point available instead.


    


    [matroska,webm @ 000001570fe92d40] File ended prematurely


    


    and also this one

    


    Warning: program compiled against libxml 211 using older 209


    


    As I saw this is a very common warning but I still have no Idea how to fix it.

    


    I will leave the code of the bot down bellow :

    


    Ytdlp setup (I have renamed the librarie to be youtube_dl)

    


    youtube_dl.utils.bug_reports_message = lambda: ''


ytdl_format_options = {
    'format': 'bestaudio/best',
    'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
    'restrictfilenames': True,
    'noplaylist': True,
    'nocheckcertificate': True,
    'ignoreerrors': False,
    'logtostderr': True,
    'quiet': True,
    'no_warnings': False,
    'default_search': 'auto',
    'source_address': '0.0.0.0',  # bind to ipv4 since ipv6 addresses cause issues sometimes
}

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

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)


class YTDLSource(discord.PCMVolumeTransformer):
    def __init__(self, source, *, data, volume=0.5):
        super().__init__(source, volume)

        self.data = data

        self.title = data.get('title')
        self.url = data.get('url')
        self.duration = data.get('duration')
        img = ""
        imgs = ['']
        for image in data.get("thumbnails"):
            img = image["url"]
            imgs.append(image["url"])
        self.image = img
        self.thumbnails = imgs


    


    The play command :

    


    # if message.author.voice_client is not None:
try:
    print(1)
    sessionChannel = message.author.voice.channel
except:
    embedAns = discord.Embed(color=discord.Color.from_rgb(255, 201, 115))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    embedAns.add_field(name="Player", value=f'To play audio you must join a voice channel!',
                       inline=True)
    embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
    # embedImg.image.width = "800"
    await message.channel.send(embed=embedAns)
try:
    print(2)
    await message.author.voice.channel.connect(reconnect=False)
    print(2)
except:
    pass
"""embedAns = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
# embedImg.set_image(url=player.image)
# embedImg.type = "image"
embedAns.add_field(name="Player", value=f'Succesfuly joined voice channel to play music in {sessionChannel}! Loading in youtube song... Please wait...', inline=True)
embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
# embedImg.image.width = "800"
await message.channel.send(embed=embedAns)"""
try:
    print(3)
    load = await message.channel.send(
        f'Succesfuly joined voice channel to play music in {sessionChannel}')
    print(4)
    url = matched.group(1)
    player = await YTDLSource.from_url(url, loop=client.loop, stream=True)
    # Embed = await YTDLSource.from_url(url, loop=client.loop, stream=False)
    sessionChannel.guild.voice_client.play(player, after=lambda e: print(
        f'Player error: {e}') if e else None)
    await load.delete()
    sec = player.duration % 60
    temp = player.duration // 60
    min = temp % 60
    hour = temp // 60
    if hour == 0:
        timeStr = f"{min:02d}:{sec:02d}"
    else:
        timeStr = f"{hour}:{min:02d}:{sec:02d}"
    # await message.reply()
    embedImg = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    embedImg.set_thumbnail(url=player.image)
    embedImg.add_field(name="Player", value=f'Now playing: **{player.title}** \n `{timeStr}`',
                       inline=True)
    embedImg.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)
    # embedImg.image.width = "800"
    await message.channel.send(embed=embedImg)
except Exception as ex:
    embedAns = discord.Embed(color=discord.Color.from_rgb(255, 119, 115))
    # embedImg.set_image(url=player.image)
    # embedImg.type = "image"
    # embedImg.set_thumbnail(url=player.image)
    embedAns.add_field(name="Player Error",
                       value=f'Couldent play audio on {sessionChannel} \n`{ex}`', inline=True)
    embedAns.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)


    


  • FFmpegKit : "Operation not permitted" in many android devices [closed]

    26 août 2023, par Mrm

    I'm using FFmpegKit 5.1.LTS in my application. A lot of my users have reported that they cannot edit videos (10%). When I tried to obtain their logs, I noticed that many of them are encountering an 'Operation not permitted' error. My users have granted all the necessary storage permissions (READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE).

    


    Here is an example :

    


    User device :

    


    Manufacturer : Sony
    
Model : SOG05
    
ABI : [arm64-v8a, armeabi-v7a, armeabi]
    
Android SDK : 33

    


    Command :
ffmpeg -y -ss 12.789 -to 32.654  -i "/storage/emulated/0/Movies/lts/lts_20230824_100739.mp4" -filter_complex "[0:v:0] scale=1080:2520,setsar=1/1[v0];[0:a:0]atempo=1.0,volume=1.0[a0]; [v0] [a0] concat=n=1:v=1:a=1[conv][cona];[conv] drawtext=fontfile=/system/fonts/Roboto-Regular.ttf:text=lts edit:x=(w-text_w-69.55932):y=(h-text_h-36.61017):fontsize=84:fontcolor=white:shadowcolor=black:shadowx=5.4915257:shadowy=5.4915257[conv]" -map "[conv]" -map "[cona]"  -c:v libx264 -force_key_frames 'expr:gte(t,n_forced*1)' -preset ultrafast  -r 30  -shortest /storage/emulated/0/Movies/lts/lts_20230826_092915_edited.mp4

    


    And the full log :

    


    ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
  built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)

  configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64-lts/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-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl

  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Movies/lts/lts_20230824_100739.mp4':

  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2023-08-24T01:08:17.000000Z
    com.android.version: 13
  Duration: 00:00:34.27, start: 0.000000, bitrate: 16316 kb/s
  Stream #0:0[0x1](eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1080x2520, 16181 kb/s, 59.11 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2023-08-24T01:08:17.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]

  Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2023-08-24T01:08:17.000000Z
      handler_name    : SoundHandle
      vendor_id       : [0][0][0][0]

/storage/emulated/0/Movies/lts/lts_20230826_092915_edited.mp4: Operation not permitted


    


  • Ffmpeg : How to fix error "Please choose an encoder manually" ?

    9 juillet 2023, par Alex

    I am trying to convert a x265 videofile to a x264 format so it can be played on a television. I am trying the following command

    


    ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -map 0:0 -map 0:1 -map 0:2 test.mp4


    


    to select videos stream 0:0 for video, stream 0:1 for audio and stream 0:2 for the subtitle. However I get an error

    


    Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder


    


    How to fix this command ?

    


    P.S. I am not an expert in ffmpeg or videos conversion/formats/encodings/audio formats/subtitle formats.

    


    I found EXACTLY ONE google search result with the exact error phrase HERE. And that is not helping as I do not even understand the first sentence.

    


    Below is the output for the first three streams :

    


    Input #0, matroska,webm, from 'input.mkv':
  Metadata:
    creation_time   : 2021-03-25T09:13:20.000000Z
    ENCODER         : Lavf58.29.100
  Duration: 00:23:57.65, start: 0.000000, bitrate: 2103 kb/s
  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 (default)
    Metadata:
      title           : [Judas] x265 10b
      ENCODER         : Lavc58.54.100 libx265
      BPS-eng         : 1973938
      DURATION-eng    : 00:23:55.017000000
      NUMBER_OF_FRAMES-eng: 34406
      NUMBER_OF_BYTES-eng: 354079423
      _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Japanese
      BPS-eng         : 128000
      DURATION-eng    : 00:23:55.086000000
      NUMBER_OF_FRAMES-eng: 61804
      NUMBER_OF_BYTES-eng: 22961378
      _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass
    Metadata:
      title           : English
      BPS-eng         : 196
      DURATION-eng    : 00:23:53.580000000
      NUMBER_OF_FRAMES-eng: 478
      NUMBER_OF_BYTES-eng: 35129
      _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES


    


    I found a related question HERE whose answer I do not fully understand. However, I tried the following command

    


    ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -map 0:0 -map 0:1 -map 0:2 -c:s mov_text  test.mp4


    


    but got a new error

    


    Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


    


    I thought I am defining an "encoder" for output stream "#0:0" (which I think is video), namely libx264. So what else to do here ?

    


    I tried -acode copy and also to use -qp 0 in the command line which all did not work.