
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (38)
-
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 -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (7767)
-
How to increase my sever ability to run ffmpeg command faster and then execute my php code
9 janvier 2018, par FemzyHello I have a problem with the ffmpeg command, when i tried to use a text file that has plenty of words like more than 300 words, it generate the video but also the rest of my code did not executed, i wanted to save the path of the generated video to the database after it is created and then move to the next page but the server stop after it execute the command and not run the rest of the code.
Also i tried to use "text" only and pass the string to the Text intead of "textfile" but I Got the Below errorError reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[AVIOContext @ 0x329ca80] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x3293680] Statistics: 32768 bytes read, 0 seeks
Conversion failed!Please i want to know which one is the best practice either to use "text" or "textfile" and how i can use them to not having any error.. Thanks For helping me in advance
This is my PHP codes that includes the ffmpeg commands$cmds ='ffmpeg -loop 1 -i '.$image_file.' -vf scale=-2:1080,drawtext="text='.$directory.':expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-100*t: fontcolor=white: fontsize=50" -pix_fmt yuv420p -t '.$words_count.' -movflags +faststart '.$file_dir.' -report';
echo shell_exec($cmds);
$video_files = array(
'user_id' => $_SESSION['user_id'],
'text_file_id' => $user_id,
'video_file' => $file_name,
'created' => time()
);
if($user->insert('db_table', $video_files)){
if (file_exists($file_dir)) {
$_SESSION['d_file'] = $file_dir;
$msg['success'] = "Success";
} else {
$msg['error'] = "Sorry the file was not created";
}
}else{
$msg['error'] = "Sorry there was database error";
} -
Encoding 4K 60Hz lossless from a capture card
13 décembre 2017, par Alex PizziWindows 10 64-bit
Ryzen 7
GTX 1080
32GB RAMHi all,
I’m trying to encode 4K 30/60Hz video in a lossless format from a 4K capture card and everything I’ve tried gives me a similar error as in the linked image, [real-time buffer too full or near too full frame dropped]
[Not mine]
https://cloud.githubusercontent.com/assets/4932401/22171307/ef5c9864-df58-11e6-8821-4b74ce3f32d0.pngThis is the command I’ve tried most recently :
ffmpeg.exe -f dshow -video_size 3840x2160 -framerate 30 -pixel_format bgr24 -rtbufsize INT_MAX -i video="MZ0380 PCI, Analog 01 Capture" -vf fps=30 out%d.BMP
With the images dumped to a 10G RAM disk or 850 EVO. I’m doing this to skip the encoding step.
I get the same error when encoding with h265 lossless and NVENC h265 lossless.
I need the video to be lossless as it will be used to test hardware h265 encoders.
Video source is a 4K Blu-ray.
Any help would be greatly appreciated. Thank you.
-Alex P
-
No such file or directory when running an ffmpeg command from script
23 novembre 2017, par A_MatarI have been trying to run this
ffmpeg
command from python script to generate video of certain length from a static image but I keep getting No such file or directory error !
Here is my code :import subprocess
def generate_white_vid (duration):
ffmpeg_create_vid_from_static_img = 'ffmpeg -loop 1 -i /same_path/WhiteBackground.jpg -c:v libx264 -t %f -pix_fmt yuv420p -vf scale=1920:1080 /same_path/white_vid2.mp4' % duration
print ffmpeg_create_vid_from_static_img
pp = subprocess.Popen(ffmpeg_create_vid_from_static_img)
pp.communicate()
generate_white_vid(0.5)However when I run the same exact command :
ffmpeg -loop 1 -i /same_path/WhiteBackground.jpg -t 0.500000 -pix_fmt yuv420p -vf scale=1920:1080 /same_path/white_vid2.mp4
from the cli, it works just fine. Where am I missing up ?
Here is the full trace :Traceback (most recent call last):
File "gen.py", line 10, in <module>
generate_white_vid(0.5)
File "gen.py", line 7, in generate_white_vid
pp = subprocess.Popen(ffmpeg_create_vid_from_static_img)
File "/home/ubuntu/anaconda2/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/home/ubuntu/anaconda2/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
</module>When I use a list to pass the
ffmpeg
commands parameters as followingffmpeg_create_vid_from_static_img = ['ffmpeg', '-loop', '1', '-i', '/same_path/WhiteBackground.jpg', '-c:v', 'libx264', '-t', duration, '-pix_fmt', 'yuv420p', '-vf', 'scale=1920:1080', '/same_path/white_vid.mp4']
, I get a type error :TypeError Traceback (most recent call last)
in <module>()
----> 1 generate_white_vid(0.5)
in generate_white_vid(duration)
3 ffmpeg_create_vid_from_static_img = ['ffmpeg', '-loop', '1', '-i', '/home/ubuntu/matar/multispectral/WhiteBackground.jpg', '-c:v', 'libx264', '-t', duration, '-pix_fmt yuv420p', '-vf', 'scale=1920:1080', '/home/ubuntu/matar/multispectral/white_vid.mp4']
4 print ffmpeg_create_vid_from_static_img
----> 5 pp = subprocess.Popen(ffmpeg_create_vid_from_static_img)
6 pp.communicate()
/home/ubuntu/anaconda2/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
388 p2cread, p2cwrite,
389 c2pread, c2pwrite,
--> 390 errread, errwrite)
391 except Exception:
392 # Preserve original exception in case os.close raises.
/home/ubuntu/anaconda2/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
1022 raise
1023 child_exception = pickle.loads(data)
-> 1024 raise child_exception
1025
1026
TypeError: execv() arg 2 must contain only strings
</module>