Recherche avancée

Médias (91)

Autres articles (69)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4718)

  • How to scroll long picture(big height) scrolling with background image in ffmpeg,Text in video products will flicker

    15 juin 2022, par user18550619

    use overlay or scoll filter,the result of video still flicker !
ffmepg cmd as follow :

    


    1.scoll filter

    


    ffmpeg -y -loop 1 -i input.png -i bg.png -filter_complex "[0]scroll=vertical=0.000819672131147541,crop=iw:1280:0:0,format=yuva444p[scrollView] ;[1][scrollView]overlay=0:0:enable='between (t,0,27.466666666666665)'" -t 27.466666666666665 E :\output1.mp4

    


    2.overlay with time change y position

    


    ffmpeg -y -r 1 -loop 1 -t 27.466666666666665 -i input.png -filter_complex "color=white:s=720x1280,fps=fps=30[bg] ;movie=bg.png[bg1] ;[bg][bg1]overlay=0:0[bg2] ;[bg2][0]overlay=y=-'t*60':shortest=1[video]" -preset ultrafast -b:v 1989k -map [video] E :\output2.mp4

    


    input.png

    


    bg.png

    


  • avutil/wchar_filename,file_open : Support long file names on Windows

    26 mai 2022, par softworkz
    avutil/wchar_filename,file_open : Support long file names on Windows
    

    Signed-off-by : softworkz <softworkz@hotmail.com>
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavutil/file_open.c
    • [DH] libavutil/wchar_filename.h
  • Laravel MySQL DB not updating after long process

    11 mai 2022, par slanginbits

    I'm doing some video encoding using Laravel and FFMpeg using https://github.com/protonemedia/laravel-ffmpeg

    &#xA;

    During the video conversion, I can perform some db updates to update the percentage complete in hls_percent field :

    &#xA;

            $ffmpeg_cmd = FFMpeg::fromDisk(&#x27;local_videos&#x27;)&#xA;            ->open($video->filename)&#xA;            ->exportForHLS()&#xA;            ->toDisk(&#x27;local_videos&#x27;)&#xA;            ->setSegmentLength(3) // optional&#xA;            ->setKeyFrameInterval($key_interval) // optional&#xA;            ->onProgress(function ($percentage, $remaining = 0, $rate = 0) use ($id) {&#xA;                ItemVideo::where(&#x27;id&#x27;, $id)->update([&#x27;hls_percent&#x27; => $percentage]);                &#xA;            });&#xA;

    &#xA;

    This process works fine and the hls_percent value gets updated to 100 and the encoded video files are generated.

    &#xA;

    After some files are moved, (takes several seconds) a final db update is not done.

    &#xA;

    ItemVideo::where(&#x27;id&#x27;, $id)->update([&#x27;hls_complete&#x27; => 1]);&#xA;

    &#xA;

    The timeout only happens while encoding a large 150MB (10 min duration) mp4 file. Smaller/shorter videos complete the process without any issues.

    &#xA;

    I have increased the following in php.ini

    &#xA;

    memory_limit = 512M &#xA;post_max_size =  1024M&#xA;upload_max_filesize = 1024M&#xA;max_execution_time = 2400&#xA;max_input_time = 2400&#xA;default_socket_timeout = 2400&#xA;

    &#xA;

    I modified the global variables in the MySQL database server to higher timeouts&#xA;as instructed here https://sebhastian.com/lost-connection-mysql-server-during-query/

    &#xA;

    connect_timeout 2400&#xA;delayed_insert_timeout 300&#xA;have_statement_timeout YES&#xA;innodb_flush_log_at_timeout 1&#xA;innodb_lock_wait_timeout 50&#xA;innodb_rollback_on_timeout OFF&#xA;interactive_timeout 28800&#xA;lock_wait_timeout 31536000&#xA;mysqlx_connect_timeout 30&#xA;mysqlx_idle_worker_thread_timeout 60&#xA;mysqlx_interactive_timeout 28800&#xA;mysqlx_port_open_timeout 0&#xA;mysqlx_read_timeout 30&#xA;mysqlx_wait_timeout 28800&#xA;mysqlx_write_timeout 60&#xA;net_read_timeout 2400&#xA;net_write_timeout 2400&#xA;replica_net_timeout 2400&#xA;rpl_stop_replica_timeout 31536000&#xA;rpl_stop_slave_timeout 31536000&#xA;slave_net_timeout 2400&#xA;ssl_session_cache_timeout 2400&#xA;wait_timeout 28800&#xA;

    &#xA;

    apache2handler :

    &#xA;

    Max Requests Per Child : 0 - Keep Alive : on - Max Per Connection : 100&#xA;Timeouts Connection : 300 - Keep-Alive : 5

    &#xA;

    I'm not getting an error messages in laravel or /var/log/apache2/error.log

    &#xA;

    What else am I missing ? How can I keep the MySQL connection alive to make the final update ?

    &#xA;