FFMPEG h264_videotoolbox output is strange - ffmpeg

I want to use h264_videotoolbox codec to encode my video in FFMPEG lib.I input image format is AV_PIX_FMT_YUV420P, but output video frame like follow.
I tried libx264 and all work correctly.
Do you guys know what happen?Why encoded frame like that?
My test code:
https://github.com/BeiKeJieDeLiuLangMao/videotoolbox
Resolution
Data should align to 32.

Related

ffmpeg glitch while converting DNG sequence into mp4 video

I have two problems with FFmpeg, when I use it to join DNG files sequence into mp4 video file. I also need to downgrade the resolution of the video from 6016x3200 to 2030x1080.
First of all I got almost black screen in the resulting video. Had to play with gamma and brightness options. But it was not enough!
New problems:
something strange happens with aspect ratio in resulting video file: in the first frame aspect is normal, just like in the original picture, but all the rest frames are getting squeezed. can't figure out why this happen!? (see picture attached).
colors are desaturated. despite the fact that I set "saturation" option to the maximum value. and also, the first frame of the video is different from the rest (while DNG files are all similar, first is no exception)
I tried prores codec as well, with the same result.
command I use is simple:
ffmpeg.exe -start_number 1 -i "K:\video\copter_R%5d.dng" -c:v libx264 -vf "fps=25,format=yuv420p, eq=gamma=3.2:brightness=0.2:contrast=1.6:saturation=3, scale=w=2030:h=1080" e:\output.mp4
I tried to use different variants of scale parameter: "scale=-1:1080" as well.
Illustration:
UPDATE: ffmpeg log report for operation:
https://drive.google.com/file/d/1H6bdpU0Eo4WfR3h-SRtgf7WBNYVFRwz2/view?usp=sharing

Having issues finding the options to lower Quality with Animation Codec

I'm trying to find if its possible to specify quality when converting to animation codec.
I've used this bit of code and don't see anything about quality.
ffmpeg -h encoder=qtrle
I know this is my generic command to get to animation codec
ffmpeg -i input.mp4 -codec copy -c:v qtrle output.mov
Any advice?
The Animation encoder has no quality or bitrate options. It is a lossless encoder which implements Run Length Encoding and a fixed procedure for compression with no variables for ratecontrol.

How to create video using QTRLE codec in ffmpeg?

I want to generate video using QTRLE codec and with ARGB pixel format using ffmpeg lib.
I am able to create video using H264 with YUV420P pixel format, but unable to do same with QTRLE.So how can i do this?
I suppose that your first video, the one you create using H264 with YUV240p pixel format is a mp4, and I suppose that you want to also generate a MP4 video with the QTRLE codec and ARGB pixel format.
The problem is QTRLE codec is not compatible with the mp4 container, so you cannot have an mp4 file encoded in qtrle. The container I know compatible with it is MOV. I tried it and there is no problem.

FFmpeg Video First Frame Time Code value

I would like to ask someone how knows FFmpeg good
As you can see I already know how to set timecodes that contain in green borders,
but I don't know is there any opportunity set the Video timecode.
Thank you for you help
Only possible with ffmpeg if you are ready to re-encode the video stream as MPEG-2 e.g.
ffmpeg -i input -c:v mpeg2video -gop_timecode "03:04:05:06" output

Is it possible to have two images in a single frame in motion jpeg?

I have a quick time video file, video stream is in motion jpeg format, I extract every frame in the file with
ffmpeg -i a.mov -vcodec copy -f image2 %d.jpg
I found that in every jpeg file, there are actually two FFD8 marker, which means there are actually two images in one single jpeg file.
Is this correct? Is the file interlaced? Anything special need to pass to codec?
Yes, motion Jpeg supports interlaced format. If the jpeg file is half of the full video size, will mean that the mov is interlaced, and you cannot use -vcodec copy to extract the frames. Try ffmpeg -deinterlace or use yadif filter.

Resources