[FFmpeg-user] Error: timebase not supported by MPEG 4 standard. Not sure why

Simon Daniels simondaniels23 at gmail.com
Tue Apr 9 07:05:20 CEST 2013


I've updated to ffmpeg 1.2 and get different results. The video trims, but
the entire thing is "frozen" and there's no audio. The file is also super
small, probably because it's basically 15 seconds of a single frame.

Users-MacBook-Pro:ffmpeg-1.2 user$ ./ffmpeg -ss 52 -y -i
"/Users/user/Documents/GOPR9605.MP4" -t 15 -acodec copy -copyts -copytb 1
-vf "movie=watermark-1280x720.png [watermark]; [in] [watermark]overlay=0:0
[out]" -r 59.94006065616729 -b:v 15215367 "/Users/user/Movies/GOPR9605
highlight.MP4"

ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  8 2013 21:40:26 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --enable-static --disable-shared --enable-gpl
--enable-nonfree --enable-libx264 --disable-outdev=sdl
--enable-runtime-cpudetect --disable-bzlib --disable-libfreetype
--disable-libopenjpeg --enable-zlib --arch=x86_64
--sysroot=/Developer/SDKs/MacOSX10.7.sdk --extra-cflags='-isysroot
/Developer/SDKs/MacOSX10.7.sdk'
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/user/Documents/GOPR9605.MP4':
  Metadata:
    major_brand     : avc1
    minor_version   : 0
    compatible_brands: avc1isom
    creation_time   : 2013-03-08 02:34:46
  Duration: 00:07:45.01, start: 0.000000, bitrate: 15216 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 15073 kb/s, 59.94 fps, 59.94 tbr, 90k tbn,
119.88 tbc
    Metadata:
      creation_time   : 2013-03-08 02:34:46
      handler_name    : GoPro AVC
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 128 kb/s
    Metadata:
      creation_time   : 2013-03-08 02:34:46
      handler_name    : GoPro AAC
[libx264 @ 0x7fdcd9017600] using SAR=1/1
[libx264 @ 0x7fdcd9017600] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x7fdcd9017600] profile High, level 4.1
[libx264 @ 0x7fdcd9017600] 264 - core 125 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=15215 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/Users/user/Movies/GOPR9605 highlight.MP4':
  Metadata:
    major_brand     : avc1
    minor_version   : 0
    compatible_brands: avc1isom
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 15215 kb/s, 929011.00 tbn, 59.94 tbc
    Metadata:
      creation_time   : 2013-03-08 02:34:46
      handler_name    : GoPro AVC
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, 128 kb/s
    Metadata:
      creation_time   : 2013-03-08 02:34:46
      handler_name    : GoPro AAC
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  900 fps= 30 q=-2.0 Lsize=    2210kB time=00:00:14.98
bitrate=1208.2kbits/s dup=3060 drop=0
video:2198kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.515732%
[libx264 @ 0x7fdcd9017600] frame I:4     Avg QP: 2.10  size:469148
[libx264 @ 0x7fdcd9017600] frame P:227   Avg QP: 0.33  size:  1467
[libx264 @ 0x7fdcd9017600] frame B:669   Avg QP: 1.17  size:    61
[libx264 @ 0x7fdcd9017600] consecutive B-frames:  0.9%  0.0%  0.0% 99.1%
[libx264 @ 0x7fdcd9017600] mb I  I16..4: 27.2% 16.1% 56.6%
[libx264 @ 0x7fdcd9017600] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  2.5%
 0.0%  0.0%  0.0%  0.0%    skip:97.5%
[libx264 @ 0x7fdcd9017600] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.6%
 0.0%  0.0%  direct: 0.0%  skip:99.4%  L0:29.6% L1:70.3% BI: 0.0%
