Opened 13 years ago
Closed 13 years ago
#473 closed enhancement (needs_more_info)
Option to ignore defect frames
Reported by: | Alex | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Steps that will reproduce the problem?
- Find a defect file
- Convert it: ffmpeg -i file.mkv -vcodec copy test.m4v
What is the expected result?
ffmpeg should skip (e.g. define a parameter first) defect frames.
What happens instead?
Encoding stops.
Possible workaround:
Maybe creating multiple output files using the "ss" parameter and merging them later.
Any additional information:
... Stream mapping: Stream #0.0 -> #0.0 (copy) Press ctrl-c to stop encoding [matroska,webm @ 0x7fbcbb005800] Unknown entry 0x1ED83ED9itrate=15336.6kbits/s [matroska,webm @ 0x7fbcbb005800] Unknown entry 0xB8 [matroska,webm @ 0x7fbcbb005800] Unknown entry 0xB6 frame=26108 fps=139 q=-1.0 Lsize= 2039092kB time=1088.84 bitrate=15341.3kbits/s video:2038598kB audio:0kB global headers:0kB muxing overhead 0.024223% $
Change History (6)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Sure, sorry:
$ /usr/local/bin/ffmpeg -y -i test.mkv -vcodec copy test.m4v ffmpeg version git-2011-09-16-41215fd, Copyright (c) 2000-2011 the FFmpeg developers built on Sep 16 2011 08:10:56 with clang 2.1 (tags/Apple/clang-163.7.1) configuration: --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang libavutil 51. 16. 0 / 51. 16. 0 libavcodec 53. 15. 0 / 53. 15. 0 libavformat 53. 12. 0 / 53. 12. 0 libavdevice 53. 3. 0 / 53. 3. 0 libavfilter 2. 42. 0 / 2. 42. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001) Input #0, matroska,webm, from 'test.mkv': Duration: 01:36:13.37, start: 0.000000, bitrate: 17585 kb/s Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0.1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default) Metadata: title : Englisch Stream #0.2(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s Metadata: title : German Stream #0.3(eng): Subtitle: text (default) Metadata: title : Englisch Output #0, ipod, to 'test.m4v': Metadata: encoder : Lavf53.12.0 Stream #0.0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2500k tbn, 23.98 tbc (default) Stream #0.1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1(side), s16, 128 kb/s (default) Metadata: title : Englisch Stream mapping: Stream #0.0 -> #0.0 (copy) Stream #0.1 -> #0.1 (dca -> libfaac) Press [q] to stop, [?] for help [matroska,webm @ 0x7fc6b903d800] Unknown entry 0x1ED83ED912 bitrate=15528.9kbits/s [matroska,webm @ 0x7fc6b903d800] Unknown entry 0xB8 [matroska,webm @ 0x7fc6b903d800] Unknown entry 0xB6 frame=26108 fps=157 q=-1.0 Lsize= 2065095kB time=00:18:08.83 bitrate=15537.0kbits/s video:2038598kB audio:25604kB global headers:0kB muxing overhead 0.043263% $
comment:4 by , 13 years ago
Sure - but unfortunately its size is 12 GB and the command "ffmpeg -ss 100 -t 5 -i test.mkv -vcodec copy -acodec copy -map 0:0 test-small.mkv" results in
[matroska @ 0x7ff5d285bc00] pts < dts in stream 0 av_interleaved_write_frame(): Invalid argument".
comment:5 by , 13 years ago
Please consider reading http://ffmpeg.org/bugreports.html ("If the sample file is too large")
comment:6 by , 13 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
This is impossible to fix without a sample, please reopen if a sample is available.
Complete, uncut output of latest FFmpeg git head missing.