Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (27)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (5944)

  • Windows video player cannot play cropped video from ffmpeg

    28 juillet 2019, par Chen Clarence

    I am trying to crop video with ffmpeg, I have encountered three problems.
    First, I used the following code to crop a 1080p video.

    ffmpeg -i 1080vid.avi -vf "crop=1920:1080:0:0" -c:v libx264 -crf 1 -c:a copy output.mp4

    However, in the compression rate argument, it only works if I set -crf to a positive value. If I set it to 0, then the output video cannot be played by my Windows 10 video player. However, since I am pursuing a lossless conversion, this is problematic. The output mp4 is smaller than 5% of the original size.

    The original goal was to cut a 1080*15360 video into 8 1080p videos. However, using the following code, I get unplayable output after playing with all the settings.

    ffmpeg -i sample.avi -vf "crop=1920:1080:0:0" -c:v libx264 -crf 1 -c:a copy output.mp4

    The input sample.avi is a lossless avi with bitrate larger than 1GB/s, and the output is a 70kb unplayable file. When opened, a pop up window displays :

    Choose something else to play. This item is in a format we don't support.
    0xc00d36b4

    The following is the command line output.

    ffmpeg version N-94396-g47b6ca0b02 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.1.1 (GCC) 20190716
     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-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 32.100 / 56. 32.100
     libavcodec     58. 55.100 / 58. 55.100
     libavformat    58. 30.100 / 58. 30.100
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 58.100 /  7. 58.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, avi, from 'sample.avi':
     Metadata:
       date            : 2019-07-26T07:09:04.185811
     Duration: 00:00:03.00, start: 0.000000, bitrate: 11932176 kb/s
       Stream #0:0: Video: rawvideo, bgr24, 15360x1080, 12066071 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    File 'output.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 000002a4a910b900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000002a4a910b900] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit
    [libx264 @ 000002a4a910b900] 264 - core 157 r2970 5493be8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output.mp4':
     Metadata:
       date            : 2019-07-26T07:09:04.185811
       encoder         : Lavf58.30.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 15360x1080, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc58.55.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame=   90 fps=8.0 q=-1.0 Lsize=      65kB time=00:00:02.90 bitrate= 183.7kbits/s speed=0.258x
    video:63kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.042484%
    [libx264 @ 000002a4a910b900] frame I:1     Avg QP: 0.35  size: 22252
    [libx264 @ 000002a4a910b900] frame P:23    Avg QP: 0.09  size:   476
    [libx264 @ 000002a4a910b900] frame B:66    Avg QP: 0.00  size:   467
    [libx264 @ 000002a4a910b900] consecutive B-frames:  2.2%  0.0%  0.0% 97.8%
    [libx264 @ 000002a4a910b900] mb I  I16..4: 92.1%  6.5%  1.5%
    [libx264 @ 000002a4a910b900] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
    [libx264 @ 000002a4a910b900] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
    [libx264 @ 000002a4a910b900] 8x8 transform intra:6.5% inter:0.0%
    [libx264 @ 000002a4a910b900] coded y,u,v intra: 0.4% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
    [libx264 @ 000002a4a910b900] i16 v,h,dc,p: 96%  2%  2%  0%
    [libx264 @ 000002a4a910b900] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 93%  1%  7%  0%  0%  0%  0%  0%  0%
    [libx264 @ 000002a4a910b900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 25% 31%  0%  0%  0%  0%  0%  0%
    [libx264 @ 000002a4a910b900] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000002a4a910b900] kb/s:170.49
  • How to use Python (For example, ffmpeg or moviePy) to split large video to display on multiple screen [on hold]

    27 juillet 2019, par Chen Clarence

    I am trying to find resources to split a very long (1080*15360) video into 8 1080p videos of the same time length. Is there anything that could achieve this, or even better allows control over each pixel(use a function to cover part of my video with a black circle). Right now I have to brute force it, such as the following, but I’m sure there are much more efficient methods. Thanks in advance !

    cap=cv2.VideoCapture('sample.avi')
    #inputs & check for error
    numberOfScreens=8
    screenArrangement=(1,8)
    if (numberOfScreens!=(screenArrangement[0]*screenArrangement[1])):
       raise ValueError('The screen arrangement does not match the number of scrrens')
       exit(0)


    currentFrame=0
    originalFrames=[]
    while(True):
       #reading frames
       ret,frame=cap.read()
       if not ret:
           break
       height, width, layers = frame.shape
       unitHeight=(int)(height/screenArrangement[0])   #reduce this to outside loop
       unitWidth=(int)(width/screenArrangement[1])
       #cutting frames into desired size
       for i in range(screenArrangement[0]):
           for j in range(screenArrangement[1]):
               try:
                   if not os.path.exists('Screen'+str(i*screenArrangement[0]+j+1)):
                       os.makedirs('Screen'+str(i*screenArrangement[0]+j+1))
                       print('creating directory '+'Screen'+str(i*screenArrangement[0]+j+1))
               except OSError:
                   print ("Error Creating Directory")
               name='./Screen'+str(i*screenArrangement[0]+j+1)+'/frame'+str(currentFrame)+'.png'
               cropImg = frame[(i*unitHeight):((i+1)*unitHeight), (j*unitWidth):((j+1)*unitWidth)]
               print('creating'+name)
               #saving cropeed frames
               cv2.imwrite(name, cropImg,[cv2.IMWRITE_PNG_COMPRESSION, 0])
       currentFrame+=1
    Frames=currentFrame

    #setting up the writer object
    fourcc = cv2.VideoWriter_fourcc(*'XVID')
    writer=cv2.VideoWriter('Screen1.avi', fourcc, 30, (unitWidth, unitHeight), True)
    #write the video
    for i in range(Frames):
       img=cv2.imread('./Screen1/frame'+str(i)+'.png')
       writer.write(img)
    writer.release()
    cap.release()
    cv2.destroyAllWindows()
  • How to detect added scenes in Director's Cut Edition of movie ?

    17 juillet 2019, par B Lolo

    I’ve got huge collection of .mkv files. In every movie folder there are two files : one original movie and one extended edition of that movie.

    Two files can be different for example one is 480p and the second 1080p.

    One can be 1 hour long, second one 40 minutes.

    In those extended edition files scenes are added randomly, so it could be 2 minutes in beginning, 5 minutes after first 10 minutes of the film and so on.

    Is there a way to use Python and ffmpeg to detect scenes from extended edition files that are absent in original movie file ?

    I can also work with only audio if that is easier to do.

    For now I got idea to use ffmpeg and scene detection, I can manually search for differences between files, but I would like some hints where to look changes.

    This is python code with ffmpy library :

    from ffmpy import FFmpeg

    plik = "C:/special.mkv"
    png = re.sub("\.mkv","_changes.png",plik)

    ff = FFmpeg(executable='C:/ffmpeg.exe', global_options ='-v error', inputs={plik : ''}, outputs={png : "-vf select='gt(scene\,0.4)',scale=320:-1,tile=10x80 -frames:v 1 -y"})
    result = ff.run(stdout=PIPE, stderr=PIPE)