Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-04-2014, 11:44 PM
hsl hsl is offline
Junior Member
 
Join Date: Nov 2014
Posts: 2
hsl is on a distinguished road
Default

rtmpdump corruption prevention


Are there any known methods on how to guarantee rtmpdump's output to be fully corruption free? My understanding of the problem is that corruptions sometimes happen when rtmpdump drops the connection and resumes (could someone clarify on this part?).

My current script uses the following algorithm to run rtmpdump:
Code:
while True:
    rtmpdump //start a fresh rtmpdump download
    rtmpdump --resume //resume if necessary
    rtmpdump --resume //resume if necessary
    output = rtmpdump --resume //do a final check with resume
    if output contains "Already Completed":
        break
So if a video cannot be completed in 4 resumes, it starts a fresh download. From personal experience, this prevents quite a bit of corruption; however, it's not perfect.

I was doing some research and I found K-S-V's FlvFixer.php script. I'm not sure exactly sure how it works, but I was wondering what if I used it to augment my current code to make it like this:
Code:
while True:
    rtmpdump //start a fresh rtmpdump download
    call FlvFixer.php on partially/fully completed file
    rtmpdump --resume //resume if necessary
    call FlvFixer.php on partially/fully completed file
    rtmpdump --resume //resume if necessary
    call FlvFixer.php on partially/fully completed file
    output = rtmpdump --resume //do a final check with resume
    if output contains "Already Completed":
        break
Would this be able to prevent all corruptions? What do you think?

Thanks.
Reply With Quote
 
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:07 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons