New submission from Steven Zakulec <spzaku...@gmail.com>:

The file http://samples.mplayerhq.hu/HDTV/hdtv.ts segfaults when you try to
transcode it because the 1st video track is broken- mplayer only sees 1 video &
audio track which play.

ffmpeg -i:
FFmpeg version SVN-r17197, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pthreads
  libavutil     49.14. 0 / 49.14. 0
  libavcodec    52.15. 0 / 52.15. 0
  libavformat   52.27. 0 / 52.27. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Feb 12 2009 21:51:50, gcc: 4.3.2
Input #0, mpegts, from 'hdtv.ts':
  Duration: 00:01:00.31, start: 50685.124933, bitrate: 14146 kb/s
  Program 1
    Stream #0.0[0x101]: Video: mpeg2video, 90000.00 tb(r)
    Stream #0.1[0x800]: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR
16:9], 80000 kb/s, 29.97 tb(r)
    Stream #0.2[0x801](eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.3[0x102]: Audio: ac3, 0 channels, s16
At least one output file must be specified

mplayer: (mplayer -frames 0 hdtv.ts) when you use -identify, it spams
ID_VIDEO_ID=2048 repeatedly.
VIDEO MPEG2(pid=2048) AUDIO A52(pid=2049) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  1920x1080  (aspect 3)  29.970 fps  80000.0 kbps (10000.0
kbyte/s)
=================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
=================================================
=================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
=================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...

gdb
Starting program: /home/steve/ffmpeg/ffmpeg_g -i hdtv.ts -f framecrc -
[Thread debugging using libthread_db enabled]
FFmpeg version SVN-r17197, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pthreads
  libavutil     49.14. 0 / 49.14. 0
  libavcodec    52.15. 0 / 52.15. 0
  libavformat   52.27. 0 / 52.27. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Feb 12 2009 21:51:50, gcc: 4.3.2
Input #0, mpegts, from 'hdtv.ts':
  Duration: 00:01:00.31, start: 50685.124933, bitrate: 14146 kb/s
  Program 1
    Stream #0.0[0x101]: Video: mpeg2video, 90000.00 tb(r)
    Stream #0.1[0x800]: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR
16:9], 80000 kb/s, 29.97 tb(r)
    Stream #0.2[0x801](eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.3[0x102]: Audio: ac3, 0 channels, s16
[imgconvert @ 0x9b29000]PIX_FMT_YUV420P will be used as an intermediate
format for rescaling
Output #0, framecrc, to 'pipe:':
    Stream #0.0: Video: rawvideo, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 29.97 tb(c)
    Stream #0.1(eng): Audio: pcm_s16le, 0 channels, s16
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.2 -> #0.1
[framecrc @ 0x9b4a6d0]sample rate not set
Could not write header for output file #0 (incorrect codec parameters ?)
[New Thread 0xb7e0e6b0 (LWP 19463)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e0e6b0 (LWP 19463)]
0x0810d6a6 in sws_freeContext (ctx=0x9b29000) at
libavcodec/imgresample.c:560
560         if ((ctx->resampling_ctx->iwidth != ctx->resampling_ctx->owidth) ||

#0  0x0810d6a6 in sws_freeContext (ctx=0x9b29000) at
libavcodec/imgresample.c:560
#1  0x08066362 in av_encode (output_files=0x8599a20, nb_output_files=1,
input_files=0x8598640, nb_input_files=1, stream_maps=0x859a0e0,
nb_stream_maps=0) at ffmpeg.c:2234
#2  0x0806864d in main (argc=Cannot access memory at address 0x2f8000
) at ffmpeg.c:3923

disass $pc-32 $pc+32
Dump of assembler code from 0x810d686 to 0x810d6c6:
0x0810d686 <sws_getContext+310>:        loop   0x810d6c3
<sws_freeContext+51>
0x0810d688 <sws_getContext+312>:        add    %ch,%cl
0x0810d68a <sws_getContext+314>:        jl     0x810d68b
<sws_getContext+315>
0x0810d68c <sws_getContext+316>:        (bad)
0x0810d68d <sws_getContext+317>:        jmp    *-0x70(%esi)
0x0810d690 <sws_freeContext+0>: sub    $0xc,%esp
0x0810d693 <sws_freeContext+3>: mov    %esi,0x8(%esp)
0x0810d697 <sws_freeContext+7>: mov    0x10(%esp),%esi
0x0810d69b <sws_freeContext+11>:        mov    %ebx,0x4(%esp)
0x0810d69f <sws_freeContext+15>:        test   %esi,%esi
0x0810d6a1 <sws_freeContext+17>:        je     0x810d6f0
<sws_freeContext+96>
0x0810d6a3 <sws_freeContext+19>:        mov    0x4(%esi),%ebx
0x0810d6a6 <sws_freeContext+22>:        mov    (%ebx),%eax
0x0810d6a8 <sws_freeContext+24>:        cmp    0x8(%ebx),%eax
0x0810d6ab <sws_freeContext+27>:        je     0x810d6d8
<sws_freeContext+72>
0x0810d6ad <sws_freeContext+29>:        mov    0x140(%ebx),%eax
0x0810d6b3 <sws_freeContext+35>:        mov    %eax,(%esp)
0x0810d6b6 <sws_freeContext+38>:        call   0x84cd280 <av_free>
0x0810d6bb <sws_freeContext+43>:        mov    %ebx,(%esp)
0x0810d6be <sws_freeContext+46>:        call   0x84cd280 <av_free>
0x0810d6c3 <sws_freeContext+51>:        mov    %esi,0x10(%esp)
End of assembler dump.

