[FFmpeg-trac] #1450(undetermined:new): ffmpeg does not terminate after end of input (asyncts used)

FFmpeg trac at avcodec.org
Thu Jun 21 00:47:11 CEST 2012


#1450: ffmpeg does not terminate after end of input (asyncts used)
-------------------------------------+-------------------------------------
             Reporter:  lvm          |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  libfaac,     |               Resolution:
  asyncts                            |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ey3ball):

 I guys, I believe I have the same issue with current git head

 Command line :

 ffmpeg -v debug -i ./sample.ts -vn -af asyncts=compensate=1 -acodec
 pcm_s16le -sn -y out.wav

 Sample file is available to grab here :
 http://ey3ball.net/ffmpeg/sample.ts

 Result : data is encoded properly, but when ffmpeg exits, it hangs
 indefinitely (CPU going up to 100% usage)

 {{{
 ffmpeg version N-41780-g5a90e55 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jun 21 2012 00:29:23 with gcc 4.6.3
   configuration: --prefix=/home/florian/avtools/build --extra-
 cflags=-I/home/florian/avtools/build/include --extra-
 ldflags=-L/home/florian/avtools/build/lib --enable-gpl --enable-nonfree
 --enable-libaacplus --enable-libfaac --enable-libmp3lame --enable-libx264
 --enable-version3 --enable-avresample
   libavutil      51. 59.100 / 51. 59.100
   libavcodec     54. 27.100 / 54. 27.100
   libavformat    54.  9.100 / 54.  9.100
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     2. 82.100 /  2. 82.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpegts @ 0x17f9120] Format mpegts probed with size=2048 and score=100
 [mpegts @ 0x17f9120] stream=0 stream_type=2 pid=208 prog_reg_desc=
 [mpegts @ 0x17f9120] stream=1 stream_type=3 pid=212 prog_reg_desc=
 [mpegts @ 0x17f9120] stream=2 stream_type=6 pid=21c prog_reg_desc=
 [mpegts @ 0x17f9120] stream=3 stream_type=5 pid=23a prog_reg_desc=
 [mpegts @ 0x17f9120] stream=4 stream_type=b pid=23b prog_reg_desc=
 [mpegts @ 0x17f9120] stream=5 stream_type=c pid=23c prog_reg_desc=
 [mpegts @ 0x17f9120] stream=6 stream_type=80 pid=23d prog_reg_desc=
 [mpegts @ 0x17f9120] stream=7 stream_type=80 pid=23e prog_reg_desc=
 [mpegts @ 0x17f9120] File position before avformat_find_stream_info() is 0
 [mpegts @ 0x17f9120] parser not found for codec none, packets or times may
 be invalid.
     Last message repeated 4 times
 [mpeg2video @ 0x1819900] mpeg_decode_postinit() failure
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420456903 in que
     Last message repeated 4 times
 [mpeg2video @ 0x1819900] mpeg_decode_postinit() failure
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420469863 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420482823 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420495783 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420508743 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420521703 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420534663 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420547623 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420560583 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420573543 in que
     Last message repeated 4 times
 [mpegts @ 0x17f9120] PES packet size mismatch
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420586503 in que
     Last message repeated 3 times
 [mpegts @ 0x17f9120] Could not find codec parameters (Unknown: none
 ([5][0][0][0] / 0x0005))
 [mpegts @ 0x17f9120] Could not find codec parameters (Unknown: none
 ([11][0][0][0] / 0x000B))
 [mpegts @ 0x17f9120] Could not find codec parameters (Unknown: none
 ([12][0][0][0] / 0x000C))
 [mpegts @ 0x17f9120] Could not find codec parameters (Unknown: none
 ([128][0][0][0] / 0x0080))
     Last message repeated 1 times
 [NULL @ 0x182d2c0] start time is not set in estimate_timings_from_pts
 [NULL @ 0x1833640] start time is not set in estimate_timings_from_pts
 [NULL @ 0x18399c0] start time is not set in estimate_timings_from_pts
 [NULL @ 0x183fd40] start time is not set in estimate_timings_from_pts
 [NULL @ 0x18460c0] start time is not set in estimate_timings_from_pts
 [NULL @ 0x184c480] start time is not set in estimate_timings_from_pts
 [mpegts @ 0x17f9120] PES packet size mismatch
 [mpegts @ 0x17f9120] File position after avformat_find_stream_info() is 0
 Input #0, mpegts, from './sample.ts':
   Duration: 00:00:02.15, start: 26893.821589, bitrate: 3897 kb/s
   Program 257
     Metadata:
       service_name    : France 2
       service_provider: GR1
   Program 260
     Metadata:
       service_name    : France 5
       service_provider: GR1
   Program 261
     Metadata:
       service_name    : ?France Ô
       service_provider: GR1
     Stream #0:0[0x208], 44, 1/90000: Video: mpeg2video (Main)
 ([2][0][0][0] / 0x0002), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 1/50,
 15000 kb/s, 28.38 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x212](fra), 72, 1/90000: Audio: mp2 ([3][0][0][0] /
 0x0003), 48000 Hz, stereo, s16, 192 kb/s
     Stream #0:2[0x21c](fra), 0, 1/90000: Subtitle: dvb_subtitle
 ([6][0][0][0] / 0x0006) (hearing impaired)
     Stream #0:3[0x23a], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005)
     Stream #0:4[0x23b], 0, 1/90000: Unknown: none ([11][0][0][0] / 0x000B)
     Stream #0:5[0x23c], 0, 1/90000: Unknown: none ([12][0][0][0] / 0x000C)
     Stream #0:6[0x23d], 0, 1/90000: Unknown: none ([128][0][0][0] /
 0x0080)
     Stream #0:7[0x23e], 0, 1/90000: Unknown: none ([128][0][0][0] /
 0x0080)
   Program 262
     Metadata:
       service_name    : LCP
       service_provider: GR1
   Program 273
     Metadata:
       service_name    : France 3
       service_provider: GR1
   Program 511
 [asyncts @ 0x1850f80] Setting entry with key 'compensate' to value '1'
 [abuffer source @ 0x186eac0] Setting entry with key 'time_base' to value
 '1/90000'
 [abuffer source @ 0x186eac0] Setting entry with key 'sample_rate' to value
 '48000'
 [abuffer source @ 0x186eac0] Setting entry with key 'sample_fmt' to value
 's16'
 [abuffer source @ 0x186eac0] Setting entry with key 'channel_layout' to
 value '0x3'
 [abuffer @ 0x186f020] tb:1/90000 samplefmt:s16 samplerate: 48000 ch
 layout:0x3
 [aformat @ 0x186f7e0] Setting entry with key 'sample_fmts' to value 's16'
 [AVAudioResampleContext @ 0x17fbee0] Using s16p as internal sample format
 [AVAudioResampleContext @ 0x17fbee0] audio_convert: found function: s16
 to s16p (C)
 [AVAudioResampleContext @ 0x17fbee0] audio_convert: found function: s16p
 to s16  (C)
 [AVAudioResampleContext @ 0x17fbee0] resample: s16p from 48000 Hz to 48000
 Hz
 Output #0, wav, to 'out.wav':
   Metadata:
     encoder         : Lavf54.9.100
     Stream #0:0(fra), 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] /
 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0:1 -> #0:0 (mp2 -> pcm_s16le)
 Press [q] to stop, [?] for help
 Error in av_buffersink_get_buffer_ref(): Invalid argument
 [Parsed_asyncts_0 @ 0x186b020] Compensating -9 samples per second.
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 3 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420456903 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420469863 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420482823 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420495783 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420508743 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420521703 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420534663 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420547623 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420560583 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420573543 in que
     Last message repeated 4 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 5 times
 [mpegts @ 0x17f9120] PES packet size mismatch
 [mpegts @ 0x17f9120] first_dts 2420443943 not matching first dts
 2420586503 in que
     Last message repeated 3 times
 [Parsed_asyncts_0 @ 0x186b020] Compensating 0 samples per second.
     Last message repeated 4 times
 [mp2 @ 0x1826f40] incomplete frame
 Error while decoding stream #0:1: Invalid data found when processing input
 No more inputs to read from, finishing.
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1450#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list