[FFmpeg-user] What is wrong with this .mov to mp4 conevrsion?

Dani A danix4u at yahoo.com
Mon Jul 13 04:19:40 CEST 2015


Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

below is the full output for command

ffmpeg -i countdown.mov -vf "scale=640x360,setdar=16:9" -c:v libx264 -profile:v main -crf 23 -preset veryfast -movflags faststart countdown.mp4 




ffmpeg started on 2015-07-12 at 18:45:18
Report written to "ffmpeg-20150712-184518.log"
Command line:
ffmpeg -i countdown.mov -vf "scale=640x360,setdar=16:9" -c:v libx264 -profile:v main -crf 23 -preset veryfast -movflags faststart countdown.mp4 
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'countdown.mov'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=640x360,setdar=16:9'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-profile:v' ... matched as option 'profile' (set profile) with argument 'main'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '23'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'faststart'.
Reading option 'countdown.mov' ... matched as output file.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option hide_banner (do not show program banner) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file countdown.mov.
Successfully parsed a group of options.
Opening an input file: countdown.mov.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2d742a0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2d742a0] ISO: File Type Major Brand: qt  
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2d742a0] Before avformat_find_stream_info() pos: 49189994 bytes read:65582 seeks:2
[mjpeg @ 0x2d74c00] marker=d8 avail_size_in_buf=173227
[mjpeg @ 0x2d74c00] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x2d74c00] marker=e0 avail_size_in_buf=173225
[mjpeg @ 0x2d74c00] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x2d74c00] marker=fe avail_size_in_buf=173207
[mjpeg @ 0x2d74c00] marker parser used 12 bytes (96 bits)
[mjpeg @ 0x2d74c00] marker=db avail_size_in_buf=173193
[mjpeg @ 0x2d74c00] index=0
[mjpeg @ 0x2d74c00] qscale[0]: 1
[mjpeg @ 0x2d74c00] index=1
[mjpeg @ 0x2d74c00] qscale[1]: 1
[mjpeg @ 0x2d74c00] marker parser used 132 bytes (1056 bits)
[mjpeg @ 0x2d74c00] marker=c4 avail_size_in_buf=173059
[mjpeg @ 0x2d74c00] class=0 index=0 nb_codes=12
[mjpeg @ 0x2d74c00] class=0 index=1 nb_codes=12
[mjpeg @ 0x2d74c00] class=1 index=0 nb_codes=251
[mjpeg @ 0x2d74c00] class=1 index=1 nb_codes=251
[mjpeg @ 0x2d74c00] marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x2d74c00] marker=c0 avail_size_in_buf=172639
[mjpeg @ 0x2d74c00] sof0: picture: 1920x1080
[mjpeg @ 0x2d74c00] component 0 2:1 id: 0 quant:0
[mjpeg @ 0x2d74c00] component 1 1:1 id: 1 quant:1
[mjpeg @ 0x2d74c00] component 2 1:1 id: 2 quant:1
[mjpeg @ 0x2d74c00] pix fmt id 21111100
[mjpeg @ 0x2d74c00] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x2d74c00] escaping removed 1127 bytes
[mjpeg @ 0x2d74c00] marker=da avail_size_in_buf=172620
[mjpeg @ 0x2d74c00] component: 0
[mjpeg @ 0x2d74c00] component: 1
[mjpeg @ 0x2d74c00] component: 2
[mjpeg @ 0x2d74c00] marker parser used 171492 bytes (1371929 bits)
[mjpeg @ 0x2d74c00] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x2d74c00] decode frame unused 0 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2d742a0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2d742a0] After avformat_find_stream_info() pos: 173277 bytes read:238811 seeks:3 frames:1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'countdown.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2012-06-20 13:16:52
  Duration: 00:00:11.00, start: 0.000000, bitrate: 35774 kb/s
    Stream #0:0(eng), 1, 1/25: Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 72:72 DAR 16:9], 35733 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2012-06-20 13:16:52
      handler_name    : Apple Alias Data Handler
      encoder         : Photo - JPEG
Successfully opened the file.
Parsing a group of options: output file countdown.mp4.
Applying option vf (set video filters) with argument scale=640x360,setdar=16:9.
Applying option c:v (codec name) with argument libx264.
Applying option profile:v (set profile) with argument main.
Successfully parsed a group of options.
Opening an output file: countdown.mp4.
Successfully opened the file.
detected 8 logical cores
[Parsed_scale_0 @ 0x2d7c540] Setting 'w' to value '640x360'
[Parsed_scale_0 @ 0x2d7c540] Setting 'flags' to value '0x4'
[Parsed_scale_0 @ 0x2d7c540] w:640 h:360 flags:'0x4' interl:0
[Parsed_setdar_1 @ 0x2d7b920] Setting 'dar' to value '16'
[Parsed_setdar_1 @ 0x2d7b920] Setting 'dar_den' to value '9'
[Parsed_setdar_1 @ 0x2d7b920] num:den syntax is deprecated, please use num/den or named options instead
[graph 0 input from stream 0:0 @ 0x2d6a040] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x2d6a040] Setting 'pix_fmt' to value '13'
[graph 0 input from stream 0:0 @ 0x2d6a040] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 0x2d6a040] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x2d6a040] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x2d6a040] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x2d6a040] w:1920 h:1080 pixfmt:yuvj422p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 0x2d5f860] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16]
[format @ 0x2d5f860] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16'
[AVFilterGraph @ 0x2d5f520] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[swscaler @ 0x2d6a500] deprecated pixel format used, make sure you did set range correctly
[Parsed_scale_0 @ 0x2d7c540] w:1920 h:1080 fmt:yuvj422p sar:1/1 -> w:640 h:360 fmt:yuvj422p sar:1/1 flags:0x4
[Parsed_setdar_1 @ 0x2d7b920] w:640 h:360 dar:16/9 sar:1/1 -> dar:16/9 sar:1/1
No pixel format specified, yuvj422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x2d792a0] Error setting profile main.
[libx264 @ 0x2d792a0] Possible profiles: baseline main high high10 high422 high444
Output #0, mp4, to 'countdown.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    Stream #0:0(eng), 0, 0/0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps (default)
    Metadata:
      creation_time   : 2012-06-20 13:16:52
      handler_name    : Apple Alias Data Handler
      encoder         : Lavc56.26.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[AVIOContext @ 0x2d84bc0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x2d73aa0] Statistics: 238811 bytes read, 3 seeks


More information about the ffmpeg-user mailing list