Re: FLV fixer scriptQuote:
It always stops on: Code:
ERROR: Closing connection: NetStream.Play.StreamNotFound |
Re: FLV fixer scriptQuote:
I have some live files I ripped 3 weeks ago with the outdated (2.4 original) version of rtmpdump. They do appear to be corrupt, as they crash every tool i throw at them. I have no way to re-obtain another dump since it was a live concert webcast. An example of what I am working with for source material: https://mega.co.nz/#!lxlSVKJD!XpjbrT...KoCkkHGe HSFE |
Re: FLV fixer scriptThis is the output I get when running your php script:
Code:
# php flvfixer.php --nometa --in 1a.flv --out fixed.flv --debug |
Re: FLV fixer scripti am not gonna download 2 GB file just to explain the method. only upload first 10 MB of file.
|
Re: FLV fixer scriptQuote:
Is there a windows shell command I can use to save just the first 10MB of the file into a new one? I'm not exactly sure how to do that. Thank you for your patience and kindness. I am desperately in need of your help, as I have a number of files that have this exact problem. I know how to avoid it in the future now using your custom compiled version of rtmpdump, but would like to be able to get useable footage out of some of the stuff I already ripped with the old version. |
Re: FLV fixer scriptsave the following script as trim.php and run the command line
Code:
php trim.php "input video.flv" Code:
<?php |
Re: FLV fixer script |
Re: FLV fixer scripti have analyzed it. it doesn't seems like the original capture from rtmpdump. have you ran any other tools on this file? it seems messed up at many places. provide original unaltered rtmpdump trim.
|
Re: FLV fixer scriptHi!
I'm sorry to necro this thread, but I have been using this script for a long time to repair my MFC recordings. I always notice that the videos, specially the long ones had a slow motion after a while and the audio was not synchronized. Only now that I paid attention to it. It seems the problem was in the "FLV fixer.php" itself, the default value of FRAMEFIX_STEP of 40 was too high. After many tests I found that the value of 22 is ideal so I changed the line on the script to: define('FRAMEFIX_STEP', 22); With this the sound seems fine and so is the motion. To further repair the files I also created a small bat script (ex: FLVfixer.bat) to repair any FLV in the same folder, it calls the "FLV fixer.php" and uses the "yamdi.exe" (search the net for it) to recreate the metadata, so it needs this 2 files in the same folder. It first repairs the flv into a temporary file and then the yamdi uses the temporary file to rewrite the original one. This is the DOS BAT script if anyone wants this easier way of repairing many MFC FLV files in the same folder: Code:
@ECHO OFF yamdi.exe -i "temp.flv" -k -o .\OK\\%1 To repair old flv repaired by "FLV fixer.php" that got this slow motion problem, you need to edit the "FLV fixer.php" and after editing the line: define('FRAMEFIX_STEP', 22); You also need to change the line: if ($timeShift > $fixWindow) to if ($timeShift == 40) Thank you KSV for this script. Regards! |
Re: FLV fixer scriptFLVFixer for Windows anyone ?
|
All times are GMT -6. The time now is 10:20 AM. |