Can I rotate a playing FLV video with ActionScript?
Hello,
I have some ActionScript 3 already written. It'd be weird to
explain why I'd want to do this, but basically, I'm playing an FLV
file with the FLV Playback ActionScript. I want to rotate the video
itself as it is playing. It needs to rotate 90-degrees over 15
seconds, (6 frames/sec) and stop.
I tried putting the FLV component in a movie clip, and
tweening the rotation on the FLV component. Then my AS3 event
listener calls a "container_mc.play()", but appears to do nothing
to the FLV. I also tweened a basic shape in the same container and
that visibly rotates, so I'm sure the AS3 is correct.
Also, I'm triggering the rotation by events, not button
presses or mouse actions.
Is there a way to do this?
Yep better ask in the Premeire Pro forums, but while loading their forum page check the cutter tool (C) it will allow you to cut your footage
Similar Messages
-
How to play .flv videos on N900
I need to know, how to play .flv (flash videos) on N900. Phone's media player doesnt support .flv format.
plz help if somone knows......
thanx.install mplayer and kmplayer from the devels, than you can play .flv videos with kmplayer easily (after you set the video player in kmplayer to mplayer from the settings )
Reality is wrong....dreams are for real... 2pac .
don't forget to hit that green kudos -
Playing two videos in actionscript
OK, I'll start by saying taht I'm in the process of learning actionscript. That said, I'm wanting to play two videos with actionscript. I went through a tutorial and using a prebuilt flash player I used the following script
vid.contentPath = "construction.flv";
var vidList:Object = new Object();
vidList.complete= function() {
vid.contentPath = "green.flv";
vid.addEventListener("complete", vidList);
Which worked fine. That said, that was just a test. We are wanting to use the F4 Player. I opened up the player and looked at the actionscript (which is below).
So I have two questions.
1. How do I get this player to play one file? Yeah, I know it's probably a simple question, but looking at it, I have no clue.
2. How would I adjust the actionscript above to work with this player?
import f4.Player;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var video = this.loaderInfo.parameters.video;
var thumbnail = this.loaderInfo.parameters.thumbnail;
var skin = this.loaderInfo.parameters.skin;
var autoplay = this.loaderInfo.parameters.autoplay == 1;
var fullscreen = this.loaderInfo.parameters.fullscreen;
// FLEXSCREEN
var player:Player = new Player(
video, // video url
thumbnail, // preview image
parent.stage.stageWidth, // player width
parent.stage.stageHeight, // player height
skin, // skin
autoplay, // autoplay
fullscreen // fullscreen button
stage.addEventListener(Event.RESIZE, player.resizeEvent);
addChild(player);
// FIX SIZE
var player:Player = new Player(
video, // video url
thumbnail, // preview image
300, // player width
300, // player height
skin, // skin
autoplay, // autoplay
fullscreen // fullscreen button
50, // top
50 // left
// TEST
var player:Player = new Player(
'http://f4player.googlecode.com/files/delicatessen.mp4', // video
'video-thumbnail.jpg', // preview image
parent.stage.stageWidth, // player width
parent.stage.stageHeight, // player height
'skins/default.swf', // skin
false, // autoplay
false // fullscreen button
stage.addEventListener(Event.RESIZE, player.resizeEvent);
addChild(player);Do a search for "picture in picture."
https://www.google.com/search?q=%22picture+in+picture.&oq=%22picture+in+picture.&aqs=chrom e..69i57&sourceid=chrome&es_sm… -
How can I play different videos with only one MediaPlayer?
I want to play two videos with only one MediaPlayer:
private static MediaPlayerBuilder mpB;
private static Media mLogo;
private static Media mSaludo;
private static MediaPlayer mpLogo;
private static MediaView mvLogo;
private static Group gLogo;
public void start(final Stage stage) {
mLogo = MediaBuilder.create().source(myGetResource(VIDEOLOGO_PATH)).build();
mSaludo = MediaBuilder.create().source(myGetResource(VIDEOSALUDO_PATH)).build();
mpB = MediaPlayerBuilder.create();
mpLogo = mpB.media(mLogo).build();
mvLogo = MediaViewBuilder.create().mediaPlayer(mpLogo).build();
gLogo.getChildren().add(mvLogo);
sActual = new Scene(gPozos, WIDTH, HEIGHT, Color.BLACK);
stage.setScene(sActual);
stage.show();When I want to play mLogo:
sActual.setRoot(gLogo);
mpLogo.play();Then, when I want to play mSaludo I do this:
mpLogo = mpB.media(mSaludo).build();
sActual.setRoot(gLogo);
mpLogo.play();or this:
mpB.media(mSaludo).applyTo(mpLogo);
sActual.setRoot(gLogo);
mpLogo.play();or this:
mpB.media(mSaludo);
sActual.setRoot(gLogo);
mpLogo.play();But is impossible to change the Media. It doesn't work. Sometimes I play mLogo video and sometimes (depends on the code) the video mLogo doesn't start and I see an image of the first keyframe and nothing else. I have no exceptions, no errors, nothing.
I want to play mLogo and then mSaludo. How can I do this?
Thanks
NoeliaOk, I understand, if I have 100 videos I have to build 100 MediaPlayers but only one MediaView.
Here I post my code with only two videos, I included all the asynchronous errors.
package pruebafx;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.media.Media;
import javafx.scene.media.MediaErrorEvent;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.stage.Stage;
* @author Solange
public class PruebaFX extends Application {
private static final Logger logger = Logger.getLogger("pruebafx.pruebafx");
private static final String MEDIA_PATH = "/images/";
private static final String VIDEOLOGO_PATH = MEDIA_PATH + "logo.flv";
private static final String VIDEOSALUDO_PATH = MEDIA_PATH + "saludo.flv";
private static Group root;
private static Scene scene;
private static MediaPlayer mpLogo;
private static MediaPlayer mpSaludo;
private static Media mLogo;
private static Media mSaludo;
private static MediaView mediaView;
* @param args the command line arguments
public static void main(String[] args) {
Application.launch(args);
@Override
public void start(Stage primaryStage) {
try {
FileHandler fh = new FileHandler("DisplayManagerlog-%u-%g.txt", 100000, 100, true);
// Send logger output to our FileHandler.
logger.addHandler(fh);
// Request that every detail gets logged.
logger.setLevel(Level.ALL);
// Log a simple INFO message.
logger.info("Starting PruebaFX");
} catch (Exception e) {
System.out.println(e.getMessage());
primaryStage.setTitle("Change Videos");
root = new Group();
mLogo = new Media(myGetResource(VIDEOLOGO_PATH));
mSaludo = new Media(myGetResource(VIDEOSALUDO_PATH));
mpLogo = new MediaPlayer(mLogo);
mpSaludo = new MediaPlayer(mSaludo);
mediaView = new MediaView(mpLogo);
mpLogo.setOnEndOfMedia(new Runnable() {
public void run() {
mpLogo.stop();
mediaView.setMediaPlayer(mpSaludo);
mpSaludo.play();
mpSaludo.setOnEndOfMedia(new Runnable() {
public void run() {
mpSaludo.stop();
mediaView.setMediaPlayer(mpLogo);
mpLogo.play();
mLogo.setOnError(new Runnable() {
public void run() {
logger.severe("Error en Media mLogo");
mSaludo.setOnError(new Runnable() {
public void run() {
logger.severe("Error en Media mSaludo");
mpLogo.setOnError(new Runnable() {
public void run() {
logger.severe("Error en MediaPlayer mpLogo");
mpSaludo.setOnError(new Runnable() {
public void run() {
logger.severe("Error en MediaPlayer mpSaludo");
mediaView.setOnError(new EventHandler<MediaErrorEvent>() {
public void handle(MediaErrorEvent t) {
logger.severe("Error en MediaView mediaView");
logger.severe(t.getMediaError().getMessage());
root.getChildren().addAll(mediaView);
scene = new Scene(root, 300, 250);
primaryStage.setScene(scene);
primaryStage.show();
mpLogo.play();
public String myGetResource(String path) {
return (this.getClass().getResource(path).toString());
}My video saludo.flv hangs up.
Here is the content of the log file:
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
<record>
<date>2011-12-12T12:03:53</date>
<millis>1323702233578</millis>
<sequence>0</sequence>
<logger>pruebafx.pruebafx</logger>
<level>INFO</level>
<class>pruebafx.PruebaFX</class>
<method>start</method>
<thread>12</thread>
*<message>Starting PruebaFX</message>*
</record>
<record>
<date>2011-12-12T12:04:06</date>
<millis>1323702246109</millis>
<sequence>1</sequence>
<logger>pruebafx.pruebafx</logger>
<level>SEVERE</level>
<class>pruebafx.PruebaFX$6</class>
<method>run</method>
<thread>12</thread>
*<message>Error en MediaPlayer mpSaludo</message>*
</record>
<record>
<date>2011-12-12T12:04:06</date>
<millis>1323702246109</millis>
<sequence>2</sequence>
<logger>pruebafx.pruebafx</logger>
<level>SEVERE</level>
<class>pruebafx.PruebaFX$4</class>
<method>run</method>
<thread>12</thread>
*<message>Error en Media mSaludo</message>*
</record>
</log>
Do you know when will be available the 2.0.2 version???
I have to finish my application!!!
Thanks.
Noelia -
What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?
What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?
I writed to Panasonic Italy support about this question:
"What file format can be used to play 3D videos on Panasonic TVPlasma3D with USB PenDrive?"
Panasonic writed me in a very poor manner and said me:
"...riproduce formati: AVCHD (anche 3D), SD-Video, DivXHD, JPEG, MP3, AAC tramite USB e Slot SD/SDHC/SDXC card..."
"...formato : AVCHD estensione file nella SD: .MTS..."
I made a few videos edited with PremiereProCS5 and exported as H.264 Coding and .mp4 file extension, all side by side, with layout 1920x1080pixels that includes two stretched frames at 960x1080 pixels.
This is the same image layout that uses the Panasonic 3D consumer camcorder "HDC-SDT750", that record AVCHD videos with file extension .MTS.
I also tried to export another video as MPEG2 with .mpg file extension.
But at the store the tests failed, and I cannot see anything!
My questions are:
1) What format can be used by PremiereProCS5 for exporting the Stereoscopic 3D videoclip and play them via USB port on Panasonic TVPlasma3D such "TX-P46VT20"?
2) What codec should be used? H.264? H.264-bluray?
3) What file extension should have the movie file? .mp4?
Many Thanks!
Horsepower0171.-I already read entirely those threads, but nothing about stereoscopic 3D AVCHD movies through USB port, on Panasonic TVPlasma3D.
(Also, Sony said me that is not possible to play 3D videos on your 3DTV through USB port).
I tried to made a H.264 videoclip, with .MP4 extension, at 960x1080p side-by-side layout, but nothing was displayed, and black screen.
I think that just the AVCHD movies, with .MTS extension, that comes from Panasonic consumer camcorder "HDC-SDT750", can play the 3D videos via HDMI cable, not USB port.
But not the exported videos from PremierePro via USB port.
I seen this tutorial from David K Helmly:
http://www.youtube.com/user/dhelmly#p/a/u/1/_YtF0c2bmkw
Dave export the video from PremiereProCS5 as "MPEG2-bluray" format with "Match Source Attributes (HighQuality)" Preset, and build the Bluray Disc in EncoreCS5, with the footage as MPEG2 with .m2v file extension:
1) Anyone tried to play correctly in 3D, those MPEG2-.m2v side-by-side files, in Panasonic3DTV, with BlurayDiscReader?
2) Why MPEG2.m2v side-by-side?
3) The official standard stereoscopic 3D format, is not the .MVC (MultiViewCoding) for Bluray3D Disc?
I am confused!
Help!
Horsepower0171. -
High CPU usage when playing flv files with flash
As more and more FLV videos are moving to HD, I'm noticing
high CPU usage and lots of dropped frames when playing FLV video in
web browser with Flash 10. This is true even if the video isn't
full screen. I've tried a variety of browsers (Firefox, I.E.,
Chrome) and the problem occurs on all of them so it's pretty clear
it's a limitation in Flash.
Now my PC isn't high end (it has a Pentium M 1.86 GHz
processor), but I can take those same FLV files and load them in
something like Media Player Classic or Windows Media Player (when
using ffdshow) and play the FLV files full screen with little or no
drop in frames and an acceptable CPU rate.
This is especially annoying on sites like YouTube where I
actually have to save the video and play it back in something other
than Flash to have it play back at an acceptable rate. This doesn't
work for other sites like Amazon.
Why is the CPU usage so high when decoding and displaying
videos when compared to other media players?I've been doing research about this excessively high CPU usage problem (100%!) for weeks because I have also experienced it with my vista home premium laptop. Just recently, I have finally found the solution. The problem is not your browser or your OS or your pc's memory. The problem is caused by authorization for flash player.
Read the link (posted below) carefully and follow the steps accordingly. If you have already done steps 1 through 6 with your computer, you can go straight to step 7.
http://thetechangel.com/blogberry/2008/10/adobe-flash-player-10-fix-for-vista-xp/
PS: I am not the author of that link, so please thank the respective site owner if you find the procedure very helpful.
Please let me know also if the link solves your problem. I am sharing this because Adobe seems unable to provide solutions to this, and I don't want to hear people suffer.
My blog:
http://literaryworks101.blogspot.com
http://bookofsalamat.blogspot.com
Thanks -
On Windows 7, Itunes 64-bit is playing all videos with a green overlay
On Windows 7, Itunes 64-bit is playing all videos with a green overlay. You can see the video, but it's all green-scale (like grey-scale, only green). I've tried setting the Quicktime Direct3D options per Apple knowledge base articles, but to no avail... Windows 7 is all up to date, and I have the latest video drivers installed.
The videos play perfectly in Quicktime (32-bit; I guess there isn't a 64-bit Quicktime?).
Here's a screenshot:
I'd love to get this fixed; it's really baffling and annoying.I had the same problem and surfed around the internet like a maniac. Finally, after several re-openings and re-installs of iTunes, I tried to log on to my account through the "Genius" - which I could. After that I have not had any problems to go to the Store!
Hope it works for you too! -
HT3775 how do you play a video with this format/title DVDSCR XViD AC3-sC0rp?
How do you play a video with this format " DVDSCR XViD AC3-sC0rp" using quicktime?
Try this. It can handle formats Quicktime can't:
VLC -
Hi, I've an iPad Mini with the latest version 6.0.2, a windows 7 Home Premium laptop and iTunes 11.0.1 (12), but I can't synchronize my music or videos with it. I managed to syncronize my books but thats all.
I also have an iphone 5 and everything seems to work fine with it.
I see all movies and music available to be sync but when I click on the sync button, the process starts, the bottom bar shows an increase in consumed space then nothing happens and the bar goes back as nothing was added.
Please help..
I have tried everything but nothing works.Thanks Sk8dreams,
....but I wish I could have lol like u right now..
If I could get a free iPad everything I'd already kept my iPad connected and restarted iTunes, I think I'd have had a truckload of them by now...
I've done all of these..
Like I said earlier I syncd everything to my iphone5 successfully...
I got my PDF ebooks to this same iPad... Films & Music do not seem to be getting through..
I'm sure someone out there knows what to do.. -
Does anyone know why I can only get sound and no video with a compatible component cable?
Does anyone know why I can only get sound and no video with a compatible component cable?
What apps are you trying? TV out video only works with apps that support TV out. If the app does not support TV out you will still get aoudio via the component cable
-
How can i split a long single video with many different scenes in it ?
how can i split a long single video with many different scenes in it ? in premiere pro cs3
Yep better ask in the Premeire Pro forums, but while loading their forum page check the cutter tool (C) it will allow you to cut your footage
-
HT204382 I want to play a video with an .avi format
I want to play a video with an .avi format for the first time on my iMac v. 10.8. ..I downloaded DivX but still no go. Suggestions?
Try http://www.iskysoft.com/topic-snow-leopard/how-to-play-avi-with-quicktime-on-mac .html
Allan -
Can't play .flv video in Flash 8
I have recently converted three videos (each about 4 minutes
long) from .mov to .flv. in order to play them in Flash. However, I
can’t get them to play in Flash 8 Professional. I followed
the instructions in Flash help and imported the video into Flash
using the Video Import Wizard. I tried using each of the four
deployment options starting with “Progressive download from a
web server.” In my video folder I end up with three files for
a video, a Flash Video File (with FLV in the upper left corner), a
Flash Movie File, a Flash Document file, and a ClearOverPlayMute
Flash Movie file. However, when I open any of the files (including
the movie files) and click on Test Movie, the video doesn’t
play. To make things more interesting, I had previously converted
the same three videos from .mov to .flv before editing them and was
able to play all of them in Flash. But I can’t seem to repeat
the process with my new edited versions. I would appreciate it if
anybody could let me know what I am doing wrong.In our experience with doing what you have described is this.
It takes 3 different pages of 3 different codes, to make
something play. Music, Videos-whatever.
html
php
javascript
Why, because someone didn't think forward enough to
incorporate it all into 1 easy to use thing at the time. There are
things available now that will do them all for you (Like my space
does for you), but we don't know where to send you to get them.
Good luck, and please do let us know if you find the proper
converter that will do it all for you and all you have to do is
give it a name, as we have well OVER 10 terabytes of video that we
would LOVE to share with the World, and writing 3 pages of code for
each video will take approximately 437 lifetimes, and we're all on
our last one already........
Dirty South TV -
How can i play .flv videos om my Imac
I have a .flv video. I do I play it on my I mac?
VLC media player - http://www.videolan.org/vlc/ - general media player that plays just about anything.
Perian codecs for Quicktime - http://www.perian.org - plugins to add functionality to Quicktime for playing additional audio and video formats.
Quicktime audio problems, Perian, VLC - http://discussions.apple.com/message.jspa?messageID=9013669 - read note about uninstalling prior DIVX support before installing Perian. -
How can i play a video with dv4 format?
i need to view a cctv video because my imac got stolen and it was caught on camera. I retrieved the file from the cctv but unable to play the video on my macbook pro as the format is in dv4. what application can i download to help me view it? pleaase help. Thanks
The last post in this thread might help.
https://discussions.apple.com/thread/3782011
Maybe you are looking for
-
Text options in the new Preview (Yosemite)
Dear list members, in the old version of Preview (Mavericks), there were several options in the text box tool, such as outlined text. Now in the new Preview (Yosemite), those options are gone. Is there a way to reactivate them? Thanks!
-
Randomly my iPhone 5 will change the date and time on my phone. A message will then come up saying I need to set my date and time in order to send or receive messages. It's on the automatic setting for date and time but this is happening 3 and 4 time
-
Could not able to login into APEX Application
Hi All, Finally with the help of Jes and Anthony, I am bale to see Apex login page and Apex Admin login page. But there are some issues in that, images are not properly displayed and also i could not able to login to admin page and even apex login pa
-
Where are my pictures from iPhoto?
Where did all of my pictures from iPhoto go? I can't find them on my Mac? How do I download my pictures from my iPhone? If I can't download pictures from my iPhone then Apple just killed part of the reason I have an iPhone in the first place. Fix it.
-
HELP CS2 will not install on my new MacBook - it's killing me!
Hi Guys Okay I'm tearing my hair out here! This is carrying on from an earlier issue. I connected my new MacBook to an iBook to transfer my stuff across, the thing is CS2 didn't transfer properly so on the advice of Adobe after trashing what I had tr