
Recherche avancée
Autres articles (38)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (6002)
-
ffmpeg - concatenate mp4 files + audio from a folder structure
17 septembre 2022, par Ionut BejinariuI use this batch file to concatenate several .mp4 files and then join them with an audio song.


@echo off

mkdir ".\Export" 
set "sourcedir=" 
set "outputdir=Export" 

for %%i in (*.mp4) do echo file '%%i'>> lista.txt
ffmpeg -f concat -safe 0 -i lista.txt -c copy mergedmp4.mp4

for %%F in (*.wav *.mp3) DO ( 
 ffmpeg -i mergedmp4.mp4 -i "%%F" -map 0:v -map 1:a -vcodec copy -c:a aac -b:a 320k "%outputdir%\%%~nF.mp4"
)

del lista.txt
del mergedmp4.mp4



So far so good, It's working


I would describe what will help me more and I need to happen :


I have this folder structure
\Video-15-sec\Canal-1\Videos-1, Videos-2 .. Videos-15
or sometimes can be until Videos-20 or more, depends how I organize them.

All of Videos folders have .mp4 files in them and are renamed all the time
1.mp4, 2.mp4, 3.mp4 ... 25.mp4 ... 35.mp4 ..etc
each of the Videos folders respect the name of file starting with 1.mp4 to how many are in the folder.

The directory structure is like this :




──Video-15-sec
│ ├───Canal-1
│ │ ├───Videos-1 (.mp4 files in it)
│ │ ├───Videos-2 (.mp4 files in it)
│ │ ├───Videos-3 (.mp4 files in it)
│ │ ├───Videos-4 ...
│ │ ├───Videos-5
│ │ ├───Videos-6
│ │ ├───Videos-7
│ │ ├───Videos-8
│ │ ├───Videos-9
│ │ ├───Videos-10
│ │ ├───Videos-11
│ │ ├───Videos-12
│ │ ├───Videos-13
│ │ ├───Videos-14
│ │ └───Videos-15
│ ├───Canal-2
│ │ ├───Videos-1 (.mp4 files in it)
│ │ ├───Videos-2 (.mp4 files in it)
│ │ ├───Videos-3 (.mp4 files in it)
│ │ ├───Videos-4 ...
│ │ ├───Videos-5
│ │ ├───Videos-6
│ │ ├───Videos-7
│ │ ├───Videos-8
│ │ ├───Videos-9
│ │ ├───Videos-10
│ │ ├───Videos-11
│ │ ├───Videos-12
│ │ ├───Videos-13
│ │ ├───Videos-14
│ │ └───Videos-15
│ ├───Canal-3
│ │ ├───Videos-1 (.mp4 files in it)
│ │ ├───Videos-2 (.mp4 files in it)
│ │ ├───Videos-3 (.mp4 files in it)
│ │ ├───Videos-4 ...
│ │ ├───Videos-5
│ │ ├───Videos-6
│ │ ├───Videos-7
│ │ ├───Videos-8
│ │ ├───Videos-9
│ │ ├───Videos-10
│ │ ├───Videos-11
│ │ ├───Videos-12
│ │ ├───Videos-13
│ │ ├───Videos-14
│ │ └───Videos-15
│ ├───Canal-4



I want to have a separate folder
\allmusic
where I will have all the music, and the batch file will always export with the name of the song.

all the mp4 files of each separate folder
Videos-1, Videos-2 ... Videos-10...
, will be concatenated separately and then joined with a single song, each separate folder, with one song each. All the songs andVideos
folders in loop, until all my songs are done.

The video created will be exported in a separate folder
\Export-all-Videos


Actions of Batch file :


─Video-15-sec
│ ├───Canal-1
│ │ ├───Videos-1 (concatenate.mp4 files from) + 1 song -> Folder \Export-all-Videos\name of the song.mp4
│ │ ├───Videos-2 (concatenate.mp4 files from) + 1 song -> Folder \Export-all-Videos\name of the song.mp4
│ │ ├───Videos-3 (concatenate.mp4 files from) + 1 song -> Folder \Export-all-Videos\name of the song.mp4
│ │ ├───Videos-4 ...
│ │ ├───Videos-5
│ │ ├───Videos-6
│ │ ├───Videos-7



I hope someone has a solution for this.


Thank you very much


-
ffmpeg normalized mp3 audio and album art went missing
29 août 2022, par SomeoneInNeedOfHelpI used below ffmpeg command to normalized audio of my songs and the album art is missing after running below command


ffmpeg -i "Original.mp3" -af loudnorm=I=-18:LRA=4:TP=-1 -ar 44100 -map 0:v -b:a 192k "Normalized.mp3"



ffprobe Original.mp3


Input #0, mp3, from 'Original.mp3':
 Metadata:
 encoded_by : Switch Free Home Version © NCH Software
 comment :
 disc : 1
 track : 0
 album_artist : Artist
 genre : Pop
 artist : Artist
 title : Song Title
 album : Song album
 date : 2001
 Duration: 00:04:15.91, start: 0.000000, bitrate: 200 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
 Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1279x1280 [SAR 96:96 DAR 1279:1280], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 title : thumbnail
 comment : Cover (front)



ffprobe Normalized.mp3


Input #0, mp3, from 'Original.mp3':
 Metadata:
 encoded_by : Switch Free Home Version © NCH Software
 comment :
 disc : 1
 track : 0
 album_artist : Artist
 genre : Pop
 artist : Artist
 title : Song Title
 album : Song album
 date : 2001
 encoder : Lavf58.67.100
Duration: 00:04:15.92, start: 0.025056, bitrate: 265 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
 Metadata:
 encoder : Lavc58.12
 Stream #0:1: Video: png, rgb24(pc), 1279x1280 [SAR 1:1 DAR 1279:1280], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 title : thumbnail
 comment : Cover (front)



How can I keep the album art from the source file ?


-
Anomalie #1876 : Non prise en compte des guillemets dans le surlignage
14 juin 2011, par cedric -voir aussi #2025