Better video streaming quality with ffmpeg

General discussions.

Moderator: moderators

Re: Better video streaming quality with ffmpeg

Postby Aro » Wed Feb 01, 2012 7:28 pm

I changed preset to: -preset ultrafast
Streaming - smooth, Quality - ;)

I don't know where preset location is..

I found something like this:
http://trac.assembla.com/oitjp_turbine/browser/robert/TRUNK/Turbine/ffmpeg/share/ffmpeg?rev=75
Aro
 
Posts: 3
Joined: Wed Feb 01, 2012 5:38 pm

Re: Better video streaming quality with ffmpeg

Postby GJ51 » Wed Feb 01, 2012 10:47 pm

If you donld and install a static build, everything should work.
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: Better video streaming quality with ffmpeg

Postby macbeven » Wed Apr 04, 2012 11:16 am

Well, I think the best solution to increase the ratio quality is to scrap the flv encoding of ffmpeg completely & use H.264 instead.
I'm usually using handbrake to convert files to MP4/AAC & then only use FFMPEG to remux the file into the FLV container.

<Link Removed>
macbeven
 
Posts: 2
Joined: Wed Apr 04, 2012 11:10 am

Re: Better video streaming quality with ffmpeg

Postby Excessive » Sun Apr 22, 2012 10:46 am

Well I'm not too familiar with coding, but I would need something smaller for video streaming in subsonic. The trouble is that I'm on adsl2+ with 691.02kbps upload and when I try to stream video over the internet, it buffers heaps. So I would like some sort of lower bitrate video streaming mod for subsonic with the ability of at least 2 video streams. All my video files are .avi.
Thanks :)
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Re: Better video streaming quality with ffmpeg

Postby GJ51 » Thu Apr 26, 2012 8:10 am

The upload speed is only half the equation. CPU power is also a major factor. You can lower playback speed to as low as 200kbps which will be fine for adsl if your CPU can do the transcoding fast enough. You have to monitor CPU load while the video is playing to see if it's maxing out the CPU.

If you've got enough power everything will run fine, if not you have to use lower res video that your hardware can handle. My experience indicates the the CPU load is proportional to the bitrate difference between the source and the final output.

In your case you probably don't want to exceed 500kbps playback to give you a bit of room on your 690kbps cap. That should work as long as there isn't anything but Subsonic using the upload bandwidth. So then the question becomes "how much power can the CPU provide ?" I recommend at least a quadcore CPU, but I have a 3.0GHz Server that can handle moderate quality video. Blue ray needs a ton of power, only my Corei7 950 or my Dual quad core Xeon can handle blue ray playback without choking. I have a quad core 2.6GHz AMD box that can handle 1080i wtv files. It takes a bit of experimenting to see what each system can handle to get reasonable results.
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: Better video streaming quality with ffmpeg

Postby Robandcathy » Sun Apr 29, 2012 4:57 pm

Didnt know that a blue ray uses so much resources, I to encode to mkv using handbrake, seems like I have minor playback issues, using a I3 quad core, I thought for sure it would be over kill but maybe its not enough, guess I have to look at cpu usage now.
Pain is a state of mind
Weak minded people feel pain
User avatar
Robandcathy
 
Posts: 64
Joined: Mon Sep 12, 2011 12:31 am

Re: Better video streaming quality with ffmpeg

Postby GJ51 » Mon Apr 30, 2012 5:20 pm

While your doing playback, just open taskmanager, click on the performance tab and see if the CPU load is maxed out. That will tell you if that's the problem. I have a few AMD quad core CPU's that can "almost" do the job, but only my Core i7 950 and Dual quad core Xeon boxes can really handle the job with some room to spare.

Even on these boxes if you use video software to rip a blue ray and then convert it to a different format it will take more than an hour to do the conversion. When you're streaming, you're essentially doing the same thing in real time. A real CPU hog!
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: Better video streaming quality with ffmpeg

Postby parabola » Mon Apr 30, 2012 11:43 pm

What made you choose libvo_aacenc? from what I've read its quality is questionable, and lesser than that of libfaac. Also there maybe some licensing issues.

See: http://www.hydrogenaudio.org/forums/ind ... opic=88183
parabola
 
Posts: 5
Joined: Tue Feb 08, 2011 1:54 am

Re: Better video streaming quality with ffmpeg

Postby Excessive » Tue May 08, 2012 4:59 am

Ok .......... I played around a bit with streaming video on 200kbps ....... I streamed to 2 machines on the internal lan at 200kbps and it was all good. Mind u that subsonic runs on an AMD Athlon X2 (socket AM2+), though I plan to stick a quad phenom in it. So I was happy that the machine was fast enough streaming at 200kbps to 2 machines on the internal lan with no buffering. Then I went down the road to a friend's and tried the streaming over the internet at 200kbps it was buffering. I ordered a new modem from my ISP (a netgear DGN2200) and went down the road again and streamed the vid at 200kbps. It was streaming good with no buffering, but when I put a 1 hour dj mix on, it cut out after about 6 minutes and couldn't play the track again, I had to choose a different track. So yes .......... it's a modem case now ......... my old modem buffers on the video and my ISP supplied modem cuts out on the audio after abt 6 minutes. So .......... I'm sending my ISP modem back for credit and I'm gonna have a look at a TP link modem at my local computer shop.
............................................................................................................................................................................
Ok I rang my ISP and told them abt their modem cutting out my SS stream ......... they apparently "changed the line" and now it works good!
Excessive
 
Posts: 33
Joined: Wed Apr 04, 2012 10:19 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 34 guests