Download Flash Video Fragmented (F4F/F4M)

Today, for network usage optimization purposes, a lot of videos are streamed and sent to the users as fragmented packets instead of one file. According to Adobe, F4F file is Flash MP4 Video Fragment created and used by Adobe Media Server for HTTP Dynamic streaming like CloudFront, Akamai, … If you want to download this video, you will have to download the script file KSV (download this script on Github) and execute it on a system with php enabled (install PHP on Windows).

Once you’re on the page where video is loading, you have to look for manifest file in source code or network exchanges. This file has F4M extension, correspondig to manifest, which is the file containing the inventory of all the video fragments. It will be necessary for the script execution.

Here is an example of how the command-line should look like (you can modify the quality parameter, and you have to specify the path for manifest file, and output file):

php ksv.php --quality high --delete --manifest 'LINK_TO_MANIFEST.f4m' --outfile 'OUTPUT_FILE.flv'

Here are the different options you can use to customize command-line:

 --help              displays this help
 --debug             show debug output
 --delete            delete fragments after processing
 --fproxy            force proxy for downloading of fragments
 --play              dump stream to stdout for piping to media player
 --rename            rename fragments sequentially before processing
 --update            update the script to current git version
 --auth      [param] authentication string for fragment requests
 --duration  [param] stop recording after specified number of seconds
 --filesize  [param] split output file in chunks of specified size (MB)
 --fragments [param] base filename for fragments
 --fixwindow [param] timestamp gap between frames to consider as timeshift
 --manifest  [param] manifest file for downloading of fragments
 --maxspeed  [param] maximum bandwidth consumption (KB) for fragment downloading
 --outdir    [param] destination folder for output file
 --outfile   [param] filename to use for output file
 --parallel  [param] number of fragments to download simultaneously
 --proxy     [param] proxy for downloading of manifest
 --quality   [param] selected quality level (low|medium|high) or exact bitrate
 --referrer  [param] Referer to use for emulation of browser requests
 --start     [param] start from specified fragment
 --useragent [param] User-Agent to use for emulation of browser requests

All the original sources are available on GitHub : https://github.com/K-S-V/


Comments

20 responses to “Download Flash Video Fragmented (F4F/F4M)”

  1. Your blog post had me hooked from the first sentence.

  2. I am truly thankful to the owner of this web site who has shared this fantastic piece of writing at at this place.

  3. Good post! We will be linking to this particularly great post on our site. Keep up the great writing

  4. I very delighted to find this internet site on bing, just what I was searching for as well saved to fav

  5. This is really interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!

  6. I do not even understand how I ended up here, but I assumed this publish used to be great

  7. I like the efforts you have put in this, regards for all the great content.

  8. Great information shared.. really enjoyed reading this post thank you author for sharing this post .. appreciated

  9. I like the efforts you have put in this, regards for all the great content.

  10. This is my first time pay a quick visit at here and i am really happy to read everthing at one place

  11. This is really interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!

  12. I just like the helpful information you provide in your articles

  13. Good post! We will be linking to this particularly great post on our site. Keep up the great writing

  14. This was beautiful Admin. Thank you for your reflections.

  15. I do not even understand how I ended up here, but I assumed this publish used to be great

  16. Zaproxy dolore alias impedit expedita quisquam.

  17. c:/Windows/system.ini

  18. Zaproxy dolore alias impedit expedita quisquam.

Leave a Reply

Your email address will not be published. Required fields are marked *