[FFmpeg-user] nvenc h264 encoding
Sven C. Dack
sven.c.dack at sky.com
Fri Oct 14 14:14:48 EEST 2016
On 14/10/16 11:53, tyt xtreme wrote:
> Thanks for the help and explanation! I can tell the encoding runs now,
> tried with the following command:
> $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast
> perspective_out.mp4
>
> but the output image/video coloring really weird. from a normal coloring
> it's going to be weird mixture of green,red "ghosty" image.
> The input file details are:
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4':
> Metadata:
> major_brand : isom
> minor_version : 512
> compatible_brands: isomiso2avc1mp41
> encoder : Lavf57.50.100
> Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s
> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 /
> 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s,
> 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default)
> Metadata:
> handler_name : VideoHandler
>
> The output file details are:
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
> Metadata:
> major_brand : isom
> minor_version : 512
> compatible_brands: isomiso2avc1mp41
> encoder : Lavf57.51.103
> Duration: 00:07:27.92, start: 0.000000, bitrate: 5301 kb/s
> Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
> 3840x2160 [SAR 1:1 DAR 16:9], 5300 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
> 59.94 tbc (default)
> Metadata:
> handler_name : VideoHandler
>
> Any idea?
>
Something is not right here. In your example command line do you call the output
file "prespective_out.mp4" but in the details below is it called "output.mp4".
The original file also shows to have a frame rate of 24.94 fps, but "output.mp4"
is reported to have 29.97 fps, and you didn't perform and frame rate conversion
on the command line.
Can you double check this, please?
More information about the ffmpeg-user
mailing list