[libx264 @ 0x7fdcd9017600] final ratefactor: -20.24
[libx264 @ 0x7fdcd9017600] 8x8 transform intra:16.1% inter:40.9%
[libx264 @ 0x7fdcd9017600] coded y,uvDC,uvAC intra: 99.9% 87.5% 79.4%
inter: 0.4% 0.2% 0.2%
[libx264 @ 0x7fdcd9017600] i16 v,h,dc,p:  4%  7% 65% 24%
[libx264 @ 0x7fdcd9017600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 17% 29%  7%
 8%  5%  9%  6% 12%
[libx264 @ 0x7fdcd9017600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 22%  8%
 9%  7% 10%  7% 11%
[libx264 @ 0x7fdcd9017600] i8c dc,h,v,p: 53% 21% 22%  3%
[libx264 @ 0x7fdcd9017600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fdcd9017600] ref P L0: 99.2%  0.0%  0.7%  0.1%
[libx264 @ 0x7fdcd9017600] ref B L0: 48.8% 51.1%  0.0%
[libx264 @ 0x7fdcd9017600] ref B L1: 87.6% 12.4%
[libx264 @ 0x7fdcd9017600] kb/s:1198.93


That help?


On Mon, Apr 8, 2013 at 9:09 PM, Simon Daniels <simondaniels23 at gmail.com>wrote:

> Hey guys,
>
> All of the sudden many of my users are getting a "timebase not supported"
> error when using ffmpeg to trim a video. My app hasn't changed in months
> and it definitely seems like this is a more recent error.
>
> This is with ffmpeg 0.11.1. The weird thing is that I've had other videos
> from the same camera trim just fine with the similar ffmpeg arguments.
>
> Any ideas?
>
>
> running file://localhost/Applications/MyApp.app/Contents/Resources/ffmpeg
> with arguments (
>     "-ss",
>     "52.402666",
>     "-t",
>     "15.000000",
>     "-y",
>     "-i",
>     "/Users/user/Documents/GOPR9605.MP4",
>     "-acodec",
>     copy,
>     "-copyts",
>     "-copytb",
>     1,
>     "-vf",
>     "movie=watermark-1280x720.png [watermark]; [in][watermark]overlay=0:0
> [out]",
>     "-r",
>     "59.94006065616729",
>     "-b:v",
>     15215367,
>     "/Users/user/Movies/GOPR9605 highlight.MP4"
> )
> I 04/08/13 21:02:27 SaveWorker parseFfmpegOutput: | Ffmpeg results:
> ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
>   built on Aug  5 2012 09:38:45 with llvm_gcc 4.2.1 (Based on Apple Inc.
> build 5658) (LLVM build 2336.1.00)
>   configuration: --enable-static --disable-shared --disable-outdev=sdl
> --enable-runtime-cpudetect --disable-bzlib --disable-libfreetype
> --disable-libopenjpeg --enable-zlib --arch=x86_64
> --sysroot=/Developer/SDKs/MacOSX10.7.sdk --extra-cflags='-isysroot
> /Developer/SDKs/MacOSX10.7.sdk'
>   libavutil      51. 54.100 / 51. 54.100
>   libavcodec     54. 23.100 / 54. 23.100
>   libavformat    54.  6.100 / 54.  6.100
>   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
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/Users/user/Documents/GOPR9605.MP4':
>   Metadata:
>     major_brand     : avc1
>     minor_version   : 0
>     compatible_brands: avc1isom
>     creation_time   : 2013-03-08 02:34:46
>   Duration: 00:07:45.01, start: 0.000000, bitrate: 15216 kb/s
>     Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
> 1280x720 [SAR 1:1 DAR 16:9], 15073 kb/s, 59.94 fps, 59.94 tbr, 90k tbn,
> 119.88 tbc
>     Metadata:
>       creation_time   : 2013-03-08 02:34:46
>       handler_name    : GoPro AVC
>     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
> s16, 128 kb/s
>     Metadata:
>       creation_time   : 2013-03-08 02:34:46
>       handler_name    : GoPro AAC
> [buffer @ 0x10fb16e20] w:1280 h:720 pixfmt:yuv420p tb:1/90000 sar:1/1
> sws_param:flags=2
> [buffersink @ 0x10fb17100] No opaque field provided
> [movie @ 0x10fb17740] seek_point:0 format_name:(null)
> file_name:watermark-1280x720.png stream_index:0
> [overlay @ 0x10fb17dc0] auto-inserting filter 'auto-inserted scaler 0'
> between the filter 'Parsed_movie_0' and the filter 'Parsed_overlay_1'
> [scale @ 0x10fb18560] w:1264 h:704 fmt:rgba sar:1/1 -> w:1264 h:704
> fmt:yuva420p sar:1/1 flags:0x4
> [overlay @ 0x10fb17dc0] main w:1280 h:720 fmt:yuv420p overlay x:0 y:0
> w:1264 h:704 fmt:yuva420p
> [overlay @ 0x10fb17dc0] main_tb:1/90000 overlay_tb:1/25 -> tb:1/90000
> exact:1
> [mpeg4 @ 0x7fe2ab82fc00] timebase 15499/929011 not supported by MPEG 4
> standard, the maximum admitted value for the timebase denominator is 65535
> Output #0, mp4, to '/Users/user/Movies/GOPR9605 highlight.MP4':
>   Metadata:
>     major_brand     : avc1
>     minor_version   : 0
>     compatible_brands: avc1isom
>     creation_time   : 2013-03-08 02:34:46
>     Stream #0:0(eng): Video: mpeg4, yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
> q=2-31, 15215 kb/s, 90k tbn, 59.94 tbc
>     Metadata:
>       creation_time   : 2013-03-08 02:34:46
>       handler_name    : GoPro AVC
>     Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, 128 kb/s
>     Metadata:
>       creation_time   : 2013-03-08 02:34:46
>       handler_name    : GoPro AAC
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 -> mpeg4)
>   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
>
>
>
> here is the MediaInfo output for this file:
> General
> Count                                    : 280
> Count of stream of this kind             : 1
> Kind of stream                           : General
> Kind of stream                           : General
> Stream identifier                        : 0
> Count of video streams                   : 1
> Count of audio streams                   : 1
> Video_Format_List                        : AVC
> Video_Format_WithHint_List               : AVC
> Codecs Video                             : AVC
> Video_Language_List                      : English
> Audio_Format_List                        : AAC
> Audio_Format_WithHint_List               : AAC
> Audio codecs                             : AAC LC
> Audio_Language_List                      : English
> Complete name                            : /Users/user/Documents/
> GOPR9605.MP4
> Folder name                              : /Users/user/Documents/
> File name                                : GOPR9605
> File extension                           : mp4
> Format                                   : MPEG-4
> Format                                   : MPEG-4
> Format/Extensions usually used           : mp4 m4v m4a m4b m4p 3gpp 3gp
> 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
> Commercial name                          : MPEG-4
> Format profile                           : JVT
> Internet media type                      : video/mp4
> Codec ID                                 : avc1
> Codec ID/Url                             :
> http://www.apple.com/quicktime/download/standalone.html
> Codec                                    : MPEG-4
> Codec                                    : MPEG-4
> Codec/Extensions usually used            : mp4 m4v m4a m4b m4p 3gpp 3gp
> 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
> File size                                : 884484368
> File size                                : 844 MiB
> File size                                : 844 MiB
> File size                                : 844 MiB
> File size                                : 844 MiB
> File size                                : 843.5 MiB
> Duration                                 : 465015
> Duration                                 : 7mn 45s
> Duration                                 : 7mn 45s 15ms
> Duration                                 : 7mn 45s
> Duration                                 : 00:07:45.015
> Overall bit rate mode                    : CBR
> Overall bit rate mode                    : Constant
> Overall bit rate                         : 15216445
> Overall bit rate                         : 15.2 Mbps
> Stream size                              : 884740
> Stream size                              : 864 KiB (0%)
> Stream size                              : 864 KiB
> Stream size                              : 864 KiB
> Stream size                              : 864 KiB
> Stream size                              : 864.0 KiB
> Stream size                              : 864 KiB (0%)
> Proportion of this stream                : 0.00100
> HeaderSize                               : 884732
> DataSize                                 : 883599636
> FooterSize                               : 0
> IsStreamable                             : Yes
> Encoded date                             : UTC 2013-03-08 02:34:46
> Tagged date                              : UTC 2013-03-08 02:34:46
> File last modification date              : UTC 2013-03-08 09:42:30
> File last modification date (local)      : 2013-03-08 01:42:30
> AMBA                                     :
>
> Video
> Count                                    : 248
> Count of stream of this kind             : 1
> Kind of stream                           : Video
> Kind of stream                           : Video
> Stream identifier                        : 0
> StreamOrder                              : 0
> ID                                       : 1
> ID                                       : 1
> Format                                   : AVC
> Format/Info                              : Advanced Video Codec
> Format/Url                               :
> http://developers.videolan.org/x264.html
> Commercial name                          : AVC
> Format profile
>
>


More information about the ffmpeg-user mailing list