sawpawan / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

JavaFX Media Player can not play output video created by Javacv 0.5 #311

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
* FrameRecorder recorder = new FFmpegFrameRecorder(name, 
outputVideoSize.width(), outputVideoSize.height(), grabber.getAudioChannels());
* frame = grabber.grabFrame();
* recorder.record(frame);

What is the expected output? What do you see instead?
JavaFX can play an input mp4 video well. After I grab the frames from this mp4 
video and save to another mp4 video, JavaFX media player cannot play the output 
video, but the just audio. Other media players can play well like Gom player.

What version of the product are you using? On what operating system?
JavaCV 0.5 and cppjars in https://code.google.com/p/javacv/downloads/list

Original issue reported on code.google.com by vakkasce...@gmail.com on 30 Apr 2013 at 7:49

GoogleCodeExporter commented 8 years ago
Let's see... http://docs.oracle.com/javafx/2/media/overview.htm JavaFX only 
supports H.264, so you would need to call recorder.setCodec(AV_CODEC_ID_H264) 
before start().

Please ask your questions on the mailing list next time if possible, thank you!

Original comment by samuel.a...@gmail.com on 1 May 2013 at 1:54