
Recherche avancée
Médias (21)
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (57)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (8300)
-
FFMPEG output to the Exact Folder using Python
6 août 2021, par Ande Calebi'm working on a simple script using ffmpeg, to reduce the size of a video and add watermark to the video, then move the final output into the compressed folder... this is my script.


the compression works, the watermark works, but the issue i'm having is that the final output is placed in the root folder, and not in the compressed folder... below i my folder structure and my scripts


Folder Structure


rootfolder
 |
 |--media
 |--vids
 |--(video files, mov, mp4s)..
 |--compressed
 |--encode.py



Script (encode.py) file


import os 
import subprocess
from pathlib import Path


dir_path = os.path.dirname(os.path.realpath(__file__)) 
vidfile = dir_path + '/media/vids/mv1.mov' 
watermark = dir_path + '/media/watermark.png'
compressed = str(Path.cwd() / '/media/compressed/')

# 1. compress the video and store it in the media out folder

media_out = str(dir_path + "/compressed_mv1s.mov").replace(" ", "\\ ") 
subprocess.run("ffmpeg -i " + vidfile.replace(" ", "\\ ") +
 " -vcodec libx264 -crf 22 " + media_out, shell=True) 

#2.add watermark to the video and move it to the compressed folder 

media_watermarked = str(compressed + '/w_mv1.mov').replace(" ", "\\ ")
subprocess.run("ffmpeg -i " + media_out + " -i " + watermark +
 " -filter_complex \"overlay=main_w-(overlay_w+10) : main_h-(10+overlay_h)\" " + media_watermarked, shell=True)



in summary, compressing the video works, adding watermark works, but the last line, the error is from the
media_watermarked
variable, i'm not sure what i'm doing wrong but it isn't resolving the folder correctly moving the final output to the folder.. this is the error i get



Also, how can i run two ffmpeg commands concurrently to compress the video and add watermark at once without doing it seperately.
Thanks.


-
Trying to convert frames to a video using ffmpeg in a batch script [closed]
21 octobre 2020, par KatzenwerferI'm doing a script to convert frames into a video.


@echo off
set /p ftv="Want to covert the frames to video (yes or no): "
if %ftv%==yes (echo Ok, initializing frame convertion... & timeout 1 >nul & set /p framerate="Please specify the framerate: " & set /p crf="Please specify a CRF value: " & timeout 1 >nul & ffmpeg -framerate %framerate% -i "%cd%\Interpolated_frames\%%6d.png" -c:v libx264 -preset veryslow -crf %crf% "%cd%\FinalVideo.mp4" & echo Video ready, check the folder for the final video & timeout 1 >nul)



It is suppposed to let you choose the framerate and the crf value, but when running it, ffmpeg gives me
Output file #0 does not contain any stream


Dividing it into singular parts like this make it work, but I need to use it with the if


@echo off 
echo Ok, initializing frame convertion...
timeout 1 >nul
set /p framerate="Please specify the framerate: "
set /p crf="Please specify a CRF value: "
timeout 1 >nul & ffmpeg -framerate %framerate% -i "%cd%\Interpolated_frames\%%6d.png" -c:v libx264 -preset veryslow -crf %crf% "%cd%\FinalVideo.mp4"
echo Video ready, check the folder for the final video
timeout 1 >nul



-
Join 8 mono channels into 7.1 audio stream
10 juin 2020, par Rafal BI'm trying to join 8 mono channels into 7.1 channels layout :



ffmpeg -i L.ac3 -i R.ac3 -i C.ac3 -i Sub.ac3 -i BL.ac3 -i BR.ac3 -i SL.ac3 -i SR.ac3 -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a][6:a][7:a]join=inputs=8:channel_layout=7.1[a]"
-map "[a]" final-output.ac3




but I'm getting :



Stream mapping:
 Stream #0:0 (ac3) -> join:input0
 Stream #1:0 (ac3) -> join:input1
 Stream #2:0 (ac3) -> join:input2
 Stream #3:0 (ac3) -> join:input3
 Stream #4:0 (ac3) -> join:input4
 Stream #5:0 (ac3) -> join:input5
 Stream #6:0 (ac3) -> join:input6
 Stream #7:0 (ac3) -> join:input7
 join -> Stream #0:0 (ac3)
Press [q] to stop, [?] for help
Output #0, ac3, to 'final-output.ac3':
 Metadata:
 encoder : Lavf58.29.100
 Stream #0:0: Audio: ac3, 48000 Hz, **5.1(side)**, fltp, 640 kb/s (default)
 Metadata:
 encoder : Lavc58.54.100 ac3




Why the output file is 5.1(side) ?



Audio
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Duration : 54 min 5 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 248 MiB (100%)
Service kind : Complete Main




I did not found anything that would explain this behavior.
I'm using latest ffmpeg and tried different methods : join, amerge. Always output file is 5.1(side)