
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (21)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (4734)
-
FFmpegKit : "Operation not permitted" in many android devices [closed]
26 août 2023, par MrmI'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



-
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 goncharovI 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)



-
FFmpeg : Re-Streaming RTSP to RTMP (via Nginx) crash randomly with "Connection reset by peer" Error
5 octobre 2023, par XavI try to Re-stream a RTSP stream from my local network to a RTMP stream (using Nginx), using the following command :


ffmpeg -re -rtsp_transport tcp -i "rtsp://some_ip/Streaming/Channels/101" -vcodec libx264 -f flv -filter:v fps=5 rtmp://127.0.0.1:3500/live/stream



It always starts well and I can watch the resulting stream


But after some random time, it crashes with this output :


av_interleaved_write_frame(): Connection reset by peer49.40 bitrate=6002.5kbits/s speed=0.755x 
[flv @ 0x55b00cbd7140] Failed to update header with correct duration. 
[flv @ 0x55b00cbd7140] Failed to update header with correct filesize. Error writing trailer of rtmp://127.0.0.1:3500/live/stream: Connection reset by peer 



Most of time it crashes after 'a few' frames (400 - 800), but some times only after 10 minutes or a day.


I have tried a lot of things found on several forums


The original prompt was


ffmpeg -re -i "rtsp://some_ip/Streaming/Channels/101" -f hevc -filter:v fps=5 rtmp://127.0.0.1:3500/live/stream



with the same error, but at every try and never more than 200 frames.


- 

- I added
-rtsp_transport tcp
-> Same error , but some warnings disappear - I changed the video codec from
hevc
toflv
(I read somewhere hevc was not well supported by rtmp) -> I have seen some improvement. It seems to prevent crashes, but not all the time.






Thank you for your help


- I added