
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (36)
-
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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (6670)
-
Basic to use FFMPEG in Python (Django Rest Framework)
31 juillet 2018, par Feed GitI’m writing a viewset in Django Rest Framework to convert images sequence into video by using FFMPEG but I don’t understand how I can do it. I tried but not success. Please help me with my code.
My code :
class VideoRenderSerializer(ModelSerializer):
imageSequence = ListField(required=False, child=FileField(max_length=100000, allow_empty_file=False, use_url=False))
class Meta:
model = Video
fields = [
'imageSequence',
]
class VideoRenderView(ModelViewSet):
queryset = Video.objects.all()
serializer_class = VideoRenderSerializer
def render_video(self, request):
imgSequences = request.FILES.getlist('imageSequence')
render_from_img_sequences_cmd = 'ffmpeg -loop 1 -i image.png -vf format=yuv420p -t 30 C:\output.mp4'
ffmpegresult = subprocess.call(render_from_img_sequences_cmd, shell=True, stdout=open(os.devnull, "w"), stderr=subprocess.STDOUT)
return Response(ffmpegresult, status=200)Output is : 1 and I cant find where is output file !
-
Push RTSP over HTTP
27 juin 2017, par Type11I need to make an emulator of cameras we have streaming to a video recording platform we created.
The camera I am trying to emulate makes use of RTSP over http (well https but we can ignore that for now) which is somewhat normal but it doesn’t do the pull variety it does a push (we give the camera a url and it starts pushing to the video recording server).
I have been using ffmpeg which has an rstp over http implementation but it is the pull kind where you take the client and give it a url to pull from.
I have hacked around and gotten it to send an http GET as expected with the right headers we expect in it which our server uses and recognizes then it times out before streaming anything which makes sense as I think it is waiting for our server to send something.
I could keep going down this path but I wanted to know if anyone else had run into this and if there was any prebuilt java, c, or c++ library that does anything like this I could start from ? I have searched around but most everything appears to be for a pull model.
this is a capture of what the camera is sending (there is more but it is just more of the video stream below). this is the full tcp conversation.
RTSP/1.0 200 OK
Host : 192.168.1.9
User-Agent : RS/E060660C84EB
Content-Type : application/octet-stream
X-SDP : dj0wDQpvPS0gMjk5NiAyOTk2IElOIElQNCAxOTIuMTY4LjEuNQ0Kcz1SVFNQIFNlcnZlcihIMjY0KSAtIE9DODMwMEM4NEVCDQpjPUlOIElQNCAwLjAuMC4wDQp0PTAgMA0KYT1jaGFyc2V0OlNoaWZ0X0pJUw0KYT1yYW5nZTpucHQ9MC0NCmE9Y29udHJvbDoqDQphPWV0YWc6MTIzNDU2Nzg5MA0KbT12aWRlbyAwIFJUUC9BVlAgOTYNCmI9QVM6MTI4DQphPXJ0cG1hcDo5NiBIMjY0LzkwMDAwDQphPWNvbnRyb2w6dHJhY2tJRD0xDQphPWZtdHA6OTYgcGFja2V0aXphdGlvbi1tb2RlPTE7cHJvZmlsZS1sZXZlbC1pZD00MjgwMWU7c3Byb3AtcGFyYW1ldGVyLXNldHM9WjBLQUhwcGtCUUh2K0F0UUVCQVVBQUFQcEFBQVhjT2hBQ013QUVaU3U4dU5DQUVaZ0FJeWxkNWNLQT09LGFNNDhnQT09DQphPXgtZnJhbWVyYXRlOjMNCmE9ZnJhbWVyYXRlOjMuMA0KYT14LWR1cmF0aW9uOjEwDQo=
X-Precapture : 8
Authorization : Basic QXZ3R3VhbXpRcG15eUx3anlGYlZQS1ZCL2hoc1prWXltVVo0Q3cwb2FHaWZSWlBrNmhSRkVySFZoUkoxSG9lVjo2SWZTQ3VyYVRVT0FoU2RmVkJLdDBnQUFBQUFBQUFBQUFBQUFBQUFBQUFBaVNyTFFzK2tJNEVISVB5ZG9aL1Vu$....
.......}..|.....?.....a..@.P.. ..c.0.....<.>H ......Zas...AQZ...:.?W..A..q2..~.
C..4.7....H’....*.....6 ?...........K.k.q...S.e+[g.......o... ..C1_[....N..........?.q.9.s..>..Gk.........[....&....n ;c..0c....#.A...9
......q...]...B...W.....8."....[..\c(..?Z.F !. 9. ..e...%..0.p2.h.0.,.'g.Rf.\s......@j. .....0.............H.V
.K{EL
M.ig..;i...PS..?..~HR..?ID>....T.Ie.m....
.....!..hBk..P-uX.V&...^<.ab....s....|.#.z...e..O+.{.!.0code>b..Q._d...z.......l....
Any help on a library that might send a stream like this would be appreciated.
-
How can I save local video file to django FileField ?
11 janvier 2021, par Nina deRossiI create a local video file (.mp4) by adding a logo to an existing video with the following code :


logo_path = os.path.join(MEDIA_ROOT, 'logo.png')

 logo = (mp.ImageClip(logo_path)
 .set_duration(video.duration)
 .resize(height=50) # if you need to resize...
 .margin(right=8, top=8, opacity=0) # (optional) logo-border padding
 .set_pos(("right", "top")))

 video_path = os.path.join(MEDIA_ROOT, 'test7.mp4')
 audio_path = os.path.join(MEDIA_ROOT, 'temp-audio.m4a')

 final = mp.CompositeVideoClip([video, logo])
 final.write_videofile(video_path, codec='libx264',
 audio_codec='aac',
 temp_audiofile=audio_path,
 remove_temp=True
 )



I want to save the new video to a FileField of my model.
Here is the code :


f = open(video_path)
 flick.videoWithWatermark.save("videoWithWaterMark.mp4", File(f))



I keep getting the error :
'ascii' codec can't decode byte 0xd1 in position 42 : ordinal not in range(128)


How can I save the video to a FileField ?