
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (52)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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
Sur d’autres sites (15231)
-
ffmpeg continuous live streaming of dynamic files from directory
4 septembre 2022, par user72261So I have been using ffmpeg to create a live stream from files stored in a folder using concat list.


This works perfectly for local, static content but I have a security system in my warehouse that uploads .mp4 files to my server in the office.


This system doesn't have any live stream functionality so I would like to set up a live stream myself using ffmpeg to continually read the latest files from the folder.


I tried setting up a script to read all files in the directory and sort them based on the file name that is a UNIX timestamp of the date/time the video was taken. Then had the script select the latest segments after that last used segment and create a new concat list such as below


file '00000.mpd'
file '00001.mp4'
file '00002.mp4'
file '00003.mp4'
file '00004.mp4'



After doing some reading I found out to make it loop that file you could reference its self in the list like so


file '00000.mpd'
file '00001.mp4'
file '00002.mp4'
file '00003.mp4'
file '00004.mp4'
file 'concat.txt'



This seemed to work ok until I started getting the error impossible to open concat.txt. This file doesn't exist, which I can only guess is because ffmpeg is trying to open the file as its being updated by the script.


Has anyone come across this before or know another way to do it ?


-
Can't save a file in moviepy python
23 juillet 2023, par user9102437I have seen a few questions about this here, but none of them solved the issue for me, so maybe my case is different in some way.


I am trying to achieve a simple result : read a file and write it. Here is the code :


import os
os.environ['FFMPEG_BINARY'] = '/usr/bin/ffmpeg'

from moviepy.editor import VideoFileClip
name = 'test.mp4'

clip = VideoFileClip('./vids/'+name)

clip.write_videofile('./vids/'+name, codec='libx264', fps=30)



This code comes up with an error :


---> 88 '-r', '%.02f' % fps,
 89 '-an', '-i', '-'
 90 ]
 91 if audiofile is not None:
 92 cmd.extend([
 93 '-i', audiofile,
 94 '-acodec', 'copy'
 95 ])

TypeError: must be real number, not NoneType



You may notice that I have set the environment variable for
ffmpeg
(I have also changed that inconfigure_defaults.py
). This is because it was suggested in other questions. Also based on them I have run the following commands before running the code :

sudo apt -y update
sudo apt -y install ffmpeg
pip install decorator
pip install moviepy --upgrade
pip install ffmpeg --upgrade



I am using a
Debian GNU/Linux 10 (buster)
machine, and the versions ofmoviepy
andffmpeg
are1.0.3
and4.1.10-0+deb10u1
respectively.

Nothing seems to be helping to solve this. What am I missing here ?


-
Can't figure out how to get ffmpeg to save to an odd file extension
30 septembre 2015, par dinkiI’m working on a network encoder for SageTV. I get request from the SageTV with certain filenames. I’m trying to capture video from my capture card and write out to a file called
’D :\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-
0.mpgbuf’Here’s the command I’m using :
C :\Users\User>C :/Users/User/Desktop/ffmpeg-20150928-git-235381e-win64-static/bin/ffmpeg.exe
-f dshow -crossbar_video_input_pin_number 2 -i video="ATI AVStream Analog Capture"
D :\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbufWhen I run that command, I get this error :
[NULL @ 00000000087f9160] Unable to find a suitable output format for 'D:\Media\
tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf'
D:\Media\tvrecordings\RokuNetworkEncoderonlocalhost4510TVTuner-0.mpgbuf: Invalid
argumentBut if I change .mpgbuf to .mpg it works fine . I am forced to use that filename though. Is there an easy way to do this ?