STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229417
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2574 · P5147

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/83922565?noj=FRM83922565-30DC" width="1" height="1"></div>

SwfH264

— A small program written in Java that makes it easy to embed a H.264/AAC video into a swf file. Only downside is that the flash must be fully downloaded before playback.




DOWNLOAD

SwfH264_v1.1.0.rar (25.4 MiB) — Extracts to 45.6 MiB.

Designed to run on Windows but you can probably use it to make a swf with an embedded flv on all platforms. Requires Java 7 or higher.

 

If the program doesn't start, right-click "! Run SwfH264.bat" and select Edit to open it in Notepad.
Then replace "javaw" with the complete path to javaw.exe on your machine so the line reads like this:
start "SwfH264" "C:\<your path to java here>\jre<version>\bin\javaw.exe" -Xmx5000m -jar programJar

You can also try changing -Xmx5000m to something lower, like -Xmx1000m, or removing it completely.




DEMONSTRATION

Foxy Lady.swf (4 MiB)

You can see the source bar below the visuals if you resize your browser window to be thin and tall. Note: The source bar was updated in v1.1.0 -- it is no longer so far below the visuals and has a bigger font with darker colors. In the archive: #171005




EXAMPLE

This is how "Foxy Lady.swf" was created:

Program started.
FLV selected.
Pressed "-- SUBS --" and added some subtitles.

For this example I inserted the subs directly inside the program but it is recommended that you instead create a .srt file in a proper subtitle tool and then import it into SwfH264.

It's not only more comfortable and less guesswork with the times but that way you can also save your subs and continue later.

Closed the subtitles window and filled in some information.

You should always give source of the video in the flash!

This appears shortly after pressing the "Go!" button.

Press save to actually write the flash to disk.




MAKING THE FLV


UPDATE: You can now use The Swiff Army Knife to make the FLV file.

I recommend you use The Swiff Army Knife because it has more refined options for ffmpeg (and you don't have to work with the command line yourself).

I plan to eventually have The Swiff Army Knife replace SwfH264 completely.


The whole point of this program is to embed a H.264 FLV into the flash so you shouldn't use the FLV Maker. Instead we'll use ffmpeg.exe to encode the video (the program is included when you download SwfH264).

A "flv.bat" file exists, right-click it and select Edit to open it in Notepad. This should be modified to create the FLV that you desire. When making "Foxy Lady.swf" I kept the default settings and only changed -vb 1250k to increase the video's bitrate, -r 20.0 to make the video 20 fps and scale=-1:ih*0.50 to halve the dimensions.

There's a tab called "Tips for creating FLV" inside the program. You can read its content in the textarea below (the command lines of "flv.bat" is also there).




CONTROLS

A/D or left/right: Seek to previous/next key frame.
W/S or up/down: Increase/decrease volume.
Space: Pause/unpause.
Backspace: Rewind.
ENTER: Show/hide subtitles.
M: Toggle mute.




POSSIBLE IMPROVEMENTS

+ Seamless looping
Right now there is a, usually, small delay when the video repeats. If that little gap was removed the program could be used to create proper swf loops with perfectly synced audio.

+ Audio insertion
If the video can loop seamlessly it would be possible to create proper swf loops with a seperate audio track that isn't synced with the visuals.

+ Better memory management in the resulting SWF file
Right now things are a little sloppy but it works.

+ Streaming video
Currently you have to download the whole video before you can start watching it in the flash. I suspect there is a way around this, possibly by putting lossless images into the main timeline that are filled with bytes from the video. Then as the flash is downloaded these small chunks of the video is extracted from the fake images and gets added to the video stream.

+ Fixed font letter size
Sometimes certain letters in the subtitles become smaller or larger than the rest, depending on the dimensions of the flash. They recover at certain dimensions of the flash but it would be nice if this issue can be resolved.

+ Video Editor
Being able to cut out/put together parts of a video or balance the audio volume.

+ Video Converter
Being able to create that final FLV file from inside the program.

+ Compressed video bytes
As long as they can be decompressed in ActionScript 3 it would be possible to add another layer of compression to the video, if it would reduce the file size even further.

+ Save project
Closing the program to continue later.

+ Export subtitles
Since the program can import a .srt file it might as well be able to export one too.

+ Seekbar
Having a clickable seekbar to be able to jump in the video using your mouse instead of the keyboard.

+ Chapters
Menu of named chapters which takes you to a certain point in the video. Could be used to export several episodes as one combined video and then presenting the available choices of episodes to the viewer. If there's a seekbar the chapters could be red vertical lines that display their name when hovered.

+ Quick jump
Pressing 1234567890 to seek to a certain percentage of the video's duration.

+ More pleasant subtitle creation
Better GUI for inserting subtitles. Maybe even a "timer button" which allows you to watch the video and then press the button to start/end subtitles.

+ Different preloaders
Maybe have a selection of different preloaders to chose from? Could change in type as well as just color.

+ FFmpeg stream selection
Some videos have different audio/video streams. Might be good to mention how to grab the one(s) that you want for your FLV.

+ Subtitle searching
To be able to do a quick CTRL+F kind of search in the added subtitles.

+ Subtitle undo
To be able to CTRL+Z in the subtitle text areas.

+ Extract subtitle
How to extract a .srt file from a video to be used in SwfH264.





VERSION HISTORY

1.0.0 (5jun2015) r1

+ Initial release.

1.1.0 (9jun2015) r2

+ SwfH264 will now parse the FLV upon import and setup the metadata itself.
+ Now able to pause and rewind videos that don't have seeking due to incorrect metadata.
+ Now asks you to confirm when exiting the program.
+ Updated FLV creation tips (reworked due to SwfH264 now handling metadata itself, changed scale width to -1 and added some on audio frequencies).
+ Bundled font Meiryo can now be loaded (couldn't before due to its file extension being in upper case).
+ Darker default colors for the source bar.
+ Inserting a new subtitle will now highlight it and make sure it is in view.
+ Source bar is now further up and is larger with a bigger font.
+ Video frame rate, resolution and duration is now included in the flash meta data and linebreaks are represented by <br> in the metadata instead of actual linebreaks.




Questions or comments? Want an update?

Please post about SwfH264 in its discussion thread.




http://eye.swfchan.com/services/gifshooter/
Created: 5/6 -2015 03:56:34 Last modified: 12/7 -2015 14:55:00 Server time: 30/10 -2024 00:37:06