Green Stripe Artifacts When Encoding Video With FFMPEG & Python -
I am trying to encode (VP8 codec) and FFMPEG (version 2.3.3) and Python I am writing a video using However, I have got these diagonal green stripe artifacts after completing my video encoding and why I am not able to.
I have the sequence in the memory in the form of a indexed soft in memory, which I artificially generate by using the method test objectives:
def _generate_test_images ( Self, Samples = 50): '' 'Turns an image array gradually from black to white' '' Pixel value = np.linspace (0, 255, samples) imageList = [np.full ((100, 100) , 3), pixel value, dtype = np.uint8) value pixel value in pixels] Return np.array (imageList) I then used Python Subpro Using the SESS module to use the pipe to open FFMPEG and write image data. I have tried using stdin.write and communication, but these two green strips cause problems. This is how I interact with FFMPEG:
Import subprocessing as SP parameters = get_params () #provides Information such as threads, frame sizes, etc. Command.extend (['/ Command.extend ([' - y ']) command.extend ([' - f ',' rawvideo ']) command.extend ([' vcodec ',' rawvideo ' ] Command.extend (['- s', params ['frameize']]) command.extend (['- pix_fmt', 'bgr24']) command.extend (['- r', '1']) command .extend (['- a']) command.extend (['- i', '-']) command.extend (['- a']) command. Extension (['- codec: v', 'libvpx Command.extend (['- cpu-used', '0']) command.extend (['- b: v', 'params [' command.extension (['- quality', 'good']) (['- qmin', '4']) command.extend (['- qmax', '42']) command.extend (['maxrate', '1M']) Command.extend (['- bufsize' , '2m'] command.extend (['- threads', params ['threads']]) command.extend (['- f', 'webm']) Command expansion ([parameter ['target']] ) Pipe = S.P.Popen (command, stdin = sp.PIPE, stdou T = sp.PIPE, stderr = sp.PIPE, bufsize = -1) pipe com mux (input = frames. Tostring ()) but when my video is encoded , So this is what I see:
What is the reason?
This is usually the width that is not divided by 4 or 8 or any other similar number .
Comments
Post a Comment