[FFmpeg-user] Splitting video not on keyframes
Tim Hiles
thiles at confex.com
Wed Aug 16 03:40:33 EEST 2017
>
>
>
> If you put the -ss option *after* the other options, it
> completely changes behaviour, instead of using the index
> info, it runs through the file from the beginning to
> the exact timestamp you specify. (Which takes longer, but
> allows you to pick any place you want to start at).
>
>
Hi Tom, Thanks for your input. I did say in my email that I have tried
putting the -ss after the -i filename.
I have tried many different variations including -to, putting the -ss after
> the -i filename....
However, just to ensure that I tested it, I did again. Again, the video
starts out correctly however when I seek 2 minutes in I can clearly hear
the audio is out sync with the video behind by 3 or 4 seconds.
c:\ffmpeg\ffmpeg\bin\ffmpeg.exe -i "C:\TestVideo\Session42402_0.mp4"
-vcodec copy -acodec copy -async 1 -ss 00:06:14 -t 00:14:50
"C:\TestVideo\TestResult.MP4"
ffmpeg version N-86986-g62dfa2b Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7.1.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --enable-d3d11va --enable-dxva2 --enable-li
bmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libfreetype --enable-libgme --enable-libgs
m --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libsnappy --enable-libsoxr --enable-libspe
ex --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxavs --enable-libxvid --enable-libzi
mg --enable-lzma --enable-zlib
libavutil 55. 74.100 / 55. 74.100
libavcodec 57.102.100 / 57.102.100
libavformat 57. 76.100 / 57. 76.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 99.100 / 6. 99.100
libswscale 4. 7.102 / 4. 7.102
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\TestVideo\Session42402_0.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.8.102
Duration: 02:20:00.05, start: 0.000000, bitrate: 442 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 1024x768, 343 kb/s, 15 fps, 15 tb
r, 16k tbn, 30 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono,
fltp, 94 kb/s (default)
Metadata:
handler_name : SoundHandler
File 'C:\TestVideo\TestResult.MP4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'C:\TestVideo\TestResult.MP4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.76.100
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 1024x768, q=2-31, 343 kb/s, 15 fp
s, 15 tbr, 16k tbn, 16k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono,
fltp, 94 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=13208 fps=0.0 q=-1.0 Lsize= 39112kB time=00:14:49.95 bitrate=
360.0kbits/s speed=4.08e+003x
video:27778kB audio:10900kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 1.124247%
More information about the ffmpeg-user
mailing list