
Recherche avancée
Autres articles (26)
-
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 (6016)
-
FFMPEG Batch Copy Metadata from "Folder1File1.mp3" to "Folder2File1.mp3" in different folders
27 février 2020, par VektorzI have two separate files in separate folders with the same name and I would like to transfer the metadata from the file in "folder1" to "folder2".
Then I would like to add a whole bunch of files fitting this same format and batch transfer all of the metadata information.From a stack exchange thread I’ve tried :
"The following script will loop through the the files in one directory, find corresponding files in a second directory and then combine these two files into a third output directory
dir1=FIRST DIRECTORY
dir2=SECOND DIRECTORY
output=OUTPUT DIRECTORY
for file in $(ls $dir1); do
ffmpeg -i "$dir1/$file" -i "$dir2/$file" -map 1 -c copy \
# copies all global metadata from in0.mkv to out.mkv
-map_metadata 0 \
# copies video stream metadata from in0.mkv to out.mkv
-map_metadata:s:v 0:s:v \
# copies audio stream metadata from in0.mkv to out.mkv
-map_metadata:s:a 0:s:a \
"$outdir/$file"
done"But for the life of me I cannot get this to work properly and it is a bit overkill. He continues on saying :
If you want to make something reuseable you could put this in a script with the following header (remove the assignment for dir1, dir2 and output in the script above). And then call it as script.sh dir1 dir2 outdir
#!/bin/bash
set -x errexit # exit immediately on error
dir1="$1"
dir2="$2"
output="$3"And I am totally lost. Can someone please help me to get this to work and walk me through it a bit easier as I’m fairly inexperienced with code/FFMPEG.
Thank you.
-
ffmpeg : edit metadata and automatically increment their name + set the value of "Title" based on "Name"
29 décembre 2018, par J. DoesThis PowerShell code divides a large audio file (
sound1
) in 5 minutes parts and saves them assound100_1.mp3
,sound1_002.mp3
...ffmpeg -i $file_name_complete -f segment -segment_time 300 -c copy $fileNameOnly"_"%03d$fileExtensionOnly
-
How can I set the metadata
title
to be the same than thefile name
? -
And how can I also (on the same time) edit the
Album
metadata with an incremental name (it’s useless, but it’s to understand how that work). It should bealb_1
,alb_2
.
I have seen on the docs that I should use :
-metadata title="my title"
But :
-
should I repeat each timeEDIT : yes according to this-metadata
for each metadata ? -
how can I increment the number since the title need to be quoted (
-metadata title="$fileNameOnly""_"%03d
won’t work since the last quote is missing) -
how can I set the
title
field so it take the same value than theName
?
This did not work :
ffmpeg -i $file_name_complete -f segment -segment_time 300
-metadata title="$fileNameOnly""_"%03d album="test"
-c copy $fileNameOnly"_"%03d$fileExtensionOnlyI get this error :
-metadata : The term ’-metadata’ is not recognized as the name of a cmdlet
-
-
Why Do Some of the Codecs in FFMPEG's Supported Codec List Show "encoders :" or "decoders :" in Parenthesis ?
4 mai 2020, par spacemanIf you open the Command Prompt, and run
ffmpeg -codecs
,

you will get a long list of Codecs that FFMPEG supports.


Here's a small sample of the list :



DEV.L. h261 H.261
 DEV.L. h263 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 D.V.L. h263i Intel H.263
 DEV.L. h263p H.263+ / H.263-1998 / H.263 version 2
 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb)
 D.V.LS hevc H.265 / HEVC




Now If you briefly go over the whole list,

you see that most Codecs in this list appear with their Name and Description,

but some of the Codecs also include parenthesis in the Description, and in the parenthesis,

they specify "encoders :" or "decoders :".


For example :



1)



DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb)




2)



DEVILS jpeg2000 JPEG 2000 (decoders: jpeg2000 libopenjpeg) (encoders: jpeg2000 libopenjpeg)




3)



DEV.L. msmpeg4v3 MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4) (encoders: msmpeg4)




4)



DEA.L. aac AAC (Advanced Audio Coding) (encoders: aac libvo_aacenc)




5)



DEA.L. amr_nb AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb libopencore_amrnb) (encoders: libopencore_amrnb)
 DEA.L. amr_wb AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb libopencore_amrwb) (encoders: libvo_amrwbenc)




My question :



Why do some Codecs have those parenthesis, specifying Encoders/Decoders,

while other (in fact : most) codecs don't have these parenthesis ?