Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#1409 closed defect (invalid)

FFMPEG using preset ipod320 and libx264 , insufficient paramter

Reported by: baoky Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords: libx264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

C:\ffmpeg\bin>ffmpeg -i "C:\Users\Administrator\Downloads\upFFTRY\makyou1.mkv" -vcodec libx264 -preset ipod320 -acodec copy "C:\Users\Administrator\Downloads\upFFTRY\output.mp4" -vf "ass=C:\Users\Administrator\Downloads\upFFTRY\makyou1.ass"

ffmpeg version N-41195-g8a0efa9 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 31 2012 20:08:24 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e
nable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'C:\Users\Administrator\Downloads\upFFTRY\makyou1.
mkv':
  Metadata:
    creation_time   : 2012-06-03 03:18:13
  Duration: 00:24:00.00, start: 0.000000, bitrate: 2334 kb/s
    Chapter #0.0: start 0.000000, end 70.920000
    Metadata:
      title           : Intro
    Chapter #0.1: start 70.920000, end 684.860000
    Metadata:
      title           : Part A
    Chapter #0.2: start 684.860000, end 1314.820000
    Metadata:
      title           : Part B
    Chapter #0.3: start 1314.820000, end 1404.830000
    Metadata:
      title           : OP
    Chapter #0.4: start 1404.830000, end 1440.000000
    Metadata:
      title           : Preview
    Stream #0:0(jpn): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 2
3.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(jpn): Audio: aac, 96000 Hz, stereo, s16 (default)
    Stream #0:2: Subtitle: ssa (default)
    Stream #0:3: Attachment: ttf
    Metadata:
      filename        : TT1139M.TTF
      mimetype        : application/x-truetype-font
    Stream #0:4: Attachment: ttf
    Metadata:
      filename        : y2k.ttf
      mimetype        : application/x-truetype-font
    Stream #0:5: Attachment: ttf
    Metadata:
      filename        : ALIEN5.TTF
      mimetype        : application/x-truetype-font
    Stream #0:6: Attachment: ttf
    Metadata:
      filename        : arial.ttf
      mimetype        : application/x-truetype-font
    Stream #0:7: Attachment: ttf
    Metadata:
      filename        : ArtificeSSK.ttf
      mimetype        : application/x-truetype-font
    Stream #0:8: Attachment: ttf
    Metadata:
      filename        : cronos13b.ttf
      mimetype        : application/x-truetype-font
    Stream #0:9: Attachment: ttf
    Metadata:
      filename        : fading-wornarmychalk-regular.ttf
      mimetype        : application/x-truetype-font
    Stream #0:10: Attachment: ttf
    Metadata:
      filename        : icedeart.ttf
      mimetype        : application/x-truetype-font
    Stream #0:11: Attachment: ttf
    Metadata:
      filename        : LEVIBRUSH.TTF
      mimetype        : application/x-truetype-font
    Stream #0:12: Attachment: ttf
    Metadata:
      filename        : linkin.ttf
      mimetype        : application/x-truetype-font
    Stream #0:13: Attachment: ttf
    Metadata:
      filename        : MECHAG.TTF
      mimetype        : application/x-truetype-font
[buffer @ 0000000003f74560] w:1280 h:720 pixfmt:yuv420p tb:1/1000 sar:1/1 sws_pa
ram:flags=2
[buffersink @ 0000000003f74460] No opaque field provided
x264 [error]: invalid preset 'ipod320'
[libx264 @ 0000000003fd53e0] Error setting preset/tune ipod320/(null).
Output #0, mp4, to 'C:\Users\Administrator\Downloads\upFFTRY\output.mp4':
  Metadata:
    creation_time   : 2012-06-03 03:18:13
    Chapter #0.0: start 0.000000, end 70.920000
    Metadata:
      title           : Intro
    Chapter #0.1: start 70.920000, end 684.860000
    Metadata:
      title           : Part A
    Chapter #0.2: start 684.860000, end 1314.820000
    Metadata:
      title           : Part B
    Chapter #0.3: start 1314.820000, end 1404.830000
    Metadata:
      title           : OP
    Chapter #0.4: start 1404.830000, end 1440.000000
    Metadata:
      title           : Preview
    Stream #0:0(jpn): Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1
, 90k tbn, 23.98 tbc (default)
    Stream #0:1(jpn): Audio: aac, 96000 Hz, stereo (default)
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (copy)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters
such as bit_rate, rate, width or height

I just want to convert my mkv video to mp4 video with using preset ipod320 and vcodec libx264, what did i miss out and how should my command be? Thanks!

Change History (4)

comment:1 follow-up: Changed 5 years ago by cehoyos

  • Description modified (diff)
  • Keywords libx264 added
  • Priority changed from critical to normal

comment:2 in reply to: ↑ 1 ; follow-up: Changed 5 years ago by baoky

Replying to cehoyos:

What should i do

comment:3 Changed 4 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

From a quick look, the following presets exist:
ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo

comment:4 in reply to: ↑ 2 Changed 4 years ago by llogan

Replying to baoky:

What should i do

The libx264-ipod preset should still be available as an non-standard libx264 preset. Replace "-preset ipod320" with "-vpre libx264-ipod320". Windows users may have to use "-fpre" instead however, with a full path to the preset file which is called "libx264-ipod320.ffpreset".

Alternatively you could probably just use:
ffmpeg -i input -vcodec libx264 -preset medium -crf 23 -vprofile baseline -level 13 output

Note: See TracTickets for help on using tickets.