[MPlayer-dev-eng] [SURVEY] change mencoder's default ofilename extension?

Reynaldo H. Verdejo Pinochet reynaldo at opendot.cl
Sat Nov 26 00:43:02 CET 2005


Default output filename of mencoder is always test.avi
regardles of the muxer been used. Without trying to step
on a 'extension are/arent meaningles' flame, think about
windows user/progs that rely on filename extension to make
'open-with' asociations, icons disposal, etc. it may even
be some apps that rely only on the extension for filetype
identification.

My first idea was to choose proper extension based on
MUXER_TYPE, problem is things get weird with MUXER_TYPE_LAVF
, after spoken to ShadowJK he pointed out that maybe the
best aproach (if any) is to remove the .avi extension on
test.avi. been 'test' such a commonly used name we may
choose to use something like mencoderoutput, mediaout,
unamedstream, outfile, etc. attached patch uses 'outfile'.

what do you think?

Best regards

   Reynaldo H. Verdejo Pinochet

ps: btw, this closes Bug #406
-------------- next part --------------
? wvdial.confg
? TOOLS/.dvd925.sh.swp
? TOOLS/dvd925.sh
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.320
diff -a -u -r1.320 mencoder.c
--- mencoder.c	21 Nov 2005 22:53:14 -0000	1.320
+++ mencoder.c	25 Nov 2005 23:38:39 -0000
@@ -167,7 +167,7 @@
 unsigned int vobsub_out_index=0;
 char *vobsub_out_id=NULL;
 
-char* out_filename="test.avi";
+char* out_filename="outfile";
 
 char *force_fourcc=NULL;
 int force_audiofmttag=-1;
Index: DOCS/man/en/mplayer.1
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/man/en/mplayer.1,v
retrieving revision 1.1161
diff -a -u -r1.1161 mplayer.1
--- DOCS/man/en/mplayer.1	23 Nov 2005 00:27:25 -0000	1.1161
+++ DOCS/man/en/mplayer.1	25 Nov 2005 23:38:54 -0000
@@ -6065,7 +6065,7 @@
 .
 .TP
 .B \-o <filename>
-Outputs to the given filename, instead of the default 'test.avi'.
+Outputs to the given filename, instead of the default 'outfile'.
 .
 .TP
 .B \-oac <codec name>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051125/5d34b3dc/attachment.pgp>


More information about the MPlayer-dev-eng mailing list