![]() usr/local/etc/mplayer), the user specific one is '~/.mplayer/config'. 'nf' is in your configuration directory (e.g. You can put all of the options in configuration files which will be read every Mplayer -ao pcm:file=%`expr length "$NAME"`%"$NAME" Mplayer -ao pcm:file=%10%C:test.wav test.avi Suboptions) supports a special kind of string-escaping intended for use with NOTE: The suboption parser (used for example for -ao pcm If an option is marked as (XXX only), it will only work inĬombination with the XXX option or if XXX is compiled in. USAGE ¶Įvery 'flag' option has a 'noflag' counterpart, e.g. button 3 and button 4 Decrease/increase volume. button 2 Toggle OSD states: none / seek / seek + timer / seek + timer + total up and down Seek forward/backward 1 minute. Left and right Seek backward/forward 10 seconds. A Cycle through the available DVD angles. D (-vo xvmc, -vo vdpau, -vf yadif, -vf kerndeint only) Activate/deactivate deinterlacer. ! and Seek to the beginning of the previous/next chapter. P Show progression bar, elapsed time and total duration on the OSD. S (-vf screenshot only) Start/stop taking screenshots. s (-vf screenshot only) Take a screenshot. i (-edlout mode only) Set start or end of an EDL skip and write it out to the given file. c (-capture only) Start/stop capturing the primary stream. x and z Adjust subtitle delay by +/- 0.1 seconds. a Toggle subtitle alignment: top / middle / bottom. y and g Step forward/backward in the subtitle list. j and J Cycle through the available subtitles. d Toggle frame dropping states: none / skip display / skip decoding (see o Toggle OSD states: none / seek / seek + timer / seek + timer + total w and e Decrease/increase pan-and-scan range. TAB (MPEG-TS and libavformat only) Cycle through the available programs. # (DVD, Blu-ray, MPEG, Matroska, AVI and libavformat only) Cycle through the available audio tracks. _ (MPEG-TS, AVI and libavformat only) Cycle through the available video tracks. ( and ) Adjust audio balance in favor of left/right channel. + and - Adjust audio delay by +/- 0.1 seconds. U Stop playing (and quit if -idle is not used). Play one frame and then go into pause mode again (any other key Pressing once will pause movie, every consecutive press will p / SPACE Pause (pressing again unpauses). HOME and END next/previous playtree entry in the parent list INS and DEL (ASX playlist only) next/previous alternative source. ENTER Go forward in the playlist, even over the end. BACKSPACE Reset playback speed to normal. Mplayer Halve/double current playback speed. If anyone has a better solution, please do share it.SYNOPSIS ¶ mplayer I hope this helps someone because it took me an incredibly long time to figure out. With the XID of the window you can run mplayer (using TProcess or from the command line) with the -wid option and the movie starts playing as a thumbnail in the upper right-hand corner of the form. Showmessage('Drawing_area XID'+ IntToStr(fWindow)) Gtk_container_set_border_width(GTK_CONTAINER(align1), 10) įWindow := GDK_WINDOW_XWINDOW (Pointer((drawing_area)^.window)) ![]() Gtk_container_add(GTK_CONTAINER(align1), drawing_area) stuff drawing area into the alignment container Gtk_container_add(GTK_CONTAINER(window), align1) Gtk_widget_set_usize (drawing_area, 120, 60) define drawing area and size for embedded clip Gtk_window_set_title(GTK_WINDOW(Window), 'Mplayer') Window := gtk_window_new(GTK_WINDOW_TOPLEVEL) ![]() Over the holidays I started playing around with native GTK and managed to get the desired effect using this code (which doesn't work with GTK 2 for the moment): With the above solution the movie plays in the entire window, but my app requires the movie to be embedded in the form as a small thumbnail. Strangely enough, you can get around this limitation by designing the form with the IDE and adding an invisible scrollbox to it. If you resize the window the movie appears, but the background canvas corresponding to the initial window size remains. What do I need to change so that the video is shown in the window?Īfter playing around for a few days I discovered that the above solution does in fact work. FDisplay := GDK_WINDOW_XDISPLAY(Pointer(PGtkWidget(GtkForm.Handle)^.window)) įWindow := GDK_WINDOW_XWINDOW (Pointer(PGtkWidget(GtkForm.Handle)^.window)) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |