transpose

transpose参数说明 (1)=90CpimterClockwise and Vertical Flip(default),逆时针旋转90°后垂直翻转。 (2)1=90Clockwise,顺时针旋转90° (3)2=90CounterClockwise,逆时针旋转90° (4)3=90Clockwise,顺时针旋转90°后垂直翻转。 ffmpeg –help filter=transpose ffmpeg -i IMG_0001.jpg -vf “transpose=1,transpose=1” \ -f image2 IMG_0001_0-r180.jpg && exit

Published
Categorized as ffmpeg

ffmpeg_concat

ffmpeg -f concat -safe 0 -r 1/4 -i file_mp4 -f mp4 $(date +%Y%m%d)_output_$(date +%H%M%S).mp4 cat file_mp4 file ‘a0.jpg’ file ‘a1.jpg’ file ‘a2.jpg’ file ‘a3.jpg’ file ‘a4.jpg’ file ‘a5.jpg’ file ‘a6.jpg’ ffmpeg -f concat -safe 0 -i file_mp3 -c copy $(date +%Y%m%d)_output_$(date +%H%M%S).mp3 cat file_mp3 file ‘ff_capture.mp3’ file ‘ff_capture.mp3’

Published
Categorized as ffmpeg

[ffbuild/common.mak:81: libavformat/adtsenc.o] Error 1

./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr’ make: *** [ffbuild/common.mak:81: libavformat/adtsenc.o] Error 1 更改编译代码方式: cd FFmpeg-n5.1.2/libavcodec/x86/ vim mathops.h 定位到125 先删除125至最后一行,然后添加新的内容 // avoid +32 for shift optimization (gcc should do that …) #define NEG_SSR32 NEG_SSR32 static inline int32_t NEG_SSR32( int32_t a, int8_t s){ if (__builtin_constant_p(s)) __asm__ (“sarl %1, %0\n\t” : “+r” (a) : “i” (-s &… Continue reading [ffbuild/common.mak:81: libavformat/adtsenc.o] Error 1

Published
Categorized as ffmpeg

ffmpeg showwave

ffmpeg -i input.mp3 -filter_complex “showwavespic=s=640×120” \ -frames:v 1 output.png ffmpeg -i input.mp3 -filter_complex “showwavespic=s=640×240:\ split_channels=1” -frames:v 1 output.png -y

Published
Categorized as ffmpeg

ffmpeg-xrandr

root135@root135:~/Documents$ xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 LVDS-1 connected (normal left inverted right x axis y axis) 1366×768 60.00 + 1360×768 59.80 59.96 1280×720 60.00 59.99 59.86 59.74 1024×768 60.04 60.00 960×720 60.00 928×696 60.05 896×672 60.01 1024×576 59.95 59.96 59.90 59.82 960×600 59.93 60.00 960×540… Continue reading ffmpeg-xrandr

Published
Categorized as ffmpeg