Page 1 of 1

How to reproduce exact parameters of a convert profile to a transcode command line ??

Posted: 20 Jan 2018 22:34
by Oxalite
Hello everybody,

I used the "Vidéo - H. 264 + MP3 (MP4)" profile from the interface to convert a .m3u8 stream in a MP4 file on HDD.
The result is about 14 MB, and a thumbnail preview appears instead of the icon of VLC in the folder.

I tried to use the command line to get the same result, but I only manage to obtain a vidéo which weight is about 50 MB and without any thumbnail.

Here is the command line I used after looking at parameters in VLC :

Code: Select all

vlc.exe http://example.com/stream.m3u8 :sout=#transcode{venc=x264{profile=high,preset=ultrafast,tune=film,level=0},vb=0,acodec=mpga,ab=128,channels=2,samplerate=44100} :std{access=file,mux=mp4,dst=PATH+FILENAME}
I tried to change the "vb" parameter to get the same data rate, but failed.

My file data rate is about 1340 Kbits/s and the file generated with the profile from the interface is about 245 Kbits/s.

Does someone know how I could get the exacts parameters to transcode the vidéo the way the profile does (and for the thumbnail too) ?
I checked the vlc-help.txt file, the Wiki and Google during hours, but with no luck

Thanks for your help

Re: How to reproduce exact parameters of a convert profile to a transcode command line ??

Posted: 21 Jan 2018 22:19
by mederi
You can use the streaming wizard (Media > Stream...) where you can see the streaming output string in the last step there.

Re: How to reproduce exact parameters of a convert profile to a transcode command line ??

Posted: 24 Jan 2018 00:12
by Oxalite
You can use the streaming wizard (Media > Stream...) where you can see the streaming output string in the last step there.

Thank you mederi for your response.
Indeed, I can see the command line used by the profile (slightly different than mine) BUT, I still get a file within 30 MB instead of 19 MB (due to the data bitrate higher than the one of the file generated by the interface).

I suppose that the difference is that in one case I use stream to a file, and in the other case I use a "conversion" (certainly with some compression).

Does anyone have another idea please ?

Good news ! => this way I have a thumbnail of the vidéo instead of an icon from VLC...

PS : maybe my english is not perfect, I'm sorry, I'm French.