is there a way to speed up transcoding for offline file?

About encoding, codec settings, muxers and filter usage
socialjazz
Blank Cone
Blank Cone
Posts: 17
Joined: 19 May 2009 09:14

is there a way to speed up transcoding for offline file?

Postby socialjazz » 06 Mar 2010 14:49

I am converting an offline file from one format to another. Is there a way to speed up the conversion. I have tried using input.rate variable but it does not help.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: is there a way to speed up transcoding for offline file?

Postby Rémi Denis-Courmont » 06 Mar 2010 20:03

If you are not rendering the file, VLC transcodes as fast as the CPU and bus can. There is no speed setting.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

socialjazz
Blank Cone
Blank Cone
Posts: 17
Joined: 19 May 2009 09:14

Re: is there a way to speed up transcoding for offline file?

Postby socialjazz » 08 Mar 2010 15:47

I am using windows with VLC 1.0.5
Using the sout parameter:
vlc -vvv "c:\source.avi" --sout=#transcode{vcodec=mp4v,acodec=mp4a,ab=192,channels=2}:standard{access=file,mux=mp4,dst="c:\converted.mp4"}

makes the vlc transcode at 1x speed. Trying other codecs does the same.
What Option string are you using to convert media file at maximum speed?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: is there a way to speed up transcoding for offline file?

Postby Rémi Denis-Courmont » 08 Mar 2010 16:48

It's automatic. There is no way to enable or disable it manually. And by the way, transcoding video is slow. No big news here.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tapif
New Cone
New Cone
Posts: 4
Joined: 04 Oct 2011 19:08

Re: is there a way to speed up transcoding for offline file?

Postby tapif » 04 Oct 2011 19:55

sorry to bring up such an old topic.
Is there any way, on the other side, to read from a file as if it was a live content, in order to force the output to 1x?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: is there a way to speed up transcoding for offline file?

Postby Rémi Denis-Courmont » 04 Oct 2011 21:36

On Linux or almost any other Unix system, you can try this but it will be flaky:

Code: Select all

cat YOUR_FILE | vlc stream:///dev/stdin
You really should let the player autodetect this. Anyhow, if the output requires pacing, pacing will be enabled.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tapif
New Cone
New Cone
Posts: 4
Joined: 04 Oct 2011 19:08

Re: is there a way to speed up transcoding for offline file?

Postby tapif » 05 Oct 2011 00:33

actually my command line is something like

Code: Select all

$ vlc -I dummy "filename" --sout='#transcode{vcodec=h264,venc=x264{vbv-maxrate=400,vbv-bufsize=400,qcompatetol=0, bitrate=400},vb=400,acodec=mp4a,ab=32,scale=1,channels=2,deinterlace,audio-sync}:std{mux=ts,dst=-}' vlc://quit
I haven't tried `cat` but the problem is I would like either the input, the transcoder or the output to be limited to 1x, in order to have into stdout every time instant the 'up to time' output without rendering it on screen.
I'm trying to achieve this so to lower CPU load, as well as to be able to chunk the content properly.
I've found a similar constaint in ffmpeg ('re' flag at command line) but I don't think it's usable in/from vlc

Nwest
New Cone
New Cone
Posts: 1
Joined: 04 Mar 2012 18:07

Re: is there a way to speed up transcoding for offline file?

Postby Nwest » 04 Mar 2012 18:20

A way to speed up transcoding a little bit is to have your original files, the ones to be transcoded, on a seperate hard drive such as an external USB hard drive. This way, the external hardrive is only reading the original files and feeding them into your computer while your computer's hard drive is only occupied with transcoding and writing the transcoded files. Your computer's hard drive will not have to spend time both reading the original files and writing the transcoded ones.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 19 guests