就视频处理(尤其是ffmpeg)而言,我是一个新手。因此,这可能是一个真正的初学者的问题。
我正在尝试从avi提取帧。这是命令:
ffmpeg.exe -i 123.avi -vf select='gt(scene\,0.4)',scale=1920:-1,tile=6x3 -frames:v 1 456.jpg
这是控制台输出:
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, avi, from 'C:\work\exports\123.avi':
Duration: 00:02:12.43, start: 0.000000, bitrate: 4455 kb/s
Stream #0:0: Video: rawvideo, pal8, 164x485, 4459 kb/s, 7 fps, 7 tbr, 7 tbn, 7 tbc
Metadata:
title : FileAVI write
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 000000eb4f415ec0] deprecated pixel format used, make sure you did set range correctly
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
使用avi文件时是否需要特定的编码器?哪一个以及如何指定?
答案 0 :(得分:0)
使用
$this->load->database('orb');
$this->db->distinct();
$master_id = $this->session->userdata('master_id');
$query = $this->db->get_where('skills_tb', array('master_id' => $master_id));
return $query->row();
比例过滤器应放置在瓷砖后面。将其放置在前面将导致每个选定的帧缩放到1920的宽度。当瓦片滤镜将这些帧堆叠在一起时,您的输出将为11520像素宽,并且高度更高。