
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (47)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (6373)
-
Why the converted videos file size is greater than original file size ?
6 décembre 2011, par svkI am using ffmpeg to convert the videos into mp4.Its working fine and its playing with high quality.No problem.But the worst case is I uploaded 14Mb file and after converting it goes to 30 Mb file.I am using the following the script to convert
exec("ffmpeg -i videowithaudio.flv -vcodec libx264 -vpre hq -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s 480x320 video_out_file.mp4 > output1.txt 2> apperror1.txt"); //webkit compatible
I am using PHP for executing this command.Could you please help me how to reduce the file size from this 30Mb (nearly to uploaded file size is ok) with same quality.
-
Generate special file list
11 novembre 2020, par michelHow can I get a list like this in bash :
I have to create a list like this and then concatenate the files for ffmpeg.


ls -l stream
-rw-r - r-- 1 root root 0 Nov 9 20:30 Il.Gatto.Nero.2019.mp4
-rw-r - r-- 1 root root 0 Nov 9 20:30 My.Name.2019.mp4
-rw-r - r-- 1 root root 0 Nov 9 20:30 Terminator.2019.mp4
-rw-r - r-- 1 root root 0 Nov 9 20:30 spot-Il.Gatto.Nero.2019.mp4
-rw-r - r-- 1 root root 0 Nov 9 20:30 spot-My.Name.2019.mp4
-rw-r - r-- 1 root root 0 Nov 9 20:30 spot-Terminator.2019.mp4

i need to create a txt file like this:

file '/stream/spot-Il.Gatto.Nero.2019.mp4'
file '/stream/Il.Gatto.Nero.2019.mp4'
file '/stream/spot-Terminator.2019.mp4'
file '/stream/Terminator.2019.mp4'
file '/stream/spot-My.Name.2019.mp4'
file '/stream/My.Name.2019.mp4'
file ..........



ls -l | awk {'print "file \047/data/"$9 "\047" '} | awk NF
file '/data/'
file '/data/Il.Gatto.Nero.2019.mp4'
file '/data/Il.Mio.Nome.2019.mp4'
file '/data/Terminator.2019.mp4'
file '/data/spot-Il.Gatto.Nero.2019.mp4'
file '/data/spot-Il.Mio.Nome.2019.mp4'
file '/data/spot-Terminator.2019.mp4'



Greetings Mich


in php have write this :


<?php
$db_host = 'localhost';
$db_name = 'genlist';
$db_user = '********';
$db_pass = '********';
$conn = mysqli_connect($db_host, $db_user, $db_pass);

if (!$conn) {
 die("Connection failed: " . mysqli_connect_error());
} else {
//echo "Connected successfully";
}
mysqli_select_db($conn,$db_name) or die ("Error select db: " . mysqli_error());

$sql = "SELECT * FROM tb_movie ORDER BY RAND()";
$query = mysqli_query($conn,$sql);

while($result = mysqli_fetch_assoc($query)) {

$data = "file '/data/EagleCinema/CinemaDramaNew/stream/" . $result['spot'] . "'"."\n";
$data .= "file '/data/EagleCinema/CinemaDramaNew/stream/" . $result['movie'] . "'"."\n";

file_put_contents('/var/www/html/random-cinema-drama.txt', $data, FILE_APPEND );

}


?>



php result :


file '/data/EagleCinema/CinemaDramaNew/stream/spot-Demolition.-.Amare.E.Vivere.2015.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/Demolition.-.Amare.E.Vivere.2015.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/spot-Una.Giusta.Causa.2018.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/Una.Giusta.Causa.2018.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/spot-Io.Prima.Di.Te.2016.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/Io.Prima.Di.Te.2016.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/spot-A.Beautiful.Day.2017.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/A.Beautiful.Day.2017.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/spot-Un.Improbabile.Amicizia.2019.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/Un.Improbabile.Amicizia.2019.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/spot-The.Intervention.2016.mp4'
file '/data/EagleCinema/CinemaDramaNew/stream/The.Intervention.2016.mp4'



...


i need same result but with bash script no DB, only scan ffrom directory the file and generate the list.


-
correct way to download a mp4 [Audio only] file as a mp3 file via php
3 février 2018, par KapilI am asking this question because i found it impossible as far my knowledge stands. However i believe here on stackoverflow a lot of genius persons visits so maybe someone can give a good advice / trick.
My problem is, I am downloading a audio/mp4 file of youtube hosted on googlevideo.com’s server.
My PHP code for this purpose :
$mp3path is url of videoheader('Content-Description: File Transfer');
if(strpos($mp3path, "https://") === false) {
header('Content-length: ' . size($mp3path)); //size is custom function
}
header("Content-Type: audio/MP4A-LATM, audio/MP4A, audio/m4a, audio/mp4, audio/mp4a, audio/mp4-audio, audio/mpeg");
header('Content-Type: application/force-download');
header("Accept-Ranges: bytes");
header('Content-Transfer-Encoding: binary');
header('Content-disposition: attachment; filename="'.$title.'.mp3"');
header('Connection: Keep-Alive');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
header("Cache-Control: private", false);
header('Pragma: no-cache');
readfile($mp3path);
exit;I can download this audio file but few mp3 players are not able to play it when i did some research on by using mp3val [mp3val.sourceforge.net]. I found this file do not contain sample-rate, bit-rate or some other required codecs inside the file.
Error received from mp3val : Unknown file formatI know one possible way of doing this which is ffmpeg but i am looking for a less time consuming option of doing this because first ffmpeg download the whole file and then convert it to mp3 and save it on server. It takes a lot of time.
I am looking for a easiest solution in which, i dont want to save the whole file on my server. I want to call this file from remote server and want to add sample rate, bit-rate in the file and then just somehow with php i want to start download on browser.
All i mean to say i need a faster solution. I have seen 2 yt to mp3 converter, They are doing the same thing, giving instant download. i dont know how ?
Please if you think its a stupid question or not possible then dont report to stackoverflow. I am trying to figure it out that’s why i am asking this question here. I hope you’ll understand my curiosity.
Thanks,