Recherche avancée

Médias (91)

Autres articles (72)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6123)

  • how to create a thumbnail, at the time of video upload ? [php / codeigniter]

    19 mai 2016, par Amol Phad sudhakar

    I am trying to create a thumbnail for my uploading video. searching for easiest way to generate thumbnail at the time of video upload itself. i think if some provide the code without using ffmpeg will be life saving for me. because i’m running my code on windows wamp or any other alternative welcomed too thank you.

    my real code is in CodeIgniter, not able to figure out how to do it.

    $postname = $this->input->post('post-name');

               $configVideo['upload_path'] = './video';
               $configVideo['max_size'] = '1000000024';
               $configVideo['allowed_types'] = 'avi|flv|wmv|mp4';
               $configVideo['overwrite'] = TRUE;
               $configVideo['remove_spaces'] = TRUE;
               $ext = get_mime_by_extension($_FILES['video']['name']);
               $video_name = str_replace(' ', '_', $postname);
               $configVideo['file_name'] = $video_name;

               $this->load->library('upload', $configVideo);
               $this->upload->initialize($configVideo);

               if (!$this->upload->do_upload('video')) {

                   $msg = $this->upload->display_errors();
                   $this->session->set_flashdata('error', $msg);


               } else {
                   $videoDetails = $this->upload->data();
  • Font size messes up when I try to hardsub

    7 septembre 2020, par かかし9000

    I have used the following command for a hardsub and everything worked but the subtitle size increased :

    


    ffmpeg -vsync 0 -i input.mkv -vf "ass=subs.ass" -c:a copy -c:v h264_nvenc -b:v 700k final.mp4


    


    i used a srt type file before using ass but that command made the text size take up almost half the screen and the force_style filter shows it executed properly but there was no change in text size at all

    


    though the ass sub style gets me a proper subtitle size i'd very much like it if the size was appropriate

    


  • Capturing network video using opencv

    3 septembre 2014, par Subhendu Sinha Chaudhuri

    I am using ffserver and ffmpeg combination to capture web camera video and transmit it through my network.

    I want to capture this video using opencv and python from another computer.
    I can see the video (cam1.asf) in the browser of another computer. But my opencv + python code could not capture any frame.

    Code for ffserver

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandWidth 2000

    <feed>
      File ./tmp/feed1.ffm
      FileMaxSize 1G
      ACL allow 127.0.0.1
    </feed>

    <stream>
     Feed feed1.ffm
     Format asf
     VideoCodec msmpeg4v2
     VideoFrameRate 30
     VideoSize vga
    </stream>

    FFmpeg

    $ffmpeg -f video4linux2 -i /dev/video0 192.168.1.3 /cam1.ffm

    This stream can be seen in the browser

    But with opencv code

    import sys
    import cv2.cv as cv
    import numpy

    video="http://http://192.168.1.3:8090/cam1.asf"
    capture =cv.CaptureFromFile(video)
    cv.NamedWindow('Video Stream', 1 )
    while True:
     # capture the current frame
     frame = cv.QueryFrame(capture)
     #if frame is None:
      # break
     #else:
       #detect(frame)
     cv.ShowImage('Video Stream', frame)
     if cv.WaitKey(10) == 27:
       print 'ESC pressed. Exiting ...'
       break

    I donot get any output in the stream

    My aim is to work with the web camera video both at the base station (ie where the web camera is connected) and also at the network location