Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Command line encoding of DVD ISO files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 425
Location: Oslo, Norway

PostPosted: Sun Jan 13, 2013 4:44 pm    Post subject: Command line encoding of DVD ISO files Reply with quote

I've ripped my DVD collection into ISO files.

I'm looking for a way to encode the files so that:


  • all languages and sound track formats are maintained
  • all subtitles are maintained
  • encoded into a format so that it can be played using xbmc and andoid media players
  • quality is more important (both for audio and video) than high level of compression
  • encoding must be done using the command line (no GUI SW), presumably using mencoder or similar software which is easily available under Gentoo
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 425
Location: Oslo, Norway

PostPosted: Sun Jan 13, 2013 4:47 pm    Post subject: Reply with quote

BTW:

I've tried the following:

Code:
base=$(basename $iso .iso)

mencoder dvd://1/"$iso" -ovc x264 x264encopts=threads=auto:crf=20:subq=7:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b  -oac mp3lame -lameopts cbr:br=256 -alang no,sv,en,dk,es,fr,ge  -slang no,sv,dk,en,es,fr,ge -vobsubout "$base" -o "${base}.avi"


But I don't seem to get the audio subtitles in such a manner that they can be shown on xbmc. Using mkv for as the final container format might help, but I don't know how to generate it using the cli tools.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4563
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 13, 2013 5:59 pm    Post subject: Reply with quote

media-video/mkvtoolnix for CLI.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 425
Location: Oslo, Norway

PostPosted: Sun Jan 13, 2013 9:28 pm    Post subject: Reply with quote

Thank you, but I can't figure out how to run mkvmerge to achieve what I've described above. Is there a wiki somewhere?
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4563
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 13, 2013 10:42 pm    Post subject: Reply with quote

Sorry, can't answer that, you have to get creative to combine decoding, encoding and muxing. I assume you need CLI because there is a number of files to process. There is another option. Avidemux can do CLI batch processing. I see you want to use AVC, for this I suggest you use 2.6 which is not in portage yet, grab it from GIT repo.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 425
Location: Oslo, Norway

PostPosted: Tue Jan 15, 2013 1:59 pm    Post subject: Reply with quote

I managed to create a mkv file which contained everything I wanted and was playable using xbmc. However, the audio, video, and subtitles were all out of sync :( I even tried to use the copy option to -oac -ovc but still all files were out of sync in the resulting mkv file. I also tried the -vf harddup option without any luck.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum