Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Android ffmpeg restreaming command

    23 août 2017, par mSapps

    I am using this library, to execute FFmpeg command in android . I am receiving a stream via udp protocol (from a camera) , which url is udp://:8554, I want to re stream that stream(which I am receiving from a camera) into another server . I tried the following command ,

    "ffmpeg -i 'udp://:8554' -fflags nobuffer -f:v mpegts -probesize 8195 -vcodec libx264 copy http://103.x.x.x:8090/feed1.ffm" 
    

    but unsuccessful . What will be the appropriate command .

  • ffmpeg error - reference frames exceeds max, video is mp4 from matlab

    23 août 2017, par guyts

    I'm saving videos in matlab as mpeg-4 (using VideoWriter) and when I open them in my media player they seem to be working (albeit not the best quality). However, when I'm loading them into another piece of code that uses ffmpeg I'm getting a bunch of errors as seen here:

    [h264 @ 0000000000E0BED0] number of reference frames (0+2) exceeds max (1; proba
    bly corrupt input), discarding one
    [h264 @ 00000000072B0A80] number of reference frames (0+2) exceeds max (1; proba
    bly corrupt input), discarding one
    

    When using ffprobe, this is the output I get:

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'YDXJ0113_left.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: mp41isom
      Duration: 00:00:19.96, start: 0.000000, bitrate: 10733 kb/s
        Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x720 [
    SAR 1:1 DAR 8:9], 10725 kb/s, 239.76 fps, 239.76 tbr, 239762 tbn, 479524 tbc (de
    fault)
        Metadata:
          handler_name    : VideoHandler
          encoder         : AVC Coding
    

    Any ideas how to fix this?

  • use PHP ffmpeg to split a video into many clips of X minute [duplicate]

    23 août 2017, par TakiDDine

    This question already has an answer here:

    i have a lot of videos in a folder , and i want to split each one of them into many clips of 5 minutes and delete the original video after, i have tried many codes here , but it didn't work for me

    now my code cut's the video to the only first 5 minutes , any help please , this toke 3 days from me, any help will be much appreciated

    these is my code

     /******** Cut All The Videos To 5 min and send them to output folder *****/
    
     foreach ($files as $file ) {           
    
                $path_parts = pathinfo('../../videos/'.$file);
                $vids       = '../../videos/';
                $outpt       = '../../output/';
                $ext        = $path_parts['extension'];
                $name       = $path_parts['filename'];
                $to = $vids.$file;
    
                // add old_video_ prefix
                rename($to , $vids."old_vid_".$name.".".$ext);
    
                $video = $vids."old_vid_".$name.".".$ext; 
                $to =  $outpt.$name.".".$ext; 
    
                // To prevent white space error.
                $video = "\"$video\"";
                $to = "\"$to\""; 
    
                //ffmpeg command , to cut video
                $cmd = "$ffmpeg -i   $video   -ss 00:00:00 -t 00:05:00 -async 1 -c copy $to"; 
    
                $return = `$cmd`;
    
        } 
    
  • how to set effect on video in android programmatically ?

    23 août 2017, par Mayank Sugandhi

    I have video which is save in sdcard, now i want to apply the effect like black and white and etc. it's functionality like editing in video which is already in photo editor or video editor applications.

    now i want to that functionality in android programmatically? when user choose black and white color in option then it should be response very quickly and change the effect of our video and save it sdcard.

    i have find some solution for this like,

    https://github.com/krazykira/VidEffects 
    

    but it has not save functionality of video and if i go through in "FFMPEG" library then it is not responding very quickly?

    how can i change the effect of video and save this video in sdcard?

    Thank You

  • how to build AAR for Android with .SO included in it

    23 août 2017, par 1234567

    how to build AAR for Android with .SO included in it

    I am looking to use FFMpeg in my project from writingminds at github

    the problem is there is an error in the code according to this

    https://github.com/WritingMinds/ffmpeg-android-java/issues/107

    and

    https://github.com/WritingMinds/ffmpeg-android-java/issues/79

    they have suggested to buid and AAR to use in the project how can we do that and include all the .So that are required in it.