Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (9055)

  • MoviePy Create Video that keeps audio on Twitter

    26 janvier 2019, par SDS

    I’m exporting lots of videos and was planning to use them on Twitter.

    When I read the documentation the first time I (foolishly) thought I only had to worry about the dimensions and the rest would take care of itself.

    I have many files that look and play great on my PC but as soon as I load them into Twitter there is no audio.
    Twitter’s Media Best Practices are located here :

    Recommended Video Codec: H264 High Profile
    Recommended Frame Rates: 30 FPS, 60 FPS
    Recommended Video Resolution: 1280x720 (landscape), 720x1280 (portrait), 720x720 (square)
    Recommended Minimum Video Bitrate: 5,000 kbps
    Recommended Minimum Audio Bitrate: 128 kbps
    Recommended Audio Codec: AAC LC
    Recommended Aspect Ratio: 16:9 (landscape or portrait), 1:1 (square)
    Advanced:

    Frame rate must be 60 FPS or less
    Dimensions must be between 32x32 and 1280x1024
    File size must not exceed 512 mb
    Duration must be between 0.5 seconds and 140 seconds
    Aspect ratio must be between 1:3 and 3:1
    Must have 1:1 pixel aspect ratio
    Only YUV 4:2:0 pixel format is supported
    Audio must be AAC with Low Complexity profile. High-Efficiency AAC is not supported
    Audio must be mono or stereo, not 5.1 or greater
    Must not have open GOP
    Must use progressive scan

    Here’s the specs on a specific video :

    Video ----
    Length: 00:00:12
    Frame width 1280
    Frame height 720
    Data rate 238kbps
    Total bitrate 368kbps
    Frame rate 24.00 frames/second
    Audio --
    Bit rate 129 kbps
    Channels 2 (stereo)
    Audio sample rate 44.100 kHz
    File --
    Size 551 KB
    Item type MP4 File

    The code is fairly straightforward. I grab an image and make a short intro frame with it, then add two short clips and put it all together as you can see here :

    image_clip = ImageClip(my_image)   image_clip.set_duration(seconds).write_videofile('F:/sm_Temp_Files/trash_%s.mp4' % fname,fps=24)
    image_video_clip = mpy.VideoFileClip('F:/sm_Temp_Files/trash_%s.mp4' % fname)
    video_path = (my_video_path)
    video_clip = mpy.VideoFileClip(video_path, target_resolution = (h,w),audio=True)
    outro_clip = mpy.VideoFileClip('Logo_Intro_w_Stinger_Large.mp4',target_resolution = (h,w),audio=True)
    clips = [image_video_clip,video_clip,image_video_clip,video_clip,image_video_clip,outro_clip]
    slided_clips = [CompositeVideoClip([clip.fx( transfx.crossfadein, transition_seconds)]) for clip in clips]
    c = concatenate_videoclips(slided_clips)                
    c.write_videofile('F:/sm_Short_Video/sm_%s.mp4' % fname,fps=24)

    I’ll admit, I’m out of my league to know what to do next. When Googling it looks like others have had similar issues but show fixes in FFMpeg, like this example.

    Yes, I know MoviePy is written on top of FFMpeg but for a novice like me it would be really nice if there was tweaks I could do inside of MoviePy to get the audio to work on Twitter.

    Thank you in advance !

  • Creating a PowerShell Streamer Function w/youtube-dl, ffmpeg & ffplay

    11 juillet 2017, par Adam Chilcott

    My question is in regards to combining youtube-dl, ffmpeg, ffplay and PowerShell to handle video URLs.

    Some examples I’ve seen have piped a binary stream from youtube-dl to an external player using the Windows Command Prompt as demonstrated :

    youtube-dl --output - "https://youtube.com/mygroovycontent" | mpc-hc.exe /play /close -

    This works fine in Command Prompt as it does not mangle the binary stream. If you try and run the same command in PowerShell it doesn’t handle the binary stream so well and modifies the output, making it unreadable to the external player.

    In light of this I’ve written the following PowerShell function to get around this issue. It tries to mirror a similar function I’ve written in Bash (See : https://github.com/adamchilcott/.dotfiles/blob/master/.bash_functions.d/streamer.sh)

    The reason I’ve handled youtube-dl, ffmpeg and ffplay seperately is that defining the ffmpeg binary location in youtube-dl as an external program creates some issues when passing it in PowerShell.

    I was hoping that someone could take a look at my script and provide some feedback on what I have done here and if it can be improved upon or if a better implementation is already available ?

    Best,

    Adam.

    BEGIN POWERSHELL

    Function streamer
    {

    Param
    (
    [string] $streamURL
    )

    Begin
    {
    }

    Process
    {
    $streamDir = "$env:TEMP\YTD.d"

    $ytdBin = "Z:\PortableApps\CommandLineApps\youtube-dl\youtube-dl.exe"
    $streamExtractor = &$ytdBin --no-warnings --get-url $streamURL

    $ffmpegBin = "Z:\PortableApps\CommandLineApps\ffmpeg-20170702-c885356-win64-static\bin\ffmpeg.exe"
    $ffplayBin = "Z:\PortableApps\CommandLineApps\ffmpeg-20170702-c885356-win64-static\bin\ffplay.exe"

    if
    (
    -not (Test-Path -Path $streamDir -PathType Any)
    )

    {
    New-Item $streamDir -type directory -ErrorAction SilentlyContinue
    }

    Start-Process -FilePath $ffmpegBin -ArgumentList "-loglevel quiet -i $streamExtractor -c copy $streamDir\streamContainer.m2ts" -NoNewWindow -ErrorAction SilentlyContinue

    Do
    {
    Start-Sleep -Seconds 1
    }

    Until
    (
    (Get-Item $streamDir\streamContainer.m2ts -ErrorAction SilentlyContinue).Length -gt 256kb
    )

    &$ffplayBin -loglevel quiet $streamDir\streamContainer.m2ts

    if
    (
    (Test-Path -Path $streamDir -PathType Any) -eq $true -and (Get-Process -Name ffplay -ErrorAction SilentlyContinue) -eq $null
    )

    {

    Do
    {
    Stop-Process -Name ffmpeg -ErrorAction SilentlyContinue
    }

    Until
    (
    (Get-Process -Name ffmpeg -ErrorAction SilentlyContinue) -eq $null
    )

    Remove-Item $streamDir -Recurse -ErrorAction SilentlyContinue
    }
    }

    End
    {
    }

    }

    streamer -streamURL https://www.youtube.com/watch?v=9uFXw7vKz14

    END POWERSHELL

  • 5 perfect feature combinations to use with Heatmaps and Session Recordings

    28 janvier 2020, par Jake Thornton — Uncategorized

    Gaining valuable insights by simply creating a heatmap or setting up recordings on your most important web pages is a good start, but using the Heatmaps and Session Recordings features in combination with other Matomo features is where the real magic happens.

    If you’re serious about significantly increasing conversions on your website to impact your bottom line, you need to accurately answer these questions :

    With Matomo Analytics, you have the ability to integrate heatmaps and session recordings with all the features of a powerful web analytics platform, which means you get the complete picture of your visitor’s experience of your website.

    Here are five features that work with Heatmaps and Session Recordings to maximise conversions :

    1. Behaviour feature with Heatmaps

    Before creating heatmaps on pages you think are most important to your website, first check out Behaviour – Pages. Here you get valuable information around unique pageviews, bounce rate, average time on page and exit rates for every page on your website.

    Use this data as your starting point for heatmaps. Here you’ll identify current pain points for your visitors before using heatmaps to analyse their interactions on these pages.

    Here’s how to use the behaviour feature to determine which pages to setup heatmaps on :

    • Make sure you know what pages are generating the most unique page views, it could be your blog rather than your homepage
    • Which pages have the highest bounce rates – can you make some quick changes above-the-fold and see if this makes a difference
    • When the average time on page is high, why are visitors so engaged with these pages ? What keeps them reading ? Setup a heatmap to learn more
    • Reduce exit rates by moving them along to other pages on your website
    • Determine some milestones you want to achieve e.g. use heatmaps as your visual guide to improve average time on page, bounce rates and exit rates. A milestone could be that the exit rate for your previous blog was 34%, work towards getting this down to 30%

    2. Ecommerce feature and Custom Segments

    If you run an ecommerce business, you may want to learn only about visitors who are more likely to be your customers. For example, if you find 65% of product sales come from customers based in New York, but visits to your product pages are from every state in the USA, how can you learn more specifically about visitors only from New York ?

    Using Segments to target a particular audience :

    • First, make sure you have created heatmaps and recordings on the popular product pages you want to learn about your visitor’s interactions
    • Note : Make sure the segment you create generates enough pageviews to apply a heatmap for more accurate results. We recommend a minimum of 1,000 page views per sample size.
    • Then create a custom Segment – search Ecommerce and find the Product Name and select the product. Learn how to do this here.

    Click on ‘Add a new segment’ or on the ‘edit’ link next to an existing segment name to open the segment editor :

    Click on any item on the left to see the list of information you can segment by. In this case search “City”, then select “Is” and in the third column search “New York” (example in the image above) :

    You can also use the search box at the bottom to search through the whole list.

    • This will give you insights across the Matomo platform based only on customers who purchased this product
    • Then go to the Ecommerce feature – and find Sales. Here you will learn what your most popular locations are for your product sales.
    • Once you know the location you want to segment, go back and update the custom Segment you just created. Click on the edit pencil icon and update it by selecting Add AND condition, and add the sub group you would like to track on the product page. In this example, select City – New York. Click Save & Apply.

    Now you should have successfully created a segment for your popular product page with visitors only from New York.

    Check out the heatmap or recordings you created for this page. You may be very surprised to see how this segment engaged with your website compared to all website visitors.

    Note : If you run a lead generation website you can use the Goals feature instead of Ecommerce to track the success metrics you need.

    3. Visitor Profiles within Session Recordings

    Seeing visitor location, device, OS and browser for your recordings is very valuable, but it’s even more valuable to integrate visitor profiles with session recordings as you get to see everything that visitor has done on your website … ever ! 

    What pages they visited before/after the recording, what actions they took, how long they spent on your website etc. All this is captured in the visitor profile of every individual session recording so you can see where exactly engaged viewers are in their journey with your business, for example :

    • How has this visitor behaved on your website in the past ? 
    • Is this visitor already a customer ? 
    • Is this the visitors first time to your website and
    • What other pages on your website are they interested in seeing in this session ?

    Use the visitor profiles feature within session recordings to understand the users better when watching each session.

    You get the full picture of what role the page you recorded played in the overall experience of your website’s visitor. And more importantly, to see if they took the desired action you wanted them to take.

    4. Funnels feature (premium feature)

    The Funnels feature lets you see the customer journey from the first entry page through to the conversion page.

    Once you create a funnel, you can see the % of visitors who drop off between pages on their way to converting.

    In our example, you may then see page one to page two has a drop-off rate of 47%. Page two to page three 95% users drop-off rate and page three to page four 97.3% users drop-off rate.

    Why is the drop-off rate so high from page two to page three and why is the drop-off rate so low from page three to page four ?

    So, you may need to simplify things on page one because you may unknowingly be offering your visitor an easy way out of the funnel. Maybe the visitor is stuck reading your content and not understanding the value of your offering.

    Small tip for session recordings …

    With session recordings especially you can see firsthand through live recordings where exactly visitors click away from the page which exits them from your conversion funnel. Take note to see if this is a recurring issue with other visitors, then take action into fixing this hole.

    Whatever the case, work towards reducing drop-off rates through your conversion funnels by discovering where the problems exist, make changes and learn how these changes affect engagement through heatmaps and recordings.

    5. A/B Testing feature (premium feature)

    Following on from the example with the Funnels feature, once you identify there is a problem in your conversion funnel, how do you know what is preventing visitors from taking an action that pushes them to the next page in the funnel ? You need to test different variations of content to see what works best for your visitors.

    A/B Testing lets you test a variety of things, including :

    • different headlines 
    • less copy vs more copy 
    • different call-to-actions
    • different colour schemes
    • entirely different page layouts

    Once you’ve created two or more variations of specific landing pages in the conversion funnel, see how visitors interacted differently between the variations of landing pages through your heatmaps and recordings.

    You may see that your visitors have scrolled further down the page because more content was provided or an important CTA button was clicked more due to a colour change. Whatever the case, using A/B testing with heatmaps and session recordings is an effective combination for increasing user engagement.

    The conversion rate optimization (CRO) strategy

    CRO is the process of learning what the most valuable content/aspect of your website is and how to best optimize this for your visitors to increase conversion chances. 

    Heatmaps and session recordings play a vital role in this strategy, but it’s how you work these features in tandem with other valuable Matomo features that will give you the most actionable insights you need to grow your business.

    Want to learn how to create an effective CRO strategy ?