[MPlayer-users] issue when merging FLV files

Rob Desilets rd at icalc.com
Tue Mar 9 20:49:10 CET 2010


Hi,

I have mencoder installed on a linux box in a hosted environment. We 
provide a service where schools can broadcast their sports games over 
the net using ustream.tv.

We are getting post notifications from ustream.tv when new recordings 
are completed. They post us a URL to a FLV file that I download to our 
server.

I am using mencoder to merge each new FLV together as we want our web 
site to show one long file.

/home4/yoursch1/mplayer/mencoder 
/home4/yoursch1/public_html/recordings/events/final/264.flv.orig 
/home4/yoursch1/public_html/recordings/events/raw/18.flv -o 
/home4/yoursch1/public_html/recordings/events/final/264.flv -of lavf 
-oac copy -ovc lavc -lavcopts vcodec=flv

I start with File A.

When File B comes in, I merge it with A. The merge takes place and my 
file size is around 3.8MB. The flv plays great.

When File C comes in, I merge it with A (which is now really A + B). The 
merge takes place and my file size is around 5.4MB. The flv plays great.

When file D comes in, I merge it with A (which is really now A + B + C) 
but the file size drops to around 2.5MB and when viewed in a flash play 
is plays at like double time which to me implies something went awry in 
the merge.

However, the log output of mencoder looks perfect, just like the other 
merge's.

1 duplicate frame(s)!
Pos: 341.4s  13466f (100%) 84.06fps Trem:   0min  23mb  A-V:-0.019 [532:47]
1 duplicate frame(s)!
Pos: 341.4s  13467f (100%) 84.03fps Trem:   0min  23mb  A-V:-0.019 [532:47]
1 duplicate frame(s)!
Pos: 341.5s  13468f (100%) 84.04fps Trem:   0min  23mb  A-V:-0.019 [531:47]
1 duplicate frame(s)!
Pos: 341.5s  13469f (100%) 84.03fps Trem:   0min  23mb  A-V:-0.019 [531:47]
1 duplicate frame(s)!
Pos: 341.5s  13470f (100%) 84.02fps Trem:   0min  23mb  A-V:-0.020 [531:47]
Flushing video frames.
Writing index...

Video stream:  531.966 kbit/s  (66495 B/s)  size: 22710936 bytes  
341.540 secs  13470 frames

Audio stream:   47.775 kbit/s  (5971 B/s)  size: 2039856 bytes  341.577 secs


Any ideas would be greatly appreciated.

-Rob




More information about the MPlayer-users mailing list