linux - ffmpeg retuns different resuslts each run -


i'm running following command line on ubuntu machine:

ffmpeg -y -i test.mp4 -vsync 0 md5_fifo.yuv | md5sum md5_fifo.yuv 

when md5_fifo.yuv is

mkfifo md5_fifo.yuv 

each run different results:

run 1:

ffmpeg -y -i test.mp4 -vsync 0 md5_fifo.yuv | md5sum md5_fifo.yuv cod0434a2add22a469d7446c7daacffaf74  md5_fifo.yuve here 

run 2:

ffmpeg -y -i test.mp4 -vsync 0 md5_fifo.yuv | md5sum md5_fifo.yuv cod2f664c219fb6cac0d416165f3fb5dd23  md5_fifo.yuve here 

run 3:

ffmpeg -y -i test.mp4 -vsync 0 md5_fifo.yuv | md5sum md5_fifo.yuv a40598102efed146791322cbf3dd0b2d  md5_fifo.yuv 

have encountered issue??

i've tried without pipe , still got different results:

ffmpeg -y -i test.mp4 -vsync 0 xxx.yuv: 

run 1:

md5sum 1.yuv  f87722d483fc5f85fb2e91686e77c086  1.yuv 

run 2:

md5sum 2.yuv d980781a92f1483c83ea6ede336bffd8  2.yuv 

run 3:

md5sum 3.yuv 8da671589d6b89973ad1b40211d3c3fa  3.yuv 

this full output of ffmpeg command:

enter image description here

you different results because you're using commands incorrectly.

instead of piping standard output (which empty anyway in case) should use && operator, meaning second command executed after first finished , if didn't return error code.

ffmpeg -y -i test.mp4 -vsync 0 run1.yuv -v quiet && md5sum run1.yuv 7f68bbcd0037a5ac4cc0fd396e19d9ba  run1.yuv  ffmpeg -y -i test.mp4 -vsync 0 run2.yuv -v quiet && md5sum run2.yuv 7f68bbcd0037a5ac4cc0fd396e19d9ba  run2.yuv 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -