
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (106)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (12321)
-
doc/libav-merge : add skipped fixup commits to the list of missing changes
13 novembre 2016, par Hendrik Leppkes -
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.


-
Revision 36767 : L’option dans le cfg On vire _DIR_RACINE dans l’adresse du fichier
30 mars 2010, par kent1@… — LogL’option dans le cfg On vire _DIR_RACINE dans l’adresse du fichier