Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (25)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP 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 2011

    Contrairement à 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, par

    The 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 (7165)

  • dnn : add DCO_RGB color order to enum DNNColorOrder

    6 mai 2021, par Ting Fu
    dnn : add DCO_RGB color order to enum DNNColorOrder
    

    Adding DCO_RGB color order to DNNColorOrder, since tensorflow model
    needs this kind of color oder as input.

    Signed-off-by : Ting Fu <ting.fu@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_tf.c
    • [DH] libavfilter/dnn/dnn_io_proc.c
    • [DH] libavfilter/dnn_interface.h
  • cv2/ffmpeg "grabFrame packet read max attempts exceeded" error after exactly reading certain number of frames

    26 juin, par banjaxing

    I am using OpenCV to extract frames from videos, run a segmentation AI model, and save the frames and masks to a folder. When I run my code to extract the frame from I encounter the error "grabFrame packet read max attempts exceeded" after processing a certain number of frames. This issue occurs consistently for the same videos across multiple environments.

    &#xA;

    Error message :

    &#xA;

    [ WARN:0@379.898] global cap_ffmpeg_impl.hpp:1541 grabFrame packet read max attempts exceeded, if your video have multiple streams (video, audio) try to increase attempt limit by setting environment variable OPENCV_FFMPEG_READ_ATTEMPTS (current value is 10000)&#xA;

    &#xA;

    Minimum Reproducible Example

    &#xA;

    import os&#xA;import cv2&#xA;&#xA;videofilename = "test.mp4"&#xA;capture = cv2.VideoCapture(videofilename)&#xA;frameNum = 0&#xA;&#xA;createfolder = os.getcwd() &#x2B; &#x27;/&#x27; &#x2B; videofilename.split(".")[0] &#x2B; &#x27;/&#x27;&#xA;if not os.path.exists(createfolder):&#xA;    os.makedirs(createfolder)&#xA;    os.makedirs(createfolder &#x2B; "/frames/")&#xA;&#xA;while True:&#xA;    success, frame = capture.read()&#xA;    if success is False:&#xA;        break&#xA;    frameNum &#x2B;= 1&#xA;    framedownloadname = videofilename.split(".")[0] &#x2B; &#x27;-fr&#x27; &#x2B; str(frameNum) &#x2B; &#x27;.jpg&#x27;&#xA;    framedownloadloc = createfolder &#x2B; &#x27;/frames/&#x27; &#x2B; framedownloadname&#xA;    print(framedownloadloc)&#xA;    cv2.imwrite(framedownloadloc, frame)&#xA;    img = cv2.imread(framedownloadloc)&#xA;    img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)&#xA;&#xA;capture.release()&#xA;

    &#xA;

    As suggested in error, I increased the OPENCV_FFMPEG_READ_ATTEMPTS env variable up to 10000. However, this seems to have little to no effect on the number of frames before the error appears.

    &#xA;

  • Transcode video using celery and ffmpeg in django

    28 octobre 2015, par Robin

    I would like to transcode user uploaded videos using celery. I think first I should upload the video, and spawn a celery task for transcoding.

    Maybe something like this in the tasks.py :

    subprocess.call('ffmpeg -i path/.../original path/.../output')

    Just completed First steps with celery, so confused how to do so in the views.py and tasks.py. Also is it a good solution ? I would really appreciate your help and advice. Thank you.

    models.py :

    class Video(models.Model):
       user = models.ForeignKey(User)
       title = models.CharField(max_length=100)
       original = models.FileField(upload_to=get_upload_file_name)
       mp4_480 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
       mp4_720 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
       privacy = models.CharField(max_length=1,choices=PRIVACY, default='F')
       pub_date = models.DateTimeField(auto_now_add=True, auto_now=False)

    my incomplete views.py :

    @login_required
    def upload_video(request):
       if request.method == 'POST':
           form = VideoForm(request.POST, request.FILES)
           if form.is_valid():
               if form.cleaned_data:
                   user = request.user
                   #
                   #
                   # No IDEA WHAT TO DO NEXT
                   #
                   #
                   return HttpResponseRedirect('/')

       else:
           form = VideoForm()
           return render(request, 'upload_video.html', {
               'form':form
               })