Arcade
Go Back   Anime Take Forums > AnimeTake > Support
Reload this Page Encoder to linux?
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Narutard
 
Join Date: Dec 2011
Question Encoder to linux? - 12-20-2011, 12:05 AM

Dear Users,
I'm looking for an encoder like xvid4psp to linux. The main feature that i'm looking for:

- mkv to avi convert
- can handle h264 (x264) video without desyncing it from audio
- would burn the subtitle with all of formatting.

I already tried avidemux (which quite easily desyncs audio from video) and mencoder. I don't know of any other program that can burn subtitle on linux, and this two cannot handle formattings/formatted subtitles, at least i never accomplished the same effects as they were on the mkv.

Please if you know some working editor that runs on linux (debian or ubuntu) write it here.

Also: i don't want to use wine, so please refrain from posting windows programs.

Thank you for all the helpful answers!
Reply With Quote
  (#2 (permalink)) Old
Lurker
 
EagleRed's Avatar
 
Join Date: Feb 2010
Send a message via MSN to EagleRed
Default 12-20-2011, 12:44 AM

#!/usr/bin/python
# Little script to depack Matroska file, and repack them
# in a AVI + subtitle format.

import sys
import os

def message(msg):
print "=" * 78
print "= %s" % msg
print "=" * 78

def usage():
print "Mastroka repacker script"
print " Usage: "+sys.argv[0]+ " filename"

if __name__ == "__main__":
if len(sys.argv) < 2:
usage()
else:
filename = sys.argv[1]
basename = filename[:-4]
message("Unpacking file: %s" % filename)
os.system("mkvextract tracks %s 1:temp_video.avi 2:temp_audio.ogg 3:%s.srt" % (filename,basename) )

message("Repacking file: %s.avi" % basename)
os.system("ffmpeg -i temp_audio.ogg -i temp_video.avi -vcodec copy %s.avi" % (basename) )

message("Cleaning files")
os.system("rm temp_video.avi temp_audio.ogg")

You might have seen this before.
It works.
If it doesn't, then learn python. It's easy

EDIT: You need mkvtoolnix for it to work and I'm not getting out any of my machines to check the repos for it. Still hope this helps.

Last edited by EagleRed; 12-20-2011 at 12:46 AM.. Reason: my mistake
Reply With Quote
  (#3 (permalink)) Old
Narutard
 
Join Date: Dec 2011
Default 12-20-2011, 01:07 AM

hi!
It would be good, but it doesn't burn subtitles in the video. Thanks for triing to help!
Reply With Quote
  (#4 (permalink)) Old
Lurker
 
Join Date: Aug 2011
Default 12-20-2011, 05:21 AM

Try HandBrake, link below.

[Only registered and activated users can see links. ]

The windows version can burn subtitles in the video, the Linux version should have the same functionality.
Reply With Quote
  (#5 (permalink)) Old
Narutard
 
Join Date: Dec 2011
Default 12-20-2011, 11:16 AM

Hi!
Thanks for it, i'm already testing it although somehow i can't burn subtitles, can't even add ssa or ass to the subtitle track. Srt-s can't be burned although thats not a problem as converting an srt to ass/ssa is not a big deal.

Also noticed that avidemux has improved quite a lot and tried a few x264 video recoding and the audio stayed in sync. So maybe that's going to be the best choice.
Reply With Quote
  (#6 (permalink)) Old
I'm sexy and I know it
 
commanderA's Avatar
 
Join Date: Oct 2009
Location: Britannia
Send a message via MSN to commanderA
Default 12-21-2011, 03:09 PM

Use mplayer and x264 for Linux. Linux isn't a very good option for encoding though. You'll have to go through a lot to simply hardsub anything. I'd suggest you make a virtual machine and run a windows on it. It's quite easy and efficient to do it with avisynth.


[Only registered and activated users can see links. ]

Last edited by commanderA; 12-21-2011 at 03:12 PM..
Reply With Quote
  (#7 (permalink)) Old
Lurker
 
EagleRed's Avatar
 
Join Date: Feb 2010
Send a message via MSN to EagleRed
Default 12-23-2011, 02:27 AM

Quote:
Originally Posted by commanderA View Post
Use mplayer and [Only registered and activated users can see links. ]. Linux isn't a very good option for encoding though. You'll have to go through a lot to simply hardsub anything. I'd suggest you make a virtual machine and run a windows on it. It's quite easy and efficient to do it with avisynth.
Do this instead of compiling python Mr. OP.

Also keep an eye out for the10 bit binaries for mplayer. Damned if I remember where I got mine.
Reply With Quote
  (#8 (permalink)) Old
Narutard
 
Join Date: Dec 2011
Default 12-24-2011, 02:49 PM

thanks for the help!
I will try with mplayer/mencoder + x264.
I know it's harder on linux, but i simply don't like windows. Linux needs less resources and out of the box installation is more secure, also it is free.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump