LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2004, 10:57 AM   #1
bj0nes
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
transcode segmentation fault


Hi:
I've installed the latest transcode on a Mandrake 10 box. I'm trying to compress a movie from a digital camera (MJPEG avi) to divx or xvid (preferred). When I run it I get:
$ transcode -i oct20040015.AVI -o divx0015.AVI -y xvid
transcode v0.6.12 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source oct20040015.AVI (ok)
[transcode] V: import format | MJPG RIFF data, AVI (V=ffmpeg|A=avi)
[transcode] V: import frame | 320x240 1.33:1
[transcode] V: bits/pixel | 1.562
[transcode] V: decoding fps,frc | 15.000,0
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x1 PCM [11024, 8,1] 88 kbps
[transcode] A: export format | 0x55 MPEG layer-3 [11024, 8,1] 128 kbps
[transcode] V: encoding fps,frc | 15.000,13
[transcode] A: bytes per frame | 733 (734.933333)
[transcode] A: adjustment | 1936@1000
[transcode] V: IA32 accel mode | 3dnow (3dnow mmxext mmx asm)
[transcode] V: video buffer | 10 @ 320x240
[import_avi.so] v0.4.2 (2002-05-24) (video) * | (audio) *
[import_ffmpeg.so] v0.1.10 (2003-12-30) (video) FFmpeg0.4.8b4695: MS MPEG4v1-3/MPEG4/MJPEG
[export_xvid2.so] v0.3.10 (2003-07-30) (video) XviD 0.9.x (aka API 2.1 series) | (audio) MPEG/AC3/PCM
[import_avi.so] format=0x1, rate=11024 Hz, bits=8, channels=1, bitrate=88
Segmentation fault

Anyone have any ideas as to where I'm going wrong?
Thanks,
Bobby
 
Old 10-29-2004, 01:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
not a chance. run it inside gdb and run a backtrace to see what library is in use when it happens. you'll probably be ok by upgradnig that package, which will hopefully be an external library.
 
Old 10-29-2004, 01:52 PM   #3
bj0nes
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for that. I've never used gdb before, can you have a look at the output I get? I am guessing that the problem is from mjpeg.c, which would make sense. I'm going to try to find the update for that.
Thanks,
Bobby

Starting program: /usr/local/bin/transcode -i oct20040015.AVI -o test1.AVI -y xvid
[Thread debugging using libthread_db enabled]
[New Thread 1075476640 (LWP 3215)]
[New Thread 1083870128 (LWP 3216)]
transcode v0.6.12 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
Detaching after fork from child process 3217.
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source oct20040015.AVI (ok)
[transcode] V: import format | MJPG RIFF data, AVI (V=ffmpeg|A=avi)
[transcode] V: import frame | 320x240 1.33:1
[transcode] V: bits/pixel | 1.562
[transcode] V: decoding fps,frc | 15.000,0
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x1 PCM [11024, 8,1] 88 kbps
[transcode] A: export format | 0x55 MPEG layer-3 [11024, 8,1] 128 kbps
[transcode] V: encoding fps,frc | 15.000,13
[transcode] A: bytes per frame | 733 (734.933333)
[transcode] A: adjustment | 1936@1000
[transcode] V: IA32 accel mode | 3dnow (3dnow mmxext mmx asm)
[transcode] V: video buffer | 10 @ 320x240
[import_avi.so] v0.4.2 (2002-05-24) (video) * | (audio) *
[import_ffmpeg.so] v0.1.10 (2003-12-30) (video) FFmpeg0.4.8b4695: MS MPEG4v1-3/MPEG4/MJPEG
[export_xvid2.so] v0.3.10 (2003-07-30) (video) XviD 0.9.x (aka API 2.1 series) | (audio) MPEG/AC3/PCM
[New Thread 1104456624 (LWP 3218)]
[New Thread 1112849328 (LWP 3219)]
[import_avi.so] format=0x1, rate=11024 Hz, bits=8, channels=1, bitrate=88
[New Thread 1127517104 (LWP 3220)]
[New Thread 1135909808 (LWP 3221)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1135909808 (LWP 3221)]
0x08181b0b in put_pixels_clamped_mmx (block=0x8270240,
pixels=0x7e7e7f80 <Address 0x7e7e7f80 out of bounds>, line_size=2122219134)
at i386/dsputil_mmx.c:246
246 __asm __volatile(
(gdb) bt
#0 0x08181b0b in put_pixels_clamped_mmx (block=0x8270240,
pixels=0x7e7e7f80 <Address 0x7e7e7f80 out of bounds>, line_size=2122219134)
at i386/dsputil_mmx.c:246
#1 0x081942de in ff_simple_idct_put_mmx (dest=0x80a5e77 "\213\203\200\005",
line_size=136773072, block=0x8270240) at i386/simple_idct_mmx.c:1307
#2 0x080a5082 in mjpeg_decode_scan (s=0x826fdd0) at mjpeg.c:1344
#3 0x080a553d in mjpeg_decode_sos (s=0x826fdd0) at mjpeg.c:1465
Previous frame inner to this frame (corrupt stack?)
(gdb)
 
Old 10-29-2004, 02:04 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
"address out of bounds" sounds like it's trying to read from memory that doesn't exist somewhere inside an mmx function. so what to do? erm... not sure now. tried a native compile? that should be much more reliable than a prebuilt unit.
 
Old 10-31-2004, 09:31 AM   #5
bj0nes
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I did compile transcode on the box, so I guess I'll just keep poking around. Thanks for your tips.
Bobby
 
Old 10-31-2004, 02:12 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
it's not really desirable, but you could try disabling mmx when you build it.
 
Old 10-31-2004, 02:43 PM   #7
joshbaptiste
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Cool use mencoder

transcode is realy sllooww and cumbersome to use... just use mencoder that comes with mplayer to convert mpeg to avi.
 
Old 10-31-2004, 02:50 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
to be honest i've really not played with transcode much, as i found mplayer first, but from a technical and performance standpoint, i'd not be at all suprised if transcode could do the same things faster than mencoder. it can certainly do more. it;s just a lot more complicated.
 
Old 11-01-2004, 02:06 PM   #9
bj0nes
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I'll give mencoder a try; I don't care too much about speed, I'm just trying to find a way to make a lower quality xvid avi from the mjpeg avis that come out of my camera. I have a bash script that I use to resize the photos & make html, and I want to include making a smaller avi file in the process.
Thanks,
Bobby
 
Old 11-01-2004, 02:45 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
you might like my program too (an mencoder UI) http://acidrip.sf.net
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 10:34 AM
Segmentation fault tejas15_10 Programming 9 06-20-2005 10:12 AM
Segmentation fault bondoroyot Linux - Newbie 1 06-14-2005 08:53 PM
Segmentation fault tejas15_10 Linux - Newbie 1 06-14-2005 05:44 AM
segmentation fault? sgm Programming 1 01-25-2003 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration