
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 (62)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (8841)
-
HLS Encoding Resulting in "No Supported Source Was Found"
18 février 2023, par PaulamonopolyI'm currently facing the most bizare problems I've come across, so I'm hoping someone can explain why this is happening. I'm currently converting my Movie and Show libary to HLS for buffering and bandwidth reasons etc.


My file structure for these movies and shows are as follows :


/Movies/[TMDB ID]/[TMDB ID].mp4


/Shows/[TMDB ID/[Season Number]/[Episode Number]/[Episode Number].mp4


I have converted my entire movie collection successfully using the below command.


find /* -type f -name "*.mp4" -exec realpath {} \; -exec ffmpeg -i {} -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls -hls_segment_filename '{}-P%03d' {}.m3u8 \;



This is taking my named mp4 files and converting them to the
originalname.m3u8
with chunks following the naming scheme oforiginalname-PXXX
where P indicates the part number. I know there's no file extensions attached with the chunks but it's not needed.

You can view this result here : Example


This result also works if loaded into HLS Player : HLS Player


So there is evidently nothing wrong with the converting of my videos or even the result of the videos.


Now, if I convert a TV Show using the exact same command, it does indeed convert them, it does use a slightly different file structure as with seasons and episodes etc which can be seen above, but now it results in the error :
"No Supported Source Was Found"
in the console and repeatedly tries to playPart 000
without success.

This can be seen here : Example


And the errors if loaded into HLS Player : HLS Player


I have tried changing numerous things to try and resolve this error as well as checking things, the things I have checked are the media condition itself maybe it's a corrupted file ?


The original Mp4 file can be played here without any problems, so we know the Mp4 file originally is perfectly fine. I have also tried adding a file extension to the chunks such as
.ts
and.mp4
etc etc with also no success.

I have even thought maybe it's the directories so I have moved a show into the movies directory with no success, I have also moved a movie into the show directory which resulted in a working HLS Stream so it's nothing to do with the directories.


I have tried exending the file name length thinking it's possibly the naming scheme with
1.m3u8
not been long enough of a file name by using placeholder text such as03051.m3u8
as well as the chunk naming scheme03051-PXXX
possibly not been long enough.

I have noticed though that using this command :


ffmpeg -allowed_extensions ALL -i {} -c copy -bsf:a aac_adtstoasc {}.mkv \;



Does recombine my HLS video correctly with the same file size etc, however I have noticed that the video itself is corrupt and doesn't play. So this makes be believe the issue lies within the converting of the initial Mp4 file into m3u8.


-
how do go through multiple folders using mmpeg to generate multiple videos ?
15 février 2023, par Megan DarcyI have this piece of code that works as expected for me, but it only converts the images in a single folder into a single video.


If I have multiple folders, and they may be recursive, how do I do that ?


The file structure could be either something like this but the names are different :


VideoFolder1

|

|— SubFolderA



SubsubFolder2 (contains images with similar names but different numbers e.g Tobias.023.png, Tobias.024.png, Tobias.025.png)




|
|— SubFolderB




SubsubFolder3 (contains images with similar names but different numbers e.g Joey.027.png, Joey.028.png, Joey.029.png)




This is my current code :


import os
os.system("ffmpeg -f image2 -r 30 -i ./Front/4ZJSI_Colored_Li_F.%04d.png -vcodec mpeg4 -y ./videos/4ZJSI_Colored_Li_Front.mp4")
 
 



How do I convert the contents of Subsubfolder2 and subsubfolder3 and subFolderA etc to multiple videos of the same name as per the content of each folder and subfolder ? .


Thanks !


-
Run scripts in other instances and pass variables from the first script to the second
3 février 2023, par Tyrone HirtI have the following script :


Get-ChildItem -Path $RenderClient -Recurse -Filter "ffmpeg crop.ps1" |
 Where-Object { Test-Path (Join-Path $_.DirectoryName *.mp4) } |
 ForEach-Object {
 try {
 Start-Process -WorkingDirectory $_.DirectoryName powershell.exe "-NoExit -File `"$($_.FullName)`""
 }
 catch {
 Write-Host -NoNewline -ForegroundColor Red "Não foi possivel cortar o arquivo:"; Write-Host -NoNewline -ForegroundColor White " $_.Name "; Write-Host -NoNewline -ForegroundColor White "`nMensagem de erro:"; Write-Host -NoNewline -ForegroundColor Red " $($_.Exception.Message)`n";
 }
 }
 }



This code is a part of my first script, basically it looks for
ffmpeg crop.ps1
files that have a.mp4
file in the same folder and runs those scripts.

The issue is that I would like to make the process a little cleaner and more practical, currently when I need to make a change in the
ffmpeg crop
script I need to open all the folders and change one by one.

To avoid this, I would like to have a single file
ffmpeg crop.ps1
, and every time a.mp4
file is found in the path specified in the first script, an instance of that single scriptffmpeg crop.ps1
is triggered, too I need$_.FullName
and$_.Name
of each.mp4
file found to be passed to each respective instance so that I can use these values within theffmpeg crop
script.

I've been racking my brain for days trying to get this to work, I'll be very grateful for any help with this.


Edit - in more detail


The $RenderClient folder of my script is
C:/Videos
inside that folder there are several child folders that follow the logic :01-01
,01-02
,02-01
,02-02
...



Currently, inside each child folder there is a script
ffmpeg crop.ps1
, this script is responsible for cutting a piece of the video that is inside that folder, however it is only activated if there is a.mp4
file to be cut, in the same folder that it, that is, for the scriptffmpeg crop.ps1
to be activated in folder01-01
, it is necessary to have the script itself and a.mp4
file.

This script would be triggered




This script would not be triggered




The point is, I would like to make this more practical, so instead of having one
ffmpeg crop.ps1
script inside each child folder, I would like to have only oneffmpeg crop.ps1
script, and it would stay in the parent folder.

I would like it to work like this :




For that, I would need to change my code, so that the script recursively searches for
.mp4
files inside the parent folder, for each file that is found, it must open an instance of the scriptffmpeg crop.ps1
that is in the parent folder and pass the variables$_.Name
and$_.FullName
of the files found to the respective instance of the openffmpeg crop.ps1
script, so that each instance will be executed correctly.