
Recherche avancée
Autres articles (52)
-
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 -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (9544)
-
Installing faad library for ffmpeg through Homebrew on mac OS X Lion
14 décembre 2011, par alexFollowing up with my previous question, I decided to give Ffmpeg a try and installed it on my Mac with Homebrew.
I am now trying to follow this tutorial and use the linked script. But can't make/install the script. I first corrected a small bug (replaced CODEC_TYPE_AUDIO, CODEC_TYPE_VIDEO and PKT_FLAG_KEY with AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_VIDEO, and AV_PKT_FLAG_KEY respectively in live_segmenter.c). But now, when I run make in the unzipped folder, I get the following warning and error messages :
gcc -Wall -g live_segmenter.c -o live_segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
live_segmenter.c: In function ‘main’:
live_segmenter.c:149: warning: ‘av_open_input_file’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1093)
live_segmenter.c:165: warning: implicit declaration of function ‘guess_format’
live_segmenter.c:165: warning: initialization makes pointer from integer without a cast
live_segmenter.c:208: warning: ‘av_set_parameters’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1407)
live_segmenter.c:214: warning: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1535)
live_segmenter.c:232: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
live_segmenter.c:238: warning: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1465)
live_segmenter.c:283: warning: ‘put_flush_packet’ is deprecated (declared at /usr/local/include/libavformat/avio.h:293)
live_segmenter.c:284: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
live_segmenter.c:289: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
live_segmenter.c:326: warning: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
ld: library not found for -lfaad
collect2: ld returned 1 exit status
make: *** [all] Error 1I also downloaded the faac/faad libraries from here. When I run make in faac, it says I have nothing to install, but I can't find out how to install faad...
Would love any help you can offer !
-
Moviepy : subclip fails when iterating through CSV
5 mai 2016, par user3316291I am trying to randomize the order of video clips based on timing from a CSV file and then reassemble the randomized clips into a single video. However, I am receiving an error in the loop that iterates through each clip timing to create the subclip.
Here is what my CSV looks like :
00:00:32.18,00:00:52.10,1
00:00:52.11,00:00:56.09,2
00:00:56.10,00:00:58.15,3
00:00:58.16,00:01:05.16,4
00:01:05.17,00:01:16.04,5column 1 is clip onset
column 2 is clip offset
column 3 is scene number that I use to randomizeHere is my code :
import os
import csv
import numpy as np
from moviepy.editor import *
f = open('SceneCuts.csv')
csv_f = csv.reader(f)
scenes = []
ons = []
offs = []
for row in csv_f:
ons.append(row[0])
offs.append(row[1])
scenes.append(row[2])
r_scene = scenes
np.random.seed(1000)
np.random.shuffle(r_scene)
r_scene = map(int, r_scene)
clip = VideoFileClip("FullVideo.m4v")
temp = []
for row in r_scene:
print(row)
temp.append(clip.subclip(ons[row-1], offs[row-1]))
catclip = concatenate_videoclips(temp)
catclip_resize = catclip.resize((1024,576))
catclip_resize.write_videofile("RandomVideo.mp4")Here is the output, error occurs at line 29 (temp.append)
File "/Users/Dustin/anaconda/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_reader.py", line 87, in initialize
self.proc = sp.Popen(cmd, **popen_params)
File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 1316, in _execute_child
data = _eintr_retry_call(os.read, errpipe_read, 1048576)
File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)
OSError: [Errno 22] Invalid argumentBased on my research, it appears to be something regarding child processes and subprocess.Popen, but I can’t figure it out. Thanks !
EDIT to add new information :
I have been running the above script in Spyder (anaconda) and receiving the above errors. However, when I run from a terminal or sublime (cmd+b), the code "works". It runs and I do not get the above error, however, the resulting video file is a mess. There are multiple conflicting audio tracks that shouldn’t be there. I am not sure what is going on in Spyder, but I’d love to know. Also, I still need to fix the audio problem. -
How to bybass any site that restrict multiple live streaming broadcast on a single account ? [closed]
4 août 2024, par kino pizdecI am looking for a working way to use 1 video.mp4 input for 1 site, for 1 account, but broadcast in several output, for example, to different rtmp servers or stream keys. Something similar is seen on YouTube, where 1 channel has many live streams.


I want to do the same, but for another site that offers the following connection options :


- 

- rtmp server and stream key
- Real webcam
- OBS Virtual webcam








I've seen it's possible. People stream up to 4 streams simultaneously on 1 account with 1 video. The question is how.


I have been tormenting the chat GPT for several days and trying different options for writing code for ffmpeg, but I have not been able to achieve more than 2 streams at the same time. I have already managed to make 2 streams at the same time twice, but I have completely forgotten how to do this, because I am constantly trying new code configurations in ffmpeg.


Here is code that I use to attempt to solve my issue.


@echo off
setlocal EnableDelayedExpansion

set "VIDEO_FILE=E:\MegaStream\VIDEO.mp4"

set "streams="
for /f "delims=" %%a in (stream_config.txt) do (
 set "streams=!streams! -f flv %%a"
)

:loop
start /b ffmpeg.exe ^
-re ^
-stream_loop -1 ^
-i "!VIDEO_FILE!" ^
-c:v libx264 ^
-preset veryfast ^
-tune zerolatency ^
-b:v 4000k ^
-maxrate 4400k ^
-bufsize 8000k ^
-pix_fmt yuv420p ^
-g 60 ^
-keyint_min 60 ^
-sc_threshold 0 ^
-r 30 ^
-c:a aac ^
-b:a 96k ^
-ar 44100 ^
-threads 4 ^
-x264opts "nal-hrd=cbr:force-cfr=1" ^
-max_muxing_queue_size 1024 ^
-map 0:v:0 -map 0:a:0 !streams!
-loglevel debug

echo Streaming... Press 'Q' to quit or 'R' to restart.
:input
choice /c QR /n >nul
if errorlevel 2 (
 taskkill /F /IM ffmpeg.exe >nul 2>&1
 echo Restarting stream...
 goto loop
) else if errorlevel 1 (
 taskkill /F /IM ffmpeg.exe >nul 2>&1
 echo Quitting...
 exit /b
)
goto input 



Plus config file with 2 separate lines :
rtmp server 1 / stream key 1
rtmp server 2/ stream key 1


I play a lot with config file and code. I edited them differently so many times so once it worked and site played my 2 stream simultaneously but now I struggle with consistent solution. Would love to hear any guesses on how to bypass these rules.
P.s.
I'm already advised many times on ethitcs and usage of this method, so I'm concerned thanks.


What does not work :


- 

- Launching 2 copies of OBS with different servers and stream keys gives an error
- Plugin for multistreaming OBS
- Using 2 devices, site says "You already have a streaming sesssion" and offers to finish first to start second