
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 (76)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (9132)
-
upload video with display and upon submit that video by post method to PHP file where FFMPEG command execute
30 avril 2019, par Asfand YarMain Task
Video -> Audio (Wav or mp3)
Procedure :
User select video and its display and upload in video player thats fine but when i try to upload via the form tag and post method to php file (Bash.php) where that video have to be converted into the audio (mp3 or wav) i am using FFMPEG library (THat command work perfectly into the Command line) I am trying to do it in php (exec) but didn’t find fruitful resultsI try FFMPEG command to convert uploaded mp4 video to audio because i need audio to transcription
HTML CODE<video width="500" controls="controls" preload="none">
</video>
<div class="container d-flex justify-content-center">
<input type="file" accept="video/*" />
</div>
<code class="echappe-js"><script type="text/javascript"><br />
video_file.onchange = function(){<br />
<br />
var files = this.files;<br />
<br />
var file = URL.createObjectURL(files[0]); <br />
<br />
video_player.src = file; <br />
<br />
video_player.load();}; <br />
<br />
</script><?php
if(isset($_FILES['video'])){
$errors = array();
$file_name = $_FILES['video']['name'];
$file_size = $_FILES['video']['size'];
$file_tmp = $_FILES['video']['tmp_name'];
$file_type = $_FILES['video']['type'];
$file_ext = strtolower(end(explode('.',$_FILES['video']['name'])));
$expensions = array("mp4","avi");
if(in_array($file_ext, $expensions[0])===false){
$errors[]="Extension not allowed, please choose a Mp4 or Avi file video";
}
$convertedFile='fine.mp3';
if(empty($errors)==true){
move_uploaded_file($file_tmp, './'.$file_name);
exec("ffmpeg -i $file_name -vn fine.mp3");
}else{
print_r($errors);
}
$target = "http://localhost:8888/client/dynamic/recognize";
sleep(3);
if($file_ext == "mp4" or $file_ext == "avi"){
exec("python /path/client2.py fine.mp3 > output.txt 2> output2.txt");
$output = exec("cat output.txt"); }
echo $output;
}
?> -
avformat/{isom,mov,movenc} : add support for CMAF DASH roles
15 juillet 2021, par Jan Ekströmavformat/isom,mov,movenc : add support for CMAF DASH roles
This information is coded in a standard MP4 KindBox and utilizes the
scheme and values as per the DASH role scheme defined in MPEG-DASH.
Other schemes are technically allowed, but where multiple schemes
define the same concepts, the DASH scheme should be utilized.Such flagging is additionally utilized by the DASH-IF CMAF ingest
specification, enabling an encoder to inform the following component
of the roles of the incoming media streams.A test is added for this functionality in a similar manner to the
matroska test.Signed-off-by : Jan Ekström <jan.ekstrom@24i.com>
-
Converting images to video in Android using FFmpeg
28 février 2024, par sneha Lathaval cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"



this command is not able to .convert the images into video my images are in the format below :


JPEG_20240228_115618_ 
JPEG_20240228_115622_



Im using the below code :


fun convertImagesToVideo(imageList: List<file>, outputVideoPath: String, frameRate: Int) {
 val inputFiles = imageList.joinToString(" ") { it.absolutePath }
 val imagesFolder = File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), "camerax")

 val cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"


 val cmd = arrayOf(
 "-framerate", frameRate.toString(),
 inputFiles,
 "-c:v", "mpeg4",
 "-pix_fmt", "yuv420p",
 outputVideoPath
 ).joinToString(" ")

 executeFfmpegCommand(cm, outputVideoPath)
 }

 fun executeFfmpegCommand(exe: String, filePath: String) {

 //creating the progress dialog
 val progressDialog = ProgressDialog(this@FolderListActivity)
 progressDialog.setCancelable(false)
 progressDialog.setCanceledOnTouchOutside(false)
 progressDialog.show()

 /*
 Here, we have used he Async task to execute our query because if we use the regular method the progress dialog
 won't be visible. This happens because the regular method and progress dialog uses the same thread to execute
 and as a result only one is a allowed to work at a time.
 By using we Async task we create a different thread which resolves the issue.
 */
 FFmpegKit.executeAsync(exe, { session ->
 val returnCode = session.returnCode
 lifecycleScope.launch(Dispatchers.Main) {
 if (returnCode.isValueSuccess) {
 binding.videoView.setVideoPath(filePath)
 //change the video_url to filePath, so that we could do more manipulations in the
 //resultant video. By this we can apply as many effects as we want in a single video.
 //Actually there are multiple videos being formed in storage but while using app it
 //feels like we are doing manipulations in only one video
 input_video_uri = filePath
 //play the result video in VideoView
 binding.videoView.start()
 progressDialog.dismiss()
 Toast.makeText(this@FolderListActivity, "Filter Applied", Toast.LENGTH_SHORT).show()
 } else {
 progressDialog.dismiss()
 Log.d("TAG", session.allLogsAsString)
 Toast.makeText(this@FolderListActivity, "Something Went Wrong!", Toast.LENGTH_SHORT)
 .show()
 }
 }
 }, { log ->
 lifecycleScope.launch(Dispatchers.Main) {
 progressDialog.setMessage("Applying Filter..${log.message}")
 }
 }) { statistics -> Log.d("STATS", statistics.toString()) }
 }
</file>