
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (54)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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.
Sur d’autres sites (6396)
-
ffmpeg output to file but overwrite (not append)
17 novembre 2019, par omega1I need to get the real time audio level from a file and I’m using this to write the level to the file volume.txt
ffmpeg -i file.mp4 -af astats=metadata=1:reset=10,ametadata=print:key=lavfi.astats.Overall.RMS_level -f null /dev/null 2> volume.txt
This works, but it appends each value to the file like this which grows significantly :
[Parsed_ametadata_1 @ 0x7fbae6209ac0] lavfi.astats.Overall.RMS_level=-22.294513
[Parsed_ametadata_1 @ 0x7fbae6209ac0] frame:32 pts:36864 pts_time:0.835918
[Parsed_ametadata_1 @ 0x7fbae6209ac0] lavfi.astats.Overall.RMS_level=-22.194567
[Parsed_ametadata_1 @ 0x7fbae6209ac0] frame:33 pts:38016 pts_time:0.862041
[Parsed_ametadata_1 @ 0x7fbae6209ac0] lavfi.astats.Overall.RMS_level=-22.197214But I need it to overwrite with just the current value like this :
[Parsed_ametadata_1 @ 0x7fbae6209ac0] frame:33 pts:38016 pts_time:0.862041
[Parsed_ametadata_1 @ 0x7fbae6209ac0] lavfi.astats.Overall.RMS_level=-22.197214How would I achieve this ?
Thank you.
-
2023-04-18 18:25:05 INFO discord.player ffmpeg process ##### successfully terminated with return code of 0
19 avril 2023, par I_am_thingI am making a discord music bot with discord.py and ctx, it uses Spotify


I am using FFmpeg for my music feature. This is my !play code


client_id = ''
client_secret = ''
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)

bot.volume = 0.5 # initial volume of the bot (can be changed)

@bot.command()
async def play(ctx, *, track_query):
 # check if the query is a valid Spotify link
 if 'open.spotify.com/track/' in track_query:
 track_id = track_query.split('/')[-1] # extract the track ID from the link
 else:
 # search for tracks with the given name
 track_results = sp.search(q=track_query, type='track', limit=1)
 if len(track_results['tracks']['items']) == 0:
 await ctx.send(f'Sorry, I could not find any track with the name "{track_query}".')
 return
 track_id = track_results['tracks']['items'][0]['id'] # get the track ID for the first search result
 track_info = sp.track(track_id) # get the track information for the given ID
 track_name = track_info['name']
 track_artist = track_info['artists'][0]['name']
 track_duration = time.strftime('%M:%S', time.gmtime(track_info['duration_ms']//1000))
 track_preview_url = track_info['preview_url'] # get the preview URL for the track
 if track_preview_url is None:
 await ctx.send(f'Sorry, the track "{track_name}" by {track_artist} cannot be played.')
 return
 voice_channel = ctx.author.voice.channel
 if voice_channel is None:
 await ctx.send('Please join a voice channel first.')
 return
 voice_client = await voice_channel.connect()
 audio_source = discord.FFmpegPCMAudio(track_preview_url, options="-b:a 128k -bufsize 512k")
 voice_client.play(audio_source, after=lambda e: print('Player error: %s' % e) if e else None)
 voice_client.source = discord.PCMVolumeTransformer(voice_client.source)
 voice_client.source.volume = bot.volume

 # format the embed message
 embed = discord.Embed(title=track_name, description=track_artist, color=0xff8c00)
 embed.add_field(name='Duration', value=track_duration, inline=True)
 embed.set_thumbnail(url=track_info['album']['images'][0]['url'])
 embed.set_footer(text='This music is from https://www.spotify.com/')
 await ctx.send(embed=embed)

 while voice_client.is_playing():
 await asyncio.sleep(1)
 await voice_client.disconnect()



I joined the unofficial ffmpeg discord server no one could find a fix I searched for ages and I couldn't fix it


-
AAC bitstream not in ADTS format and extradata missing in MPEG-TS output
6 décembre 2022, par AntonioI am using ffmpeg 5.1.2 stable version, and fdk-aac v0.1.6 .
I am trying to encapsulate a LATM/LOAS in an MPEGTS DVB standard output, using this cmdline :


ffmpeg -i <source> -af volume=volume=1dB:precision=fixed -c:a libfdk_aac -latm 1 -b:a 128k -c:v libx264 -pix_fmt yuv420p -preset veryfast -x264-params "nal-hrd=cbr:keyint=50:min-keyint=50" -b:v 3200k -minrate 3200k -maxrate 3200k -bufsize 6400k -flush_packets 0 -f mpegts -mpegts_original_network_id 1 -mpegts_transport_stream_id 1 -mpegts_service_id 1 -mpegts_service_type '0x19' -mpegts_flags 'latm' -mpegts_flags 'system_b' -mpegts_flags 'nit' -muxrate 4000000 -metadata service_provider='MyRTV' -metadata service_name='My TV' -tables_version 0 'udp://238.0.0.1:6000?ttl=1&pkt_size=1316&bitrate=4000000'
</source>


It logs and error :


[mpegts @ 0x556dc3e6a840] AAC bitstream not in ADTS format and extradata missing



What am I missing ?
Thanks in advance and best regards


I am trying to encapsulate a LATM/LOAS in an MPEGTS DVB standard output, so expect to have a LOAS/LATM output, but I obtain an ADTS output.