
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (86)
-
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 (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (12316)
-
Why PyAudio doesn't read 'mp3' ?
22 octobre 2020, par freshITmeatI tried to read file that I give with absolute path.
When I run my code first that I see is this message :


D:\prog\datascience\anaconda\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
 warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)



I tried this :


PATH_TO_FFMPEG = 'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'
pydub.AudioSegment.converter = r'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'



And I separately installed
ffmpeg
withpip
. But it didn't help.
When I try this :

raw_sound = pydub.AudioSegment.from_mp3(file=track_path)



where
track_path
is correct absolute path generated automatically.
So I got this this error :

Traceback (most recent call last):
 File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec
 pydev_imports.execfile(file, globals, locals) # execute the script
 File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
 exec(compile(contents+"\n", file, 'exec'), glob, loc)
 File "D:/testtask2/test_task/testtask/get_mffc.py", line 165, in <module>
 slice_all_in_a_dir('May 27 2020 LNC/Hydrophone 1/raw_records')
 File "D:/testtask2/test_task/testtask/get_mffc.py", line 70, in slice_all_in_a_dir
 slice_samples(track_path= [file],
 File "D:/testtask2/test_task/testtask/get_mffc.py", line 48, in slice_samples
 raw_sound = pydub.AudioSegment.from_mp3(file=track_path)
 File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 738, in from_mp3
 return cls.from_file(file, 'mp3', parameters=parameters)
 File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 680, in from_file
 stdin_data = file.read()
AttributeError: 'list' object has no attribute 'read'
python-BaseException
</module>


-
How to combine/concatenate videos stored in AWS S3 bucket based on title of the file name
9 juin 2020, par orangecubeI am using a service that allows me to record videos that get automatically pushed to a folder (submissions) in an S3 bucket. There are multiple videos however they need to be grouped together and concatenated so the output is one video per group.



So, basically, any tips on how I can take videos based on the title and stitch them together ?



Example :



Submissions folder will have :



a-100-2.mp4
a-200-6.mp4
b-123-5.mp4




Expected output in processed folder :



a.mp4 - (both 'a' videos get stitched together)
b.mp4 - (only 'b' gets sent over since there is only one video.)




Thanks in advance !



Edit : Some additional and detailed information below if it helps.



The files will be labeled with :
name-location-video_token-stream_token.mp4



Need help creating a script or process that will concatenate the videos using the procedure outlined below :



Processing rules (back end) :



- 

-
Check if videos have same video_token in ‘submissions folder’. If so, keep the newest one and delete old ones.
-
Take all videos in ‘submissions folder’ with same name and location in title and concatenate the videos. Save output video to a new folder in the bucket labeled as the location for the folder name. 
Output file name : 
name-location-year.mp4.







EXAMPLE :



Submissions folder :
joey-toronto-001-354.mp4



joey-toronto-001-241.mp4 - this will be deleted



joey-toronto-103-452.mp4



alex-montreal-352-232.mp4



alex-montreal-452-223.mp4



Resulting output :



Toronto folder :



Joey-toronto-2020.mp4



Montreal folder :



Alex-montreal-2020.mp4


-
-
MobileFFMPEG Output file #0 does not contain any stream
30 septembre 2020, par AlhajI am using implementation 'com.arthenica:mobile-ffmpeg-full:4.4'


I just want o crop audio file to 10 second to 20 second


'''
fun cropAudio(input :String)


val newFileName = UUID.randomUUID().toString()

 val location: String = getBatchDirectoryName()!!

 val output: String = location + "/" + newFileName + ".mp3"

 val temp=" -i $input -ss 60 -to 70 $output"

 Log.e("alhaj", " a $s")

 FFmpeg.execute(temp, object : ExecuteCallback {

 fun onSuccess(message: String?) {
 uploadOnFirebase(output, title)
 mediaPlayer.stop()
 Log.e("alhaj", message!!)
 }

 override fun apply(executionId: kotlin.Long, returnCode: Int) {
 if (returnCode == RETURN_CODE_SUCCESS) {
 Log.i("alhaj", "Async command execution completed successfully.");
 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.i("alhaj", "Async command execution cancelled by user.");
 } else {
 Log.i("alhaj", String.format("Async command execution failed with rc=%d.", returnCode));
 }
 }
 }.toString())
}



'''


but i am getting error


'''


2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin I/mobile-ffmpeg : Output #0, mp3, to ' -i /storage/emulated/0/AJ backup/songs/Maroon 5 - Memories (Official Video) ( 256kbps cbr ).mp3 -ss 60 -to 70 /storage/emulated/0/Android/data/com.example.touchmeadmin/files/Music/830350fd-5218-4ee0-bd99-0dd50b802930.mp3' :
2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin E/mobile-ffmpeg : Output file #0 does not contain any stream


'''