
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (45)
-
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 (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (8450)
-
FFMPEG Cutting a video and adding a watermark
9 mai 2020, par razzSo, I have a mp4 video that needs 2 things to be applied on :



- 

- Cut 6 seconds right at the middle of the video (length unknown)
- Add a watermark at the right bottom of the video







You can get duration with ffprobe and



for adding a watermark at the bottom right i use this



-vf "movie=/full/linux/path/to/watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"




All i need in one single command is to cut the 6 seconds and adding the watermark. I'm using ffmpeg on a windows 10 system.


-
lavc : Rename hwaccel.h to hwconfig.h
13 avril 2020, par Mark Thompsonlavc : Rename hwaccel.h to hwconfig.h
This already applied to decoders as well as hwaccels, and adding encoder
support was going to make the name even more inaccurate.- [DH] libavcodec/cuviddec.c
- [DH] libavcodec/decode.c
- [DH] libavcodec/h263dec.c
- [DH] libavcodec/h264dec.c
- [DH] libavcodec/hevcdec.c
- [DH] libavcodec/hwaccel.h
- [DH] libavcodec/hwconfig.h
- [DH] libavcodec/mediacodecdec.c
- [DH] libavcodec/mjpegdec.c
- [DH] libavcodec/mmaldec.c
- [DH] libavcodec/mpeg12dec.c
- [DH] libavcodec/mpeg4videodec.c
- [DH] libavcodec/pthread_frame.c
- [DH] libavcodec/qsvdec.h
- [DH] libavcodec/rkmppdec.c
- [DH] libavcodec/utils.c
- [DH] libavcodec/vaapi_h264.c
- [DH] libavcodec/vaapi_hevc.c
- [DH] libavcodec/vaapi_mjpeg.c
- [DH] libavcodec/vaapi_mpeg2.c
- [DH] libavcodec/vaapi_mpeg4.c
- [DH] libavcodec/vaapi_vc1.c
- [DH] libavcodec/vaapi_vp8.c
- [DH] libavcodec/vaapi_vp9.c
- [DH] libavcodec/vc1dec.c
- [DH] libavcodec/vdpau_h264.c
- [DH] libavcodec/vdpau_hevc.c
- [DH] libavcodec/vdpau_mpeg12.c
- [DH] libavcodec/vdpau_mpeg4.c
- [DH] libavcodec/vdpau_vc1.c
- [DH] libavcodec/vdpau_vp9.c
- [DH] libavcodec/vp8.c
- [DH] libavcodec/vp9.c
-
How to parallelize this for loop for rapidly converting YUV422 to RGB888 ?
16 avril 2015, par vineetI am using v4l2 api to grab images from a Microsoft Lifecam and then transferring these images over TCP to a remote computer. I am also encoding the video frames into a MPEG2VIDEO using ffmpeg API. These recorded videos play too fast which is probably because not enough frames have been captured and due to incorrect FPS settings.
The following is the code which converts a YUV422 source to a RGB888 image. This code fragment is the bottleneck in my code as it takes nearly 100 - 150 ms to execute which means I can’t log more than 6 - 10 FPS at 1280 x 720 resolution. The CPU usage is 100% as well.
for (int line = 0; line < image_height; line++) {
for (int column = 0; column < image_width; column++) {
*dst++ = CLAMP((double)*py + 1.402*((double)*pv - 128.0)); // R - first byte
*dst++ = CLAMP((double)*py - 0.344*((double)*pu - 128.0) - 0.714*((double)*pv - 128.0)); // G - next byte
*dst++ = CLAMP((double)*py + 1.772*((double)*pu - 128.0)); // B - next byte
vid_frame->data[0][line * frame->linesize[0] + column] = *py;
// increment py, pu, pv here
}’dst’ is then compressed as jpeg and sent over TCP and ’vid_frame’ is saved to the disk.
How can I make this code fragment faster so that I can get atleast 30 FPS at 1280x720 resolution as compared to the present 5-6 FPS ?
I’ve tried parallelizing the for loop across three threads using p_thread, processing one third of the rows in each thread.
for (int line = 0; line < image_height/3; line++) // thread 1
for (int line = image_height/3; line < 2*image_height/3; line++) // thread 2
for (int line = 2*image_height/3; line < image_height; line++) // thread 3This gave me only a minor improvement of 20-30 milliseconds per frame.
What would be the best way to parallelize such loops ? Can I use GPU computing or something like OpenMP ? Say spwaning some 100 threads to do the calculations ?I also noticed higher frame rates with my laptop webcam as compared to the Microsoft USB Lifecam.
Here are other details :
- Ubuntu 12.04, ffmpeg 2.6
- AMG-A8 quad core processor with 6GB RAM
- Encoder settings :
- codec : AV_CODEC_ID_MPEG2VIDEO
- bitrate : 4000000
- time_base : (AVRational)1, 20
- pix_fmt : AV_PIX_FMT_YUV420P
- gop : 10
- max_b_frames : 1