Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (53)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (7739)

  • How to save a video on top of it a text widget changes every couple of seconds flutter ?

    23 septembre 2023, par abdallah mostafa

    I've been working on auto subtitle tool for videos but I did not How to save a final video.
should I record the video or get screenshots of all the frames and combine them together to be a video.

    


    I've used FFmpegKit but it's so hard to make the position of the text

    


      Future<void> saveSubtitle(&#xA;      {required double leftPosition,&#xA;      required double topPosition,&#xA;      required double opacityOfBackground,&#xA;      required String backgroundColor,&#xA;      required String subtitleColor}) async {&#xA;    emit(ExportSubtitleLoading());&#xA;&#xA;    String fontDirectoryPath =&#xA;        await _exportSubtitle.writeFontToFile(&#x27;assets/fonts/arial.ttf&#x27;);&#xA;    if (backgroundColor == &#x27;Transparent&#x27;) {&#xA;      opacityOfBackground = 0.0;&#xA;      backgroundColor = &#x27;black&#x27;;&#xA;    }&#xA;    String subtitleFilter = "";&#xA;    for (var subtitle in subtitles!.fotmatedSubtitle!) {&#xA;      double startTime = _exportSubtitle.timeToSeconds(subtitle.interval![0]);&#xA;      double endTime = _exportSubtitle.timeToSeconds(subtitle.interval![1]);&#xA;      String text = subtitle.displayText!.replaceComma;&#xA;      int fontSize = controller!.value.aspectRatio > 0.5625 ? 24 * 3 : 24;&#xA;      if (countWords(text) > 9 &amp;&amp; countWords(text) &lt;= 15) {&#xA;        // Add line breaks ("\n") to the text&#xA;        text = _exportSubtitle.addLineBreaks(&#xA;          text,&#xA;        );&#xA;      } else {&#xA;        text = _exportSubtitle.addLineBreaks(text, true);&#xA;      }&#xA;      final centeredNumber = text.split(&#x27;\n&#x27;);&#xA;      // centeredNumber[2].split(&#x27; &#x27;).logger;&#xA;      // return;&#xA;      for (var i = 0; i &lt; centeredNumber.length; i&#x2B;&#x2B;) {&#xA;        if (i == 0) {&#xA;          if (centeredNumber.length > 1 &amp;&amp;&#xA;              centeredNumber[i].split(&#x27; &#x27;).join().length >&#xA;                  centeredNumber[i &#x2B; 1].split(&#x27; &#x27;).join().length) {&#xA;            subtitleFilter &#x2B;=&#xA;                " drawtext=text=&#x27;${centeredNumber[i]}&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=$leftPosition-30:y=$topPosition:fontsize=$fontSize:fontcolor=$subtitleColor:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@$opacityOfBackground,";&#xA;          } else {&#xA;            subtitleFilter &#x2B;=&#xA;                " drawtext=text=&#x27;${centeredNumber[i]}&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=$leftPosition&#x2B;20:y=$topPosition:fontsize=$fontSize:fontcolor=$subtitleColor:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@$opacityOfBackground,";&#xA;          }&#xA;        } else if (i == 1) {&#xA;          subtitleFilter &#x2B;=&#xA;              " drawtext=text=&#x27;${centeredNumber[i]}&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=$leftPosition:y=$topPosition&#x2B;25:fontsize=$fontSize:fontcolor=$subtitleColor:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@$opacityOfBackground,";&#xA;        } else {&#xA;          if (centeredNumber.length > 1 &amp;&amp;&#xA;              centeredNumber[i - 1].split(&#x27; &#x27;).join().length >&#xA;                  centeredNumber[i].split(&#x27; &#x27;).join().length) {&#xA;            subtitleFilter &#x2B;=&#xA;                " drawtext=text=&#x27;${centeredNumber[i]}&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=$leftPosition&#x2B;text_w/16:y=$topPosition&#x2B;50:fontsize=$fontSize:fontcolor=$subtitleColor:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@$opacityOfBackground,";&#xA;          } else {&#xA;            subtitleFilter &#x2B;=&#xA;                " drawtext=text=&#x27;${centeredNumber[i]}&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=$leftPosition-text_w/16:y=$topPosition&#x2B;50:fontsize=$fontSize:fontcolor=$subtitleColor:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@$opacityOfBackground,";&#xA;          }&#xA;        }&#xA;      }&#xA;&#xA;      // subtitleFilter &#x2B;=&#xA;      //     " drawtext=text=&#x27;$text&#x27;:enable=&#x27;between(t,$startTime,$endTime)&#x27;:x=$leftPosition:y=$topPosition:fontsize=24:fontcolor=$subtitleColor:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@$opacityOfBackground,";&#xA;    }&#xA;&#xA;    final finalFilter = "\"$subtitleFilter\"";&#xA;    // final finalFilter =&#xA;    //     "\"$subtitleFilter split[s1][s2];[s1]crop=w=576:h=1024,scale=576:1024[p];[s2][p]overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2[v]\"";&#xA;    final dir = await getTemporaryDirectory();&#xA;    String outputPath = &#x27;${dir.path}/ex_vid.mp4&#x27;;&#xA;    final arguments = [&#xA;      &#x27;-y&#x27;,&#xA;      &#x27;-i&#x27;,&#xA;      inputFile,&#xA;      &#x27;-vf&#x27;,&#xA;      finalFilter,&#xA;      &#x27;-c:v&#x27;,&#xA;      &#x27;libx264&#x27;,&#xA;      &#x27;-c:a&#x27;,&#xA;      &#x27;copy&#x27;,&#xA;      outputPath&#xA;    ];&#xA;    arguments.join(&#x27; &#x27;).logger;&#xA;    // return;&#xA;    // String command =&#xA;    //     "-y -i $inputFile -vf \" drawtext=text=&#x27;You know those cat are memes that everybody uses\nin their videos and the TV movie clips that people use.&#x27;:enable=&#x27;between(t,0,4.000)&#x27;:x=(w-text_w)/2:y=(h-text_h)/2:fontsize=24:fontcolor=white:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@0.5, drawtext=text=&#x27;Well, who are the four best free\nwebsites to find a move?&#x27;:enable=&#x27;between(t,4.000,6.240)&#x27;:x=(w-text_w)/2:y=(h-text_h)/2&#x2B;30:fontsize=24:fontcolor=white:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@0.5, split[s1][s2];[s1]crop=w=576:h=1024,scale=576:1024[p];[s2][p]overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2[v]\" -c:v libx264 -c:a copy $outputPath";&#xA;&#xA;    String command =&#xA;        "-y -i $inputFile -vf \" drawtext=text=&#x27;You know those cat are memes that everybody uses\nin their videos and the TV movie clips that people use.&#x27;:enable=&#x27;between(t,0,4.000)&#x27;:x=(w-text_w)/2:y=(h-text_h)/2:fontsize=24:fontcolor=white:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@0.5, drawtext=text=&#x27;Well, who are the four best free\nwebsites to find a move?&#x27;:enable=&#x27;between(t,4.000,6.240)&#x27;:x=$leftPosition:y=$topPosition:fontsize=24:fontcolor=white:fontfile=$fontDirectoryPath:box=1:boxcolor=$backgroundColor@0.5 \" -c:v libx264 -c:a copy $outputPath";&#xA;&#xA;    &#x27;=================&#x27;.logger;&#xA;    // FFmpegKitConfig.enableUTF8Charset();&#xA;    command.logger;&#xA;    await FFmpegKit.execute(arguments.join(&#x27; &#x27;)).then((session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        (&#x27;The Converstion is Success&#x27;).logger;&#xA;        final path = await _exportSubtitle.exportFile(File(outputPath));&#xA;        emit(ExportSubtitleSuccess(path));&#xA;      } else if (ReturnCode.isCancel(returnCode)) {&#xA;        // CANCEL&#xA;        (&#x27;The Converstion is Cancelled&#x27;).logger;&#xA;      } else {&#xA;        emit(ExportSubtitleerror());&#xA;        (&#x27;The Converstion Have an Error&#x27;).logger;&#xA;      }&#xA;    });&#xA;  }&#xA;</void>

    &#xA;

    This function, named saveSubtitle. It is responsible for applying subtitle to a video using FFmpeg. Here's a breakdown of what this function does :

    &#xA;

    It starts by emitting an event to indicate that the subtitle export process is loading.

    &#xA;

    It obtains the file path of a font (arial.ttf) from assets and stores it in fontDirectoryPath.

    &#xA;

    It checks if the background color for subtitles is set to "Transparent." If so, it sets the opacityOfBackground to 0.0 and changes the backgroundColor to black.

    &#xA;

    It initializes an empty subtitleFilter string, which will store FFmpeg filter commands for each subtitle.

    &#xA;

    It iterates through the subtitles and calculates the start and end time, text, and font size for each subtitle.

    &#xA;

    For each subtitle, it calculates the position (x and y coordinates) based on the leftPosition and topPosition. It also sets the font color, font file path, and background color with opacity for the subtitle.

    &#xA;

    It appends the FFmpeg drawtext filter command for each subtitle to the subtitleFilter string.

    &#xA;

    After processing all subtitles, it wraps the subtitleFilter string in double quotes and prepares to use it as an argument for the FFmpeg command.

    &#xA;

    It specifies the output path for the video with subtitles.

    &#xA;

    It constructs the FFmpeg command using various arguments, including the input video file, the subtitle filter, video and audio codecs, and the output path.

    &#xA;

    It executes the FFmpeg command using FFmpegKit and waits for the conversion process to complete.

    &#xA;

    Once the conversion is finished, it checks the return code to determine if it was successful. If successful, it emits a success event with the path to the exported video with subtitles. If canceled or if an error occurred, it emits corresponding events to indicate the status.

    &#xA;

    In summary, this function is used to add subtitles to a video by overlaying text on specific positions and with specified styles. It utilizes FFmpeg for video processing and emits events to notify the application about the export status.

    &#xA;

  • Virginia Consumer Data Protection Act (VCDPA) Guide

    27 septembre 2023, par Erin — Privacy

    Do you run a for-profit organisation in the United States that processes personal and sensitive consumer data ? If so, you may be concerned about the growing number of data privacy laws cropping up from state to state.

    Ever since the California Consumer Privacy Act (CCPA) came into effect on January 1, 2020, four other US states — Connecticut, Colorado, Utah and Virginia — have passed their own data privacy laws. Each law uses the CCPA as a foundation but slightly deviates from the formula. This is a problem for US organisations, as they cannot apply the same CCPA compliance framework everywhere else.

    In this article, you’ll learn what makes the Virginia Consumer Data Protection Act (VCDPA) unique and how to ensure compliance.

    What is the VCDPA ?

    Signed by Governor Ralph Northam on 2 March 2021, and brought into effect on 1 January 2023, the VCDPA is a new data privacy law. It gives Virginia residents certain rights regarding how organisations process their personal and sensitive consumer data.

    The VCDPA explained

    The law contains several provisions, which define :

    • Who must follow the VCDPA
    • Who is exempt from the VCDPA
    • The consumer rights of data subjects
    • Relevant terms, such as “consumers,” “personal data,” “sensitive data” and the “sale of personal data”
    • The rights and responsibilities of data controllers
    • What applicable organisations must do to ensure VCDPA compliance

    These guidelines define the data collection practices that VCDPA-compliant organisations must comply with. The practices are designed to protect the rights of Virginia residents who have their personal or sensitive data collected.

    What are the consumer rights of VCDPA data subjects ?

    There are seven consumer rights that protect residents who fit the definition of “data subjects” under the new Virginia data privacy law. 

    VCDPA consumer rights

    A data subject is an “identified or identifiable natural person” who has their information collected. Personally identifiable information includes a person’s name, address, date of birth, religious beliefs, immigration status, status of child protection assessments, ethnic origin and more.

    Below is a detailed breakdown of each VCDPA consumer right :

    1. Right to know, access and confirm personal data : Data subjects have the right to know that their data is being collected, the right to access their data and the right to confirm that the data being collected is accurate and up to date.
    2. Right to delete personal data : Data subjects have the right to request that their collected personal or sensitive consumer data be deleted.
    3. Right to correct inaccurate personal data : Data subjects have the right to request that their collected data be corrected.
    4. Right to data portability : Data subjects have the right to obtain their collected data and, when reasonable and possible, request that their collected data be transferred from one data controller to another.
    5. Right to opt out of data processing activity : Data subjects have the right to opt out of having their personal or sensitive data collected.
    6. Right to opt out of the sale of personal and sensitive consumer data : Data subjects have the right to opt out of having their collected data sold to third parties.

    Right to not be discriminated against for exercising one’s rights : Data subjects have the right to not be discriminated against for exercising their right to not have their personal or sensitive consumer data collected, processed and sold to third parties for targeted advertising or other purposes.

    Who must comply with the VCDPA ?

    The VCDPA applies to for-profit organisations. Specifically, those that operate and offer products or services in the state of Virginia.

    Who the VCDPA applies to

    Additionally, for-profit organisations that fit under either of these two categories must comply with the VCDPA :

    • Collect and process the personal data of at least 100,000 Virginia residents within a financial year or
    • Collect and process the personal data of at least 25,000 Virginia residents and receive at least 50% of gross revenue by selling personal or sensitive data.

    If a for-profit organisation resides out of the state of Virginia and falls into one of the categories above, they must comply with the VCDPA. Eligibility requirements also apply, regardless of the revenue threshold of the organisation in question. Large organisations can avoid VCDPA compliance if they don’t meet either of the above two eligibility requirements.

    What types of consumer data does the VCDPA protect ?

    The two main types of data that apply to the VCDPA are personal and sensitive data. 

    Types of VCDPA data

    Personal data is either identified or personally identifiable information, such as home address, date of birth or phone number. Information that is publicly available or has been de-identified (dissociated with a natural person or entity) is not considered personal data.

    Sensitive data is a category of personal data. It’s data that’s either the collected data of a known child or data that can be used to form an opinion about a natural person or individual. Examples of sensitive data include information about a person’s ethnicity, religion, political beliefs and sexual orientation. 

    It’s important that VCDPA-compliant organisations understand the difference between the two data types, as failure to do so could result in penalties of up to $7,500 per violation. For instance, if an organisation wants to collect sensitive data (and they have a valid reason to do so), they must first ask for consent from consumers. If the organisation in question fails to do so, then they’ll be in violation of the VCDPA, and may be subject to multiple penalties — equal to however many violations they incur.

    A 5-step VCDPA compliance framework

    Getting up to speed with the terms of the VCDPA can be challenging, especially if this is your first time encountering such a law. That said, even organisations that have experience with data privacy laws should still take the time to understand the VCDPA.

    VCDPA compliance explained

    Here’s a simple 5-step VCDPA compliance framework to follow.

    1. Assess data

    First off, take the time to become familiar with the Virginia Consumer Data Protection Act (VCDPA). Then, read the content from the ‘Who does the VCDPA apply to’ section of this article, and use this information to determine if the law applies to your organisation.

    How do you know if you reach the data subject threshold ? Easy. Use a web analytics platform like Matomo to see where your web visitors are, how many of them (from that specific region) are visiting your website and how many of them you’re collecting personal or sensitive data from.

    To do this in Matomo, simply open the dashboard, look at the “Locations” section and use the information on display to see how many Virginia residents are visiting your website.

    Matomo lets you easily view your visitors by region

    Using the dashboard will help you determine if the VCDPA applies to your company.

    2. Evaluate your privacy practices

    Review your existing privacy policies and practices and update them to comply with the VCDPA. Ensure your data collection practices protect the confidentiality, integrity and accessibility of your visitors.

    One way to do this is to automatically anonymise visitor IPs, which you can do in Matomo — in fact, the feature is automatically set to default. 

    ip address anonymity feature

    Another great thing about IP anonymisation is that after a visitor leaves your website, any evidence of them ever visiting is gone, and such information cannot be tracked by anyone else. 

    3. Inform data subjects of their rights

    To ensure VCDPA compliance in your organisation, you must inform your data subjects of their rights, including their right to access their data, their right to transfer their data to another controller and their right to opt out of your data collection efforts.

    That last point is one of the most important, and to ensure that you’re ready to respond to consumer rights requests, you should prepare an opt-out form in advance. If a visitor wants to opt out from tracking, they’ll be able to do so quickly and easily. Not only will this help you be VCDPA compliant, but your visitors will also appreciate the fact that you take their privacy seriously.

    To create an opt-out form in Matomo, visit the privacy settings section (click on the cog icon in the top menu) and click on the “Users opt-out” menu item under the Privacy section. After creating the form, you can then customise and publish the form as a snippet of HTML code that you can place on the pages of your website.

    4. Review vendor contracts

    Depending on the nature of your organisation, you may have vendor contracts with a third-party business associate. These are individuals or organisations, separate from your own, that contribute to the successful delivery of your products and services.

    You may also engage with third parties that process the data you collect, as is the case for many website owners that use Google Analytics (to which there are many alternatives) to convert visitor data into insights. 

    Financial institutions, such as stock exchange companies, also rely on third-party data for trading. If this is the case for you, then you likely have a Data Processing Agreement (DPA) in place — a legally binding document between you (the data controller, who dictates how and why the collected data is used) and the data processor (who processes the data you provide to them).

    To ensure that your DPA is VCDPA compliant, make sure it contains the following items :

    • Definition of terms
    • Instructions for processing data
    • Limits of use (explain what all parties can and cannot do with the collected data)
    • Physical data security practices (e.g., potential risks, risk of harm and control measures)
    • Data subject rights
    • Consumer request policies (i.e., must respond within 45 days of receipt)
    • Privacy notices and policies

    5. Seek expert legal advice

    To ensure your organisation is fully VCDPA compliant, consider speaking to a data and privacy lawyer. They can help you better understand the specifics of the law, advise you on where you fall short of compliance and what you must do to become VCDPA compliant.

    Data privacy lawyers can also help you draft a meaningful privacy notice, which may be useful in modifying your existing DPAs or creating new ones. If needed, they can also advise you on areas of compliance with other state-specific data protection acts, such as the CCPA and newly released laws in Colorado, Connecticut and Utah.

    How does the VCDPA differ from the CCPA ?

    Although the VCDPA has many similarities to the CCPA, the two laws still have their own approach to applying the law. 

    Here’s a quick breakdown of the main differences that set these laws apart.

    Definition of a consumer

    Under the VCDPA, a consumer is a “natural person who is a Virginia resident acting in an individual or household context.” Meanwhile, under the CCPA, a consumer is a “natural person who is a California resident acting in an individual or household context.” However, the VCDPA omits people in employment contexts, while the CCPA doesn’t. Hence, organisations don’t need to consider employee data.

    Sale of personal data

    The VCDPA defines the “sale of personal data” as an exchange “for monetary consideration” by the data controller to a data processor or third party. This means that, under the VCDPA, an act is only considered a “sale of personal data” if there is monetary value attached to the transaction.

    This contrasts with the CCPA, where that law also counts “other valuable considerations” as a factor when determining if the sale of personal data has occurred.

    Right to opt out

    Just like the CCPA, the VCDPA clearly outlines that organisations must respond to a user request to opt out of tracking. However, unlike the CCPA, the VCDPA does not give organisations any exceptions to such a right. This means that, even if the organisation believes that the request is impractical or hard to pull off, it must comply with the request under any circumstances, even in instances of hardship.

    Ensure VCDPA compliance with Matomo

    The VCDPA, like many other data privacy laws in the US, is designed to enhance the rights of Virginia consumers who have their personal or sensitive data collected and processed. Fortunately, this is where platforms like Matomo can help.

    Matomo is a powerful web analytics platform that has built-in features to help you comply with the VCDPA. These include options like :

    Try out the free 21-day Matomo trial today. No credit card required.

  • How to setup ffmpeg for linux server

    1er décembre 2014, par hitesh

    I need to create a screen shot from video,

    I have followed this tutorial to do the intial setup in window 8, php 5.3

    1) I downloaded the ffmpeg from here -[
    http://ffmpeg.zeranoe.com/builds/ ] for 64 bit operating system.

    2) I followed the https://www.youtube.com/watch?v=gU49GiWGGAI , video and did all configuration successfully and phpinfo() shows that ffmpeg has been installed.

    3) Then I tried this to find out whether it is working or not,

    It worked successfully

    4) Next I followed this video tutorial here and thumbnails were created successfully.

    below is my code

    /**
    * FFMPEG-PHP Test Script
    *
    * Special thanks to http://www.sajithmr.me/ffmpeg-sample-code for this code example!
    * See the tutorial at http://myownhomeserver.com on how to install ffmpeg-php.
    */
    error_reporting(1);
    error_reporting(E_ALL ^ E_NOTICE);
    // Check if the ffmpeg-php extension is loaded first
    extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

    // Determine the full path for our video
    $vid = realpath('./videos/myvideo.mp4');
    $videosize = filesize($vid);
    $remoteVideo = 'http://video-js.zencoder.com/oceans-clip.mp4';

    //ffmpeg

    $ffmpeg = dirname(__FILE__) . "\\ffmpeg\\bin\\ffmpeg";
    $imageFile = "1.png";
    $image2 = "2.png";
    $size = "120x90";
    $getfromsecond = 7;
    $cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size $imageFile";
    $cmd2 = "$ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size $image2";
    if(!shell_exec($cmd)){
       echo "Thumbnail created";
    }else{
       echo "Error Creating thumbnail";
    }

    if(!shell_exec($cmd2)){
       echo "Thumbnail for remote url was created";
    }else{
       echo "Error Creating thumbnail for remote url ";
    }

     OUTPUT
       Thumbnail created
       Thumbnail for remote url was created

    Now above code works as expected in my local, in window machine , I need to do it in my server environment(Linux server) with php 5.5. How do I do the configuration for ffmpeg in linux server with php 5.5.