Explicitly specify input format for conversion

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
tyblc
New Cone
New Cone
Posts: 1
Joined: 11 Mar 2011 21:09

Explicitly specify input format for conversion

Postby tyblc » 11 Mar 2011 21:21

I have a system generating media files without file name extensions. They come in different formats and all need to be converted to mp3.

VLC does not manage to always recognize the input file format correctly. It will sometimes crash or work endlessly and never quit. If I rename the file to include the correct extension (e.g. .aac) VLC will behave better, but since the files are generated, managed and registered externally, I would like to not rename them if possible.

Is it possible to specify the input format as a parameter; or is the file name the only way to specify this? I think there must be a way of specifying this because for streams, there is no file name associated with them.

I use following snippet to convert:

Code: Select all

vlc.exe --intf dummy file "--sout=#transcode{acodec=mp3,ab=96,channels=1,samplerate=22050}:duplicate{dst=std{access=file,mux=raw,dst=outfile.mp3}}" vlc://quit
Also, is it possible to not have to specify the sample rate in the transcode statement and let VLC know that it should take the same sample rate as the input. If I don't specify a sample rate, it will say "Failed to find conversion filter for resampling".

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Explicitly specify input format for conversion

Postby Jean-Baptiste Kempf » 13 Mar 2011 16:39

Use --demux option
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: MSN [Bot] and 37 guests