[FFmpeg-user] Error: timebase not supported by MPEG 4 standard. Not sure why
Simon Daniels
simondaniels23 at gmail.com
Tue Apr 9 06:09:11 CEST 2013
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