[Home]Import Modules/Import Mplayer

Showing revision 5
Difference (from revision 5 to revision 5) (minor diff, author diff)
(The revisions are identical or unavailable.)

Currently being edited!!

Transcode supports the use of mplayer as an import method via -x mplayer,mplayer, leveraging mplayer's miraculous ability to play ANYTHING.

Uwe Malzahn said:

IIRC, you can do:

 -x mplayer="-sub file_containing_the_subs -subpos 93 -subalign 2"

to get subtitles, otherwise refusing to be processed, merged into the stream.


When Mplayer is used to import content that tcprobe can't analyze, it may be necessary to run Mplayer in identify mode and use the results on the transcode command line. See MplayerProbe for an example of how this can be done relatively painlessly.

 transcode -H0 \
           -i your_movie_file \
           -x mplayer,mplayer \
           -f 23.976,2 \
           -g 640x352 \
           -n 0x1 \
           -e 44100,16,2 \
           -y ffmpeg \
           --export_prof dvd-pal \
           -D0 \
           -N 0x2000 \
           -b 384 \
           -m new_movie_name.ac3 \
           -o new_movie_name

If the source file contains multiple video and/or audio streams, it is possible to Transcode these as well:

 mplayer -vo dummy -identify your_movie_file 2>&1 | grep -E "ID_VIDEO_ID|ID_AUDIO_ID"

This gives:

 ID_VIDEO_ID=2
 ID_AUDIO_ID=3
 ID_AUDIO_ID=4
 ID_VIDEO_ID=5
 ID_VIDEO_ID=6
 ID_VIDEO_ID=7
 ID_VIDEO_ID=8
 ID_VIDEO_ID=9
 ID_VIDEO_ID=10

Based on that, say we want to Transcode the third video stream together with the second audio stream:

mplayer -vid 6 -aid 4 -vo dummy -identify your_movie_file 2>&1 | grep -E "VIDEO:|AUDIO:"

Returns:

 VIDEO:  [SVQ3]  400x238  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
 AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)

Now build the Transode line:

 transcode -H0 \
           -i your_movie_file \
           -x mplayer="-vid 6 -aid 4",mplayer \
           -f 23.976 -g 400x238 \
           -n 0x1 \
           -e 44100,16,2 \
           -y ffmpeg \
           --export_prof dvd-pal \
           -D0 -N 0x2000 \
           -b 384 \
           -m new_movie_name.ac3 \
           -o new_movie_name

Transcode Wiki | Import Modules | Recent Changes | Preferences
Password required to edit | View other revisions | View current revision
Edited December 1, 2006 6:45 pm by tarazed.ligo.caltech.edu (diff)
Search: