Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (31)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • 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) (...)

Sur d’autres sites (5709)

  • expected str, bytes or os.PathLike object, not NoneType for subprocess of ffmpeg

    15 janvier 2024, par ejmin ejoni

    I dont know much about ffmpeg, subprocess and its functions, im trying to take a screenshot form a video and save it at my other field of my model.
this is my model :

    


    class SubSong(models.Model):
song = models.ForeignKey(SongPage, on_delete=models.CASCADE, related_name='related_song')
create = jmodels.jDateField(auto_now_add=True)
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='related_user')
video = models.FileField(upload_to='sub_video/',)
like = models.ManyToManyField(User, blank=True, )
total_like = models.PositiveIntegerField(default=0)
is_allowed = models.BooleanField(default=False)
image_sub = ThumbImage(upload_to='sub_songs/', default='1.jpg')

def __str__(self):
    return self.song.title


    


    and views.py

    


        if request.method == 'POST':
    authen(request)
    form = MyTryForm(request.POST, request.FILES)
    if form.is_valid():
        data = form.cleaned_data
        x = SubSong.objects.create(song_id=id,
                                   user_id=request.user.id,
                                   video=data['video'], )
        path = x.video.name
        out = path.replace('sub_video/', '').replace('mp4', 'jpg')
        z=subprocess.check_output(
            ffmpeg.input('media/' + path, ss='00:00:50').filter(
                'thumbnail').output('media/sub_songs/' + out, vframes=1).run(), text=True)
        x.image_sub=z
        x.save()
        messages.success(request, 'ویدیوی شما با موفقیت ارسال شد ، پس از بررسی منتشر خواهد شد')
        return redirect(request.META.get('HTTP_REFERER'))

    else:
        messages.error(request, 'ویدیوی شما بارگداری نشد')
        return redirect(request.META.get('HTTP_REFERER'))


    


    it can save the video and also default picture 1.jpg at image_sub. also it can save scrrenshot at the media/sub_song/.but my problem is that it gives me error :
expected str, bytes or os.PathLike object, not NoneType
how i should return the screen from subprocess to save it as my image_sub field ? and why do this error raise ? i dont want to see this error again

    


  • ffmpeg capture single window screen freezes with only mouse working

    2 septembre 2015, par Saad Abdullah

    Scenario and Problem :
    I have two machines with windows 8.1 installed. On one computer, every thing works fine with video recording by using gdigrab to capture a window by title. But on the other pc, the desktop recording works fine, but when it comes to capture single window by title, the video freezes with only mouse working. (to be exact, if i play webcam or images in the window being captured, it records the content too, but when some video is played it starts showing black screen or freezed at first frame.

    Commandline :
    here is the commandline args

    ffmpeg -f gdigrab -framerate 30 -i title="Video - VLC media player" germ.flv

    What can be the issue on the other pc ?

  • avfilter/formats : allow unknown channel layouts by default

    22 novembre 2016, par Marton Balint
    avfilter/formats : allow unknown channel layouts by default
    

    Since the default in the libav fork is to only allow known layouts, making
    unknown layouts allowed by default here can be a security risk for filters
    directly merged from libav. However, usually it is simple to detect such cases,
    use of av_get_channel_layout_nb_channels is a good indicator, so I suggest we
    change this regardless.

    See http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/203204.html.

    This patch indirectly adds unknown channel layout support for filters where
    query_formats is not specified :

    abench
    afifo
    ainterleave
    anullsink
    apad
    aperms
    arealtime
    aselect
    asendcmd
    asetnsamples
    asetpts
    asettb
    ashowinfo
    azmq

    It introduces a query_formats callback for the asyncts filter, which only
    supports known channel layouts since it is using libavresample.

    And it removes .query_formats callback from filters where it was only there to
    support unknown layouts, as this is now the default :

    aloop
    ametadata
    anull
    asidedata
    asplit
    atrim

    Acked-by : Nicolas George <george@nsup.org>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavfilter/af_anull.c
    • [DH] libavfilter/af_asyncts.c
    • [DH] libavfilter/f_loop.c
    • [DH] libavfilter/f_metadata.c
    • [DH] libavfilter/f_sidedata.c
    • [DH] libavfilter/formats.c
    • [DH] libavfilter/formats.h
    • [DH] libavfilter/split.c
    • [DH] libavfilter/trim.c