info all-registers                                                              
                                                                                
    
eax            0x9b29000        162697216
ecx            0x2f8000 3112960
edx            0xb7f72ff4       -1208537100
ebx            0x0      0
esp            0xbffc7dc0       0xbffc7dc0
ebp            0x1      0x1
esi            0x9b29000        162697216
edi            0xfffffff4       -12
eip            0x810d6a6        0x810d6a6 <sws_freeContext+22>
eflags         0x10206  [ PF IF RF ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            -nan(0x8585858585858585) (raw 0xffff8585858585858585)
st1            -nan(0x85008500850085)   (raw 0xffff0085008500850085)
st2            -nan(0x8585858585858585) (raw 0xffff8585858585858585)
st3            1        (raw 0x3fff8000000000000000)
st4            54071926.454847382337902672588825226     (raw
0x4018ce449d9d1c3831f4)
st5            54071928.671455528630758635699748993     (raw
0x4018ce449e2af9209c0c)
st6            0.99999999075305794505458267806830008    (raw
0x3ffeffffffd848e13350)
st7            54071929.671455528630758635699748993     (raw
0x4018ce449e6af9209c0c)
fctrl          0x37f    895
fstat          0x4021   16417
ftag           0xffff   65535
fiseg          0x73     115
fioff          0x849f3a0        139064224
foseg          0x7b     123
fooff          0x0      0
fop            0x5d8    1496
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
---Type <return> to continue, or q <return> to quit---
0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, 
v16_int8
= {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {
    0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 =
0x00000000000000000000000000000000}
mxcsr          0x1f80   [ IM DM ZM OM UM PM ]
mm0            {uint64 = 0x8585858585858585, v2_int32 = {0x85858585,
0x85858585}, v4_int16 = {0x8585, 0x8585, 0x8585, 0x8585}, v8_int8 = {0x85,
0x85, 0x85, 0x85, 0x85, 0x85,
    0x85, 0x85}}
mm1            {uint64 = 0x85008500850085, v2_int32 = {0x850085, 0x850085},
v4_int16 = {0x85, 0x85, 0x85, 0x85}, v8_int8 = {0x85, 0x0, 0x85, 0x0, 0x85,
0x0, 0x85, 0x0}}
mm2            {uint64 = 0x8585858585858585, v2_int32 = {0x85858585,
0x85858585}, v4_int16 = {0x8585, 0x8585, 0x8585, 0x8585}, v8_int8 = {0x85,
0x85, 0x85, 0x85, 0x85, 0x85,
    0x85, 0x85}}
mm3            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
mm4            {uint64 = 0xce449d9d1c3831f4, v2_int32 = {0x1c3831f4,
0xce449d9d}, v4_int16 = {0x31f4, 0x1c38, 0x9d9d, 0xce44}, v8_int8 = {0xf4,
0x31, 0x38, 0x1c, 0x9d, 0x9d,
    0x44, 0xce}}
mm5            {uint64 = 0xce449e2af9209c0c, v2_int32 = {0xf9209c0c,
0xce449e2a}, v4_int16 = {0x9c0c, 0xf920, 0x9e2a, 0xce44}, v8_int8 = {0xc,
0x9c, 0x20, 0xf9, 0x2a, 0x9e, 0x44,
    0xce}}
mm6            {uint64 = 0xffffffd848e13350, v2_int32 = {0x48e13350, 
0xffffffd8},
v4_int16 = {0x3350, 0x48e1, 0xffd8, 0xffff}, v8_int8 = {0x50, 0x33, 0xe1, 0x48,
0xd8, 0xff,
    0xff, 0xff}}
mm7            {uint64 = 0xce449e6af9209c0c, v2_int32 = {0xf9209c0c,
0xce449e6a}, v4_int16 = {0x9c0c, 0xf920, 0x9e6a, 0xce44}, v8_int8 = {0xc,
0x9c, 0x20, 0xf9, 0x6a, 0x9e, 0x44,
    0xce}}

----------
messages: 4249
priority: normal
status: new
substatus: new
title: hdtv.ts segfaults when trying to transcode
type: bug

____________________________________________________
FFmpeg issue tracker <ffmpeg_iss...@live.polito.it>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue845>
____________________________________________________

Reply via email to