[MPlayer-users] How programmatically determine the correct one of two english soundtracks for an encode

houghi houghi at houghi.org
Sun Jul 8 01:57:29 CEST 2012


On Sat, Jul 07, 2012 at 05:19:22PM -0500, Ron Johnson wrote:
> Metadata regarding what audio track is which is sometimes embedded
> in the title.  HandBrakeCLI knows how to extract it.  I use vlc to
> go through each DVD to decide which titles and audio tracks to
> extract.

If you do a lot (I am working though 300 DVD's right now) then
HandBrakeCLI is good enough. If it is a single DVD, HandBrakeGUI might be
good and easy as well.

> I did the same, using HandBrakeCLI, first to mkv then (because of
> synchronization quirks in pause/restart using mplayer) to mp4.

Never noticed it.
I have made a website that browses the movies directory and when I click
on a movie, starts playing it (on a different monitor). The same website
can change audio and subtitles and a lot more using mplayer in slave mode.
http://www.mplayerhq.hu/DOCS/tech/slave.txt

Using php and exec I can do something like 
`echo seek_chapter 1 0 > /tmp/mplayer.fifo` and go to the next chapter.

I just have some issues with the get_* options. How do I get e.g.
get_file_name to show? When I do `echo get_file_name > /tmp/mplayer.fifo`
I do not see anything.

Slave mode is awesome as I now can use my android easily as a remote
control. :-D


houghi
-- 
>>>> Run the following from the bashprompt if you have the kernel sources
for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 fuck $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less


More information about the MPlayer-users mailing list