Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (77)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (11491)

  • Avoid repetition in Schtasks in PowerSehll

    30 juin 2017, par Ali

    The question is simple, but it seems I have problems with the philosophy of Schtasks.

    Goal :

    Download an online stream only for 2 hours every day (using FFMPEG) when my favorite program is streaming ; we can give a start and end date, but I am fine if it runs every day indefinitely.

    How :

    Schedule a task that runs a PowerShell script when the online program starts ; of course this is what I came up with ; feel free to make suggestions, if you have better ideas (maybe using Python).

    My Solution :

    schtasks /Create /SC DAILY /TN Task1 /TR "powershell.exe .\dl.ps1" /ST 18:00 /DU 02:00

    where the dl.ps1 contains :

    ffmpeg -i "rtmp://185.23.131.187/live/flv:tv3 live=1" -c copy .\fileName.flv

    Problem :

    This task repeats itself after 10 minutes --- which is the default repetition time.

    Question

    How do I achieve the goal and avoid the repetition ? Maybe my mindset about duration, /DU, and repetition interval, /RI, is wrong.

    Bonus question

    I would like to change the name of each recorded file, i.e., fileName, based on the day of recording. How do I do that in PowerShell ?

    I have seen a solution that requires exporting the task to XML file. I was hoping that we could come up with a more elegant solution, if possible.

  • Script - split video file in equivalent segments

    4 octobre 2014, par Code_Ed_Student

    I am currently using ffmpeg to slice video files. I automated the process through a script called ffmpeg_split.sh. To view the full script click HERE.
    When I ran this script on a few .mp4 files I had, it would return nothing :

    __DURATION_HMS=$(ffmpeg -i "$__FILE" 2>&1 | grep Duration | \
       grep '\d\d:\d\d:\d\d.\d\d' -o)

    NOTE : This is line #54.

    So without this value, the calls that come after it to the function parse_duration_info() are returning the error message.

    According to the comments in the original script, there should be 2 arguments to parse_duration_info().

    # arg1: duration in format 01:23:45.67
    # arg2: offset for group 1 gives hours, 2 gives minutes,
    #       3 gives seconds, 4 gives milliseconds

    Here is the syntax to slice a video with script : ffmpeg_split.sh -s test_vid.mp4 -o video-part%03d.mp4 -c 00:00:08

    Belowe is where I parse the duration :

    function parse_duration_info() {
       if [[ $1 ]] && [[ $2 -gt 0 ]] && [[ $2 -lt 5 ]] ; then
           __OFFSET=$2
           __DURATION_PATTERN='\([0-9][0-9]\):\([0-9][0-9]\):\([0-9][0-9]\)\.\([0-9][0-9]\)'
           echo "$1" | sed "s/$__DURATION_PATTERN/\\$__OFFSET/"
       else
           echo "Bad input to parse_duration_info()"
           echo "Givven duration $1"
           echo "Givven offset $2"
           echo "Exiting..."
           exit 1
       fi
    }
  • Construct fictitious P-frames from just I-frames [closed]

    25 juillet 2024, par nilgirian

    Some context.. I saw this video recently https://youtu.be/zXTpASSd9xE?si=5alGvZ_e13w0Ahmb it's a continuous zoom into a fractal.

    


    I've been thinking a whole lot of how did they created this video 9 years ago ? The problem is that these frames are mathematically intensive to calculate back then and today still fairly really hard now.

    


    He states in the video it took him 33 hours to generate 1 keyframe.

    


    I was wondering how I would replicate that work. I know by brute force I can generate several images files (essentially each image would be an I-frame) and then ask ffmpeg to compress it into mp4 (where it will convert most of those images into P-frames). I know that. But if I did it that way I calculated it'd take me 6.5 years to render that 9min video (at 30fps, 9 years ago).

    


    So I imagine he only generated I-frames to cut down on time. And then this person somehow created fictitious P-frames in-between. Given that frame-to-frame are similar this seems like it should be doable since you're just zooming in. If he only generated just the I-frames at every 1 second (at 30fps) that work could be cut down to just 82 days.

    


    So if I only want to generate the images that will be used as I-frames could ffmpeg or some other program just automatically make a best guess to generate fictitious P-frames for me ?