
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (38)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (7314)
-
Merge (concat) all video file present in '43. DP (Part1)' and put it into '43. DP (Part1)' and give name merged (concat) file to folder name
29 mars 2024, par Anu MauI have parent folder
alpha part 3
which contain child folder43. DP (Part1)
,44. DP (Part2)
,45. DP (Part3)
.

I want to merge (concat) all video file present in
43. DP (Part1)
and put it into43. DP (Part1)
and give name merged (concat) file to folder name.

And as it is do for all.


alpha part 3
├── 43. DP (Part1)
│ ├── _43.1_Introduction to DP.mp4
│ ├── _43.2_What is DP_ (Definition).mp4
│ ├── _43.3_Ways of DP.mp4
│ ├── _43.4_7 Important Concepts.mp4
│ ├── _43.5_Climbing Stairs (Recursion).mp4
│ ├── _43.6_Climbing Stairs (Memoization DP).mp4
│ ├── _43.7_Climbing Stairs Variation.mp4
│ └── _43.8_Climbing Stairs (Tabulation DP).mp4
├── 44. DP (Part2)
│ ├── _44.1_Types of Knapsack problems.mp4
│ ├── _44.2_0-1 Knapsack (Recursion).mp4
│ ├── _44.3_0-1 Knapsack (Memoization).mp4
│ ├── _44.4_0-1 Knapsack (Tabulation).mp4
│ ├── _44.5_Target Sum Subset (Tabulation).mp4
│ ├── _44.6_Target Sum Subset (Code).mp4
│ └── _44.7_Unbounded Knapsack (Tabulation).mp4
├── 45. DP (Part3)
│ ├── _45.1_Coin Change (Live Class).mp4
│ ├── _45.2_Rod Cutting.mp4
│ ├── _45.3_Longest Common Subsequence (Recursion).mp4
│ ├── _45.4_LCS (Memoization).mp4
│ └── _45.5_LCS (Tabulation).mp4




Right or is any way to go this at once. Write Python code with FFmpeg.


My Python code is as follows ; what do I need to adjust ?


import os
import subprocess

# Function to merge videos in a folder
def merge_videos_in_folder(folder_path):
 print(f"Merging videos in folder: {folder_path}")

 # Use FFmpeg to concatenate all video files within the folder
 cmd = [
 "ffmpeg",
 "-f", "concat",
 "-safe", "0",
 "-i", "<(find '{}' -type f -name '*.mp4' -exec echo 'file {{}}' \;)".format(folder_path),
 "-c", "copy",
 os.path.join(folder_path, "merged_video.mp4")
 ]
 subprocess.run(cmd, capture_output=True, text=True)

 print(f"Videos merged for folder: {folder_path}")

# Specify the directory containing folders with video files
parent_dir = "/path/to/parent_directory"

# Loop through each folder in the input directory
for folder in os.listdir(parent_dir):
 folder_path = os.path.join(parent_dir, folder)
 if os.path.isdir(folder_path):
 # Merge videos in the current folder
 merge_videos_in_folder(folder_path)

print("All videos merged successfully!")



-
Convert audio file using another audio file as template in ffmpeg
3 décembre 2015, par Iulian OnofreiI have some
.mp3
audio files, with different "configuration" like sample rate, bit rate, etc.For my app, one of them is working and the rest, not.
How can I convert the rest of them using the working file’s "configuration" ?
Metadata of two sample files :
~/Downloads ❯ ffmpeg -i working.mp3 -i not_working.mp3
ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[mp3 @ 0x7fd2d380da00] Skipping 0 bytes of junk at 33.
[mp3 @ 0x7fd2d380da00] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'working.mp3':
Metadata:
encoder : Lavf52.64.2
Duration: 00:00:00.65, start: 0.000000, bitrate: 64 kb/s
Stream #0:0: Audio: mp3, 22050 Hz, mono, s16p, 64 kb/s
[mp3 @ 0x7fd2d4008800] Skipping 0 bytes of junk at 417.
Input #1, mp3, from 'not_working.mp3':
Duration: 00:00:01.83, start: 0.025057, bitrate: 46 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 46 kb/s
Metadata:
encoder : LAME3.99r -
Can I input a PHP file to ffmpeg ?
6 avril 2023, par cantsayI want to use ffmpeg, but pass in a PHP file (which will perform some logic, and then output a video file).


I know you can do this on webservers, i.e. create "image.jpg" but have it contain PHP code, and when someone visits it, it will run as a PHP script.


If I run the PHP file, it outputs a video file, and if I pass a video file directly, the stream works so I know those parts are fine by themselves.


However, I believe the issue is that the PHP file will never be processed as a PHP file, whereas a webserver would know that ? So do I need to somehow trick it or create an alias file or similar to process the PHP file and return the video output ?


I thought maybe I could pass in a bash file, which runs the PHP script using the php command but that didn't work.


I'm not sure what else to try or where to look