Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (50)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Les images

    15 mai 2013
  • 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

Sur d’autres sites (9638)

  • how to convert a video to H264 video codec format & webm and ogv with watermark via ffmpeg

    5 mars 2015, par ali

    I used this code :

    function convert()
    {
     exec("$ffmpegPath  -i $inputPath -i $watermark -filter_complex overlay=10:10 $outPath");
    }

    convert('test.mp4');
    convert('test.webm');
    convert('test.ogv');

    This code works...but not in browser !
    I can run output videos via KMPLAYER in desktop (ovg only video - no audio)

    I want to run it on web via videojs.

    mp4 playback with videojs in browsers - audio plays but video is blank.

    I googled and I think I must convert it to h264 format...

    Can somebody change my orginal code to 3 valid codes for h264,webm and ogv ?

  • How to combine a .MP4 video with a .WAV audio to create a new .MP4 video using ffmpeg from command line arguments ?

    18 mai 2017, par Ashish

    I want to merge a .WAV audio file with a .MP4 video file to create a new .MP4 video file.

    And i am currently using the following codes to do that :

    ffmpeg -i input_vid.mp4 -i input_audio.wav -vcodec copy -acodec copy output.mp4

    But it is only creating output.mp4 file but no videos embedded with that means if i am playing that output.mp4 file then nothing is playing.
    And i don’t know where i am doing wrong so that it is creating like this.

    I know this type of questions already asked by may persons but that didn’t help me much so if anybody can find where i am doing wrong or how to solve this problem please help me to solve my problem.

  • Convert mp4 video to avi video using imageio package

    3 février 2018, par Li.Chenyang

    I use the python imageio package to convert a .mp4 video to a .avi video, keeping the fps and size same. The following is my code :

    import imageio

    src_dir = "my/source/video.mp4"
    dst_dir = "my/dst/video.avi"

    reader = imageio.get_reader(src_dir)
    fps = reader.get_meta_data()['fps']
    writer = imageio.get_writer(dst_dir, fps=fps)

    for im in reader:
       writer.append_data(im[:, :, :])
    writer.close()

    I successfully make it.
    However, I find that the video.mp4 is 27.1 MB, while the video.avi is only 3.70 MB.
    Then I use cv2 to do the same thing :

    import cv2

    src_dir = "my/source/video.mp4"
    dst_dir = "my/dst/video_1.avi"

    video_cap = cv2.VideoCapture(src_dir)
    fps = video_cap.get(cv2.cv.CV_CAP_PROP_FPS)
    size = (int(video_cap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),  
           int(video_cap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)))  
    video_writer = cv2.VideoWriter(dst_dir, cv2.cv.CV_FOURCC('M', 'J', 'P', 'G'), fps, size)

    success, frame = video_cap.read()
    while success:
       video_writer.write(frame)
       success, frame = video_cap.read()

    This time I get a video_1.avi, which is 65.6 MB.
    My questions :

    1. What is the different between these two method, why the video.avi (using imageio method) is so small ;
    2. Is there any problem to use the video.avi (using imageio method) to train a 3D-CNN instead of using video_1.avi (using cv2 method) ?

    supplement
    Here is the information of my video file :

    lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video.mp4
    video.mp4: ISO Media, MPEG v4 system, version 2
    lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video.avi
    video.avi: RIFF (little-endian) data, AVI, 640 x 480, 20.00 fps, video: H.264 X.264 or H.264
    lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video_1.avi
    video_1.avi: RIFF (little-endian) data, AVI, 640 x 480, 20.00 fps, video: Motion JPEG