Recherche avancée

Médias (91)

Autres articles (108)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (7078)

  • I am trying to generate thumbnail by using ffmpeg but I can not define pathways and make my codes work

    17 juillet 2020, par D. Merchant

    Fffmpeg modul is installed in my shared hosting.

    


    enter image description here

    


    My goal is to get a thumbnail of a video. My codes is in below. I can not make them work. This is my first time I use ffmpeg.

    


    require 'vendor/autoload.php';

$video_path = 'home/sasasasasa/public_html/wp-content/uploads/jvhyicpzxy.mp4';

$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($video_path);
$video
    ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(5))
    ->save('new_preview1.jpg');


    


    When I try the codes in the above, I get this error :

    


    enter image description here

    


    1- What does 'vendor/autoload.php' pathway mean ? I can not see a folder called "vendor" in my file manager.

    


    2- I've check my ffmpeg folder with this code "exec('which ffmpeg') ;" and it outputs "/usr/bin/ffmpeg". But there is no directory in my file manager like that. After a search, Ive found this directory about ffmpeg : "/perl/usr/lib/perl5/FFmpeg". If I enter this path in my hosting, I can see only "Command.pm" and "Thumbnail.pm". What is my wrong, and how can I make my codes work and have a preview of the video ?

    


  • unable to download youtube video portion via extracted video URL from youtube-dl and ffmpeg

    29 juillet 2020, par karma

    I've read the following link, and did :

    


    youtube-dl --rm-cache-dir


    


    But it still give me 403 forbidden.

    


    This is my process :

    


    youtube-dl -g https://www.youtube.com/watch?v=kGDgGsrA78s


    


    It gave me a result like this :

    


    https://r2---sn-uigxxi0ujipnvo-q2ne.googlevideo.com/videoplayback?expire=1596034295&ei=lzghX6SHKMOD8QPlx5SQBw&ip=223.255.228.87&id=o-AK6cYo88zJXe5Xb4y1QsXspuRnVCy-zPFpMaHcAaTQ-_&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=DA&mm=31%2C29&mn=sn-uigxxi0ujipnvo-q2ne%2Csn-npoe7nlz&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=173750&vprv=1&mime=video%2Fmp4&gir=yes&clen=456970484&dur=1389.955&lmt=1521825834085900&mt=1596012582&fvip=5&keepalive=yes&fexp=23883098&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAMvZrHYvC1YrkvtARzhjyD8dnMnlefobGrOFM1rX6QZPAiEAqqeIsKdZ19y-SlHf-l8YwTx2yYbo1p5sFlVoC87oXEQ%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgAIwAVMPrcMhAL476uN_ZzWj8vKPGGW58KCpHBYBsKeICICRgVWgthNvgbGl8VgQwscjJ0n8ib4XBNjRxRgSg2T5r&ratebypass=yes
