leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
9.82k stars 941 forks source link

segmentation fault when use transcoding code #66

Open AnminSZ opened 4 years ago

AnminSZ commented 4 years ago

the detail error is below:

`Starting program: /home/projectDEMO/ffmpeg/ffmpeglib/doc/examples/./transcoding_3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault. 0x0000000000eb9388 in av_strstart (str=0x0, pfx=pfx@entry=0xf77548 "rtp:", ptr=ptr@entry=0x0) at libavutil/avstring.c:35 35 { Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-13.el7.x86_64 glibc-2.17-292.tl2.x86_64 libXau-1.0.8-2.1.el7.x86_64 libxcb-1.13-1.tl2.x86_64 xz-libs-5.2.2-1.tl2.x86_64`

can you help me solve this problem? thanks!

leandromoreira commented 4 years ago

Hi @AnminSZ I don't know but I guess it looks like you're missing some parameter BUT if you're trying to debug you need to have a libav with proper debug symbols.

I'd review char* you're passing to the program and see if they're missing or leaking something.