
Recherche avancée
Autres articles (112)
-
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 ) (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (9918)
-
Why am I getting an exit status of 1 ?
24 mai 2018, par Akaisteph7So, I am writing this code to analyze this video but I am facing this issue when I try to run it in Spyder, Anaconda :
import subprocess
from subprocess import call
import math
##Converts the given file into a series of images
def Video_to_Image_Converter(fileName):
res1 = call("ffmpeg -i " + fileName + " -vf fps=1 frame-%d.jpg", shell=True)
print(res1)
result = subprocess.Popen('ffprobe -i '+ fileName +' -show_entries format=duration -v quiet -of csv="p=0"', stdout=subprocess.PIPE,stderr=subprocess.STDOUT, shell=True)
output = result.communicate()
print(output)
#return math.ceil(float(output[0])) + 1
if __name__ == '__main__':
videoLength = Video_to_Image_Converter('sampleVideo.wmv')
print(videoLength)So, this code worked fine in iPython but I started having issues when trying to use Spyder. res1 should have an exit status of 0 if everything went well but it is 1. However, I do not know what went wrong. All it says when running subprocess.check_output on call is :
Command 'ffmpeg -i sampleVideo.wmv -vf fps=1 frame-%d.jpg' returned non-zero exit status 1
Please help.
-
FFMPEG using wrong arguements when refering to image files
14 août 2013, par Chad MarmonI am creating a bat file that will use FFMPEG to convert Real Media files to .MP4 files. I am looping though the current folder and finding files with the .rm extension adding several pictures to the video files to create a slide show effect in the final product.
With this code here it works except it only shows one static image :
for %%a in ("*.rm") do ffmpeg -f image2 -r 1/5 -i "img00.jpg" -i "%%a" -c:v libx264 -r 30 -preset slow -crf 20 -c:a libvo_aacenc -b:a 48k -b:v 16k "newfiles\%%~na.mp4"
With this code it should show a series of photos. However it does not :
for %%a in ("*.rm") do ffmpeg -f image2 -r 1/5 -i "img%02d.jpg" -i "%%a" -c:v libx264 -r 30 -preset slow -crf 20 -c:a libvo_aacenc -b:a 48k -b:v 16k "newfiles\%%~na.mp4"
I get this error when I run the second piece of code :
Could find no file with with path 'imgC :\Data\RealtoMP\FFMPEG_JPG\ffmpegA48V16_AudOnly' and index in the range 0-4
imgC :\Data\RealtoMP\FFMPEG_JPG\ffmpegA48V16_AudOnly : No such file or directoryIt appears to me that it is somehow instead of getting the range argument like it should, it's injecting the path to the file that I am running. Any ideas of what is causing this ?
EDIT :
I fixed my problem by escaping the
%02
with another %. The result is%%02
for it to act correctly in the script. -
FFmpeg Error : Output file does not contain any stream [closed]
27 octobre 2023, par 2nd EthanI'm trying to use FFmpeg to split an audio file into segments, but I'm encountering the following error :


Output file #0 does not contain any stream



The code is generated automatically using DDSP-SVC notebook.


subprocess.run(f'ffmpeg -i "{filepath}" -f segment -segment_time {sep_duration_final} "{out_filepath}" -y', capture_output=True, shell=True)



Here's the command I'm using :


ffmpeg -i "preprocess/norm\a.wav" -f segment -segment_time 12 "data/train\audio\a-%04d.wav" -y



I have a few questions regarding this issue :


- 

-
What does this error message mean, and why is it occurring ?


-
How can I resolve this error and successfully split my audio file into segments ?








Any insights or guidance on troubleshooting this FFmpeg error would be greatly appreciated.


I have tried running the FFmpeg command provided in my question to split an audio file into segments.


I expected this command to successfully create a series of segmented audio files in the 'data/train\audio' directory.


However, I encountered the 'Output file #0 does not contain any stream' error, and no output files were generated.


-