https://r2---sn-uigxxi0ujipnvo-q2ne.googlevideo.com/videoplayback?expire=1596034295&ei=lzghX6SHKMOD8QPlx5SQBw&ip=223.255.228.87&id=o-AK6cYo88zJXe5Xb4y1QsXspuRnVCy-zPFpMaHcAaTQ-_&itag=140&source=youtube&requiressl=yes&mh=DA&mm=31%2C29&mn=sn-uigxxi0ujipnvo-q2ne%2Csn-npoe7nlz&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=173750&vprv=1&mime=audio%2Fmp4&gir=yes&clen=22077901&dur=1390.039&lmt=1521818817521456&mt=1596012582&fvip=5&keepalive=yes&fexp=23883098&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhANHMaZK4jYg7p4t2dID3d21VRv18I1nhBtXqYRSZo0C7AiAEjO8LwjhXeNQiKqdiZFQ_DsHuXT4rgvPnNQhaDGj9hg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgAIwAVMPrcMhAL476uN_ZzWj8vKPGGW58KCpHBYBsKeICICRgVWgthNvgbGl8VgQwscjJ0n8ib4XBNjRxRgSg2T5r&ratebypass=yes


    


    The result gave me two URL, so I only copy the first line and since what I want is just to copy a few minutes video portion - so in ffmpeg :

    


    ffmpeg -ss 00:00:15.00 -i https://r2---sn-uigxxi0ujipnvo-q2ne.googlevideo.com/videoplayback?expire=1596034295&ei=lzghX6SHKMOD8QPlx5SQBw&ip=223.255.228.87&id=o-AK6cYo88zJXe5Xb4y1QsXspuRnVCy-zPFpMaHcAaTQ-_&itag=140&source=youtube&requiressl=yes&mh=DA&mm=31%2C29&mn=sn-uigxxi0ujipnvo-q2ne%2Csn-npoe7nlz&ms=au%2Crdu&mv=m&mvi=2&pl=24&initcwndbps=173750&vprv=1&mime=audio%2Fmp4&gir=yes&clen=22077901&dur=1390.039&lmt=1521818817521456&mt=1596012582&fvip=5&keepalive=yes&fexp=23883098&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhANHMaZK4jYg7p4t2dID3d21VRv18I1nhBtXqYRSZo0C7AiAEjO8LwjhXeNQiKqdiZFQ_DsHuXT4rgvPnNQhaDGj9hg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgAIwAVMPrcMhAL476uN_ZzWj8vKPGGW58KCpHBYBsKeICICRgVWgthNvgbGl8VgQwscjJ0n8ib4XBNjRxRgSg2T5r&ratebypass=yes -t 00:00:10.00 -c copy out.mp4


    


    But then the result in command prompt is like this :

    


    ffmpeg version N-93300-g96451477b9 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[https @ 0000020137c895c0] HTTP error 403 Forbidden
https://r2---sn-uigxxi0ujipnvo-q2ne.googlevideo.com/videoplayback?expire=1596034295: Server returned 403 Forbidden (access denied)
'ei' is not recognized as an internal or external command,
operable program or batch file.
'ip' is not recognized as an internal or external command,
operable program or batch file.
'id' is not recognized as an internal or external command,
operable program or batch file.
.... and so on....


    


    BTW, I've also tried to copy the second URL, still 403 error.
    
I also tried to copy both URL, still 403 error.

    


    On the other hand, when I tried to paste the URL into Internet Download Manager,
    
IDM directly recognized the URL and I can download the file via IDM.

    


    Is there a way to resolve this ?

    


    Any kind of respond would be greatly appreciated.
    
Thank you in advanced.

    


    EDIT :
I'm very sorry for my ignorant.
    
It turn out I need to put apostrophe at the beginning and at the end of the URL :).

    


    Dear moderator, please close this thread.
    
Thank you for you all.

    


  • FFmpeg still running but don't render HLS file in WPF application [closed]

    22 octobre 2020, par anhpt233

    I had apply ffmpeg to my wpf app with C# for live streaming and split it for upload to the server. But I has a problem with this command. It's will stop render hls file after more than 30m. And when I check process in task manager, ffmpeg.exe still running with 0% CPU and memory.

    


    I had change "preset" to "ultrafast" and config "rtbufsize" is 100M, but it's can't resolve this problem.

    


    I think maybe the client was out-of-memory, not sure. But I don't know how optimal or fix this issue. Anybody can help me ? Thanks so much !

    


    Here is my code :

    


    ffmpeg -f dshow -framerate 30 -i video="Logitech HD Webcam C270":audio="Microphone (HD Webcam C270)" -y - rtbufsize 100M - f gdigrab - framerate 30 - probesize 10M - draw_mouse 1 - i desktop -filter_complex  "nullsrc = size = 1440*480 [base];[0:v]setpts = PTS - STARTPTS ,scale = 720*480 [upperleft] ; [1:v]setpts = PTS - STARTPTS,scale = 720*480 [upperright];[base][upperleft]overlay = shortest = 1:x = 0:y = 0[tmp1];[tmp1][upperright]overlay = shortest = 1:x = 720:y = 0" -c:v libx264 -crf 23 -force_key_frames "expr: gte(t, n_forced * 2)" -preset veryfast -tune zerolatency -pix_fmt yuv422p -f hls -hls_time 4 -hls_playlist_type vod -start_number 0 -hls_segment_filename index%d.ts 480p.m3u8