Recherche avancée

Médias (91)

Autres articles (21)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (5620)

  • How to record playable video files in gstreamer even if recording is interrupted unexpectedly (e.g. power disconnects) ?

    16 septembre 2021, par Otter_warrior

    I have been recording video streams on my Jetson Xavier NX using a simple gstreamer pipeline such as this

    


    gst-launch-1.0 -v \
nvarguscamerasrc sensor-id=0 ! \
'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' ! \
nvv4l2h265enc ! 'video/x-h265, stream-format=(string)byte-stream' ! \
h265parse ! qtmux ! filesink location=video.mp4 -e


    


    All is working if the recording is interrupted by keyboard interrupt Ctrl + C, but if the recording is interrupted unexpectedly (e.g. power gets disconnected) the resulting file has no playable stream, even if the file size is correct.

    


    I know that mp4 recording needs to be stopped properly otherwise it won't have the necessary information at the end of the file, but I was wondering if there was any other gstreamer pipelines or final file formats that would allow for an H265 encoded video file to be playable even if the recording is ended unexpectedly.

    


    It would be good even if the recorded file needed to be converted before being playable (e.g. with ffmpeg), as long as the information can be recovered without having to go through non-free mp4 recovery tools.

    


  • Windows Batch - Change the beginning of a path but keep the rest

    21 juin 2014, par o_ren

    I’m running FFMPEG for video encoding.
    I have a batch file which will encode files you drop on it, keeping the file’s original name and copy the encoded files to a specific directory.
    I would like that script to "know" the original’s file path and copy the encoded file to a path relative to it, meaning :
    original file dropped on batch file is in C :\some\folder\show\season\episode\file.mov
    encoded file should be encoded to D :\different\directory\show\season\episode\file.mp4
    The part of the path up until \show is fixed.

    This is what I have so far :

    @echo on

    set count=0
    for %%a in (%*) do (<br />
     if exist %%a (

           md \\specific\path\"%%~na"

           %MYFILES%\ffmpeg.exe -i "%%~a" -vcodec libx264 -preset medium -vprofile baseline -level 3.0 -b 500k -vf scale=640:-1 -acodec aac -strict -2 -ac 2 -ab 64k -ar 48000 "%%~na_500.mp4"
           copy "%%~na_500.mp4" "\\specific\path\"%%~na"\%%~na_500.mp4"
           copy "%%~na_500.mp4" "\\specific\path\"%%~na"\%%~na_500.mp4"
           del "%%~na_500.mp4"

    set /a count+=1

    ) else (
    echo Skipping non-existent %% a

    Thank you,
    Oren

  • C# Windows Forms Using FFMPEG to change video format got no response

    21 mai 2023, par TSLee

    I am trying to make an exe program to change a video format by using FFMPEG instead of doing it in the terminal. The formatted video will be saved in the download folder. I have tried my code below and got no output response. I wonder if I used process() and StartInfo correctly, as examples I found and the documentation just confused me. I have double-checked the ffmpeg.exe is in the bin folder and the StartInfo() is just for getting information, which is under Process(). This is why Process() can access the information and use Start() to start the process. Please help and correct my understanding.&#xA;Below is part of my code :

    &#xA;

    private void convertButton_Click(object sender, EventArgs e)&#xA;    {&#xA;        String input = filepathTextBox.Text;&#xA;        String outputResolution = resolutionLabel.Text;&#xA;        String output;&#xA;        String outputFileType;&#xA;        int inputLength = input.Length;&#xA;        int l = 0;&#xA;        for (int i = (inputLength - 1); inputLength > -1; i--)&#xA;        {&#xA;            if (input[i] == &#x27;.&#x27;)&#xA;            {&#xA;                l = i;&#xA;                break;&#xA;            }&#xA;        }&#xA;        output = input.Substring(0, l - 1);&#xA;        outputFileType = input.Substring(l &#x2B; 1, inputLength - 1);&#xA;        Process process = new Process();&#xA;        process.StartInfo.UseShellExecute = true;&#xA;        process.StartInfo.FileName = "ffmpeg.exe";&#xA;        process.StartInfo.WorkingDirectory = @"C:\Users\User\Downloads\ffmpeg-2023-05-15-git-2953ebe7b6-full_build\bin";&#xA;        process.StartInfo.Arguments = "ffmpeg -i" &#x2B; @"C:\Users\User\Downloads\file_example_MP4_640_3MG.mp4" &#x2B; "-s 320x240 -r 25 -b:v 500000 -pix_fmt yuv420p -c:v libx264     -vprofile baseline -level  2.1 -x264opts  stitchable=1:level=3.0:keyint=15:ref=1:merange=16:mvrange=32 -acodec pcm_s16le -ar 16000 -ac 1" &#x2B; @"C:\Users\User\Downloads\440.mp4";&#xA;        process.Start();&#xA;    }&#xA;

    &#xA;

    Output :&#xA;"myprogram.exe(CoreCLR : clrhost) : Loaded 'C :\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.15\System.Diagnostics.Process.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."&#xA;The thread 0x79e0 has exited with code 0 (0x0).

    &#xA;