Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (23)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (6096)

  • How to split and scale streams in ffmpeg with cuda ?

    30 décembre 2020, par Samyak

    So, I want to create streams of multiple resolutions for hls streaming. Here's what I've tried so far :

    


    ffmpeg -vsync 0 -hwaccel cuvid -i input.mkv -c:a aac -c:v h264_nvenc \
-c:s webvtt -crf 20 -filter_complex \
'[v:0]hwupload_cuda,split=2[vtemp001][vout002]:[vtemp001]hwupload_cuda,scale_npp=w=960:h=540:format=yuv420p:interp_algo=lanczos,hwdownload,format=yuv420p[vout001]'  \
-map "[vout001]" -b:v:0 2000k -map "[vout002]" \
-b:v:1 6000k -map 0:v -map 0:a -map 0:s -map 0:v \ 
-map 0:a -map 0:s -var_stream_map 'v:0,a:0,s:0 v:1,a:1,s:1' \ 
-force_key_frames:v "expr:gte(t,n_forced*2.000)" -hls_time 6 -hls_playlist_type event -hls_flags \
delete_segments+independent_segments+discont_start+program_date_time \
-master_pl_name master.m3u8 -hls_segment_filename \
fire/segment_%v/file%06d.ts fire/stream_%v.m3u8


    


    Running this, I am getting the following error :

    


    Impossible to convert between the formats supported by the filter 
'graph 0 input from stream 0: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


    


    When I do the same thing without gpu, I am getting an out of memory error which to me sounds like I can't do this without a gpu (i.e I have to run separate ffmpeg commands to get this to run on the CPU). Would love to know if anyone has any insights or suggestions.

    


    I tried something more easy to understand here :

    


    ffmpeg -vsync 0 -hwaccel cuvid -i input.mkv -c:v h264_nvenc -filter_complex \
'[v:0]hwupload_cuda,split=2[vtemp001][vout002];[vtemp001]hwupload_cuda,scale_npp=w=960:h=540:format=yuv420p:interp_algo=lanczos,hwdownload,format=yuv420p[vout001]' \
-map "[vout001]" -b:v:0 2000k output1.mkv -map "[vout002]" -b:v:1 6000k output2.mkv


    


    The above gives the same error which to me suggests that the issue is with the filter complex.

    


  • How to get coordinates, scale, and rotation data of a widget in flutter ?

    15 octobre 2020, par Sarthak Singhal

    I am working an app in flutter in which user can add image on a video like the given screenshot. The user should be able to move the image widget anywhere on the screen, resize it, and rotate it also.

    


    For now I have used Stack and MatrixGestureDetector to let the user move the images on the screen.

    


    From the user placed image I would like to acquire :

    


      

    • position/coordinates
    • 


    • scale
    • 


    • rotation
    • 


    


    This data will then be used in ffmpeg, but this question is only about getting the placement data.

    


    Example of image and draw text in canvas over a video :

    


    As you can see, we can move image and draw text in canvas over a video. After doing all this, how to get exact positions about where to merge the images

    


  • How to get exact coordinats, scale and rotation of a widget in flutter to use with ffmpeg

    12 octobre 2020, par Sarthak Singhal

    I am working an app in flutter in which user can add image on a video like the given screenshot. The user should be able to move the image widget anywhere on the screen, resize it, and rotate it also.

    


    For now I have used Stack and MatrixGestureDetector to let the user move the images on the screen.

    


    I want to know how to merge this image along with the exact scale, rotation and position as seen on the screen to use with ffmpeg.

    


    As you can see, we can move image and draw text in canvas over a video. After doing all this, how to get exact positions about where to merge the images