Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (94)

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

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (8718)

  • Animated line chart with pandas, matplotlib and ffmpeg

    10 avril 2020, par Mark K

    In producing an animated line chart, I have below data and codes.

    



    But when the chart produced, it shows no line. What did I do wrong ?

    



    Thank you.

    



    import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as animation

title = 'Heroin Overdoses'

data = {'Year' : ["1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016"], 
'Heroin Overdoses' : [280,443,413,486,475,148,197,170,448,103,137,160,483,356,352,300,466,278]}
overdose = pd.DataFrame(data)

Writer = animation.writers['ffmpeg']
writer = Writer(fps=20, metadata=dict(artist='Me'), bitrate=1800)

fig = plt.figure(figsize=(10,6))
plt.xlim(1999, 2016)
plt.ylim(np.min(overdose)[0], np.max(overdose)[0])
plt.xlabel('Year',fontsize=20)
plt.ylabel(title,fontsize=20)
plt.title('Heroin Overdoses per Year',fontsize=20)

def animate(i):
    data = overdose.iloc[:int(i+1)] #select data range
    p = sns.lineplot(x=data.index, y=data[title], data=data, color="r")
    p.tick_params(labelsize=17)
    plt.setp(p.lines,linewidth=7)

ani = matplotlib.animation.FuncAnimation(fig, animate, frames=17, repeat=True)

