
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (41)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (7462)
-
Python video player using ffpyplayer.player with audio repeated cracking at end of clip
18 janvier 2021, par sunyaerI am using the codes below to do a video player. For video clips cut using this command : "ffmpeg -i PrideAndPrejudice.mp4 -ss 00:50:31 -t 00:03:30 OutPutPP.mp4", there is audio crack that keeps repeating a couple of times when the picture stops at the end of the video. I suspect there may be some issues with the codes of QTimer, but as I am quite new to Python and ffmpeg, and can't figure out what exactly the problem is, not to mention how to fix it. Your help would be greatly appreciated.


self.timer = QTimer()
 self.timer.setInterval(50)
 self.timer.start()
 self.timer.timeout.connect(self.showFrame)



This is the whole codes :


from ffpyplayer.player import MediaPlayer
 import sys
 from PyQt5.QtWidgets import *
 from PyQt5.QtGui import QPixmap, QImage, QImageReader
 from PyQt5.QtCore import QTimer

class MyApp(QWidget):
 def __init__(self, name, parent=None):
 super(MyApp, self).__init__(parent)
 self.label = QLabel()
 self.qimg = QImage()
 self.val = ''

 self.player = MediaPlayer("PrideAndPrejudice005030.mp4")
 self.timer = QTimer()
 self.timer.setInterval(50)
 self.timer.start()
 self.timer.timeout.connect(self.showFrame)

 layout = QVBoxLayout()
 layout.addWidget(self.label)
 self.setLayout(layout)
 self.setWindowTitle(name)

 # self.showFullScreen()

 def showFrame(self):
 frame, self.val = self.player.get_frame()
 if frame is not None:
 img, t = frame
 self.qimg = QImage(bytes(img.to_bytearray()[0]), img.get_size()[0], img.get_size()[1],
 QImage.Format_RGB888)
 self.label.setPixmap(QPixmap.fromImage(self.qimg))


if __name__ == '__main__':
 app = QApplication(sys.argv)
 t = MyApp(sys.argv[0])
 t.show()
 sys.exit(app.exec_())



-
i have problem in python with Muxing video and audio
2 février 2021, par Mahmoud AhmedI want to merge files video and audio but I don't know how I did try many times to fix it with ffmpeg,subprocess and moviepy with a deferent ways so this my problem and I stop work on it here if someone can help me to edit it and send to me back please .


This is my code with a window .


from pytube import YouTube
from tkinter import *
from tqdm import tqdm
from os import startfile
import subprocess
import shutil
import pytube
import ffmpeg
import time
import sys
import os
#Functions
def download():
 video_url = url.get()
 try:
 youtube = pytube.YouTube(video_url)
 video = youtube.streams.filter(adaptive=True,file_extension='mp4').order_by('resolution').desc().first()
 video.download(filename='Dvideo')
 audio = youtube.streams.get_by_itag(251).download(filename='Daudio') #webm 
 notif.config(fg="green",text="Download is Completed")



 except Exception as e:
 print(e)
 notif.config(fg="red",text="There is an Error in the Downloading Check Your url")

def Merge():
 try:
 os.system("ffmpeg -i Dvideo.mp4 -i Daudio.webm -c:v copy -c:a aac output.mp4")
 #video = ffmpeg.input('Dvideo.mp4')
 #audio = ffmpeg.input('Daudio.webm')
 #out = ffmpeg.output(video, audio, r'final.mp4', vcodec='"avc1.640028')
 #out.run()

 except Exception as w:
 print(w)
 notif.config(fg="red",text="There is an Error in the Merge")

#Main Screen
Window = Tk()
Window.title("Youtube Video Downloader ")
#The Labels of Texts 
Label(Window, text="Youtube Video Converter \n By: Mahmoud Ahmed", fg="blue", font=("Calibri",15)).grid(sticky=N,padx=15,row=0)
Label(Window, text="Please enter the url of the Video u want to download it : ", font=("Calibri",12)).grid(sticky=N,row=1,pady=15)
Label(Window, text="Notice Any Downloading will be in the same file with this tool.", fg="orange", font=("Calibri",10)).grid(sticky=N,padx=15,row=8)

#my_progress = ttk.Progressbar(Window,length=130, mode='determinate').grid(row= 9, pady=20)


notif = Label(Window,font=("Calibri",12))
notif.grid(sticky=N,pady=1,row=6)
#Variables
url = StringVar()
#The empty label for URL
Entry(Window,width=50,textvariable=url).grid(sticky=N,row=2)
#The Button
Button(Window,width=20,text="Download",font=("Calibri",12),command=download).grid(sticky=N,row=4,pady=15)
Button(Window,width=20,text="Merge",font=("Calibri",12),command=Merge).grid(sticky=N,row=5,pady=15)
#Button(Window,width=20,text="Info",font=("Calibri",12),command=download).grid(sticky=N,row=4,pady=15)

Window.mainloop()




-
Recording multiple cameras using gstreamer/ffmpeg, encoding problems
11 février 2021, par kepittoI have an incoming UDP-MJPEG-Stream of 4-10 Kameras and I need to live-store these in a way to be able to store atleast a few days of data, preferably up to a week atleast. I'm testing the setup with 1 camera right now and have following issues :


If I were to save the incoming stream via matroska without transcoding it I receive : 171,9GB/day, which is way too much if I want to run this with 10 cameras.

So I've looked a lot into different codecs and compared a few (x264, x265, vp8, vp9) and also checked the CPU usage and realized this won't be managable without Hardware Acceleration if I want to run 10 cameras on an embedded device. My target device will probably have H.264 and maybe VP8 encoding/decoding

Which leads me to my first questions, how capable are hardware encoder/decoder ? Will I be able to transcode 10 camera-streams at the same time (raspberry pi h.264 hardware accel for example ; i'll use a more capable device for the final implementation) ? Maybe store chunks and transcode the files instead of stream ?


gst-launch-1.0 udpsrc port=52000 do-timestamp=true caps=image/jpeg,framerate=30/1 blocksize=4096 ! queue ! jpegparse ! queue ! jpegdec ! queue ! videoconvert ! x265enc ! queue ! h265parse ! queue ! matroskamux ! filesink location=x.mkv 



This pipeline works, but the file is 20% bigger than the same file with x264enc (without parse before mux-parsing shouldn't make a difference though).

As a comparison on ffmpeg I get a file which is 11 times smaller in size with following command :

ffmpeg -framerate 30 -i udp -pix_fmt yuv420p -vcodec libx265 out.mkv



Also vp8/vp9 encoding doesn't work on gstreamer at all. I use the same pipeline as above with vp8enc/vp9enc instead. I get videos which are too short and with a lot of random frames. Maybe performanceissue ?


On ffmpeg I can capture and transcode to vp8, but vp9 doesn't work either. (Frames drop too low followed by errors, most likely performance issue)


Does live-transcoding make sense and is it achievable on an embedded device ?