Question about Televison & Video
Hi Recently i've been trying to fix a really annoying problem with streaming live tv to clients (stuttering and discontinuities). After a lot of tinkering I think i've finally nailed it
I submitted a patch a few months ago that alleviated the problem but didn't completely fix it. See here Fix for streaming discontinuity errors
The root of the problem is that tswriter, tsreader and streamingserver make a lot of unnecessary and an excessive number of read & write disk operations with live tv. Viewing a HD channel on my setup caused MP and tvserver to perform over 11,000 disk IO operations per second (very high for even a fast disk). This patch removes the unnecessary read/write calls and also reduces the frequency that packets are written to disk (every 43 packets instead of 10 - see below). These optimisations reduce the disk IOs by about 90% to ~1,200 per second on a HD channel.
The second cause of the problem is the precise timings that streamingserver seems to require to reliably stream live tv. In this patch i've modified tswriter to dump 43 packets at a time instead of 10. 43 packets equals 8084 bytes which exactly matches the buffer size that streamingserver uses. This, coupled with the reduced number of disk IOs means that the strict timing of streamingserver is matched almost perfectly. The difference has been massive on my setup.
I realise that MP1 is pretty much finished but I think this patch is extremely worthwhile for people who stream to clients for live tv. Give me a shout if you need any more in depth detail.
***** Version 2 *****
I have attached the patch and binaries for version 2. This version reduces disk IO's by a further 75% and adds the enhancements to MPFileWriter. I have no way to test MPFileWriter so it'd be appreciated if theres anyone who can test this - please post if so.
Due to the extra methods used to pass in the channel type, there are a few more binaries included that must be replaced. They are built over 1.2.0 Alpha tag.
TSWriter now writes 172 packets for TV and 10 for radio at a time (reduces disk IOs by a further 75%)
Streaming server changed to use a variable buffer size to match the write frequency (1880 bytes for radio, 32336 for tv)
MPFileWriter patched and matches TSWriter by writing 172 packets for TV and 10 for radio
***** Version 3 ***** (11th January 2011)
I have now attached version 3 of the patch and binaries for the latest SVN 27238. Binaries for earlier versions will be posted tomorrow (Wednesday 12th January).
Please do not use the latest SVN 27238 binaries with any version earlier than 27231, they will not work due to changes made in this and earlier revisions.
Buffer is now throttled in TsWriter and MpFileWriter. When a new channel is tuned, it starts by writing 2, 3, 5 ... packets which increments in 20 steps up to 172 packets for TV and 10 for radio - (Thanks to arion_p for this suggestion)
Several bug fixes in StreamingServer for discontinuity and stream corruption handling (Thanks to davidf for these fixes)
There should be a slight improvement in channel zapping times compared to version 2 (not massively noticeable, probably an improvement of around 0.1 - 0.2 seconds).
The fixes by davidf should help improve RTSP streaming when you have a bad signal or corruptions in a transport stream.
If anyone can test MpFileWriter (analog cards) and post their results, it would be much appreciated
Reported that live TV can sometimes go into slow motion. Please post logs if you see this.
There seems to be a problem when timeshifting on a network drive when the tsbuffer switches to the next file (file not found error - some weird caching problem I believe). An additional fix may be needed for this. Again please post logs if this applies to you.
Radio RTSP streaming performs a huge number of disk read IOs (~20,000) for some bizarre reason. It seems this issue has always been in MP. Additional fix required for this.
File Type: patch StreamingAndDiskIOFix.patch (9.0 KB, 127 views)
File Type: patch StreamingAndDiskIOFixv2.patch (63.3 KB, 90 views)
File Type: zip StreamingDiskIOFix-Binaries-v2.zip (992.6 KB, 141 views)
File Type: zip StreamingDiskIOFix-V3-Binaries (SVN 27238).zip (1,000.0 KB, 106 views)
File Type: patch DiscontinuityFixV3.patch (65.2 KB, 93 views)
File Type: patch DiscontinuityFixV3 (for 1.1.2).patch (65.2 KB, 138 views)
File Type: patch DiscontinuityFixV3 (for 1.2.0 Alpha).patch (65.2 KB, 79 views)
File Type: zip StreamingDiskIOFix-V3-Binaries (1.1.2).zip (996.1 KB, 452 views)
File Type: zip StreamingDiskIOFix-V3-Binaries (1.2.0 Alpha).zip (994.4 KB, 227 views)
Posted on Mar 22, 2011
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Jan 13, 2016 | Televison & Video
Jul 07, 2011 | Televison & Video
press and hold the POWER button
on the TV control panel for 5 or more seconds to reset the TV.
Then connect the TV tt any source like outdoor areiel or cable box etc, select the appropriate input, and retune the TV. First of all, connect it to an external antenna, and set it to autotune.
• You must configure the ANT/CABLE input source before
programming channels (-left-hand column).
• If the ANT/CABLE input signal type is set to Cable, the
automatic channel programming process erases channels
that were previously programmed into the TV's memory.
• If the ANT/CABLE input signal type is set to Antenna, the
automatic channel programming process adds newly found
channels to the existing set of programmed channels (and
does NOT erase channels that were previously
programmed into the TV's memory.) To remove an Antenna
source channel from the memory, you must manually delete
• To tune the TV to a channel not programmed in the channel
memory, you must use the Channel Number buttons on the
• Programming channels when the ANT/CABLE input is
configured for Cable will take substantially longer than when
the antenna input is configured for Antenna. This is normal;
however, once channel programming is finished, you should
not have to repeat the programming process again unless
your Cable TV service lineup changes significantly.
Find out the received channels are clear or not. If they are clear, your TV is perfect, and the input device you connects ot the TV is faulty. OK.
Feb 16, 2011 | Toshiba REGZA 42 in. Flat-Panel LCD HDTV
Feb 06, 2011 | Toshiba REGZA 32RV530U LCD TV
Jan 08, 2011 | Toshiba Televison & Video
Jul 28, 2010 | Toshiba REGZA 42 in. Flat-Panel LCD HDTV
May 01, 2010 | Sharp Televison & Video
Mar 06, 2010 | Televison & Video
Dec 05, 2009 | Toshiba 19LV505 DVD Player
Jun 20, 2009 | Toshiba 32AV500U 32 in. LCD HDTV
27 people viewed this question
Usually answered in minutes!