ani.save('C:\\folder\\line chart.mp4', writer=writer)


    


  • How to use YouTube-dl to stream from Bloomberg TV ?

    1er janvier 2020, par Mr. Demetrius Michael

    Any help would be appreciated !

    This isn’t getting the correct stream from Bloomberg LiveTV, and I’m unsure why and how to fix.

    $ youtube-dl https://www.bloomberg.com/live

    Here’s a snippet of the errors that I get from that link :

    [mp4 @ 0x7ffd13860c00] Invalid DTS: 9009 PTS: 3003 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 12012 PTS: 9009 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 21021 PTS: 15015 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 24024 PTS: 21021 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 33033 PTS: 27027 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 36036 PTS: 33033 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 45045 PTS: 39039 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 48048 PTS: 45045 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 57057 PTS: 51051 in output stream 0:0, replacing by guess
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 60060 PTS: 57057 in output stream 0:0, replacing by guess
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=963063, dts=969069, size=12512
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=969069, dts=972072, size=12513
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=963063, dts=969069, size=12512
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 69069 PTS: 63063 in output stream 0:0, replacing by guess
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=969069, dts=972072, size=12513
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 72072 PTS: 69069 in output stream 0:0, replacing by guess
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=975075, dts=981081, size=12512
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=981081, dts=984084, size=12513
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=975075, dts=981081, size=12512
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 81081 PTS: 75075 in output stream 0:0, replacing by guess
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=981081, dts=984084, size=12513
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 84084 PTS: 81081 in output stream 0:0, replacing by guess
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=987087, dts=993093, size=12512
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=993093, dts=996096, size=12513
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=987087, dts=993093, size=12512
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 93093 PTS: 87087 in output stream 0:0, replacing by guess
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=993093, dts=996096, size=12513
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 96096 PTS: 93093 in output stream 0:0, replacing by guess
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=999099, dts=1005105, size=12512
    [mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=1005105, dts=1008108, size=12513
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=999099, dts=1005105, size=12512
    [mp4 @ 0x7ffd13860c00] Invalid DTS: 105105 PTS: 99099 in output stream 0:0, replacing by guess
    [hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=1005105, dts=1008108, size=12513

    Ideally I would be able to get all of their available programming :

    https://www.bloomberg.com/live/us
    https://www.bloomberg.com/live/us/btv
    https://www.bloomberg.com/live/europe
    https://www.bloomberg.com/live/asia
    https://www.bloomberg.com/live/australia
    https://www.bloomberg.com/live/stream
    https://www.bloomberg.com/live/emea
    https://www.bloomberg.com/live/asia_stream
    https://www.bloomberg.com/live/politics
  • Python FFmpeg : Setting VBR and BT.709

    14 décembre 2019, par Cryptonaut

    I’m using this Python library to programmatically generate a short video using an image (.png) as input. The video needs to match the specifications of another video created by someone else.

    The key differences between my output and the other are the following (these are the media attributes I desire to have) :

    How would I achieve VBR ? It was my understanding ProRes 422 HQ natively used unconstrained VBR yet my output specifies CBR.

    Secondly, as can be seen from my code, I’m attempting to conform to BT.709. However, my media information output does not specify this. What am I doing incorrectly ?

    Here’s my code :

       image = ffmpeg.input(input_image, t='00:00:10', framerate='24000/1001', loop='1', probesize='42M')

       output = ffmpeg.output(image, output_video,
       f='mov',
       vcodec='prores_ks',
       vprofile='3',
       pix_fmt='yuv422p10le',
       g='48',
       video_track_timescale='24000',
       movflags='use_metadata_tags',
       timecode='00:00:00:00',
       color_primaries='bt709',
       color_trc='bt709',
       colorspace='bt709',
       qcomp='1',
       # BT.709 issue solved by adding the bsf option as seen via the line below
       bsf='prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709',
       vf='scale=in_range=full:in_color_matrix=bt709:out_range=full:out_color_matrix=bt709')

       output.run()

    Here’s the media information produced by my output :

    {
      "media":{
         "@ref":"Redacted",
         "track":[
            {
               "@type":"General",
               "VideoCount":"1",
               "OtherCount":"1",
               "FileExtension":"mov",
               "Format":"MPEG-4",
               "Format_Profile":"QuickTime",
               "CodecID":"qt  ",
               "CodecID_Version":"0000.02",
               "CodecID_Compatible":"qt  ",
               "FileSize":"196366623",
               "Duration":"10.010",
               "OverallBitRate":"156936362",
               "FrameRate":"23.976",
               "FrameCount":"240",
               "StreamSize":"2463",
               "HeaderSize":"28",
               "DataSize":"196364172",
               "FooterSize":"2423",
               "IsStreamable":"No",
               "File_Created_Date":"UTC 2019-12-13 19:26:37.150",
               "File_Created_Date_Local":"2019-12-13 19:26:37.150",
               "File_Modified_Date":"UTC 2019-12-13 19:27:20.303",
               "File_Modified_Date_Local":"2019-12-13 19:27:20.303"
            },
            {
               "@type":"Video",
               "StreamOrder":"0",
               "ID":"1",
               "Format":"ProRes",
               "Format_Version":"0",
               "Format_Profile":"422 HQ",
               "CodecID":"apch",
               "Duration":"10.010",
               "BitRate_Mode":"CBR",
               "BitRate":"156934237",
               "Width":"1920",
               "Height":"1080",
               "Sampled_Width":"1920",
               "Sampled_Height":"1080",
               "PixelAspectRatio":"1.000",
               "DisplayAspectRatio":"1.778",
               "Rotation":"0.000",
               "FrameRate_Mode":"CFR",
               "FrameRate":"23.976",
               "FrameCount":"240",
               "ColorSpace":"YUV",
               "ChromaSubsampling":"4:2:2",
               "ScanType":"Progressive",
               "Delay":"0.000",
               "StreamSize":"196364160",
               "Encoded_Library":"Lavc",
               "colour_description_present":"Yes",
               "colour_description_present_Source":"Stream",
               "colour_primaries_Source":"Stream",
               "transfer_characteristics_Source":"Stream",
               "matrix_coefficients_Source":"Stream"
            },
            {
               "@type":"Other",
               "StreamOrder":"1",
               "ID":"2",
               "Type":"Time code",
               "Format":"QuickTime TC",
               "Duration":"10.010",
               "FrameRate":"23.976",
               "TimeCode_FirstFrame":"00:00:00:00",
               "TimeCode_Striped":"Yes",
               "Language":"en",
               "Default":"No"
            }
         ]
      }
    }

    Here’s the media information spec I’m trying to match :

    {
      "media":{
         "@ref":"Redacted",
         "track":[
            {
               "@type":"General",
               "VideoCount":"1",
               "OtherCount":"1",
               "FileExtension":"mov",
               "Format":"MPEG-4",
               "Format_Profile":"QuickTime",
               "CodecID":"qt  ",
               "CodecID_Version":"2005.03",
               "CodecID_Compatible":"qt  ",
               "FileSize":"1397430682",
               "Duration":"70.737",
               "OverallBitRate_Mode":"VBR",
               "OverallBitRate":"158042403",
               "FrameRate":"23.976",
               "FrameCount":"1696",
               "StreamSize":"9898",
               "HeaderSize":"28",
               "DataSize":"1397420796",
               "FooterSize":"9858",
               "IsStreamable":"No",
               "Encoded_Date":"UTC 2019-04-29 22:26:32",
               "Tagged_Date":"UTC 2019-04-29 22:26:32",
               "File_Created_Date":"UTC 2019-12-12 16:52:57.215",
               "File_Created_Date_Local":"2019-12-12 16:52:57.215",
               "File_Modified_Date":"UTC 2019-12-12 17:25:58.903",
               "File_Modified_Date_Local":"2019-12-12 17:25:58.903",
               "Encoded_Application":"DVP Factory r561 (2019-04-25), Host: dvp07"
            },
            {
               "@type":"Video",
               "StreamOrder":"0",
               "ID":"1",
               "Format":"ProRes",
               "Format_Version":"0",
               "Format_Profile":"422 HQ",
               "CodecID":"apch",
               "Duration":"70.737",
               "Duration_LastFrame":"-0.000",
               "BitRate_Mode":"VBR",
               "BitRate":"158040381",
               "Width":"1920",
               "Height":"1080",
               "Sampled_Width":"1920",
               "Sampled_Height":"1080",
               "PixelAspectRatio":"1.000",
               "DisplayAspectRatio":"1.778",
               "Rotation":"0.000",
               "FrameRate_Mode":"CFR",
               "FrameRate":"23.976",
               "FrameCount":"1696",
               "ColorSpace":"YUV",
               "ChromaSubsampling":"4:2:2",
               "ScanType":"Progressive",
               "Delay":"0.000",
               "StreamSize":"1397420784",
               "Encoded_Library":"agi0",
               "Language":"en",
               "Encoded_Date":"UTC 2019-04-29 22:26:32",
               "Tagged_Date":"UTC 2019-04-29 22:26:32",
               "colour_description_present":"Yes",
               "colour_description_present_Source":"Container / Stream",
               "colour_primaries":"BT.709",
               "colour_primaries_Source":"Container",
               "colour_primaries_Original_Source":"Stream",
               "transfer_characteristics":"BT.709",
               "transfer_characteristics_Source":"Container",
               "transfer_characteristics_Original_Source":"Stream",
               "matrix_coefficients":"BT.709",
               "matrix_coefficients_Source":"Container / Stream"
            },
            {
               "@type":"Other",
               "StreamOrder":"1",
               "ID":"2",
               "Type":"Time code",
               "Format":"QuickTime TC",
               "Duration":"70.737",
               "FrameRate":"23.976",
               "TimeCode_FirstFrame":"00:00:00:00",
               "TimeCode_Striped":"Yes",
               "Language":"en",
               "extra":{
                  "Encoded_Date":"UTC 2019-04-29 22:26:32",
                  "Tagged_Date":"UTC 2019-04-29 22:26:32"
               }
            }
         ]
      }
    }