Log in

View Full Version : FFmpeg and dvdauthor - Using pipes


kenmasters1976
25th February 2010, 04:47
I'm trying to author a simple DVD using the CLI with FFmpeg and dvdauthor. First, I convert the source video to DVD format using the -target ntsc-dvd preset in FFmpeg, then I use spumux to mux some text SRT subtitles with the video and then I use dvdauthor to get the finished, ready to burn DVD folders.

Now, what I'm trying to do -if possible- is to use pipes to, say, redirect the output from FFmpeg directly into spumux. Is it possible?. I tried but couldn't get it to work. More important, do I actually get some benefit (in terms of speed, CPU/HDD load, etc.) by using pipes?.

Thanks.

[EDIT:] I'm using Windows XP.

[EDIT 2:] Never mind. It was actually rather simple. This command works to get the output from FFmpeg into spumux (I've omitted some options in FFmpeg for simplicity):

ffmpeg.exe -i source.avi -target ntsc-dvd - | spumux.exe subtitles.xml > target.vob

Now I just have to figure one more pipe to get the result of this one directly into dvdauthor and everything will be ready to go.

[EDIT 3:] It seems that getting the output from FFmpeg into spumux was the easy part. I don't know how to pipe the resulting .vob file into dvdauthor. Is it possible?. Another alternative would be to have dvdauthor use the same .vob file for the output instead of generating -and fixing- a copy in the target directory.

I'd appreciate any help.

hatetea58
11th March 2010, 08:20
With a windows system you are unlikely to see any performance gain by using pipes instead of intermediary files; it may even produce a performance hit due to increased pagefile useage. The best thing that you can do to improve performance is to use two or more physical HDDs (or, even better, SSDs!) and alternate the source and destination files between them. If you have massive amounts of RAM, then using a RAM drive for temp files will help.

Slainte

kenmasters1976
16th March 2010, 00:05
With a windows system you are unlikely to see any performance gain by using pipes instead of intermediary files... It's good to know it.

The best thing that you can do to improve performance is to use two or more physical HDDs... I guess this is the only option I can really choose, so that's what I'll do.

Thanks for the answer.