Recherche avancée

Médias (91)

Autres articles (58)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (4074)

  • How fix FFMPEG No decoder surfaces left error [closed]

    14 juillet 2021, par R.A.M

    
Anybody know how could i fix this problem ?
    


    [h264 @ 0x56086cab3340] No decoder surfaces left
Error while decoding stream #0:0: Invalid data found when processing input0
Impossible to convert between the formats supported by the filter 
'Parsed_scale_npp_0' 
and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[aac @ 0x56086bd86fc0] Qavg: 680.716
[aac @ 0x56086bd86fc0] 2 frames left in the queue on closing
[aac @ 0x56086bd88c40] Qavg: 680.716
[aac @ 0x56086bd88c40] 2 frames left in the queue on closing


    


    Let me explain more about my problem :
    
When i transcoding a video on GPU use CUDA, get this error on some movies (not all my video)
    
It works currectly on many videos but has exception in some video like this.
    
When i use Cpu for transcoding this type of video(that has problem) it works and not have any exception and errors.
    
In fact i think problem is on CUDA.
    
The FFMPEG command that i use, is :

    


    ffmpeg -y -loglevel info -hwaccel cuda -hwaccel_output_format cuda -hwaccel_device 0 
-i MY_VIDEO.mp4 -vf scale_npp=w=1280:h=720 -c:v h264_nvenc -profile:v main -b:v 
1500000 -sc_threshold 0 -g 25 -keyint_min 25 -bf 2 -c:a aac -b:a 128000 -ar 48000 - 
hls_segment_filename f-4-seg-%d.ts f-4.m3u8


    


    Thanks

    


  • example C / C ++ example for hardware video decoding [on hold]

    4 janvier 2017, par user232863

    im using default

       h->c = avcodec_find_decoder(AV_CODEC_ID_H264);
       h->ctx = avcodec_alloc_context3(h->c);

    I do not understand how to use the hardware decoding ?

    I do not have a problem with decoding software video x264 or any i problem decode video I frame cuda or any HW method no worked sample found any sample use encode not decode method nvdec or cuda

  • Is there an efficient way to use ffmpeg to create a huge quantity of small video file, cut from a larger one ?

    9 mars 2024, par Giuliano Oliveri

    I'm trying to cut video files into smaller chunks. (each one being one word said in the video, so they're not all of equal size)

    


    I've tried a lot of different approaches to try to be as efficient as possible, but I can't get the runtime to be under 2/3rd of the original video length. That's an issue because I'm trying to process 400+ hours of video.

    


    Is there a more efficient way to do this ? Or am I doomed to run this for weeks ?

    


    Here is the command for my best attempt so far

    


    ffmpeg -hwaccel cuda -hwaccel_output_format cuda -ss start_timestamp -t to_timestamp -i file_name -vf "fps=30,scale_cuda=1280:720" -c:v h264_nvenc -y output_file


    


    Note that the machine running the code has a 4090
This command is then executed via python, which gives it the right timestamps and file paths for each smaller clip in a for loop

    


    I think it's wasting a lot of time calling a new process each time, however I haven't been able to get better results with a split filter ; but here's the ffmpeg-python code for that attempt :

    


    Creation of the stream :

    


    inp = (
    ffmpeg
    .input(file_name, hwaccel="cuda", hwaccel_output_format="cuda")
    .filter("fps",fps=30)
    .filter('scale_cuda', '1280','720')
    .filter_multi_output('split')
)


    


    Which then gets called in a for loop

    


    (
    ffmpeg
    .filter(inp, 'trim', start=row[1]['start'], end=row[1]['end'])
    .filter('setpts', 'PTS-STARTPTS')
    .output(output_file,vcodec='h264_nvenc')
    .run()
)