using mencoderNOTE: had to use bome's image resizer to get images to work properly... there are linux tools that could work... this was the quickest -> cat mkvideo.sh.txt #!/bin/bash ####################################################################################################### # must used Bomes image resizer set to 748x500 to make mencoder work properly 1 Oct 2020 # can change the frame rate from 5 frames per second... # # step one: ls *.jpg > files.txt # step two: rename "test.avi" to proper name below # step three: run this "script", or command that is not commented: # # mencoder mf://@files.txt -mf fps=5 -o the-video.avi -ovc x264 mencoder mf://@files.txt -mf fps=5 -o test.avi -ovc x264 #################################################### ### FAIL - image size - solution, use bome's image resizer set to 748x500... could use other tools... #################################################### ## --> sh ./mkvideo.sh.txt ## MEncoder 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team ## success: format: 16 data: 0x0 - 0x0 ## MF file format detected. ## [mf] number of files: 169 ## [demux_mf] file type was not set! trying 'type=jpg'... ## VIDEO: [IJPG] 0x0 24bpp 5.000 fps 0.0 kbps ( 0.0 kbyte/s) ## [V] filefmt:16 fourcc:0x47504A49 size:0x0 fps:5.000 ftime:=0.2000 ## Opening video filter: [expand osd=1] ## Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ## ========================================================================== ## Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family ## libavcodec version 57.107.100 (external) ## Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG) ## ========================================================================== ## Movie-Aspect is undefined - no prescaling applied. ## x264 [error]: height not divisible by 2 (1280x855) ## x264_encoder_open failed. ## FATAL: Cannot initialize video driver. ## Movie-Aspect is 1.50:1 - prescaling to correct movie aspect. ## x264 [error]: height not divisible by 2 (1280x855) ## x264_encoder_open failed. ## FATAL: Cannot initialize video driver. ## ## Exiting... ## ## #################################################### ## SUCCESS with resized images - resulting readout ## #################################################### ## --> sh ./mkvideo.sh.txt ## MEncoder 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team ## success: format: 16 data: 0x0 - 0x0 ## MF file format detected. ## [mf] number of files: 152 ## [demux_mf] file type was not set! trying 'type=jpg'... ## VIDEO: [IJPG] 0x0 24bpp 5.000 fps 0.0 kbps ( 0.0 kbyte/s) ## [V] filefmt:16 fourcc:0x47504A49 size:0x0 fps:5.000 ftime:=0.2000 ## Opening video filter: [expand osd=1] ## Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ## ========================================================================== ## Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family ## libavcodec version 57.107.100 (external) ## Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG) ## ========================================================================== ## Movie-Aspect is undefined - no prescaling applied. ## x264 [info]: using SAR=1/1 ## x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 ## x264 [info]: profile High, level 2.2 ## Movie-Aspect is 1.50:1 - prescaling to correct movie aspect. ## Pos: 9.8s 49f (32%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] ## Writing header... ## ODML: vprp aspect is 16384:10908. ## Writing header... ## ODML: vprp aspect is 16384:10908. ## Pos: 30.4s 152f (100%) 52.50fps Trem: 0min 2mb A-V:0.000 [798:0] ## ## Skipping frame! ## Pos: 30.4s 153f (100%) 52.85fps Trem: 0min 2mb A-V:0.000 [798:0] ## ## Flushing video frames. ## Writing index... ## Writing header... ## ODML: vprp aspect is 16384:10908. ## ## Video stream: 1087.565 kbit/s (135945 B/s) size: 4132748 bytes 30.400 secs 153 frames ## x264 [info]: frame I:2 Avg QP:18.20 size: 71520 ## x264 [info]: frame P:39 Avg QP:18.48 size: 46457 ## x264 [info]: frame B:111 Avg QP:21.66 size: 19621 ## x264 [info]: consecutive B-frames: 1.3% 2.6% 3.9% 92.1% ## x264 [info]: mb I I16..4: 16.2% 32.9% 50.9% ## x264 [info]: mb P I16..4: 5.3% 11.6% 7.4% P16..4: 34.1% 22.2% 17.0% 0.0% 0.0% skip: 2.5% ## x264 [info]: mb B I16..4: 1.5% 2.8% 0.9% B16..8: 36.9% 15.3% 7.6% direct:14.1% skip:20.9% L0:44.3% L1:38.7% BI:17.0% ## x264 [info]: 8x8 transform intra:47.9% inter:42.9% ## x264 [info]: coded y,uvDC,uvAC intra: 49.9% 46.5% 19.5% inter: 48.9% 23.3% 1.0% ## x264 [info]: i16 v,h,dc,p: 23% 19% 15% 42% ## x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 16% 35% 6% 6% 4% 6% 4% 8% ## x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 21% 7% 7% 6% 6% 6% 7% ## x264 [info]: i8c dc,h,v,p: 66% 18% 13% 4% ## x264 [info]: Weighted P-Frames: Y:48.7% UV:38.5% ## x264 [info]: ref P L0: 43.2% 16.2% 16.7% 17.3% 6.7% ## x264 [info]: ref B L0: 76.6% 17.2% 6.2% ## x264 [info]: ref B L1: 89.0% 11.0% ## x264 [info]: kb/s:1087.57 ############################################################JohnMeister.com Today's Date:
|