
Recherche avancée
Autres articles (65)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (11294)
-
increasing memory occupancy while recording screen save to disk with ffmpeg [on hold]
19 mai 2016, par vbtangwonder if there are any resoures i didn’t free ?or do i need to do something special so that i can free these momery ?
ps. run the demo step by step, and found it has the same problem, until it quit the main function, it still have 40MB memory occupancy. And i found the memory increase obviously in the screen capture thread,but when it increased to about 150MB, it won’t increase, until i quit the program, it will have 40MB memory left. i feel confused.
pss. i download ffmpeg dev and shared version form here https://ffmpeg.zeranoe.com/builds/,it seems a dll of debug version ? do i need a release version ?
here is my demo code.#include "stdafx.h"
#ifdef __cplusplus
extern "C"
{
#endif
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libavdevice/avdevice.h"
#include "libavutil/audio_fifo.h"
#pragma comment(lib, "avcodec.lib")
#pragma comment(lib, "avformat.lib")
#pragma comment(lib, "avutil.lib")
#pragma comment(lib, "avdevice.lib")
#pragma comment(lib, "avfilter.lib")
//#pragma comment(lib, "avfilter.lib")
//#pragma comment(lib, "postproc.lib")
//#pragma comment(lib, "swresample.lib")
#pragma comment(lib, "swscale.lib")
#ifdef __cplusplus
};
#endif
AVFormatContext *pFormatCtx_Video = NULL, *pFormatCtx_Audio = NULL, *pFormatCtx_Out = NULL;
AVCodecContext *pCodecCtx_Video;
AVCodec *pCodec_Video;
AVFifoBuffer *fifo_video = NULL;
AVAudioFifo *fifo_audio = NULL;
int VideoIndex, AudioIndex;
CRITICAL_SECTION AudioSection, VideoSection;
SwsContext *img_convert_ctx;
int frame_size = 0;
uint8_t *picture_buf = NULL, *frame_buf = NULL;
bool bCap = true;
DWORD WINAPI ScreenCapThreadProc( LPVOID lpParam );
DWORD WINAPI AudioCapThreadProc( LPVOID lpParam );
int OpenVideoCapture()
{
AVInputFormat *ifmt=av_find_input_format("gdigrab");
//
AVDictionary *options = NULL;
av_dict_set(&options, "framerate", "15", NULL);
//av_dict_set(&options,"offset_x","20",0);
//The distance from the top edge of the screen or desktop
//av_dict_set(&options,"offset_y","40",0);
//Video frame size. The default is to capture the full screen
//av_dict_set(&options,"video_size","320x240",0);
if(avformat_open_input(&pFormatCtx_Video, "desktop", ifmt, &options)!=0)
{
printf("Couldn't open input stream.(无法打开视频输入流)\n");
return -1;
}
if(avformat_find_stream_info(pFormatCtx_Video,NULL)<0)
{
printf("Couldn't find stream information.(无法获取视频流信息)\n");
return -1;
}
if (pFormatCtx_Video->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO)
{
printf("Couldn't find video stream information.(无法获取视频流信息)\n");
return -1;
}
pCodecCtx_Video = pFormatCtx_Video->streams[0]->codec;
pCodec_Video = avcodec_find_decoder(pCodecCtx_Video->codec_id);
if(pCodec_Video == NULL)
{
printf("Codec not found.(没有找到解码器)\n");
return -1;
}
if(avcodec_open2(pCodecCtx_Video, pCodec_Video, NULL) < 0)
{
printf("Could not open codec.(无法打开解码器)\n");
return -1;
}
img_convert_ctx = sws_getContext(pCodecCtx_Video->width, pCodecCtx_Video->height, pCodecCtx_Video->pix_fmt,
pCodecCtx_Video->width, pCodecCtx_Video->height, PIX_FMT_YUV420P, SWS_BICUBIC, NULL, NULL, NULL);
frame_size = avpicture_get_size(pCodecCtx_Video->pix_fmt, pCodecCtx_Video->width, pCodecCtx_Video->height);
//
fifo_video = av_fifo_alloc(30 * avpicture_get_size(AV_PIX_FMT_YUV420P, pCodecCtx_Video->width, pCodecCtx_Video->height));
return 0;
}
static char *dup_wchar_to_utf8(wchar_t *w)
{
char *s = NULL;
int l = WideCharToMultiByte(CP_UTF8, 0, w, -1, 0, 0, 0, 0);
s = (char *) av_malloc(l);
if (s)
WideCharToMultiByte(CP_UTF8, 0, w, -1, s, l, 0, 0);
return s;
}
int OpenAudioCapture()
{
//
AVInputFormat *pAudioInputFmt = av_find_input_format("dshow");
//
char * psDevName = dup_wchar_to_utf8(L"audio=virtual-audio-capturer");
if (avformat_open_input(&pFormatCtx_Audio, psDevName, pAudioInputFmt,NULL) < 0)
{
printf("Couldn't open input stream.(无法打开音频输入流)\n");
return -1;
}
if(avformat_find_stream_info(pFormatCtx_Audio,NULL)<0)
return -1;
if(pFormatCtx_Audio->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO)
{
printf("Couldn't find video stream information.(无法获取音频流信息)\n");
return -1;
}
AVCodec *tmpCodec = avcodec_find_decoder(pFormatCtx_Audio->streams[0]->codec->codec_id);
if(0 > avcodec_open2(pFormatCtx_Audio->streams[0]->codec, tmpCodec, NULL))
{
printf("can not find or open audio decoder!\n");
}
return 0;
}
int OpenOutPut()
{
AVStream *pVideoStream = NULL, *pAudioStream = NULL;
const char *outFileName = "test.mp4";
avformat_alloc_output_context2(&pFormatCtx_Out, NULL, NULL, outFileName);
if (pFormatCtx_Video->streams[0]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
{
VideoIndex = 0;
pVideoStream = avformat_new_stream(pFormatCtx_Out, NULL);
if (!pVideoStream)
{
printf("can not new stream for output!\n");
return -1;
}
//set codec context param
pVideoStream->codec->codec = avcodec_find_encoder(AV_CODEC_ID_MPEG4);
pVideoStream->codec->height = pFormatCtx_Video->streams[0]->codec->height;
pVideoStream->codec->width = pFormatCtx_Video->streams[0]->codec->width;
pVideoStream->codec->time_base = pFormatCtx_Video->streams[0]->codec->time_base;
pVideoStream->codec->sample_aspect_ratio = pFormatCtx_Video->streams[0]->codec->sample_aspect_ratio;
// take first format from list of supported formats
pVideoStream->codec->pix_fmt = pFormatCtx_Out->streams[VideoIndex]->codec->codec->pix_fmts[0];
//open encoder
if (!pVideoStream->codec->codec)
{
printf("can not find the encoder!\n");
return -1;
}
if (pFormatCtx_Out->oformat->flags & AVFMT_GLOBALHEADER)
pVideoStream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
if ((avcodec_open2(pVideoStream->codec, pVideoStream->codec->codec, NULL)) < 0)
{
printf("can not open the encoder\n");
return -1;
}
}
if(pFormatCtx_Audio->streams[0]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
{
AVCodecContext *pOutputCodecCtx;
AudioIndex = 1;
pAudioStream = avformat_new_stream(pFormatCtx_Out, NULL);
pAudioStream->codec->codec = avcodec_find_encoder(pFormatCtx_Out->oformat->audio_codec);
pOutputCodecCtx = pAudioStream->codec;
pOutputCodecCtx->sample_rate = pFormatCtx_Audio->streams[0]->codec->sample_rate;
pOutputCodecCtx->channel_layout = pFormatCtx_Out->streams[0]->codec->channel_layout;
pOutputCodecCtx->channels = av_get_channel_layout_nb_channels(pAudioStream->codec->channel_layout);
if(pOutputCodecCtx->channel_layout == 0)
{
pOutputCodecCtx->channel_layout = AV_CH_LAYOUT_STEREO;
pOutputCodecCtx->channels = av_get_channel_layout_nb_channels(pOutputCodecCtx->channel_layout);
}
pOutputCodecCtx->sample_fmt = pAudioStream->codec->codec->sample_fmts[0];
AVRational time_base={1, pAudioStream->codec->sample_rate};
pAudioStream->time_base = time_base;
//audioCodecCtx->time_base = time_base;
pOutputCodecCtx->codec_tag = 0;
if (pFormatCtx_Out->oformat->flags & AVFMT_GLOBALHEADER)
pOutputCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
if (avcodec_open2(pOutputCodecCtx, pOutputCodecCtx->codec, 0) < 0)
{
//
return -1;
}
}
if (!(pFormatCtx_Out->oformat->flags & AVFMT_NOFILE))
{
if(avio_open(&pFormatCtx_Out->pb, outFileName, AVIO_FLAG_WRITE) < 0)
{
printf("can not open output file handle!\n");
return -1;
}
}
if(avformat_write_header(pFormatCtx_Out, NULL) < 0)
{
printf("can not write the header of the output file!\n");
return -1;
}
return 0;
}
int _tmain(int argc, _TCHAR* argv[])
{
av_register_all();
avdevice_register_all();
if (OpenVideoCapture() < 0)
{
return -1;
}
if (OpenAudioCapture() < 0)
{
return -1;
}
if (OpenOutPut() < 0)
{
return -1;
}
InitializeCriticalSection(&VideoSection);
InitializeCriticalSection(&AudioSection);
AVFrame *picture = av_frame_alloc();
int size = avpicture_get_size(pFormatCtx_Out->streams[VideoIndex]->codec->pix_fmt,
pFormatCtx_Out->streams[VideoIndex]->codec->width, pFormatCtx_Out->streams[VideoIndex]->codec->height);
picture_buf = new uint8_t[size];
avpicture_fill((AVPicture *)picture, picture_buf,
pFormatCtx_Out->streams[VideoIndex]->codec->pix_fmt,
pFormatCtx_Out->streams[VideoIndex]->codec->width,
pFormatCtx_Out->streams[VideoIndex]->codec->height);
//star cap screen thread
CreateThread( NULL, 0, ScreenCapThreadProc, 0, 0, NULL);
//star cap audio thread
CreateThread( NULL, 0, AudioCapThreadProc, 0, 0, NULL);
int64_t cur_pts_v=0,cur_pts_a=0;
int VideoFrameIndex = 0, AudioFrameIndex = 0;
while(1)
{
if (_kbhit() != 0 && bCap)
{
bCap = false;
Sleep(2000);//
}
if (fifo_audio && fifo_video)
{
int sizeAudio = av_audio_fifo_size(fifo_audio);
int sizeVideo = av_fifo_size(fifo_video);
//
if (av_audio_fifo_size(fifo_audio) <= pFormatCtx_Out->streams[AudioIndex]->codec->frame_size &&
av_fifo_size(fifo_video) <= frame_size && !bCap)
{
break;
}
}
if(av_compare_ts(cur_pts_v, pFormatCtx_Out->streams[VideoIndex]->time_base,
cur_pts_a,pFormatCtx_Out->streams[AudioIndex]->time_base) <= 0)
{
//read data from fifo
if (av_fifo_size(fifo_video) < frame_size && !bCap)
{
cur_pts_v = 0x7fffffffffffffff;
}
if(av_fifo_size(fifo_video) >= size)
{
EnterCriticalSection(&VideoSection);
av_fifo_generic_read(fifo_video, picture_buf, size, NULL);
LeaveCriticalSection(&VideoSection);
avpicture_fill((AVPicture *)picture, picture_buf,
pFormatCtx_Out->streams[VideoIndex]->codec->pix_fmt,
pFormatCtx_Out->streams[VideoIndex]->codec->width,
pFormatCtx_Out->streams[VideoIndex]->codec->height);
//pts = n * ((1 / timbase)/ fps);
picture->pts = VideoFrameIndex * ((pFormatCtx_Video->streams[0]->time_base.den / pFormatCtx_Video->streams[0]->time_base.num) / 15);
int got_picture = 0;
AVPacket pkt;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
int ret = avcodec_encode_video2(pFormatCtx_Out->streams[VideoIndex]->codec, &pkt, picture, &got_picture);
if(ret < 0)
{
//
continue;
}
if (got_picture==1)
{
pkt.stream_index = VideoIndex;
pkt.pts = av_rescale_q_rnd(pkt.pts, pFormatCtx_Video->streams[0]->time_base,
pFormatCtx_Out->streams[VideoIndex]->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
pkt.dts = av_rescale_q_rnd(pkt.dts, pFormatCtx_Video->streams[0]->time_base,
pFormatCtx_Out->streams[VideoIndex]->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
pkt.duration = ((pFormatCtx_Out->streams[0]->time_base.den / pFormatCtx_Out->streams[0]->time_base.num) / 15);
cur_pts_v = pkt.pts;
ret = av_interleaved_write_frame(pFormatCtx_Out, &pkt);
//delete[] pkt.data;
av_free_packet(&pkt);
}
VideoFrameIndex++;
}
}
else
{
if (NULL == fifo_audio)
{
continue;//
}
if (av_audio_fifo_size(fifo_audio) < pFormatCtx_Out->streams[AudioIndex]->codec->frame_size && !bCap)
{
cur_pts_a = 0x7fffffffffffffff;
}
if(av_audio_fifo_size(fifo_audio) >=
(pFormatCtx_Out->streams[AudioIndex]->codec->frame_size > 0 ? pFormatCtx_Out->streams[AudioIndex]->codec->frame_size : 1024))
{
AVFrame *frame;
frame = av_frame_alloc();
frame->nb_samples = pFormatCtx_Out->streams[AudioIndex]->codec->frame_size>0 ? pFormatCtx_Out->streams[AudioIndex]->codec->frame_size: 1024;
frame->channel_layout = pFormatCtx_Out->streams[AudioIndex]->codec->channel_layout;
frame->format = pFormatCtx_Out->streams[AudioIndex]->codec->sample_fmt;
frame->sample_rate = pFormatCtx_Out->streams[AudioIndex]->codec->sample_rate;
av_frame_get_buffer(frame, 0);
EnterCriticalSection(&AudioSection);
av_audio_fifo_read(fifo_audio, (void **)frame->data,
(pFormatCtx_Out->streams[AudioIndex]->codec->frame_size > 0 ? pFormatCtx_Out->streams[AudioIndex]->codec->frame_size : 1024));
LeaveCriticalSection(&AudioSection);
if (pFormatCtx_Out->streams[0]->codec->sample_fmt != pFormatCtx_Audio->streams[AudioIndex]->codec->sample_fmt
|| pFormatCtx_Out->streams[0]->codec->channels != pFormatCtx_Audio->streams[AudioIndex]->codec->channels
|| pFormatCtx_Out->streams[0]->codec->sample_rate != pFormatCtx_Audio->streams[AudioIndex]->codec->sample_rate)
{
//
}
AVPacket pkt_out;
av_init_packet(&pkt_out);
int got_picture = -1;
pkt_out.data = NULL;
pkt_out.size = 0;
frame->pts = AudioFrameIndex * pFormatCtx_Out->streams[AudioIndex]->codec->frame_size;
if (avcodec_encode_audio2(pFormatCtx_Out->streams[AudioIndex]->codec, &pkt_out, frame, &got_picture) < 0)
{
printf("can not decoder a frame");
}
av_frame_free(&frame);
if (got_picture)
{
pkt_out.stream_index = AudioIndex;
pkt_out.pts = AudioFrameIndex * pFormatCtx_Out->streams[AudioIndex]->codec->frame_size;
pkt_out.dts = AudioFrameIndex * pFormatCtx_Out->streams[AudioIndex]->codec->frame_size;
pkt_out.duration = pFormatCtx_Out->streams[AudioIndex]->codec->frame_size;
cur_pts_a = pkt_out.pts;
int ret = av_interleaved_write_frame(pFormatCtx_Out, &pkt_out);
av_free_packet(&pkt_out);
}
AudioFrameIndex++;
}
}
}
delete[] picture_buf;
delete[]frame_buf;
av_fifo_free(fifo_video);
av_audio_fifo_free(fifo_audio);
av_write_trailer(pFormatCtx_Out);
avio_close(pFormatCtx_Out->pb);
avformat_free_context(pFormatCtx_Out);
if (pFormatCtx_Video != NULL)
{
avformat_close_input(&pFormatCtx_Video);
pFormatCtx_Video = NULL;
}
if (pFormatCtx_Audio != NULL)
{
avformat_close_input(&pFormatCtx_Audio);
pFormatCtx_Audio = NULL;
}
if (NULL != img_convert_ctx)
{
sws_freeContext(img_convert_ctx);
img_convert_ctx = NULL;
}
return 0;
}
DWORD WINAPI ScreenCapThreadProc( LPVOID lpParam )
{
AVPacket packet;/* = (AVPacket *)av_malloc(sizeof(AVPacket))*/;
int got_picture;
AVFrame *pFrame;
pFrame= av_frame_alloc();
AVFrame *picture = av_frame_alloc();
int size = avpicture_get_size(pFormatCtx_Out->streams[VideoIndex]->codec->pix_fmt,
pFormatCtx_Out->streams[VideoIndex]->codec->width, pFormatCtx_Out->streams[VideoIndex]->codec->height);
//picture_buf = new uint8_t[size];
avpicture_fill((AVPicture *)picture, picture_buf,
pFormatCtx_Out->streams[VideoIndex]->codec->pix_fmt,
pFormatCtx_Out->streams[VideoIndex]->codec->width,
pFormatCtx_Out->streams[VideoIndex]->codec->height);
// FILE *p = NULL;
// p = fopen("proc_test.yuv", "wb+");
av_init_packet(&packet);
int height = pFormatCtx_Out->streams[VideoIndex]->codec->height;
int width = pFormatCtx_Out->streams[VideoIndex]->codec->width;
int y_size=height*width;
while(bCap)
{
packet.data = NULL;
packet.size = 0;
if (av_read_frame(pFormatCtx_Video, &packet) < 0)
{
av_free_packet(&packet);
continue;
}
if(packet.stream_index == 0)
{
if (avcodec_decode_video2(pCodecCtx_Video, pFrame, &got_picture, &packet) < 0)
{
printf("Decode Error.(解码错误)\n");
continue;
}
if (got_picture)
{
sws_scale(img_convert_ctx, (const uint8_t* const*)pFrame->data, pFrame->linesize, 0,
pFormatCtx_Out->streams[VideoIndex]->codec->height, picture->data, picture->linesize);
if (av_fifo_space(fifo_video) >= size)
{
EnterCriticalSection(&VideoSection);
av_fifo_generic_write(fifo_video, picture->data[0], y_size, NULL);
av_fifo_generic_write(fifo_video, picture->data[1], y_size/4, NULL);
av_fifo_generic_write(fifo_video, picture->data[2], y_size/4, NULL);
LeaveCriticalSection(&VideoSection);
}
}
}
av_free_packet(&packet);
//Sleep(50);
}
av_frame_free(&pFrame);
av_frame_free(&picture);
//delete[] picture_buf;
return 0;
}
DWORD WINAPI AudioCapThreadProc( LPVOID lpParam )
{
AVPacket pkt;
AVFrame *frame;
frame = av_frame_alloc();
int gotframe;
while(bCap)
{
pkt.data = NULL;
pkt.size = 0;
if(av_read_frame(pFormatCtx_Audio,&pkt) < 0)
{
av_free_packet(&pkt);
continue;
}
if (avcodec_decode_audio4(pFormatCtx_Audio->streams[0]->codec, frame, &gotframe, &pkt) < 0)
{
av_frame_free(&frame);
printf("can not decoder a frame");
break;
}
av_free_packet(&pkt);
if (!gotframe)
{
continue;//
}
if (NULL == fifo_audio)
{
fifo_audio = av_audio_fifo_alloc(pFormatCtx_Audio->streams[0]->codec->sample_fmt,
pFormatCtx_Audio->streams[0]->codec->channels, 30 * frame->nb_samples);
}
int buf_space = av_audio_fifo_space(fifo_audio);
if (av_audio_fifo_space(fifo_audio) >= frame->nb_samples)
{
EnterCriticalSection(&AudioSection);
av_audio_fifo_write(fifo_audio, (void **)frame->data, frame->nb_samples);
LeaveCriticalSection(&AudioSection);
}
}
av_frame_free(&frame);
return 0;
} -
FFMPEG not enough data (x y), trying to decode anyway
7 juin 2016, par Forest J. HandfordI’m trying to make videos of Direct3D games using a C# app. For non-Direct3D games I stream images from Graphics.CopyFromScreen which works. When I copy the screen from Direct3D and stream it to FFMPEG I get :
[bmp @ 00000276b0b9c280] not enough data (5070 < 129654), trying to
decode anywayAn MP4 file is created, but it is always 0 bytes.
To get screenshots from Direct3D, I am using Justin Stenning’s Direct3DHook. This produces images MUCH bigger than when I get images from Graphics.CopyFromScreen (8 MB vs 136 KB). I’ve tried increasing the buffer (-bufsize) but the number on the left of the error is not impacted.
I’ve tried resizing the image to 1/6th the original. That reduces the number on the right, but does not eliminate it. Even when the number on the right is close to what I have for Graphics.CopyFromScreen I get an error. Here is a sample of the current code :
using System;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using Capture.Hook;
using Capture.Interface;
using Capture;
using System.IO;
namespace GameRecord
{
public class Video
{
private const int VID_FRAME_FPS = 8;
private const int SIZE_MODIFIER = 6;
private const double FRAMES_PER_MS = VID_FRAME_FPS * 0.001;
private const int SLEEP_INTERVAL = 2;
private const int CONSTANT_RATE_FACTOR = 18; // Lower crf = Higher Quality https://trac.ffmpeg.org/wiki/Encode/H.264
private Image image;
private Capture captureScreen;
private int processId = 0;
private Process process;
private CaptureProcess captureProcess;
private Process launchingFFMPEG;
private string arg;
private int frame = 0;
private Size? resize = null;
/// <summary>
/// Generates the Videos by gathering frames and processing via FFMPEG.
/// </summary>
public void RecordScreenTillGameEnd(string exe, OutputDirectory outputDirectory, CustomMessageBox alertBox, Thread workerThread)
{
AttachProcess(exe);
RequestD3DScreenShot();
while (image == null) ;
Logger.log.Info("Launching FFMPEG ....");
resize = new Size(image.Width / SIZE_MODIFIER, image.Height / SIZE_MODIFIER);
// H.264 can let us do 8 FPS in high res . . . but must be licensed for commercial use.
arg = "-f image2pipe -framerate " + VID_FRAME_FPS + " -i pipe:.bmp -pix_fmt yuv420p -crf " +
CONSTANT_RATE_FACTOR + " -preset ultrafast -s " + resize.Value.Width + "x" +
resize.Value.Height + " -vcodec libx264 -bufsize 30000k -y \"" +
outputDirectory.pathToVideo + "\"";
launchingFFMPEG = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "ffmpeg",
Arguments = arg,
UseShellExecute = false,
CreateNoWindow = true,
RedirectStandardInput = true,
RedirectStandardError = true
}
};
launchingFFMPEG.Start();
Stopwatch stopWatch = Stopwatch.StartNew(); //creates and start the instance of Stopwatch
do
{
Thread.Sleep(SLEEP_INTERVAL);
} while (workerThread.IsAlive);
Logger.log.Info("Total frames: " + frame + " Expected frames: " + (ExpectedFrames(stopWatch.ElapsedMilliseconds) - 1));
launchingFFMPEG.StandardInput.Close();
#if DEBUG
string line;
while ((line = launchingFFMPEG.StandardError.ReadLine()) != null)
{
Logger.log.Debug(line);
}
#endif
launchingFFMPEG.Close();
alertBox.Show();
}
void RequestD3DScreenShot()
{
captureProcess.CaptureInterface.BeginGetScreenshot(new Rectangle(0, 0, 0, 0), new TimeSpan(0, 0, 2), Callback, resize, (ImageFormat)Enum.Parse(typeof(ImageFormat), "Bitmap"));
}
private void AttachProcess(string exe)
{
Thread.Sleep(300);
Process[] processes = Process.GetProcessesByName(Path.GetFileNameWithoutExtension(exe));
foreach (Process currProcess in processes)
{
// Simply attach to the first one found.
// If the process doesn't have a mainwindowhandle yet, skip it (we need to be able to get the hwnd to set foreground etc)
if (currProcess.MainWindowHandle == IntPtr.Zero)
{
continue;
}
// Skip if the process is already hooked (and we want to hook multiple applications)
if (HookManager.IsHooked(currProcess.Id))
{
continue;
}
Direct3DVersion direct3DVersion = Direct3DVersion.AutoDetect;
CaptureConfig cc = new CaptureConfig()
{
Direct3DVersion = direct3DVersion,
ShowOverlay = false
};
processId = currProcess.Id;
process = currProcess;
var captureInterface = new CaptureInterface();
captureInterface.RemoteMessage += new MessageReceivedEvent(CaptureInterface_RemoteMessage);
captureProcess = new CaptureProcess(process, cc, captureInterface);
break;
}
Thread.Sleep(10);
if (captureProcess == null)
{
ShowUser.Exception("No executable found matching: '" + exe + "'");
}
}
/// <summary>
/// The callback for when the screenshot has been taken
/// </summary>
///
///
///
void Callback(IAsyncResult result)
{
using (Screenshot screenshot = captureProcess.CaptureInterface.EndGetScreenshot(result))
if (screenshot != null && screenshot.Data != null && arg != null)
{
if (image != null)
{
image.Dispose();
}
image = screenshot.ToBitmap();
// image.Save("D3DImageTest.bmp");
image.Save(launchingFFMPEG.StandardInput.BaseStream, System.Drawing.Imaging.ImageFormat.Bmp);
launchingFFMPEG.StandardInput.Flush();
frame++;
}
if (frame < 5)
{
Thread t = new Thread(new ThreadStart(RequestD3DScreenShot));
t.Start();
}
else
{
Logger.log.Info("Done getting shots from D3D.");
}
}
/// <summary>
/// Display messages from the target process
/// </summary>
///
private void CaptureInterface_RemoteMessage(MessageReceivedEventArgs message)
{
Logger.log.Info(message);
}
}
}When I search the internet for the error all I get is the FFMPEG source code, which has not proven to be illuminating. I have been able to save the image directly to disk, which makes me feel like it is not an issue with disposing the data. I have also tried only grabbing one frame, but that produces the same error, which suggests to me it is not a threading issue.
Here is the full sample of stderr :
2016-06-02 18:29:38,046 === ffmpeg version N-79143-g8ff0f6a Copyright (c) 2000-2016 the FFmpeg developers
2016-06-02 18:29:38,047 === built with gcc 5.3.0 (GCC)
2016-06-02 18:29:38,048 === configuration: --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
2016-06-02 18:29:38,062 === libavutil 55. 19.100 / 55. 19.100
2016-06-02 18:29:38,063 === libavcodec 57. 30.100 / 57. 30.100
2016-06-02 18:29:38,064 === libavformat 57. 29.101 / 57. 29.101
2016-06-02 18:29:38,064 === libavdevice 57. 0.101 / 57. 0.101
2016-06-02 18:29:38,065 === libavfilter 6. 40.102 / 6. 40.102
2016-06-02 18:29:38,066 === libswscale 4. 0.100 / 4. 0.100
2016-06-02 18:29:38,067 === libswresample 2. 0.101 / 2. 0.101
2016-06-02 18:29:38,068 === libpostproc 54. 0.100 / 54. 0.100
2016-06-02 18:29:38,068 === [bmp @ 000002cd7e5cc280] not enough data (13070 < 8294454), trying to decode anyway
2016-06-02 18:29:38,069 === [bmp @ 000002cd7e5cc280] not enough data (13016 < 8294400)
2016-06-02 18:29:38,069 === Input #0, image2pipe, from 'pipe:.bmp':
2016-06-02 18:29:38,262 === Duration: N/A, bitrate: N/A
2016-06-02 18:29:38,262 === Stream #0:0: Video: bmp, bgra, 1920x1080, 8 tbr, 8 tbn, 8 tbc
2016-06-02 18:29:38,263 === [libx264 @ 000002cd7e5d59a0] VBV bufsize set but maxrate unspecified, ignored
2016-06-02 18:29:38,264 === [libx264 @ 000002cd7e5d59a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
2016-06-02 18:29:38,265 === [libx264 @ 000002cd7e5d59a0] profile Constrained Baseline, level 1.1
2016-06-02 18:29:38,266 === [libx264 @ 000002cd7e5d59a0] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=8 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
2016-06-02 18:29:38,463 === Output #0, mp4, to 'C:\Users\fores\AppData\Roaming\Affectiva\n_Artifacts_20160602_182857\GameplayVidOut.mp4':
2016-06-02 18:29:38,464 === Metadata:
2016-06-02 18:29:38,465 === encoder : Lavf57.29.101
2016-06-02 18:29:38,469 === Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x180, q=-1--1, 8 fps, 16384 tbn, 8 tbc
2016-06-02 18:29:38,470 === Metadata:
2016-06-02 18:29:38,472 === encoder : Lavc57.30.100 libx264
2016-06-02 18:29:38,474 === Side data:
2016-06-02 18:29:38,475 === cpb: bitrate max/min/avg: 0/0/0 buffer size: 30000000 vbv_delay: -1
2016-06-02 18:29:38,476 === Stream mapping:
2016-06-02 18:29:38,477 === Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))
2016-06-02 18:29:38,480 === [bmp @ 000002cd7e5cc9a0] not enough data (13070 < 8294454), trying to decode anyway
2016-06-02 18:29:38,662 === [bmp @ 000002cd7e5cc9a0] not enough data (13016 < 8294400)
2016-06-02 18:29:38,662 === Error while decoding stream #0:0: Invalid data found when processing input
2016-06-02 18:29:38,663 === frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
2016-06-02 18:29:38,663 === video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2016-06-02 18:29:38,664 === Conversion failed!In memory, the current image is 320 pixels wide and 180 pixels long. The pixel format is Format32bppRgb. The horizontal and vertical resolutions seem odd, they are both 96.01199. When filed to disk here is ffprobe output for the file :
ffprobe version N-79143-g8ff0f6a Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 30.100 / 57. 30.100
libavformat 57. 29.101 / 57. 29.101
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 40.102 / 6. 40.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, png_pipe, from 'C:\Users\fores\git\game-playtest-tool\GamePlayTest\bin\x64\Debug\D3DFromCapture.bmp':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 1920x1080 [SAR 3779:3779 DAR 16:9], 25 tbr, 25 tbn, 25 tbcHere is a PNG version of an example screenshot from the current code (playing Portal 2) :
Any ideas would be greatly appreciated. My current workaround is to save the files to the HDD and compile the video after gameplay, but it’s a far less performant option. Thank you !
-
Resize the video
8 juin 2016, par Android devI have a requirement for video size before upload on the server and would like to resize the video to make sure it will not go the threshold.
So far I ended up with this command :
ffmpeg -y -i E:\test3.mp4 -s 640*480 -r 15 -aspect 3:4 -ab 12288 -vcodec mpeg4 -b 2097152 E:\debug_video.mp4
The issues with this command :
- is it changes aspect ratio of the video
- it works too slow (30 seconds for 12 seconds 24mb video on Nexus 5)The best solution so far for the first issue is to check the video resolution first and only than run the ffmpeg.
Do you know how to do that with help of ffmpeg as two separate commands or as a single one ? Do you know how to make it faster ? Thank you in advance
UPDATE
The console output is below. Please let me know if you would like to get console output foronProgress
callbackadb -s 07f0f4ac01897da5 logcat "ffmpeg:*" "*:S"
06-08 17:43:29.589 20835 20835 D ffmpeg : FFmpeg:onProgress: ffmpeg version n3.
0.1 Copyright (c) 2000-2016 the FFmpeg developers
06-08 17:43:29.589 20835 20835 D ffmpeg : FFmpeg:onProgress: built with gcc 4
.8 (GCC)
06-08 17:43:29.592 20835 20835 D ffmpeg : FFmpeg:onProgress: configuration: -
-target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchai
n-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime
-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/s
ysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enab
le-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disabl
e-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable
-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-sha
red --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-
pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --
extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/includ
e -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-a
ll' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android
/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxf
lags=
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libavutil 5
5. 17.103 / 55. 17.103
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libavcodec 5
7. 24.102 / 57. 24.102
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libavformat 5
7. 25.100 / 57. 25.100
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libavdevice 5
7. 0.101 / 57. 0.101
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libavfilter
6. 31.100 / 6. 31.100
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libswscale
4. 0.100 / 4. 0.100
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libswresample
2. 0.101 / 2. 0.101
06-08 17:43:29.600 20835 20835 D ffmpeg : FFmpeg:onProgress: libpostproc 5
4. 0.100 / 54. 0.100
06-08 17:43:29.885 20835 20835 D ffmpeg : FFmpeg:onProgress: Input #0, mov,mp4,
m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/test2.mp4':
06-08 17:43:29.885 20835 20835 D ffmpeg : FFmpeg:onProgress: Metadata:
06-08 17:43:29.885 20835 20835 D ffmpeg : FFmpeg:onProgress: major_brand
: mp42
06-08 17:43:29.885 20835 20835 D ffmpeg : FFmpeg:onProgress: minor_version
: 0
06-08 17:43:29.885 20835 20835 D ffmpeg : FFmpeg:onProgress: compatible_bra
nds: isommp42
06-08 17:43:29.886 20835 20835 D ffmpeg : FFmpeg:onProgress: creation_time
: 2016-06-02 09:20:58
06-08 17:43:29.886 20835 20835 D ffmpeg : FFmpeg:onProgress: com.android.ve
rsion: 6.0.1
06-08 17:43:29.886 20835 20835 D ffmpeg : FFmpeg:onProgress: Duration: 00:00:
12.03, start: 0.000000, bitrate: 17234 kb/s
06-08 17:43:29.886 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream #0:0(en
g): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 16902 kb/s,
SAR 1:1 DAR 16:9, 29.81 fps, 29.85 tbr, 90k tbn, 180k tbc (default)
06-08 17:43:29.886 20835 20835 D ffmpeg : FFmpeg:onProgress: Metadata:
06-08 17:43:29.890 20835 20835 D ffmpeg : FFmpeg:onProgress: rotate
: 90
06-08 17:43:29.890 20835 20835 D ffmpeg : FFmpeg:onProgress: creation_tim
e : 2016-06-02 09:20:58
06-08 17:43:29.891 20835 20835 D ffmpeg : FFmpeg:onProgress: handler_name
: VideoHandle
06-08 17:43:29.891 20835 20835 D ffmpeg : FFmpeg:onProgress: Side data:
06-08 17:43:29.891 20835 20835 D ffmpeg : FFmpeg:onProgress: displaymatri
x: rotation of -90.00 degrees
06-08 17:43:29.892 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream #0:1(en
g): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 96 kb/s (default)
06-08 17:43:29.892 20835 20835 D ffmpeg : FFmpeg:onProgress: Metadata:
06-08 17:43:29.893 20835 20835 D ffmpeg : FFmpeg:onProgress: creation_tim
e : 2016-06-02 09:20:58
06-08 17:43:29.893 20835 20835 D ffmpeg : FFmpeg:onProgress: handler_name
: SoundHandle
06-08 17:43:29.893 20835 20835 D ffmpeg : FFmpeg:onProgress: Please use -b:a or
-b:v, -b is ambiguous
06-08 17:43:29.894 20835 20835 D ffmpeg : FFmpeg:onProgress: Codec AVOption pre
set (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0
(/storage/emulated/0/Pictures/scaled_video.mp4) has not been used for any strea
m. The most likely reason is either wrong type (e.g. a video option with no vide
o streams) or that it is a private option of some encoder which was not actually
used for any stream.
06-08 17:43:29.939 20835 20835 D ffmpeg : FFmpeg:onProgress: [mpeg4 @ 0xb5c4440
0] Invalid pixel aspect ratio 5121/5120, limit is 255/255 reducing
06-08 17:43:29.996 20835 20835 D ffmpeg : FFmpeg:onProgress: Output #0, mp4, to
'/storage/emulated/0/Pictures/scaled_video.mp4':
06-08 17:43:29.998 20835 20835 D ffmpeg : FFmpeg:onProgress: Metadata:
06-08 17:43:29.999 20835 20835 D ffmpeg : FFmpeg:onProgress: major_brand
: mp42
06-08 17:43:30.000 20835 20835 D ffmpeg : FFmpeg:onProgress: minor_version
: 0
06-08 17:43:30.000 20835 20835 D ffmpeg : FFmpeg:onProgress: compatible_bra
nds: isommp42
06-08 17:43:30.001 20835 20835 D ffmpeg : FFmpeg:onProgress: com.android.ve
rsion: 6.0.1
06-08 17:43:30.002 20835 20835 D ffmpeg : FFmpeg:onProgress: encoder
: Lavf57.25.100
06-08 17:43:30.003 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream #0:0(en
g): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 640x1138 [SAR 1:1 DAR 320:569],
q=2-31, 2097 kb/s, SAR 5121:5120 DAR 9:16, 15 fps, 15360 tbn, 15 tbc (default)
06-08 17:43:30.004 20835 20835 D ffmpeg : FFmpeg:onProgress: Metadata:
06-08 17:43:30.005 20835 20835 D ffmpeg : FFmpeg:onProgress: handler_name
: VideoHandle
06-08 17:43:30.006 20835 20835 D ffmpeg : FFmpeg:onProgress: creation_tim
e : 2016-06-02 09:20:58
06-08 17:43:30.007 20835 20835 D ffmpeg : FFmpeg:onProgress: encoder
: Lavc57.24.102 mpeg4
06-08 17:43:30.008 20835 20835 D ffmpeg : FFmpeg:onProgress: Side data:
06-08 17:43:30.008 20835 20835 D ffmpeg : FFmpeg:onProgress: unknown side
data type 10 (24 bytes)
06-08 17:43:30.008 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream #0:1(en
g): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, mono, fltp, 12 kb/s (def
ault)
06-08 17:43:30.008 20835 20835 D ffmpeg : FFmpeg:onProgress: Metadata:
06-08 17:43:30.008 20835 20835 D ffmpeg : FFmpeg:onProgress: creation_tim
e : 2016-06-02 09:20:58
06-08 17:43:30.008 20835 20835 D ffmpeg : FFmpeg:onProgress: handler_name
: SoundHandle
06-08 17:43:30.009 20835 20835 D ffmpeg : FFmpeg:onProgress: encoder
: Lavc57.24.102 aac
06-08 17:43:30.009 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream mapping:
06-08 17:43:30.009 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream #0:0 -> #
0:0 (h264 (native) -> mpeg4 (native))
06-08 17:43:30.009 20835 20835 D ffmpeg : FFmpeg:onProgress: Stream #0:1 -> #
0:1 (aac (native) -> aac (native))
06-08 17:43:30.010 20835 20835 D ffmpeg : FFmpeg:onProgress: Press [q] to stop,
[?] for help
06-08 17:43:30.730 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 2 fps=0.
0 q=2.0 size= 129kB time=00:00:01.00 bitrate=1056.4kbits/s speed=1.66x
06-08 17:43:31.350 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 5 fps=4.
0 q=2.0 size= 314kB time=00:00:01.00 bitrate=2566.0kbits/s dup=0 drop=1 spee
d=0.809x
06-08 17:43:31.842 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 8 fps=4.
6 q=7.5 size= 404kB time=00:00:01.00 bitrate=3302.5kbits/s dup=0 drop=4 spee
d=0.573x
06-08 17:43:32.367 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 10 fps=4.
4 q=8.7 size= 431kB time=00:00:01.00 bitrate=3523.1kbits/s dup=0 drop=6 spee
d=0.441x
06-08 17:43:32.873 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 13 fps=4.
7 q=9.0 size= 518kB time=00:00:01.00 bitrate=4230.9kbits/s dup=0 drop=9 spee
d=0.361x
06-08 17:43:33.392 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 15 fps=4.
5 q=11.6 size= 536kB time=00:00:01.00 bitrate=4381.7kbits/s dup=0 drop=11 sp
eed=0.303x
06-08 17:43:34.011 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 17 fps=4.
3 q=11.7 size= 558kB time=00:00:02.00 bitrate=2279.7kbits/s dup=0 drop=13 sp
eed=0.512x
06-08 17:43:34.621 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 20 fps=4.
4 q=12.5 size= 598kB time=00:00:02.00 bitrate=2444.5kbits/s dup=0 drop=16 sp
eed=0.443x
06-08 17:43:35.207 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 23 fps=4.
5 q=11.3 size= 630kB time=00:00:02.00 bitrate=2574.3kbits/s dup=0 drop=19 sp
eed=0.394x
06-08 17:43:35.726 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 26 fps=4.
6 q=10.1 size= 689kB time=00:00:02.00 bitrate=2815.3kbits/s dup=0 drop=22 sp
eed=0.357x
06-08 17:43:36.252 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 28 fps=4.
6 q=9.6 size= 707kB time=00:00:02.00 bitrate=2888.7kbits/s dup=0 drop=24 spe
ed=0.327x
06-08 17:43:36.749 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 31 fps=4.
7 q=9.5 size= 726kB time=00:00:02.06 bitrate=2879.6kbits/s dup=0 drop=27 spe
ed=0.311x
06-08 17:43:37.341 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 33 fps=4.
6 q=9.3 size= 767kB time=00:00:03.00 bitrate=2089.4kbits/s dup=0 drop=29 spe
ed=0.417x
06-08 17:43:37.872 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 35 fps=4.
5 q=9.4 size= 791kB time=00:00:03.00 bitrate=2154.3kbits/s dup=0 drop=31 spe
ed=0.386x
06-08 17:43:38.447 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 38 fps=4.
6 q=9.2 size= 854kB time=00:00:03.00 bitrate=2324.7kbits/s dup=0 drop=34 spe
ed=0.361x
06-08 17:43:39.005 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 41 fps=4.
6 q=8.2 size= 883kB time=00:00:03.00 bitrate=2404.7kbits/s dup=0 drop=36 spe
ed=0.338x
06-08 17:43:39.507 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 43 fps=4.
6 q=9.0 size= 918kB time=00:00:03.00 bitrate=2499.3kbits/s dup=0 drop=38 spe
ed=0.32x
06-08 17:43:40.065 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 46 fps=4.
6 q=9.6 size= 948kB time=00:00:03.06 bitrate=2531.5kbits/s dup=0 drop=41 spe
ed=0.307x
06-08 17:43:40.602 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 48 fps=4.
6 q=9.3 size= 990kB time=00:00:04.01 bitrate=2021.2kbits/s dup=0 drop=43 spe
ed=0.381x
06-08 17:43:41.189 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 51 fps=4.
6 q=7.3 size= 1025kB time=00:00:04.01 bitrate=2094.5kbits/s dup=0 drop=46 spe
ed=0.361x
06-08 17:43:41.744 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 54 fps=4.
6 q=6.9 size= 1064kB time=00:00:04.01 bitrate=2173.0kbits/s dup=0 drop=49 spe
ed=0.345x
06-08 17:43:42.288 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 56 fps=4.
6 q=6.1 size= 1082kB time=00:00:04.01 bitrate=2209.5kbits/s dup=0 drop=51 spe
ed=0.329x
06-08 17:43:42.872 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 59 fps=4.
6 q=4.5 size= 1107kB time=00:00:04.01 bitrate=2260.3kbits/s dup=0 drop=54 spe
ed=0.314x
06-08 17:43:43.292 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 61 fps=4.
6 q=3.2 size= 1152kB time=00:00:04.26 bitrate=2212.2kbits/s dup=0 drop=56 spe
ed=0.321x
06-08 17:43:43.986 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 64 fps=4.
6 q=3.9 size= 1178kB time=00:00:05.01 bitrate=1924.7kbits/s dup=0 drop=59 spe
ed=0.361x
06-08 17:43:44.518 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 66 fps=4.
6 q=3.6 size= 1196kB time=00:00:05.01 bitrate=1953.9kbits/s dup=0 drop=61 spe
ed=0.347x
06-08 17:43:45.104 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 69 fps=4.
6 q=3.4 size= 1232kB time=00:00:05.01 bitrate=2013.0kbits/s dup=0 drop=64 spe
ed=0.334x
06-08 17:43:45.687 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 72 fps=4.
6 q=4.9 size= 1263kB time=00:00:05.01 bitrate=2063.4kbits/s dup=0 drop=67 spe
ed=0.321x
06-08 17:43:46.262 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 75 fps=4.
6 q=3.5 size= 1307kB time=00:00:05.01 bitrate=2135.1kbits/s dup=0 drop=70 spe
ed=0.31x
06-08 17:43:46.840 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 77 fps=4.
6 q=3.1 size= 1334kB time=00:00:06.01 bitrate=1816.5kbits/s dup=0 drop=72 spe
ed=0.359x
06-08 17:43:47.354 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 80 fps=4.
6 q=3.5 size= 1380kB time=00:00:06.01 bitrate=1878.6kbits/s dup=0 drop=75 spe
ed=0.349x
06-08 17:43:47.826 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 82 fps=4.
6 q=3.6 size= 1412kB time=00:00:06.01 bitrate=1923.2kbits/s dup=0 drop=77 spe
ed=0.339x
06-08 17:43:48.346 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 85 fps=4.
7 q=3.5 size= 1476kB time=00:00:06.01 bitrate=2009.8kbits/s dup=0 drop=80 spe
ed=0.33x
06-08 17:43:48.911 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 88 fps=4.
7 q=3.5 size= 1524kB time=00:00:06.01 bitrate=2074.7kbits/s dup=0 drop=83 spe
ed=0.32x
06-08 17:43:49.496 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 91 fps=4.
7 q=3.8 size= 1556kB time=00:00:06.06 bitrate=2101.5kbits/s dup=0 drop=86 spe
ed=0.313x
06-08 17:43:50.100 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 93 fps=4.
7 q=4.1 size= 1616kB time=00:00:07.01 bitrate=1886.0kbits/s dup=0 drop=88 spe
ed=0.352x
06-08 17:43:50.598 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 95 fps=4.
6 q=4.3 size= 1652kB time=00:00:07.01 bitrate=1928.4kbits/s dup=0 drop=90 spe
ed=0.342x
06-08 17:43:51.182 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 98 fps=4.
7 q=4.7 size= 1728kB time=00:00:07.01 bitrate=2017.1kbits/s dup=0 drop=93 spe
ed=0.333x
06-08 17:43:51.693 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 100 fps=4.
6 q=4.6 size= 1763kB time=00:00:07.01 bitrate=2057.5kbits/s dup=0 drop=95 spe
ed=0.325x
06-08 17:43:52.272 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 103 fps=4.
6 q=4.6 size= 1812kB time=00:00:07.01 bitrate=2115.1kbits/s dup=0 drop=98 spe
ed=0.317x
06-08 17:43:52.839 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 106 fps=4.
7 q=4.2 size= 1845kB time=00:00:07.06 bitrate=2138.7kbits/s dup=0 drop=101 sp
eed=0.311x
06-08 17:43:53.383 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 108 fps=4.
6 q=4.1 size= 1886kB time=00:00:08.02 bitrate=1925.7kbits/s dup=0 drop=103 sp
eed=0.344x
06-08 17:43:53.966 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 111 fps=4.
7 q=3.5 size= 1940kB time=00:00:08.02 bitrate=1981.0kbits/s dup=0 drop=106 sp
eed=0.336x
06-08 17:43:54.472 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 113 fps=4.
6 q=3.1 size= 1968kB time=00:00:08.02 bitrate=2010.1kbits/s dup=0 drop=108 sp
eed=0.329x
06-08 17:43:55.129 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 116 fps=4.
6 q=3.3 size= 2016kB time=00:00:08.02 bitrate=2058.5kbits/s dup=0 drop=111 sp
eed=0.321x
06-08 17:43:55.624 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 119 fps=4.
7 q=3.2 size= 2052kB time=00:00:08.02 bitrate=2096.0kbits/s dup=0 drop=114 sp
eed=0.314x
06-08 17:43:56.082 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 121 fps=4.
6 q=2.7 size= 2119kB time=00:00:08.06 bitrate=2152.0kbits/s dup=0 drop=116 sp
eed=0.309x
06-08 17:43:56.729 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 124 fps=4.
7 q=4.0 size= 2172kB time=00:00:09.02 bitrate=1971.5kbits/s dup=0 drop=119 sp
eed=0.339x
06-08 17:43:57.292 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 127 fps=4.
7 q=3.5 size= 2210kB time=00:00:09.02 bitrate=2006.0kbits/s dup=0 drop=122 sp
eed=0.332x
06-08 17:43:57.793 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 129 fps=4.
7 q=3.3 size= 2234kB time=00:00:09.02 bitrate=2028.1kbits/s dup=0 drop=124 sp
eed=0.326x
06-08 17:43:58.431 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 132 fps=4.
7 q=3.3 size= 2275kB time=00:00:09.02 bitrate=2065.6kbits/s dup=0 drop=127 sp
eed=0.319x
06-08 17:43:58.986 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 135 fps=4.
7 q=3.4 size= 2344kB time=00:00:09.02 bitrate=2127.5kbits/s dup=0 drop=130 sp
eed=0.313x
06-08 17:43:59.374 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 136 fps=4.
6 q=3.2 size= 2356kB time=00:00:09.10 bitrate=2119.0kbits/s dup=0 drop=131 sp
eed=0.31x
06-08 17:43:59.986 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 139 fps=4.
6 q=2.9 size= 2392kB time=00:00:10.02 bitrate=1954.2kbits/s dup=0 drop=133 sp
eed=0.335x
06-08 17:44:00.582 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 142 fps=4.
7 q=2.8 size= 2428kB time=00:00:10.02 bitrate=1983.5kbits/s dup=0 drop=136 sp
eed=0.329x
06-08 17:44:01.158 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 145 fps=4.
7 q=3.0 size= 2516kB time=00:00:10.02 bitrate=2055.4kbits/s dup=0 drop=139 sp
eed=0.323x
06-08 17:44:01.691 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 148 fps=4.
7 q=4.6 size= 2583kB time=00:00:10.02 bitrate=2110.7kbits/s dup=0 drop=142 sp
eed=0.317x
06-08 17:44:02.168 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 150 fps=4.
7 q=4.8 size= 2626kB time=00:00:10.02 bitrate=2145.1kbits/s dup=0 drop=144 sp
eed=0.312x
06-08 17:44:02.587 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 152 fps=4.
7 q=5.0 size= 2668kB time=00:00:10.32 bitrate=2117.0kbits/s dup=0 drop=146 sp
eed=0.317x
06-08 17:44:03.209 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 154 fps=4.
6 q=5.0 size= 2709kB time=00:00:11.02 bitrate=2012.4kbits/s dup=0 drop=148 sp
eed=0.333x
06-08 17:44:03.815 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 157 fps=4.
7 q=3.7 size= 2770kB time=00:00:11.02 bitrate=2057.2kbits/s dup=0 drop=151 sp
eed=0.327x
06-08 17:44:04.402 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 160 fps=4.
7 q=3.3 size= 2800kB time=00:00:11.02 bitrate=2079.7kbits/s dup=0 drop=154 sp
eed=0.321x
06-08 17:44:04.965 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 163 fps=4.
7 q=3.0 size= 2835kB time=00:00:11.02 bitrate=2105.7kbits/s dup=0 drop=157 sp
eed=0.316x
06-08 17:44:05.505 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 166 fps=4.
7 q=3.1 size= 2880kB time=00:00:11.06 bitrate=2131.8kbits/s dup=0 drop=160 sp
eed=0.313x
06-08 17:44:06.094 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 169 fps=4.
7 q=3.3 size= 2880kB time=00:00:11.26 bitrate=2093.9kbits/s dup=0 drop=163 sp
eed=0.313x
06-08 17:44:06.603 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 171 fps=4.
7 q=3.8 size= 2880kB time=00:00:11.40 bitrate=2069.5kbits/s dup=0 drop=165 sp
eed=0.312x
06-08 17:44:07.192 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 174 fps=4.
7 q=3.6 size= 2880kB time=00:00:11.60 bitrate=2033.8kbits/s dup=0 drop=168 sp
eed=0.313x
06-08 17:44:07.772 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 177 fps=4.
7 q=3.3 size= 2880kB time=00:00:11.80 bitrate=1999.3kbits/s dup=0 drop=171 sp
eed=0.313x
06-08 17:44:08.287 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 180 fps=4.
7 q=3.2 size= 2880kB time=00:00:12.00 bitrate=1966.0kbits/s dup=0 drop=174 sp
eed=0.314x
06-08 17:44:08.900 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 182 fps=4.
7 q=3.5 size= 3118kB time=00:00:12.13 bitrate=2105.2kbits/s dup=0 drop=176 sp
eed=0.313x
06-08 17:44:08.915 20835 20835 D ffmpeg : FFmpeg:onProgress: frame= 182 fps=4.
7 q=3.5 Lsize= 3205kB time=00:00:12.13 bitrate=2163.7kbits/s dup=0 drop=176 s
peed=0.312x
06-08 17:44:08.915 20835 20835 D ffmpeg : FFmpeg:onProgress: video:3177kB audio
:21kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.19565
3%
06-08 17:44:08.946 20835 20835 D ffmpeg : FFmpeg:onProgress: [aac @ 0xb5c44c00]
Qavg: 137.182
06-08 17:44:08.963 20835 20835 D ffmpeg : FFmpeg:onSuccess: ffmpeg version n3.0
.1 Copyright (c) 2000-2016 the FFmpeg developers
06-08 17:44:08.963 20835 20835 D ffmpeg : built with gcc 4.8 (GCC)
06-08 17:44:08.963 20835 20835 D ffmpeg : configuration: --target-os=linux --
cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-l
inux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroo
t=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic
--enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --ena
ble-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-f
fserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-f
fprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static
--pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix
=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/ho
me/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags
='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -
Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
06-08 17:44:08.963 20835 20835 D ffmpeg : libavutil 55. 17.103 / 55. 17.
103
06-08 17:44:08.963 20835 20835 D ffmpeg : libavcodec 57. 24.102 / 57. 24.
102
06-08 17:44:08.963 20835 20835 D ffmpeg : libavformat 57. 25.100 / 57. 25.
100
06-08 17:44:08.963 20835 20835 D ffmpeg : libavdevice 57. 0.101 / 57. 0.
101
06-08 17:44:08.963 20835 20835 D ffmpeg : libavfilter 6. 31.100 / 6. 31.
100
06-08 17:44:08.963 20835 20835 D ffmpeg : libswscale 4. 0.100 / 4. 0.
100
06-08 17:44:08.963 20835 20835 D ffmpeg : libswresample 2. 0.101 / 2. 0.
101
06-08 17:44:08.963 20835 20835 D ffmpeg : libpostproc 54. 0.100 / 54. 0.
100
06-08 17:44:08.963 20835 20835 D ffmpeg : Input #0, mov,mp4,m4a,3gp,3g2,mj2, fr
om '/storage/emulated/0/Pictures/test2.mp4':
06-08 17:44:08.963 20835 20835 D ffmpeg : Metadata:
06-08 17:44:08.963 20835 20835 D ffmpeg : major_brand : mp42
06-08 17:44:08.963 20835 20835 D ffmpeg : minor_version : 0
06-08 17:44:08.963 20835 20835 D ffmpeg : compatible_brands: isommp42
06-08 17:44:08.963 20835 20835 D ffmpeg : creation_time : 2016-06-02 09:2
0:58
06-08 17:44:08.963 20835 20835 D ffmpeg : com.android.version: 6.0.1
06-08 17:44:08.963 20835 20835 D ffmpeg : Duration: 00:00:12.03, start: 0.000
000, bitrate: 17234 kb/s
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream #0:0(eng): Video: h264 (Ba
seline) (avc1 / 0x31637661), yuv420p, 1920x1080, 16902 kb/s, SAR 1:1 DAR 16:9, 2
9.81 fps, 29.85 tbr, 90k tbn, 180k tbc (default)
06-08 17:44:08.963 20835 20835 D ffmpeg : Metadata:
06-08 17:44:08.963 20835 20835 D ffmpeg : rotate : 90
06-08 17:44:08.963 20835 20835 D ffmpeg : creation_time : 2016-06-02 09
:20:58
06-08 17:44:08.963 20835 20835 D ffmpeg : handler_name : VideoHandle
06-08 17:44:08.963 20835 20835 D ffmpeg : Side data:
06-08 17:44:08.963 20835 20835 D ffmpeg : displaymatrix: rotation of -90.
00 degrees
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream #0:1(eng): Audio: aac (LC)
(mp4a / 0x6134706D), 48000 Hz, mono, fltp, 96 kb/s (default)
06-08 17:44:08.963 20835 20835 D ffmpeg : Metadata:
06-08 17:44:08.963 20835 20835 D ffmpeg : creation_time : 2016-06-02 09
:20:58
06-08 17:44:08.963 20835 20835 D ffmpeg : handler_name : SoundHandle
06-08 17:44:08.963 20835 20835 D ffmpeg : Please use -b:a or -b:v, -b is ambigu
ous
06-08 17:44:08.963 20835 20835 D ffmpeg : Codec AVOption preset (Set the encodi
ng preset (cf. x264 --fullhelp)) specified for output file #0 (/storage/emulated
/0/Pictures/scaled_video.mp4) has not been used for any stream. The most likely
reason is either wrong type (e.g. a video option with no video streams) or that
it is a private option of some encoder which was not actually used for any strea
m.
06-08 17:44:08.963 20835 20835 D ffmpeg : [mpeg4 @ 0xb5c44400] Invalid pixel as
pect ratio 5121/5120, limit is 255/255 reducing
06-08 17:44:08.963 20835 20835 D ffmpeg : Output #0, mp4, to '/storage/emulated
/0/Pictures/scaled_video.mp4':
06-08 17:44:08.963 20835 20835 D ffmpeg : Metadata:
06-08 17:44:08.963 20835 20835 D ffmpeg : major_brand : mp42
06-08 17:44:08.963 20835 20835 D ffmpeg : minor_version : 0
06-08 17:44:08.963 20835 20835 D ffmpeg : compatible_brands: isommp42
06-08 17:44:08.963 20835 20835 D ffmpeg : com.android.version: 6.0.1
06-08 17:44:08.963 20835 20835 D ffmpeg : encoder : Lavf57.25.100
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream #0:0(eng): Video: mpeg4 (
[0][0][0] / 0x0020), yuv420p, 640x1138 [SAR 1:1 DAR 320:569], q=2-31, 2097 kb/s,
SAR 5121:5120 DAR 9:16, 15 fps, 15360 tbn, 15 tbc (default)
06-08 17:44:08.963 20835 20835 D ffmpeg : Metadata:
06-08 17:44:08.963 20835 20835 D ffmpeg : handler_name : VideoHandle
06-08 17:44:08.963 20835 20835 D ffmpeg : creation_time : 2016-06-02 09
:20:58
06-08 17:44:08.963 20835 20835 D ffmpeg : encoder : Lavc57.24.102
mpeg4
06-08 17:44:08.963 20835 20835 D ffmpeg : Side data:
06-08 17:44:08.963 20835 20835 D ffmpeg : unknown side data type 10 (24 b
ytes)
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream #0:1(eng): Audio: aac (LC)
([64][0][0][0] / 0x0040), 48000 Hz, mono, fltp, 12 kb/s (default)
06-08 17:44:08.963 20835 20835 D ffmpeg : Metadata:
06-08 17:44:08.963 20835 20835 D ffmpeg : creation_time : 2016-06-02 09
:20:58
06-08 17:44:08.963 20835 20835 D ffmpeg : handler_name : SoundHandle
06-08 17:44:08.963 20835 20835 D ffmpeg : encoder : Lavc57.24.102
aac
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream mapping:
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream #0:0 -> #0:0 (h264 (native)
-> mpeg4 (native))
06-08 17:44:08.963 20835 20835 D ffmpeg : Stream #0:1 -> #0:1 (aac (native) -
> aac (native))
06-08 17:44:08.963 20835 20835 D ffmpeg : Press [q] to stop, [?] for help
06-08 17:44:08.963 20835 20835 D ffmpeg : frame= 2 fps=0.0 q=2.0 size= 1
29kB time=00:00:01.00 bitrate=1056.4kbits/s speed=1.66x
06-08 17:44:08.963 20835 20835 D ffmpeg : frame= 5 fps=4.0 q=2.0 size= 3
14kB time=00:00:01.00 bitrate=2566.0kbits/s dup=0 drop=1 speed=0.809x
06-08 17:44:08.963 20835 20835 D ffmpeg : frame= 8
06-08 17:44:08.963 20835 20835 D ffmpeg : FFmpeg:onFinish: