Re: be-at.tv changed their internal urls - how to download?Quote:
Download sfk169.exe from sourceforge. Description of the feature that would do the job. Very crude example of batch file (has little error checking) that uses sfk169.exe to strip the bytes and copy them with the first file to joined.flv. joinflv.bat: Code:
rem @echo off Code:
joinflv.bat usage: Edit: Check your source files carefully before using this batch file on any non-AVC encoded session, or any session other than: Code:
h..p://www.be-at.tv/brands/jaarbeurs-utrecht/timewarp-2012/marcel-fengler In all cases, this binary file copy method will work, but for some (possibly many) sessions, the offset may need to be changed from 32, to quite often 13, but possibly other values as well.. However, ffmpeg with work with many sessions. All my attempts to maintain sync, with this session in particular, failed with the concatenate feature of ffmpeg, although this is probably not a problem with ffmpeg itself. Note that due to the source material in these files, it can be difficult to check sync. I checked it by comparison of the waveform segment of the audio and the corresponding video frame, as well as the overall time length of the video. |
Re: be-at.tv changed their internal urls - how to download?Stripping first 32 bytes isn't gonna work reliably with different files. you are assuming that first flv packet is 'AVC sequence header' and it's of same length for different files which isn't true. a better way to join those files is explained below:
1. create a new folder (BeatConvert) and copy BeatConvert.php, FlvFixer.php, FFMpeg.exe to this folder. 2. now create a new bat file (BeatConvert.bat) with following content: Code:
if exist "List.txt" del "List.txt" if everything goes as expected a new file (Final.mkv) will be created which should be in sync. |
Re: be-at.tv changed their internal urls - how to download?Quote:
Quote:
Quote:
Code:
h..p://www.be-at.tv/brands/jaarbeurs-utrecht/timewarp-2012/marcel-fengler Code:
h..p://cdn.be-at.tv/001196/128/1250/0000.beat The resulting files it produced: Final_fixed.flv Time length: 01:35:34 Final.mkv Time length: 01:35:34 Time length of video when played in flashplayer: 01:32:28 Time length of video when joined by binary file copy method I mentioned in my previous post: 01:32:28 (it could show up as 01:32:27 on some players) If you have any ideas, I'm all ears. But I do agree to caution anyone before using the batch file that I just posted to check the source .flv files after processing with BeatConvert.php. |
Re: be-at.tv changed their internal urls - how to download?can you post the debug log of FlvFixer.php?
Code:
php FlvFixer.php --in Final.flv --out Final_fixed.flv --nometa --debug 2> Debug.txt |
Re: be-at.tv changed their internal urls - how to download?Sure, thanks. The log seems oddly formatted? But here is what spit out from the command line you specified.
Edit: There was an error in the first copy of the above log. Updated Debug.zip w/ Debug1a.zip. It could be that something is off with their encode of just this particular session. For comparison, here is the debug log from FlvFixer.php for the .flv file joined by binary file copy rather than ffmpeg. |
Re: be-at.tv changed their internal urls - how to download?i have analyzed your logs. strangely the file concatenated by ffmpeg is missing most of audio video data contained in 0000.flv but when i try it on my side everything seems ok. are you sure you are using the latest version of ffmpeg?
|
Re: be-at.tv changed their internal urls - how to download?hmm. that's kinda odd. I'm at a loss.
I had tried several versions of ffmpeg along the way while working with this particular set of files from this session. I just used the newest version: ffmpeg version N-60240-ge1cb6dc built on Jan 29 2014 22:01:42 with gcc 4.8.2. (GCC) Are you using the same version of ffmpeg referenced above? And it produced a ffmpeg concatenated file with a length of 01:32:28 (or 01:32:27 on some players)? For anyone else following this thread, use the ffmpeg method shown in ksv's example. If the time length of the produced file matches the web player (or is -1 second off), it is very likely synced properly. In all cases, this binary file copy method will work, but for some (possibly many) sessions, the offset may need to be changed from 32, to quite often 13, but possibly other values as well. |
Re: be-at.tv changed their internal urls - how to download?Final_fixed.flv Time length: 01:35:34
Final.mkv Time length: 01:35:34 same here with using KSVs batch. :-( |
Re: be-at.tv changed their internal urls - how to download?Quote:
Ffmpeg will quite often work with many sessions, but I have found about a dozen sessions that it has problems with, although this is probably not a problem with ffmpeg itself. In all cases, the binary file copy method will work, but for some (possibly many) sessions, the offset may need to be changed from 32, to quite often 13, but possibly other values as well. When you do the binary file copy method, you have a copy of the server file as they muxed it - as there is no remuxing involved. |
Re: be-at.tv changed their internal urls - how to download?@blimey: joined.flv is 01:32:27, thanks! :-)
Anyone knows (if we can't find a solution that works for all types), how I can easily see if I should use your batch, KSVs batch, or even have to alter your batch to a different size of byte to strip? |
All times are GMT -6. The time now is 04:56 PM. |