Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (62)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Les images

    15 mai 2013
  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5909)

  • Extend Frame Size and Re-Encoding Video to be Blu-Ray Compliant with ffmpeg and tsMuxer

    23 novembre 2024, par grendell

    I have a media file with the following video stream :

    


    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1440x1080 [SAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn (default)


    


    I am attempting to extend the frame size to 1920x1080 and re-encode the video with libx264 to create a Blu-ray compatible video stream. I am using the following command (video filter from here) :

    


    ffmpeg -i original.mkv -c:v libx264 -preset veryslow -tune animation -profile:v high -crf 16 -pix_fmt yuv420p -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1" -an h264.mkv


    


    The resulting video stream :

    


    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)


    


    I then copy video, audio, and subtitle streams from three separate files to create the final file :

    


    ffmpeg -i h264.mkv -i audio.mkv -i subs.mkv -map 0:v -map 1:a -map 2:s -c copy bluray.mkv


    


    I then create a Blu-ray ISO by adding each track from bluray.mkv in tsMuxer. I have enabled "Continually insert SPS/PPS" and tried both "Do not change SEI and VUI data" as well as "Always rebuild SEI and VUI data". This process succeeds without warning or error.

    


    The resulting ISO can be mounted and played in both VLC and IINA, but when it is burned to a BD25 disc and played on a PS4, the video is a mix of the original frame, what looks like multiple smaller copies of the frame with incorrect image stride, and random green blocks, all of which update around once every five seconds. All audio and subtitle tracks play without issue.

    


    How do I ensure the resulting video stream of this conversion can be played on Blu-ray players without issue ?

    


  • Why this simple video streaming scheme does not work ?

    8 août 2014, par Vi.

    I’ve tried setting up simple webm video streaming scheme, based on ffserver and <video></video> element :

    # relevant part of ffserver.conf
    <stream>
       Feed feed1.ffm

       Format webm
       VideoFrameRate 15
       AVOptionVideo flags +global_header
       VideoSize 640x480
       VideoCodec libvpx
       VideoBitRate 800
    NoAudio
    </stream>

    # ffmpeg command line
    ffmpeg -f rawvideo -s 640x480 -i /dev/zero -vb 100000  http://vsodo.vi-server.org:8090/feed1.ffm

    # video element
    <video controls="controls" autoplay="autoplay">
       <source src="http://vsodo.vi-server.org:8090/feed1.webm" type="video/webm"></source>
       Your browser does not support the video tag.
    </video>

    But it works only in few cases :

    • luakit - works (uses GStreamer) ;
    • uzbl - works ;
    • Firefox - fails (at least in versions 17, 24 and 26 and 31) ;
    • Chromium 31.0.1650.63 - fails ;
    • Google Chrome 27.0.1453.93 - fails ;
    • Built-in browser in Android 2.3 - fails.

    Failing browsers usually show the video length and the fact that there’s no audio track, but the video area stays black, not green as expected.

    This page lists "Partial support" or "Supported" for webm and video element. Usual players like VLC or mplayer work if specify http://vsodo.vi-server.org:8090/feed1.webm to them. Example video page also works (except of on Android 2.3).

    Why it can fail ? How do I troubleshoot browser-specific the <video></video> problems ?

  • create a movie in python [closed]

    23 mai 2017, par masoud

    I have some files with names (’Den_car_resample’ +’_ sdf_ ’+ str(n)+’.dat’) where n changes from 0 to 25. I wrote a code to read these files and plots the results.
    now I want to create a movie from these plots. at the end of the program, I used the avconv command to do that.
    but, unfortunately my code creates a movie but it is empty.
    I don’t know the reason exactly but I think, first, I have to define a frame to each plot and then create a movie.
    can anyone please tell me how can I define a frame and also the add bit_rate of the movie.

    import sys
    import subprocess  
    import sdf
    import numpy as np
    import matplotlib.pyplot as plt  
    import time
    import matplotlib.animation as Animation
    from matplotlib.font_manager import FontProperties
    fp = FontProperties('Symbola')

    ##################### information from EPOCH input.deck
    nx,ny= 1200, 1600
    xmin=-100e-6
    xmax = 110e-6
    ymin = -200e-6
    ymax = 200e-6
    X =np.linspace(xmin,xmax,nx)  
    Y =np.linspace(ymin,ymax,ny)

    #################
    for n in range(0,25):
     nstr = str(n)

    ######################..... reading Density of carbon
     filename ="Den_car_resample" +'_sdf_'+ str(n)+'.dat'

     with open(filename, 'rb') as f:                        
       data = np.fromfile(f, dtype='float64', count=nx*ny)  

     Den_car  = np.reshape(data, [ny, nx], order='F')
     Den_car= np.log10(Den_car)

     ######################  Display Carbon density

     fig = plt.imshow(Den_car,  extent=[X.min()*1e6, X.max()*1e6, Y.min()*1e6,Y.max()*1e6], vmin=24, vmax=29, cmap='brg', aspect='auto')
     plt.suptitle('Den_car')
     plt.title('sdf '+ str(n)+'; Time= '+str(n*50)+'ps',color='green', fontsize=15)
     plt.xlabel('x($\mu$m)')
     plt.ylabel('y($\mu$m)')
     plt.text(-80,-40,'Den_Carbon',color='red', fontsize=15)
     plt.colorbar()
     plt.savefig( 'fig%06d.png' % n, bbox_inches='tight')          

     plt.pause(.1)
     plt.clf()  
     plt.close()

     ######################  Create movie

     subprocess.call("avconv -framerate 1 -i fig%06d.png -c:v libx264 -profile:v high -crf 20".split())

    sys.exit()