Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • How to setup ffmpeg for webpagetest Private Instance ?

    26 mai 2018, par Abdul Manan

    Actually, I am trying to setup Private Instance of webpagetest on windows. I have installed FFmpeg as required and on cmd, typing "ffmpeg" shows some version also. But on web when I write localhost\install\, it still shows that ffmpeg is not yet installed. Here is the pcture: Picture showing http:/localhost/insatll

  • FFMPEG zoompan only applies and shows 3 images out of the many

    26 mai 2018, par Sanjyot Shah

    I am trying to generate a video from images using FFMPEG 4.0 windows built on AWS windows instance using PHP.

    $command2="ffmpeg -r 1/5 -i https:///$images%d.jpg -c:v libx264 -r 5  -t $total_video_time -y  ".trim($video_name)." -i http:///$audio ";
    

    The above generates the correct video output with all the input images (50 in this case) but without the zoompan effect on the images.

    Now I try to add the zoompan effect for the images using -

    $command2="ffmpeg -r 1/5 -i https:///$images%d.jpg  -filter_complex zoompan=z='zoom+0.002':d=25*4:s=1280x800 -pix_fmt yuv420p  -c:v libx264 -r 5  -t $total_video_time -y  ".trim($video_name)." -i http:///$audio ";
    

    This will only pick up the first 3 images and apply the zoompan to the first two images or so.

    Can you please help me with this issue? Any inputs, pointers are welcome too.

  • avconv - reducing video dimensions and file size

    26 mai 2018, par Verode

    Is there any way how to reduce the size of video?

    In php I use this:

    $result = exec("avconv -i $file1 -vcodec libx264 -acodec aac -strict experimental $file2");
    

    Unfortynately, all produced videos have the same size as originals or are more bigger.

    1) First of all I want to reduce dimensions of all videos: width: 750px, height: auto. Is it possible?

    2) Is there some way how to reduce the quality a little bit? Of course, I don't want blurry videos but in some websites I see that a good quality 15 minutes videofile have a size something like 50 MB. My videos of 1 minute have the same size.

  • Get image output from python program and use ffmpeg push the real time video stream to web

    26 mai 2018, par Nick Tseng

    I have a question. How to push a real time video streaming after processing?

    First, below program is to preprocess image from usbcamera

    Second, push the image into real time video streaming by another process (ffmpeg -r 29 -i test.avi http://ffserver IP:8090/camera.ffm)

    cap = cv2.VideoCapture(1) ##activate usbcamera
    
    frame_width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
    frame_height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
    
    ysize, xsize = frame_height , frame_width
    
    filepath = 'test.avi'
    fourcc = cv2.VideoWriter_fourcc(*'MJPG')
    out = cv2.VideoWriter(filepath , fourcc , 29.0 , (frame_width , frame_height),True)
    
    while(cap.isOpened()):
    
        #read camera image
        ret , frame = cap.read()
    
        #color selection
        tmp = color_select_test(frame)
    
        # Mix with original image
        tmp = weighted_img(tmp, frame, 0.5, 1.0, 0.0)
    
        # write in video file
        out.write(tmp)
    
        #cv2.imwrite('test.avi',tmp)
    
        cv2.imshow('FrameWrite' , tmp)
    
        if(cv2.waitKey(1) == 27):
            ##cv2.imwrite('test_blue.jpg',frame)
            break
    cap.release()
    cv2.destroyAllWindows()
    
  • show processing sign in react native app

    26 mai 2018, par Parkash Sbd

    I have a react native app and users upload media(pictures and videos) .I also have RESTful api written in spring boot and its purpose is to accept multipart file and resize the media using FFmpeg.My question is how to show processing sign with percent in react native app while ffmpeg is resizing the media. Thanks.