Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
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 --debug show debug output --nometa do not save metadata in repaired file --fixwindow [param] timestamp gap between frames to consider as timeshift --in [param] input filename of flv file to be repaired --out [param] output filename for repaired file Code:
https://github.com/K-S-V/Scripts Last edited by KSV : 03-02-2013 at 08:39 AM. |
#2
|
|||
|
|||
Re: FLV fixer scriptWonderful, thanks!
|
#3
|
|||
|
|||
Re: FLV fixer scriptChanges:
Code:
1. rebase timestamps to zero + other improvements 2. added nometa switch to remove metadata from repaired file |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
Re: FLV fixer scriptQuote:
|
#6
|
|||
|
|||
Re: FLV fixer scriptThank you. Do you know if ffmpeg can cut multiple parts with one command? The only commands I can find are -ss (start time) and -t (duration) to cut one part. This is what I'm already doing and it takes too long to do this all step by step. Or perhaps I need to write a batch script to do this.
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. |
#7
|
|||
|
|||
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 FOR %%A IN (*.flv) DO ( IF NOT "%%A"=="temp.flv" CALL :FIX "%%A" ) GOTO END :FIX ECHO ------------------------------------------------------- ECHO - Fixing %1... php "FLV fixer.php" --nometa --fixwindow 1000 --in %1 --out "temp.flv" ECHO Injecting MetaData with yamdi... yamdi.exe -i "temp.flv" -k -o %1 ECHO Done! ECHO: GOTO :eof :END ECHO ------------------------------------------------------- ECHO Deleting temporary file... DEL /Q "temp.flv" ECHO: ECHO All done! ECHO ON @PAUSE 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! |
#8
|
|||
|
|||
Re: FLV fixer scriptFLVFixer for Windows anyone ?
|
Tags: flv fixer |
Thread Tools | |
Display Modes | |
|
|