Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (8156)

  • FFMPEG command not working on MP4 files as expected

    21 février 2020, par DavidB

    I am trying to set the output time offset for mp4 file.

    ffmpeg -ss 13.554000 -i input.mp4 -c copy -t 10 -output_ts_offset 13.554000 output.mp4

    This code works for WEBM file as expected but not for MP4.
    In webm it delays start time of video to the specified timestamp and duration is 23.554 but in mp4 it just cuts the video, start time is set to 0 and duration is 10
    Cannot find what is problem.

    ffmpeg -ss 12.960000 -i v.mp4 -c copy -t 10  -output_ts_offset 12.960000 output.mp4
    ffmpeg version git-2019-12-26-b0d0d7e Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20191125
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig
    --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
    --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora
    --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp
    --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis
    --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid
    --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
    --enable-libopenmpt --enable-amf
     libavutil      56. 37.100 / 56. 37.100
     libavcodec     58. 65.100 / 58. 65.100
     libavformat    58. 35.101 / 58. 35.101
     libavdevice    58.  9.101 / 58.  9.101
     libavfilter     7. 69.101 /  7. 69.101
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01T00:00:00.000000Z
       encoder         : Lavf53.24.2
     Duration: 00:00:29.57, start: 0.000000, bitrate: 1421 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1032 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : SoundHandler
    Output #0, mp4, to 'output.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1032 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  250 fps=0.0 q=-1.0 Lsize=    1687kB time=00:00:09.99 bitrate=1382.7kbits/s speed=2.21e+03x
    video:1212kB audio:468kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.408804%```
  • 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

    


  • Revision 26cec5c13f : Basic encryption feature for libvpx. New decoder control paramter VP8_SET_DECRY

    16 mars 2013, par Dmitry Kovalev

    Changed Paths : Modify /configure Modify /test/decode_test_driver.cc Modify /test/decode_test_driver.h Modify /test/encode_test_driver.cc Modify /test/test.mk Modify /test/vp8_boolcoder_test.cc Add /test/vp8_decrypt_test.cc Modify /vp8/decoder/dboolhuff.c (...)