[FFmpeg-user] size and bitrate issues with nvidia accelerated transcoding

Sreenath BH bhsreenath at gmail.com
Mon Mar 7 10:44:08 CET 2016


Sorry.
Here is the unedited output from ffprobe.

----------
Original file (source file)
root at ip-172-21-13-223:/tmp# ffprobe large.mp4
ffprobe version 3.0.git Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/opt/mediaserver/build/ffmpeg_build
--extra-cflags=-I/opt/mediaserver/build/ffmpeg_build/include
--extra-ldflags=-L/opt/mediaserver/build/ffmpeg_build/lib
--bindir=/usrdata/mediaserver/bin --extra-libs=-ldl --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libx264 --enable-libvorbis --enable-libvpx --enable-nvenc
--extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils
--enable-nonfree
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 32.100 /  6. 32.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'large.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42mp41
    creation_time   : 2013-11-15 18:04:27
  Duration: 01:49:12.30, start: 0.000000, bitrate: 391 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
768x432 [SAR 1:1 DAR 16:9], 292 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
(default)
    Metadata:
      creation_time   : 2013-11-15 18:04:27
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2013-11-15 18:04:27
      handler_name    : Apple Sound Media Handler

------------

ffprobe output for libx264 encoded file:

root at ip-172-21-13-223:/tmp/legacy/1# ffprobe large.transcoded.mp4
ffprobe version 3.0.git Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/opt/mediaserver/build/ffmpeg_build
--extra-cflags=-I/opt/mediaserver/build/ffmpeg_build/include
--extra-ldflags=-L/opt/mediaserver/build/ffmpeg_build/lib
--bindir=/usrdata/mediaserver/bin --extra-libs=-ldl --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libx264 --enable-libvorbis --enable-libvpx --enable-nvenc
--extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils
--enable-nonfree
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 32.100 /  6. 32.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'large.transcoded.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.25.100
  Duration: 01:49:12.30, start: 0.023220, bitrate: 383 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
768x432 [SAR 1:1 DAR 16:9], 245 kb/s, 30 fps, 30 tbr, 15360 tbn, 60
tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
-----------------
ffprobe output from nvenc codec produced file:

root at ip-172-21-13-223:/tmp/nvidia/1# ffprobe large.transcoded.mp4
ffprobe version 3.0.git Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/opt/mediaserver/build/ffmpeg_build
--extra-cflags=-I/opt/mediaserver/build/ffmpeg_build/include
--extra-ldflags=-L/opt/mediaserver/build/ffmpeg_build/lib
--bindir=/usrdata/mediaserver/bin --extra-libs=-ldl --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libx264 --enable-libvorbis --enable-libvpx --enable-nvenc
--extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils
--enable-nonfree
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 32.100 /  6. 32.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'large.transcoded.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.25.100
  Duration: 01:49:12.30, start: 0.023220, bitrate: 789 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661),
yuv420p(tv), 768x432 [SAR 1:1 DAR 16:9], 654 kb/s, 30 fps, 30 tbr,
15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
-------------------

thanks,
Sreenath


On 3/7/16, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Sreenath BH <bhsreenath <at> gmail.com> writes:
>
>> ffmpeg -i large.mp4 -loglevel quiet -c:a aac -c:v nvenc
>> -pix_fmt yuv420p -movflags +faststart out.mp4
>
> Always provide the complete, uncut console output when
> asking for support here.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list