Hi,
Still some questions because, running on the thread I feel apparent contradictions.
This I believe that his comes comes from the fact that into the last message I give example of two type of strings :
- Options string of the last page of the GUI stream definition
- Line commands
About the options :
- You tell me
":no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep", those aren't needed.
So I suppose that the options generator creates this by default but it is not useful
- You tell me
You define input as VLC parameter, not as transcode parameter, so e.g
vlc input.avi :sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:standard{access=file,mux=mp4,dst=output.mp4}
This line looks like a simplified command line not an option string. My question was about the options strings with the use of $F parameter.
- You told me into a previous message :
There isn't any easy mask option, you can use $F : full name with path and add another file extension to the end, but if you want better control, use .bat files, .sh scripts or similar.
and now, when I try to find a way to use $F parameter and check the syntax (referring to http://wiki.videolan.org/Documentation: ... mat_String) I propose (to be unconfirmed, but where ?)
The option command, is (like=the generated option command by VLC GUI) :
":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100} :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
I don't see the input definition (I imagine that it is not displayed in options) but no command listed in "string-command" concerned as defined begin of the doc page about "format string".
so I can imagine that #transcode is the command and I can write something like :
":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100},$F='F:\__S28-Data-Backups\B10708\AVI-conv-to-h264-by-VLC\*.mp4 ':no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
or
":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:$F='F:\__S28-Data-Backups\B10708\AVI-conv-to-h264-by-VLC\*.mp4' :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
The *.mp4 that I wrote wants to mean "any of sout-all files input defined by the xspf file" will be written individually converted with "mp4" file extension into the path defined
But this makes nothing.
May be "":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100} : ????,$F='F:\__S28-Data-Backups\B10708\AVI-conv-to-h264-by-VLC\*.mp4' :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
where ???? is a command but which one ?
Yoy answers :
Something like $F='F:\__S28-Data-Backups\B10708\AVI-conv-to-h264-by-VLC\*.mp4' won't work. $F is already defined and you cannot define variables like that in VLC.
So I don't understand anymore, anything : It was just trying to find a way to get from you good samples of the use of "$F" as you have proposed, but you answer :
vlc input.avi :sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:standard{access=file,mux=mp4,dst=output.mp4}
seems to me a simplified sample of command line when I propose a batch script command (on the VLC site "command lines", without taking care of transcode parameter which are out of subject) :
for %%a in (my_playlist.xspf) do cmd /c
"C:\Programme\VideoLAN\VLC\vlc.exe" -I dummy -vvv %%a --sout #transcode{acodec=s16l,channels=2,samplerate=44100}:standard{access=file,mux=wav,dst=g:\_audio_conv\%%a.wav}
vlc://quit
It seems that "input.avi" and "output.mp4" is a sample of files names (input file list and one output file, the reason of the "for" of the script) not parameters. So the command line that I give is a sample of line command but don't contents the good transcode parameter, which don't matters.
The matter was the batch command and a question about the capability of VLC to treat as input xspf files. This seems for the moment impossible, every sample shows that VLC is designed to broadcast, stream n files -> output (which can be any destination and as part of, one unique file).
So If we want to trat several fule and get transcode each one separately we need to repeat manually or use scripting.
Another way could be that the xspf file could content the output file name (or destination) then the batch could become an internal function of VLC.
Your sample give for one file for one file the transcode parameters which I know since the beginning of this thread and are not the subject :
- how can we use the GUI to make a batch treatment of files with the same transcode parameters which produce at the end a file for each file defined into a playlist -with any available restrictions
When at the end I imagine that it is impossible, I ask for the use of xspf file. I had, till now, no answer and I could not find into documentation synthetic information about use of xspf files. I imagine that xspf file are just available to generate a file list into main playlist panel, because it seems without use into extended playlist and for all the functions which uses this extended definition panel. The lonely use seems to "queue" the xspf defined files which are loaded into play list which can be only played to current output device but not converted or streamed.
Be sure that I understand that the whole features and capabilities of VLC are very extended. This leads to complex syntax of command lines. The GUI make this more easy to use in cas we don't need to use sophisticated commands (no time to write or to learn).
One of the current needs is not only to build and play list of file with a "playlist" which can be saved as xspf file (XML), but too, to convert file format and get the result into new file. For the moment I don't got the answer "it is" or "it is not possible " or "it will be" or "it should be" or "we would it should be" or "we are going in a future version that this function will be easy to execute with the GUI".
99% of the job is made by the GUI but at the end it seems that :
- The playlist can't be used for transcoding the group, only file per file selected
- xspf files seems can be used only to load a playlist
- to defined any batch treatment either than playing on current display device, we need to use scripts (the GUI helps to build the parameter for transcoding, if we go to the last screen of stream and forget others options parameters.
- The GUI can be used to treat a playlist (which can't be saved as xspf : no sample found) but the output is only one cumulative stream - can have any destination)
Best regards
Trebly
Note : more your answers are short more they are implying "opened questions", more my answers are long and full of new questions. We invent an 'H' bomb.
So please tell me were I am wrong, this will be obviously useful too for others users (and not false information provided by this forum).
For my first question opened in this thread, I just will write scripts using the help of the options field displayed at the end of the "streaming" command.