0

I am trying to make a pair of 2 videos (side by side) with a 10px white border seperator. I used the following FFmpeg command,
ffmpeg -i left.yuv -i right.yuv -filter_complex "[0:v:0]pad=iw*2:ih:color=white[bg]; [bg][1:v:0]overlay=w+10" left-right.YUV
But it is not working.

Both of the videos duration and rations are same (480x270 and 8 seconds)

Can anyone help me?

1 Answer 1

2

Try this, (although you don't mention what's not working)

ffmpeg -s 480x270 -framerate 30 -i  left.yuv -s 480x270 -framerate 30 -i right.yuv \
       -filter_complex "[0:v:0]pad=iw+10:ih:color=white[l]; \
                        [l][1:v:0]hstack[v]" -map "[v]" left-right.YUV
16
  • i get the same error like before: Picture size 0x0 is invalid input.yuv: Invalid argument
    – mrana
    Commented Apr 28, 2016 at 13:48
  • Sorry, you need to supply input params since YUV is a raw stream. Use the framerate of your input.
    – Gyan
    Commented Apr 28, 2016 at 13:57
  • How i can know the bit-rate, frame-rate and ratio of a YUV video?
    – mrana
    Commented Apr 28, 2016 at 14:34
  • You don't need to know the bitrate. How are the YUVs generated?
    – Gyan
    Commented Apr 28, 2016 at 14:36
  • I got all YUV raw videos from here: ftp.ivc.polytech.univ-nantes.fr/IRCCyN_IVC_1080i_Database/… my working steps are 1. unzip 2. de-interlace 3. down sample from 1920x1080 to 960x540 4. then crop 480x270 5. make side-by-side 6. then convert to mp4. Now i am having problem with step #5
    – mrana
    Commented Apr 28, 2016 at 14:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .