Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Split video every x secondes with ffmpeg

    30 mai 2017, par Boris ELOSHVILI

    I try to cut the mp4 video with ffmpeg.

    I have a mp4 video input and I want to split this video for all 1 second, so use the segment and save the file in the date format.

    I use the following command but apparently it does not work. But the files are not cut cleanly, there is always the difference between size and time. The files are not generating in any 1 second.

    ffmpeg -re -i im1.mp4 -threads 3 -c:v copy -f segment -segment_time 1 -strftime 1 -segment_format mp4 %Y-%m-%d-%H-%M-%S.mp4
    

    Someone has an idea?

  • Validate RTMP URL authentication

    30 mai 2017, par Tamanampudi Sri Rama Reddy

    If RTMP URL has Username and Password authentication.

    RTMP URL- rtmp://host:port/live/streamkey UserName- xxxxx Password- xxxxx

    I want to know is there any way to validate whether username and password are correct for above RTMP URL? If yes, Can we do that validation using FFmpeg?

  • How with ffmpeg one video overlay with 2 different videos ?

    30 mai 2017, par Fatas

    How with ffmpeg one video overlay with 2 different videos?

     ffmpeg -i video.mov -i ov1.mp4 -i ov2.mp4 \
        -filter_complex "[0:v]setpts=PTS-STARTPTS[v0];[1:v]setpts=PTS-STARTPTS+1/TB[v1];[2:v]setpts=PTS-STARTPTS+10/TB[v2];[v0][v1]overlay=enable='between(t,1,10)';[v0][v2]overlay=enable='between(t,10,15)'" \
        -t 30 \
        -pix_fmt yuv420p -c:a copy \
        out.mp4        
    

    First overlay video i see but second is somewhere gone.

  • Slice recording audio file, given start and end timestamps

    30 mai 2017, par Shivam Aggarwal

    I am trying to store a rtmp stream in audio file using ffmpeg tool. Following is the command I am using -

    ffmpeg -i rtmp://localhost:9000/app/test-stream -c:a aac -y output.aac
    

    I need to slice through the output.aac file while its also getting recorded. Given a start and end time, I am trying to use ffmpeg's -ss feature.

    ffmpeg -ss 0 -t 10 -i output.aac -y sliced.aac
    

    But this gives error -

    ffmpeg version N-85581-ge22d495538-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 5.4.1 (Debian 5.4.1-8) 20170304
      configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
      libavutil      55. 61.100 / 55. 61.100
      libavcodec     57. 92.100 / 57. 92.100
      libavformat    57. 72.101 / 57. 72.101
      libavdevice    57.  7.100 / 57.  7.100
      libavfilter     6. 84.101 /  6. 84.101
      libswscale      4.  7.101 /  4.  7.101
      libswresample   2.  8.100 /  2.  8.100
      libpostproc    54.  6.100 / 54.  6.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3bb54e0] moov atom not found
    output.aac: Invalid data found when processing input
    

    Can anyone help me with this issue.

  • How to use run ffmpeg command in ios

    30 mai 2017, par pramod

    I had successfully build ffmpeg into xcode but I didn't get idea , how to execute command into project.I research hard on it and fined how to play video using encoding and decoding,but did not get idea how to run command.