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 07-17-2007, 09:12 PM   #1
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,182
Blog Entries: 8

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Unhappy Mencoder crashes on mkv with softsubs


I'm trying to use mencoder to reencode some video files so I can play them on a slower computer (400mhz laptop). It works with various .avi and .mp4 files, and also .mkv files without softsubs.

But when I try to encode a .mkv file with softsubs, I get a segmentation fault. Here's an example of what happens:

Code:
$ mencoder *_04_* -o test.avi -oac mp3lame -ovc xvid -xvidencopts bitrate=800
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Sempron(tm) Processor 3100+ (Family: 15, Model: 12, Stepping: 0)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xe8bce1b
Segmentation fault
Here's an example of how it looks when it's working (with a .mkv file that doesn't have softsubs):

Code:
$ mencoder *_04_* -o test.avi -oac mp3lame -ovc xvid -xvidencopts bitrate=800
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Sempron(tm) Processor 3100+ (Family: 15, Model: 12, Stepping: 0)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xe5c6216
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang jpn
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  704x400  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:704x400  fps:23.98  ftime:=0.0417
==========================================================================
...
The files which work include .avi, .mkv, and .mp4 containers, and various codes ranging from AAC to mp3 to h264 to xvid. So I'm pretty confident that it's a problem with softsubs and not a problem specific to some format or codec.

Please help! This is very frustrating! Thanks!

I'm using Debian Etch with mplayer/mencoder installed from http://www.debian-multimedia.org/
 
Old 07-17-2007, 11:20 PM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,182
Blog Entries: 8

Original Poster
Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Update: I managed to get rid of the segmentation fault by adding the option "-noembeddedfonts". However, the video then decodes with a ton of skipped frames and decoding errors. The result is an unwatchable video with the video skipping forward faster than the audio. Here's what the part with the errors looks like:

Code:
Pos:   0.6s     21f ( 0%)  0.00fps Trem:   6min  39mb  A-V:0.067 [0:191]
Skipping frame!
[h264 @ 0xb763cba8]no frame!.00fps Trem:   6min  39mb  A-V:0.037 [0:191]
Error while decoding frame!
Pos:   0.8s     31f ( 0%)  0.00fps Trem:   8min  47mb  A-V:0.067 [0:191]
Skipping frame!
[h264 @ 0xb763cba8]no frame!.00fps Trem:   8min  45mb  A-V:0.037 [0:191]
Error while decoding frame!
[h264 @ 0xb763cba8]no frame!.00fps Trem:   8min  45mb  A-V:0.040 [0:191]
Error while decoding frame!
[h264 @ 0xb763cba8]no frame!.00fps Trem:   8min  45mb  A-V:0.043 [0:191]
Error while decoding frame!
Pos:   1.0s     41f ( 0%) 35.81fps Trem:   9min  60mb  A-V:0.067 [708:192]
Skipping frame!
Pos:   1.3s     51f ( 0%) 35.39fps Trem:  10min  67mb  A-V:0.067 [654:191]
Skipping frame!
Pos:   1.6s     61f ( 0%) 34.98fps Trem:  11min  73mb  A-V:0.067 [660:191]
Skipping frame!
Pos:   1.9s     71f ( 0%) 34.63fps Trem:  12min  76mb  A-V:0.067 [651:192]
Skipping frame!
Pos:   2.2s     81f ( 0%) 34.39fps Trem:  13min  79mb  A-V:0.067 [642:191]
Skipping frame!
Pos:   2.5s     91f ( 0%) 34.29fps Trem:  13min  80mb  A-V:0.067 [650:192]
Skipping frame!
Pos:   2.8s    101f ( 0%) 34.53fps Trem:  13min  85mb  A-V:0.067 [679:192]
Skipping frame!
[h264 @ 0xb763cba8]no frame!.73fps Trem:  13min  85mb  A-V:0.037 [679:192]
Error while decoding frame!
Also, the subtitles get rendered utterly huge. If I play the original file with mplayer, everything looks great and the subtitles are normal sized. But of course, I can't play the original file on my slow laptop.

Any ideas?

Thanks!
 
Old 07-19-2007, 01:39 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,182
Blog Entries: 8

Original Poster
Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Question Can you pipe mplayer output to mencoder???

Does anyone have any ideas, here? Mplayer plays these .mkv files beautifully, with perfect audio/video sync and non-oversized subtitle fonts. But mencoder has all sorts of errors, causing video to race faster than audio, and the fonts are so huge that any subtitles occupy almost all of the screen.

Is there maybe a way to pipe raw A/V output from mplayer into mencoder?

Thanks!
 
  


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
no sound with mkv files :( lemoncube Linux - Software 0 03-14-2007 08:58 AM
.mkv woes PTG Linux - General 1 11-20-2006 04:28 AM
mkv subtitles problem Dillius Linux - Software 1 09-19-2006 02:52 PM
Kino crashes with mencoder ripped .avi Indkoeti Linux - Software 1 05-16-2006 11:25 PM
MKV to DVD? orias General 5 09-30-2005 09:47 AM

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

All times are GMT -5. The time now is 12:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration