Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (95)

  • 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

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

Sur d’autres sites (12911)

  • FFMPEG PHP Message : Unable to save frame

    30 avril 2020, par Hitesh Vala Ahir

    Hello I have try to take thumbnail through FFMPEG but get the error message like Message : Unable to save frame.

    



    PHP 7.0

    



    php-ffmpeg/php-ffmpeg : ^0.16.0

    



    Below is the code

    



    require &#x27;vendor/autoload.php&#x27;;&#xA;&#xA;&#xA;&#xA;$sec =1;&#xA;$movie = &#x27;video1581091620.mp4&#x27;;&#xA;$thumbnail = &#x27;thumbnail.png&#x27;;&#xA;&#xA;try{&#xA;$ffmpeg = FFMpeg\FFMpeg::create();&#xA;$video = $ffmpeg->open($movie);&#xA;$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds($sec));&#xA;$frame->save($thumbnail);&#xA;echo &#x27;<img src="http://stackoverflow.com/feeds/tag/&#38;#x27;.$thumbnail.&#38;#x27;" style='max-width: 300px; max-height: 300px' />&#x27;;&#xA;}catch(Exception $e) {&#xA;  echo &#x27;Message: &#x27; .$e->getMessage();&#xA;}&#xA;

    &#xA;

  • ffmpeg do stream copy together with draw text

    8 mars 2016, par Haris

    I need to record an RTSP stream, before storing it I need draw some text on the video.

    And the below command works fine for recording stream only(no text write).

    openRTSP -D 10 -v -t -c -b 800000 rtsp://video_link.mov | ./ffmpeg -r 15 -i - -codec copy -hls_list_size 65535 -hls_time 2 "./video/live.m3u8"

    But I also need to draw some text on the video before recording. So I re-write the above command like

    openRTSP -D 10 -v -t -c -b 800000 rtsp://video_link.mov | ./ffmpeg -r 15 -i - -vf drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf: text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black: x=(w-text_w)/2: y=(h-text_h-line_h)/2" -codec copy -hls_list_size 65535 -hls_time 2 "./video/live.m3u8"

    But giving the error like,

    input #0, h264, from 'pipe:':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p, 704x480, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    Filtergraph 'drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf: text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black: x=(w-text_w)/2: y=(h-text_h-line_h)/2' was defined for video output stream 0:0 but codec copy was selected.
    Filtering and streamcopy cannot be used together.

    I understand that both recording and drawing cannot perform together.
    Any method exist similar, to solve the above problem ?.

  • Enhance text image in x264encoding

    23 août 2016, par useprxf

    I’m making use of x264 for remote desktop streaming. The goal is to achieve both low bitrate and high video quality within the computation budget. The current parameter set I used almost achieve this goal, but it fails in handling images with many texts (e.g. browsing websites schene). The text in image is blurred and affects the user experience.

    I think it’s the quantization in x264 that causes this. The quantization after DCT transform will eliminate high frequency sinals which mainly correspond to texts in image.

    So, my question is how to do improve the text quality in x264 encoding ?

    My idea : when the bitrate stays at a low level for a period of time,

    1. set crf to be 0 (lossless) ;
    2. encode current frame as an IDR frame and then send it ;
    3. recover the crf.

    Also, a flag should be used to prevent resending when bitrate keeps low for a long time. I haven’t try this method since I don’t know how to mark a frame as an IDR frame manully and then encode it.