New submission from Lou <[email protected]>:

ffmpeg hangs with high CPU usage when using '-ss foo' (with either seconds or
hh:mm:ss.ms format) and '-vcodec copy' with the videolan Git repository. Input
or output format doesn't seem to matter. Tested on Arch Linux x86_64 and Ubuntu
Karmic 32-bit. I can't duplicate this if I use the git.ffmpeg.org repository.

http://mirror05.x264.nl/Dark/x264clips/IronMan.mkv

$ ffmpeg -v 9 -loglevel 99 -i IronMan.mkv -ss 20 -vcodec copy -an -y output.mkv
FFmpeg version git-N-27717-g7782cb2, Copyright (c) 2000-2011 the FFmpeg 
developers
  built on Feb 18 2011 18:05:19 with gcc 4.5.2 20110127 (prerelease)
  configuration: --prefix=/usr --enable-gpl
  libavutil    50. 39. 0 / 50. 39. 0
  libavcodec   52.113. 1 / 52.113. 1
  libavformat  52.101. 0 / 52.101. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
[NULL @ 0x2a27650] Probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[h264 @ 0x2a2b440] no picture
    Last message repeated 1 times
[matroska,webm @ 0x2a27650] All info found
[matroska,webm @ 0x2a27650] Estimating duration from bitrate, this may be 
inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95
(10000000/208541) -> 24.00 (24/1)
Input #0, matroska,webm, from 'IronMan.mkv':
  Duration: 00:01:48.50, start: 0.000000, bitrate: N/A
    Stream #0.0, 23, 1/1000: Video: h264 (High), yuv420p, 1280x720,
208541/10000000, PAR 115:87 DAR 1840:783, 23.98 fps, 24 tbr, 1k tbn, 47.95 tbc
(default)
    Stream #0.1, 48, 1/1000: Audio: aac, 48000 Hz, stereo, s16 (default)
Output #0, matroska, to 'output.mkv':
  Metadata:
    encoder         : Lavf52.101.0
    Stream #0.0, 0, 1/1000: Video: H264 / 0x34363248, yuv420p, 1280x720 [PAR
115:87 DAR 1840:783], 208541/5000000, q=2-31, 1k tbn, 23.98 tbc (default)
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding

----------
messages: 13727
nosy: FakeOutdoorsman
priority: normal
status: new
substatus: new
title: FFmpeg hangs with -ss and -vcodec copy
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2619>
________________________________________________

Reply via email to