
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (64)
-
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (4089)
-
What is a good/simple way to obtain a stream of song metadata from an online radio station ?
29 juin 2022, par espWhat is a good/simple way to obtain a stream of song metadata (artist names and song titles etc.) from an online radio station ? Just the metadata, not the data (media). On bash command-line for now, thinking of getting it to a database (eg MySQL) in future.


I have had success using FFMpeg to do this (simply
FFMpeg -i <streamurl></streamurl>
). However it only reports the song playing once - when it is run. If I specify an outputfile (e.g.-f null -
) then it continues to run but does not report any updates to the "now playing" metadata. If I do not specify an output file then, after reporting that metadata, it quits (which in my case is more useful !).

I can imagine one way round this would be to make a polling-loop, say every 10 seconds, only reporting when the metadata has changed (since the previous time). Does anyone have a battle-tested example ?


But is there a better (or cooler way) to achieve this ?


-
Extract thumbnail from video in amazon s3 and store it in amazon s3 [closed]
24 juin 2021, par Kanav RainaI want to extract thumbnail from video and store it on s3.


import ffmpeg

url="https://link_to_s3_video.mp4"

(
 ffmpeg
 .input(url, ss='00:00:03') 
 .output("frame.png", pix_fmt='rgb24', frames='1') 
 .overwrite_output()
 .run()
)



I am able to extract image but now how should I pass this image to file_upload function and store it on s3


def file_upload(file, filename):
 link = f"https://{PUBLIC_BUCKET_NAME}.s3.us-east-2.amazonaws.com/images/{filename}"
 try:
 s3.Object(PUBLIC_BUCKET_NAME, f"images/{filename}").load()
 except ClientError as e:
 if e.response['Error']['Code'] == "404":
 try:
 s3_client.upload_fileobj(
 file,
 PUBLIC_BUCKET_NAME,
 f"images/{filename}",
 ExtraArgs={'ACL': 'public-read'}
 )

 return 200, link
 except ClientError as e:
 logging.error(e)
 return 500, ""
 else:
 return 500, ""
 else:
 return 409, link



Thanks


-
ffmpeg stucks after each song
11 juin 2017, par HalfbaxWhen I start to stream to youtube, it works fine. Until the first song is over. After it the stream is in a loop of the last 20 seconds. I dont know why. The next song wont ever streamed.
The audio stream is lag-free. <- tested
case $1 in
start)
# VLC audio stream
su vlc -c "screen -dmS $VLC_PID_NAME cvlc --random /home/music/chill/*.mp3 --sout '#transcode{vcodec=none,acodec=mp3,ab=128}:standard{access=http,mux=raw,dst=localhost:8080/live.ogg}'"
sleep 2
# FFMPEG
# Static image + vlc audio stream
screen -dmS $FFMPEG_PID_NAME ffmpeg -loop 1 -framerate 2 -i '/home/forest.jpg' -i 'http://localhost:8080/live.ogg' -s "$INRES" -r "$FPS" -f alsa -ac 2 -vcodec libx264 -s "$OUTRES" -g 2 -acodec libmp3lame -b:a 128k -b:v 200k -ar 44100 -threads 0 -preset:v "$QUAL" -f flv "rtmp://a.rtmp.youtube.com/live2/$STREAM_KEY"
;;