Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Overlaying video with ffmpeg

    11 novembre 2012, par elee

    I'm attempting to write a script that will merge 2 separate video files into 1 wider one, in which both videos play back simultaneously. I have it mostly figured out, but when I view the final output, the video that I'm overlaying is extremely slow.

    Here's what I'm doing:

    1. Expand the left video to the final video dimensions

      ffmpeg -i left.avi -vf "pad=640:240:0:0:black" left_wide.avi

    2. Overlay the right video on top of the left one

      ffmpeg -i left_wide.avi -vf "movie=right.avi [mv]; [in][mv] overlay=320:0" combined_video.avi

    In the resulting video, the playback on the right video is about half the speed of the left video. Any idea how I can get these files to sync up?

  • unrecognized option '-vf' in ffmpeg

    10 novembre 2012, par user1516976

    I am running this command

    ffmpeg -i "video_in.mp4" -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 [out]" outputvideo.mp4
    

    also tried

    /usr/local/bin/ffmpeg -i "video_in.mp4" -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 [out]" outputvideo.mp4
    

    Error : unrecognized option '-vf' in ffmpeg

  • how to get the duration of an audio file after uploading using FFMPEG

    10 novembre 2012, par Srini1455

    I am uploading audio files in asp.net using FFMPEG.My question is how can i get the duration of the file(in seconds).

    Please suggest me.

    Thanks and Regards Srinivas M

  • How to parse RTP H264 packet using FFMpeg [closed]

    9 novembre 2012, par TMMDev

    I am new to this forum, i hope someone can help me with my problem.

    I need to convert RTP H264 packets using FFMpeg to BMP files, i have achieved the following until now :

    -Reading H264 file and convert it to BMP files using FFMpeg.

    -Receiving raw RTP H264 packets.

    I would really appreciate if someone can help me decode RTP H264 packets using FFMpeg, i have done lots of searchs over the internet, and found the following solutions:

    • libavformat using rtp_h264.c, i could not download the library anywhere, although the file is there, but no way to use it without downloading the library, can someone please provide a download link and an example if possible?

    • live555 using H264VideoRTPSource, after downloading the library, i did not understand how to use this code, should i instantiate the class? or inhert it? is there an example over the internet on using H264VideoRTPSource?

    Is there any other way to do it WITHOUT reading all the standards (RFC3984 and RFC6184)

    Thank you.

  • Restreaming video containing two languages live with ffmpeg

    9 novembre 2012, par user1810837

    I have a project where i need to restream a live stream which has two languages setup on the audio. Spanish on left and English on right

    The stream mapping is:

    Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 512x288 [SAR 1:1 DAR 16:9], q=2-31, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16, 18 kb/s
    

    I need to restream this back live with just the English from the right side or just spanish from the left side, I tried looking everywhere but did not find any type of solution .

    Since this needs to be done live, I can't be using other programs to separate video and audio to get it done.

    This needs to be done through ffmpeg and I wonder if it even capable of doing so with original built or it would need some custom modification.