Open mrbbp opened 3 years ago
Have to shift video in the screen with a larger video 200px... therfore i modified your code a beat.
for(int j=0;j<nl;j++) lcd.drawImage(x,y+(i*nl+j+(statMode>0?0:4)),wd,1,buf+20+j*wd);
for(int j=0;j<nl;j++) lcd.drawImage(x,y+(i*nl+j+(statMode>0?0:4)),wd,1,buf+20+j*wd);
why do you add this part buf+20+j*wd
to your buffer?
i do not understand this line.
On your other project SDMediaPlayer,
showVideo function only have
lcd.drawImage(0,i*nl,lcd.width(),nl,buf);
for(int j=0;j<nl;j++) lcd.drawImage(x,y+(i*nl+j+(statMode>0?0:4)),wd,1,buf+20+j*wd);
¿Por qué agrega esta partebuf+20+j*wd
a su búfer? No entiendo esta línea. En su otro proyecto SDMediaPlayer, la función showVideo solo tienelcd.drawImage(0,i*nl,lcd.width(),nl,buf);
hola que formato de video usas
Hello i'm trying to use your videoplayback with an stm32
but after many try i've got a stable video but all pixel are not in place. it seems there is a 20 or 30px shift rigth to left (up/down) in the picture top part is the bottom part of the picture and there is no 3 black line (in the top/bottom part)
Is it a screen pb? or a video encoding pb or can it be shift by code?
have you a video test somewere to test if it's my video or the screen? i used this line to encode my video with ffmpeg (i've tried with other video and there is the same banding problem)
ffmpeg -i video_160120_30.mov -vf "scale=160:120" -vcodec rawvideo -f rawvideo -pix_fmt rgb565 video.raw
regards