Search found 21 matches
- Thu Jan 15, 2015 8:34 pm
- Forum: NESemdev
- Topic: my nes emulator ffnes
- Replies: 16
- Views: 10692
Re: my nes emulator ffnes
update ffnes to v0.5 which including recently changes and improvements.
- Wed Dec 31, 2014 5:53 am
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
sorry, I made a mistake for explanation of ffencoder_audio, the third param of ffencoder_audio is the sample count not the buffer size in bytes. if you want to encode 800 audio sample, you should pass 800, not 800 * 4. And for the recording of ffnes, I also found it was desync after taking a long ti...
- Tue Dec 30, 2014 8:17 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
Don't over-complicate things. For my ffnes emulator, in roughly video rendering frame rate is about 60Hz, if you are using 48000Hz sample rate for 16bit stereo audio, on each video frame, apu will genrate 48000 * 2 * 2 / 60 = 3200 bytes. It means every video frame, I will draw 1 video frame on scree...
- Mon Dec 29, 2014 6:50 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
I suggest you first write some test code for ffencoder, for example, generate random data in audio & video buffer, or some special data such as color bar, sine wave, etc. And then try to use ffencode to encode audio & video into mp4 file. After this, you will exactly know how to use ffencod...
- Sun Dec 28, 2014 6:43 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
Is it worth to try to encode in a different thread? I made the following: i created a thread like this: so at the end of the frame i set "video_record" to "1". The emu run fast, but when i play the video runs too fast, i don't know why. I suggest you first write some test code f...
- Sun Dec 28, 2014 6:26 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
What i fool i was.. it was "pixel format", anyway i the emu turns very slow as it encode the video. it's my emu performance thing. No need to install any other video codec, only using ffencoder.dll is enough. You can try my ffnes, I upload it. After run a rom in ffnes and close it, test.m...
- Sun Dec 28, 2014 3:30 am
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
ffmpeg using many many different pixel and audio formats, some format is using multi-paneled or multi-channel data.
- Sun Dec 28, 2014 2:40 am
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
I'll be honest, i don't know how to encode the video. If i have a ptr to all the ARGB pixels of frame how do i do? thanks. BYTE vbuf[256 * 240 * 4]; void *vdata [8] = { vbuf }; int linesize[8] = { 256 * 4 }; ffencoder_video(encoder, vdata, linesize); vbuf stored the 32bit ARGB data, then vdata[0] =...
- Fri Dec 26, 2014 6:45 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
Yes, you are right.tepples wrote:I assume the number of bytes between the start of one scanline and the start of the next.Anes wrote:what is a "scanline stride"??
- Fri Dec 26, 2014 6:38 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
what's the problem, and how do you fix it ?Anes wrote:I solved it... thanks
- Thu Dec 25, 2014 9:05 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
I know it's an off topic but i need help. well i installed ubuntu and successfully comiled the ffencoder.dll. I made the following to make a .lib file from the .dll: i created a .def file with the four function names and EXPORT in the top of the file. i ran msvc lib tool to make the .lib and it mad...
- Thu Dec 25, 2014 8:47 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
Reading msdn doc i could meke it work the ffencoder.dll The thing is that ffencoder_init() throw me and exception. I don't know if anybody apart of rockcarry uses it, but im doing the following: FFENCODER_PARAMS ffpar; void * ffhandle; ffpar.filename = szMovieDir; //this is the path to the .mp4 mov...
- Thu Dec 25, 2014 8:17 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
I think it's good to compile the ffencoder source files to various versions. For example, Linux, Win32(Visual C++) and Win32(MinGW32). Like this http://libsdl.org/download-1.2.php Yes, for someone, it's really diffcult to build ffmpeg for Win32/MSVC. You need ubuntu, mingw32-gcc, many many other re...
- Tue Dec 23, 2014 8:29 pm
- Forum: NESemdev
- Topic: About Android NDK and GCC problem
- Replies: 11
- Views: 4640
Re: About Android NDK and GCC problem
How about your porting on android platform, does it work now.
- Tue Dec 23, 2014 6:39 pm
- Forum: NESemdev
- Topic: Recording and streaming emu frames
- Replies: 60
- Views: 13713
Re: Recording and streaming emu frames
I have already implemented the video recording of nes emulator. I make a project named ffencoder which code is based on ffmpeg for recording nes emulator audio and video into mp4 file encoding by aac and h264. You can see my project ffnes and ffencoder on github for your reference: https://github.co...