2009/6/23 Matthew Hallin <m...@geebroadcast.co.uk>

> 2009/6/17 Baptiste Coudurier <baptiste.coudur...@gmail.com>
>
>> Matthew Hallin wrote:
>> > 2009/6/17 Baptiste Coudurier <baptiste.coudur...@gmail.com>
>> >
>> >> Hi,
>> >>
>> >> On 6/17/2009 9:09 AM, Matthew Hallin wrote:
>> >>> Here is the output from gdb
>> >>>
>> >>> Program received signal SIGSEGV, Segmentation fault.
>> >>> ff_set_qscale (s=0xa5113d0, qscale=<value optimized out>)
>> >>>     at libavcodec/mpegvideo.c:2356
>> >>> 2356        s->y_dc_scale= s->y_dc_scale_table[ qscale ];
>> >>> Current language:  auto; currently c
>> >>> (gdb) backtrace
>> >>> #0  ff_set_qscale (s=0xa5113d0, qscale=<value optimized out>)
>> >>>     at libavcodec/mpegvideo.c:2356
>> >>> #1  0x0814a385 in encode_thread (c=0xa511020, arg=0xa5114a4)
>> >>>     at libavcodec/mpegvideo_enc.c:2060
>> >>> #2  0x080dbbda in avcodec_default_execute (c=0xa511020,
>> >>>     func=0x8149fd0 <encode_thread>, arg=0xa5114a4, ret=0x0, count=1,
>> >> size=4)
>> >>>     at libavcodec/utils.c:411
>> >>> #3  0x081340bf in MPV_encode_picture (avctx=0xa511020, buf=0xb7b04008
>> "",
>> >>>     buf_size=829440, data=0xa559a90) at
>> libavcodec/mpegvideo_enc.c:2923
>> >>> #4  0x080dd790 in avcodec_encode_video (avctx=0xa511020,
>> buf=0xb7b04008
>> >> "",
>> >>>     buf_size=829440, pict=0xa559a90) at libavcodec/utils.c:527
>> >>> #5  0x0804a310 in main () at ffmpeg-test2.cpp:175
>> >>>
>> >>> I tried to rebuild with --disable-optimizations with the hope that it
>> may
>> >>> then show me the value of qscale but it would not build.
>> >> One file needs -O1 because of register allocation failing, you should
>> be
>> >> able to compile it manually, yes it's annoying. Sorry for that.
>> >> You can add also --enable-debug=gdb3
>> >>
>> >> PS: please do not top-post on this mailing list. Thanks for your
>> >> understanding.
>> >>
>> >
>> > Thanks for your reply, but I am not sure I understand.
>> > I you saying that I need to compile a single file with -O1 option? If so
>> > which file? mpegvideo.c ?
>>
>> The one not compiling, I don't think it is mpegvideo.c but dsputil_mmx.c
>>
>> > I will try it tomorrow and let you know.
>>
>> Ok.
>>
>> > Thanks for you great help.
>> > I hope this is bottom posted!
>>
>> Yes, it is, thanks.
>>
>> --
>> Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
>> Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
>> FFmpeg maintainer                                  http://www.ffmpeg.org
>> _______________________________________________
>> libav-user mailing list
>> libav-user@mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>>
>
> Hello, I am afraid I need more help with this. I do not understand. Are you
> saying that a file did not compile or just that I need to recompile with
> different options? (or both?). How can I tell which file did not compile?
> make completed and the binaries were created so I assumed it was ok.
> How can I compile a specific file with -O1, I assume I will need all the
> other complier options used in a normal build. Can you give me the actual
> commands?
> Let me know
> Thanks
> Matt
>
>
> --
> Gee Broadcast Systems
> Telephone: +44 1256 810123
> Web: www.geebroadcast.co.uk
>


Further to above, I edited config.mak and in the OPTFLAGS section set -O3 to
-O1 and rebuilt but it still crashes. I understand that I am down grading
the optimisation on the whole thing but should that not have worked?
Let me know
Thanks
Matt

-- 
Gee Broadcast Systems
Telephone: +44 1256 810123
Web: www.geebroadcast.co.uk
_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to