ERRATA it is a good example of an error in batch definition, but not completely solved, the main problem comes from the position of quotes in the batch which cuts the "VLC://quit" so it is not executed: see the answer.
Nevertheless the files seems not well closed, the stream by WMP, on a system using the mp4 files generated, generates an error at the end "bad encoding" which stops the sequence, this with the parameters given here.
It is the reason why I don't delete the thread.
I first post a detailed item with trace :96587 viewtopic.php?f=2&t=96587, till now without any answer.
I suppose that the formulation is too long and complex.
]Here is a focused summary[/color]
First of all, if I post here it is because :
- the problem encountered seems not localized as depending of the system used but on treatment of video files (all coming from same source)
- After seeking to most of post (keywords : < batch, transcoding, file >) I don't found any answer
A batch (windows) contains the commands :
- For memory and context description : A complex batch to make a lot of transcoding which determine 3 parameter %1=inputfile %2=output file %3=tracefile if VLC sends error to stdoutput. This batch repeats for all occurrences of files names some batch whith same traetment parameters using the list of files contained in file temp.dir. These parameters are submitted to the Sub-conv-exe-test_05.cmd :
Code: Select all
for /F "usebackq" %%f in (temp.dir) do (call E:\cmdfiles\Sub-conv-exe-test_05.cmd "%%f" "%var1%\%%~nf%fext1%.mp4" "%logf1%")
- Files input are AVI file coming from a Samsung S28
The sub contains the vlc command : purpose generate a transcoded file, then close the file and quit VLC :Code: Select all
C:\Progra~2\VideoLAN\VLC\vlc.exe -I dummy -vvv %1 --sout "#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:file{dst=%~2} VLC://quit " >> %3
May be I have not seen additional parameters to say "close the file, and don't play anything", job is ended; but I have not found examples with such commands.
The trace display into the text window "-I dummy", the trace is reported in notes in item 96587.
Thanks I you notice an error of parameters to obtain the purpose : generate the transcoded file, close it and go to next job (is it well done but not closed, and the job don't stop to chain with another treatment, the file closed by job cancel or quit manually are not available for all streaming - locks the chains)
Best regards
Trebly