[FFmpeg-trac] #977(undetermined:open): F4v Cutted output video duration incaccurate, Why?
FFmpeg
trac at avcodec.org
Sun Feb 12 15:54:18 CET 2012
#977: F4v Cutted output video duration incaccurate,Why?
-------------------------------------+-------------------------------------
Reporter: | Owner:
overclokkato | Status: open
Type: defect | Component:
Priority: normal | undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* status: new => open
* version: unspecified => git-master
* reproduced: 0 => 1
Comment:
My suggestion was not helpful, -vcodec copy does not work well with -ss
after -i, sorry.
Reproducible with the sample from ticket #578 (and probably many others):
{{{
$ ffmpeg -ss 11 -t 9 -i fails_open_cut.f4v -acodec copy -vcodec copy
out.mov
ffmpeg version N-37798-gcd1c12b Copyright (c) 2000-2012 the FFmpeg
developers
built on Feb 12 2012 01:52:42 with gcc 4.5.3
configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
libavutil 51. 39.100 / 51. 39.100
libavcodec 54. 1.100 / 54. 1.100
libavformat 54. 0.100 / 54. 0.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
[h264 @ 0x13d8340] Missing reference picture
[h264 @ 0x13d8340] decode_slice_header error
[h264 @ 0x13d8340] concealing 576 DC, 576 AC, 576 MV errors
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fails_open_cut.f4v':
Metadata:
major_brand : f4v
minor_version : 0
compatible_brands: isommp42m4v
creation_time : 2016-04-05 03:31:16
Duration: 00:01:44.93, start: 0.000000, bitrate: 609 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
512x288 [SAR 1:1 DAR 16:9], 501 kb/s, 25 tbr, 1k tbn, 50 tbc
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name : MainConcept
Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 22050 Hz, mono, s16,
48 kb/s
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name : MP3 Sound Media Handler
Output #0, mov, to 'out.mov':
Metadata:
major_brand : f4v
minor_version : 0
compatible_brands: isommp42m4v
creation_time : 2016-04-05 03:31:16
encoder : Lavf54.0.100
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 512x288
[SAR 1:1 DAR 16:9], q=2-31, 501 kb/s, 1k tbn, 1k tbc
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name : MainConcept
Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 22050 Hz, mono, 48
kb/s
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name : MP3 Sound Media Handler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 251 fps= 0 q=-1.0 Lsize= 665kB time=00:00:08.96 bitrate=
607.6kbits/s
video:597kB audio:59kB global headers:0kB muxing overhead 1.382583%
$ ffmpeg -i out.mov -f null -
ffmpeg version N-37798-gcd1c12b Copyright (c) 2000-2012 the FFmpeg
developers
built on Feb 12 2012 01:52:42 with gcc 4.5.3
configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
libavutil 51. 39.100 / 51. 39.100
libavcodec 54. 1.100 / 54. 1.100
libavformat 54. 0.100 / 54. 0.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mov':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2016-04-05 03:31:16
encoder : Lavf54.0.100
Duration: 00:00:10.06, start: 0.000000, bitrate: 541 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
512x288 [SAR 1:1 DAR 16:9], 486 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name :
DataHandler
Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 22050 Hz, mono, s16,
47 kb/s
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name :
DataHandler
[buffer @ 0x13f5740] w:512 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1
sws_param:
Output #0, null, to 'pipe:':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 2016-04-05 03:31:16
encoder : Lavf54.0.100
Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p,
512x288 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name :
DataHandler
Stream #0:1(eng): Audio: pcm_s16le, 22050 Hz, mono, s16, 352 kb/s
Metadata:
creation_time : 2016-04-05 03:31:16
handler_name :
DataHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> rawvideo)
Stream #0:1 -> #0:1 (mp3 -> pcm_s16le)
Press [q] to stop, [?] for help
frame= 251 fps= 0 q=0.0 Lsize= 0kB time=00:00:10.04 bitrate=
0.0kbits/s
video:0kB audio:434kB global headers:0kB muxing overhead -100.000000%
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/977#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list