video skipping creates new ffmpeg processes

Need help? Post your questions here.

Moderator: moderators

video skipping creates new ffmpeg processes

Postby tofuSCHNITZEL » Tue Jan 24, 2012 12:55 pm

I'm using subsonic 4.6 on windows server 2008 r2 sp1 with tomcat (6 I think) and iis arp proxy.

When I'm streaming a video in the browser and I use the dropdown menu to skip to a different time a new ffmpeg.exe is created under processes in the taskmanager.
Each time I skip a new ffmpeg process is started but the old ones still occupy CPU resources so I peak a full 100% on all cores pretty fast.

Do you guys know a fix for this?
tofuSCHNITZEL
 
Posts: 10
Joined: Tue Jan 17, 2012 11:18 pm

Re: video skipping creates new ffmpeg processes

Postby ytechie » Tue Jan 24, 2012 1:05 pm

Usually the old ffmpegs go away after a little while. I think it's pretty much normal.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: video skipping creates new ffmpeg processes

Postby tofuSCHNITZEL » Tue Jan 24, 2012 7:49 pm

But the old ones still use CPU resources and if a users skips 3 or 4 times the latest process doesn't get enough CPU power and the playback gets choppy.
Is there a way to kill the old process instantly?
tofuSCHNITZEL
 
Posts: 10
Joined: Tue Jan 17, 2012 11:18 pm

Re: video skipping creates new ffmpeg processes

Postby GJ51 » Wed Jan 25, 2012 8:48 pm

You might try updating ffmpeg. Some users have reported better video results with later versions than what is used on the SS install.

Go to http://ffmpeg.zeranoe.com/builds/ and download the latest static build. Unpack the download with 7-Zip and copy the files to the C:\Subsonic\transcode folder to replace the files from the older version.

Video transcoding does take a LOT of CPU power. You do have to tune you're video playback structure to what's reasonable for your CPU. Or you can do like I did and buy a dual quad core 2.83GHz Xeon server w/ 16GB ram to handle the chore. :wink:

HTH YMMV
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: video skipping creates new ffmpeg processes

Postby ytechie » Wed Jan 25, 2012 8:55 pm

I reported better video results after upgrading ffmpeg, using libx264 codec and using the preset "superfast". Play around with presets - they make a very big difference.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: video skipping creates new ffmpeg processes

Postby tofuSCHNITZEL » Fri Jan 27, 2012 10:55 am

I already use the latest version of ffmpeg and I have a Intel Core 2 quad @ 2.66 GHz and 8 Gig of RAM (which is pretty small thinking an exchange 2010, AD, IIS, FTP, Subsonic is running on that machine)

But I will try and mess with the presets ;) Thanks guys!

Edit:
I was wondering: Where does ffmpeg write the "temporary" flv file that is currently encoded?
tofuSCHNITZEL
 
Posts: 10
Joined: Tue Jan 17, 2012 11:18 pm

Re: video skipping creates new ffmpeg processes

Postby GJ51 » Fri Jan 27, 2012 4:40 pm

You can get reasonable video results with your hardware as long as the videos are not high resolution. When you run a video and see problems, open task manager and check the CPU load. Many factors go into the process that can cause problems, CPU load, hard drive activity, and bandwidth are the major bottlenecks.

I finally have smooth running video at all resolutions - but only after putting SS on a server running dual quad core XEON CPU's running at 2.83 GHz. Maybe a bit of overkill, but it will transcode and stream 3 blue ray quality videos at the same time without pauses. i use it mostly for watching Recorded TV - 1080i wtv files.

I also dropped back to version 4.5 on this system as I was having a few issues with video on Android with 4.6. Version 4.5 "feels" a bit snappier to me as well when changing menu screens. I also like the better control over the transcoding settings in 4.5. Just one man's opinion. 8)
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests