Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (75)

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

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (8973)

  • configure : Define feature test macros for —std=gnu99

    31 janvier 2016, par Henrik Gramner
    configure : Define feature test macros for —std=gnu99
    

    Makes the printf() family functions on MinGW use the correct C99 POSIX
    versions instead of the broken pre-VS2015 Microsoft ones.

    Also allows us to get rid of some _GNU_SOURCE and _ISOC99_SOURCE defines.

    • [DH] common/cpu.c
    • [DH] common/set.c
    • [DH] configure
    • [DH] encoder/analyse.c
    • [DH] encoder/ratecontrol.c
    • [DH] x264.c
  • FFmpeg function avdevice_list_devices causes C++ Runtime error

    29 mai 2023, par ffvideoner

    I use Windows, C#, FFmpeg.AutoGen.
I want to get list of devices.

    


    public static class Helpers
{

    private static unsafe AVDeviceInfoList** _devicesList;

    public static unsafe void GetMediaSourceNames()
    {

        ffmpeg.avdevice_register_all();

        AVFormatContext* context = ffmpeg.avformat_alloc_context();

        ffmpeg.avdevice_list_devices(context, _devicesList);

    }

}


    


    Function avdevice_list_devices() causes error :

    


    


    Microsoft Visual C++ Runtime Library.
This application has requested the Runtime to terminate it in an unusual way.

    


    


    What am I doing wrong ?

    


    UPDATE

    


    Another reason for the error :

    


    Assertion s->oformat || s->iformat failed at src/libavdevice/avdevice.c:192


    


    If we look at the context in debugging, we will see that context.oformat and context.iformat are equal to zero.

    


    UPDATE 2

    


    If set some non-zero value, then the error will disappear.
Like this :

    


    AVInputFormat avformat = new AVInputFormat();

(*context).iformat = &avformat;


    


    But can't get list of devices.
Now the code looks like this. The last line throws an exception "Object reference not set to an instance of an object". But in debugging can see the value of nb_devices is ten (in fact, there are no devices at all).

    


    public static class Helpers
{

    private static unsafe AVDeviceInfoList* _devicesList;


    public static unsafe void GetMediaSourcesNames()
    {

        ffmpeg.avdevice_register_all();

        AVFormatContext* context = ffmpeg.avformat_alloc_context();


        AVInputFormat avformat = new AVInputFormat();

        (*context).iformat = &avformat;


        fixed (AVDeviceInfoList** devicesListPointer = &_devicesList)
        {
            ffmpeg.avdevice_list_devices(context, devicesListPointer);
        }


        int devicesQuantity = (*_devicesList).nb_devices;

    }

}


    


  • 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.
Below is part of my code :

    


    private void convertButton_Click(object sender, EventArgs e)
    {
        String input = filepathTextBox.Text;
        String outputResolution = resolutionLabel.Text;
        String output;
        String outputFileType;
        int inputLength = input.Length;
        int l = 0;
        for (int i = (inputLength - 1); inputLength > -1; i--)
        {
            if (input[i] == '.')
            {
                l = i;
                break;
            }
        }
        output = input.Substring(0, l - 1);
        outputFileType = input.Substring(l + 1, inputLength - 1);
        Process process = new Process();
        process.StartInfo.UseShellExecute = true;
        process.StartInfo.FileName = "ffmpeg.exe";
        process.StartInfo.WorkingDirectory = @"C:\Users\User\Downloads\ffmpeg-2023-05-15-git-2953ebe7b6-full_build\bin";
        process.StartInfo.Arguments = "ffmpeg -i" + @"C:\Users\User\Downloads\file_example_MP4_640_3MG.mp4" + "-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" + @"C:\Users\User\Downloads\440.mp4";
        process.Start();
    }


    


    Output :
"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."
The thread 0x79e0 has exited with code 0 (0x0).