我正在使用网络视频编辑器,而且启动时间为负的视频的持续时间因浏览器而异。这是ffmpeg输出:
ffmpeg -i filename.mp4
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/filipebrandao/Downloads/mars1.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: mp41mp42isom
creation_time : 2017-08-24T19:43:26.000000Z
Duration: 00:00:03.25, start: -0.001610, bitrate: 2037 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 1075 kb/s, 23.91 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2017-08-24T19:43:26.000000Z
handler_name : Core Media Video
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s (default)
Metadata:
creation_time : 2017-08-24T19:43:26.000000Z
handler_name : Core Media Audio
At least one output file must be specified
上面重要的一点是负启动时间:
Duration: 00:00:03.25, start: -0.001610, bitrate: 2037 kb/s
当我在Chrome和Firefox中播放此视频时,两个浏览器报告的持续时间为5.72秒。当我使用Safari时,浏览器会报告持续时间为3.24秒。
您是否了解跨浏览器具有一致持续时间和开始时间值的方法?