Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

FLV fixer script

(http://stream-recorder.com/forum/showthread.php?t=12722)

Elgero 12-18-2012 09:10 PM

Re: FLV fixer script


 
Quote:

Originally Posted by svnpenn2 (Post 57655)
I could be wrong but it appears you can fix this by simply remuxing with FFmpeg

FFmpeg fixes the video, so it works in every video player, but it doesn't fix the timestamps. It only changes the timestamp of the keyframes, so they match the other frames.

With the sample video I posted above, I need to skip to 7 minutes before it starts to play the video. The first 7 minutes of the video is basically a still image of the first frame.

First image is before fixing, second image is after fixing.



KSV 12-19-2012 07:50 AM

Re: FLV fixer script


 
@Elgero

i have made some specific fixes to correct files with such odd timestamps. try it out and post your feedback.

http://pastebin.com/2CeNeArd

Elgero 12-19-2012 10:31 AM

Re: FLV fixer script


 
KSV, thank you very much. The timestamps are fixed correctly now.

TubeDigger 12-19-2012 08:56 PM

Re: FLV fixer script


 
Yet Another FLV Fixer: C file and compiled binary. Please test and provide your feedback.

Elgero 12-19-2012 09:19 PM

Re: FLV fixer script


 
TubeDigger, that one works fine too.



The only thing I've noticed is that VLC, MPC and WMP play the fixed videos without problems, but for example BSPlayer keeps playing the first 2/10th of a second over and over again (with both FLV Fixers). It must be BSPlayer, but I wonder what the problem might be. BSPlayer has no problems with playing FLV videos that don't have these odd timestamps.

svnpenn2 12-19-2012 09:31 PM

Re: FLV fixer script


 
Quote:

Originally Posted by Elgero
BSPlayer keeps playing the first 2/10th of a second over and over again

As workaround, you can try clipping first second

Code:

ffmpeg -ss 1 a.flv -c copy b.flv

Elgero 12-19-2012 09:45 PM

Re: FLV fixer script


 
Quote:

Originally Posted by svnpenn2 (Post 57711)
As workaround, you can try clipping first second

Code:

ffmpeg -ss 1 a.flv -c copy b.flv

Thank you very much. BSPlayer can now play them as well.

reumb 12-20-2012 07:48 AM

Re: FLV fixer script


 
Quote:

Originally Posted by TubeDigger (Post 57708)
Yet Another FLV Fixer: C file and compiled binary. Please test and provide your feedback.


this is a best windows noob tool seen here (in my opinion)

just draw/drop your flv f4v to yaflvfix.exe

works allmost on every file ------- great1!

TubeDigger 12-20-2012 08:19 AM

Re: FLV fixer script


 
Quote:

Originally Posted by reumb (Post 57745)
works allmost on every file

For further improvements please upload that problematic videos and post links to them here or via PM.

KSV 12-21-2012 07:28 AM

Re: FLV fixer script


 
i have pushed the update to repo with a bit of more fine tuning.

@TubeDigger

Thanx for your contributions.


All times are GMT -6. The time now is 10:23 AM.