low fps flash video (flv)
i'm trying to convert some really low fps video clips (from cellphones, cameras, etc) to flash. typically they are 2.5fps or even less. it seems to encode properly but then the flv plays back incredibly slowly and without sound. seems like a fps mismatch but specifying it explicitly on the command line didn't help. is this supported? here's the command line i'm using: /opt/mplayer32/bin/mencoder 100_0482.MOV -o /tmp/f28.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=300:acodec=mp3:abitrate=56:autoaspect=1 -vf scale=432:-10,expand=432:324 -srate 22050 -af lavcresample=22050 -noskip -mc 0 -quiet -jsd-
On Sat, 01 Apr 2006 07:25:52 -0800 Jon Drukman <jsd@cluttered.com> wrote:
/opt/mplayer32/bin/mencoder 100_0482.MOV -o /tmp/f28.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=300:acodec=mp3:abitrate=56:autoaspect=1 -vf scale=432:-10,expand=432:324 -srate 22050 -af lavcresample=22050 -noskip -mc 0 -quiet
For mp3 audio, always use -oac mp3lame, never lavc. Perhaps that will help with your sound problem... You haven't mentioned what version you are using, so I'll just give the pre-emptive warning: "Use CVS" if you aren't already. I will look at this a bit more, later, and see if I have any problems.
On Sat, 01 Apr 2006 07:25:52 -0800 Jon Drukman <jsd@cluttered.com> wrote:
i'm trying to convert some really low fps video clips (from cellphones, cameras, etc) to flash. typically they are 2.5fps or even less. it seems to encode properly but then the flv plays back incredibly slowly and without sound.
I created a 2.5fps AVI with sound, then encoded it to FLV, and it plays just fine under Windows with FLVPlayer. Though I did the encoding on Linux with CVS-060330.
RC wrote:
On Sat, 01 Apr 2006 07:25:52 -0800 Jon Drukman <jsd@cluttered.com> wrote:
i'm trying to convert some really low fps video clips (from cellphones, cameras, etc) to flash. typically they are 2.5fps or even less. it seems to encode properly but then the flv plays back incredibly slowly and without sound.
I created a 2.5fps AVI with sound, then encoded it to FLV, and it plays just fine under Windows with FLVPlayer. Though I did the encoding on Linux with CVS-060330.
what command line did you use? to answer your question from the other response: i am using cvs from 3/30/06, built on Red Hat EL4. i'm building on a 32 bit intel box and migrating the binary to an x86_64 dual opteron so i can use the Win32 binary dll's.
On Sun, 02 Apr 2006 08:09:09 -0700 Jon Drukman <jsd@cluttered.com> wrote:
what command line did you use?
Just the basics: -of lavf -ovc lavc -oac mp3lame -lavcopts vcodec=flv -srate 44100
i'm building on a 32 bit intel box and migrating the binary to an x86_64 dual opteron so i can use the Win32 binary dll's.
You lost me on that last bit. You can use the win32 dlls on Intel x86 Linux just as easily.
RC wrote:
On Sun, 02 Apr 2006 08:09:09 -0700 Jon Drukman <jsd@cluttered.com> wrote:
what command line did you use?
Just the basics:
-of lavf -ovc lavc -oac mp3lame -lavcopts vcodec=flv -srate 44100
i got the same results with that. the original video is here: http://s5.yousendit.com/d.aspx?id=3TZSTQZCO19GU1KOSCNVNBKX07 (997KB quicktime mov) here's what -identify says: QuickTime/MOV file format detected. -------------- MOV track #0: 185 chunks, 194 samples ID_VIDEO_ID=0 Image size: 160 x 120 (24 bpp) Display size: 160 x 120 Fourcc: cvid Codec: 'Cinepak' -------------- MOV: longest streams: A: #-1 (0 samples) V: #0 (194 samples) VIDEO: [cvid] 160x120 24bpp 0.750 fps 0.0 kbps ( 0.0 kbyte/s) ID_FILENAME=saturn_spoke.mov ID_VIDEO_FORMAT=cvid ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=160 ID_VIDEO_HEIGHT=120 ID_VIDEO_FPS=0.750 ID_VIDEO_ASPECT=0.0000 ID_LENGTH=15 if you can come up with a command that will generate a proper flv version, i'd be indebted.
i'm building on a 32 bit intel box and migrating the binary to an x86_64 dual opteron so i can use the Win32 binary dll's.
You lost me on that last bit. You can use the win32 dlls on Intel x86 Linux just as easily.
not if you compile mencoder in 64 bit mode. the run time loader won't load a 32 bit dll into a 64 bit binary. it's probably possible to compile a 32 bit mencoder on a 64 bit system but i haven't been able to figure it out. -jsd-
On Mon, 03 Apr 2006 10:50:19 -0700 Jon Drukman <jsd@cluttered.com> wrote:
http://s5.yousendit.com/d.aspx?id=3TZSTQZCO19GU1KOSCNVNBKX07 (997KB quicktime mov)
Well, the FLV is obviously not going to have sound, since that source doesn't.
VIDEO: [cvid] 160x120 24bpp 0.750 fps 0.0 kbps ( 0.0 kbyte/s) ID_FILENAME=saturn_spoke.mov ID_VIDEO_FORMAT=cvid ID_VIDEO_FPS=0.750 ID_LENGTH=15
Well, that's obviously the problem. The video is 15.3s long, with 194 frames, yet the FPS says 0.75... That's precisely why it's been skipping many frames, and/or incredibly slowed-down (using -noskip). You just need to add -fps 1940/153 to your mencoder command-line to get a good FLV file.
it's probably possible to compile a 32 bit mencoder on a 64 bit system but i haven't been able to figure it out.
RC wrote:
VIDEO: [cvid] 160x120 24bpp 0.750 fps 0.0 kbps ( 0.0 kbyte/s) ID_FILENAME=saturn_spoke.mov ID_VIDEO_FORMAT=cvid ID_VIDEO_FPS=0.750 ID_LENGTH=15
Well, that's obviously the problem. The video is 15.3s long, with 194 frames, yet the FPS says 0.75... That's precisely why it's been skipping many frames, and/or incredibly slowed-down (using -noskip).
You just need to add -fps 1940/153 to your mencoder command-line to get a good FLV file.
how did you determine 194 frames? by looking at this? MOV: longest streams: A: #-1 (0 samples) V: #0 (194 samples) i've been running -identify on as many video samples as i can find and it seems like only .mov format provides that output line. is it safe to assume that other file formats are not lying when they report the VIDEO_FPS?
it's probably possible to compile a 32 bit mencoder on a 64 bit system but i haven't been able to figure it out.
yeah, my gcc is not installed properly, according to the FAQ. i'll have to get the system administrators to look into that. -jsd-
On Wed, 05 Apr 2006 10:05:20 -0700 Jon Drukman <jsd@cluttered.com> wrote:
how did you determine 194 frames? by looking at this? MOV: longest streams: A: #-1 (0 samples) V: #0 (194 samples)
No, actually I just let mplayer play through it, and read the last status line: "V: 15.3 194/194". "mplayer -vc null -vo null -ao null -benchmark" works quite well.
is it safe to assume that other file formats are not lying when they report the VIDEO_FPS?
Nope. Asf/wmv in particular just say 1000fps. Because they are variable FPS, you have to guess a good -ofps (not -fps!) value to use (same method as above).
participants (2)
-
Jon Drukman -
RC