FLV fixer scriptI have created a new script for repairing the FLV files based on the flv processing code taken from my another script AdobeHDS. it can help you in following scenarios.
You can use script with following switches: Code:
--help displays this help Code:
https://github.com/K-S-V/Scripts |
Re: FLV fixer scriptWonderful, thanks!
|
Re: FLV fixer scriptChanges:
Code:
1. rebase timestamps to zero + other improvements |
Re: FLV fixer scriptKSV, would it be difficult to write a script or modify the flvFixer script so it can read several chunks/parts from an Flv video and then save them as a single video in one process?
I have quite a few large Flv videos (some are over 2GB) I need to cut first and then join the cut parts together, but I'm having a lot of problems finding a freeware application that can do it properly. Some applications crash with large files, because they want to load the entire video in memory. Other applications can cut only 1 part at once, which takes a lot of time and other applications don't support Nellymoser or Speex audio, even though it's raw file editing. I'd like to edit based on seconds or perhaps milliseconds. I know that every video needs to start on a keyframe, which means it won't always cut exactly on the specified start time, but that's not a problem. For example: --parts 39-249,583-937,1292-1819 cut from second 39 to 249 cut from second 583 to 937 cut from second 1292 to 1819 Save the parts as a single Flv video. |
Re: FLV fixer scriptQuote:
|
Re: FLV fixer scriptQuote:
I'm not a PHP programmer, but I'll play around with the FlvFixer script and maybe I can add it myself. I rather have the PHP script, it gives me more control and I can add little things, like "duration" metadata that some video players require to be able to seek. |
Re: FLV fixer scriptI've been playing around with the FlvFixer script for a while. I know that packet 2021, 4181, 8230 and 10607 are keyframes and I have currently hardcoded them as a test.
The code below works fine, it extracts the parts from keyframe 2021 to 4181 and from keyframe 8230 to 10607. The only problem I don't know how to solve is fixing the timestamps. The timestamps of the first part are fixed correctly, but not the second part. Is there an "easy" fix for that? Code:
while ($filePos < $fileLen) |
Re: FLV fixer scriptQuote:
|
Re: FLV fixer scriptUnfortunately not. AVIDemux is one of those tools that does not support Nellymoser audio, even though it's just raw file editing.
When I load the Flv video it first complains that no audio decoder can be found. When I try to save the video anyway it complains about unsupported audio and that saving the video has failed. |
Re: FLV fixer scriptIMO trying to add editing capabilities (sort of) to this script is out of scope for it's intended purpose though you are free to play around with your copy.
|
All times are GMT -6. The time now is 03:07 AM. |