[MPlayer-users] About files generated by a videocamera

Fabio S. fast at ferrara.linux.it
Wed Sep 14 17:27:13 CEST 2005


Hi all,
I have some question about the behaviour of mencoder with the files I get 
with my new camera Sanyo Xanti C5
First of all, let me point out that it saves mp4 (quicktime) files on a SD 
card.

Since the camera produces a file for every time I press rec, I want to 
join files saved the same day. Moreover, I reencode files because my dvd 
player can't play Sanyo original format. For the latter task, I have no 
problem:

mencoder file.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000:vpass=1:mbd=2:trell:v4mv -ffourcc DIVX

mencoder file.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000:vpass=2:mbd=2:trell:v4mv -ffourcc DIVX

does the job.

To join the files, as suggested by the documentation I use

cat 1.avi 2.avi 3.avi > a.avi
mencoder -oac copy -ovc copy -forceidx -o b.avi a.avi

Of course I would prefer to do this _before_ ripping. The problem is that 
this doesn't work: when I create the index, I obtain a lot of skipped 
frames, the following error

ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

and the resulting file doesn't contain all the files joined.

So, what can I do?

If, on the other side, I first ripp all the small chunks and then I join 
them, then I get a correct file with everything include, but it doesn't 
play nicely: after some time, the video player starts to skip some second 
of video every now and then, the audio get out of synchr and I must stop 
it.

Any hint?
If it can help, I include the output of mplayer on a tipical file obtained 
with the camera.

One last question: somewhere, inside the file, the date of registration 
must be stored, because if I delete the file from the SD card and then I 
copy it back from the computer, the camera shows the registration date in 
the "info" window. How can I obtain it from the file on the pc? I was 
thinking of something like exif for picture but exif (of course?) doesn't 
work.

Thanks a lot

Fabio

85 audio & 196 video codecs
Playing vclp0179.mp4.
Cache fill:  8.79% (737280 bytes)    ISO: File Type Major Brand: ISO/IEC 
14496-1 (MPEG-4 system) v2
QuickTime/MOV file format detected.
--------------
MOV track #0: 20 chunks, 297 samples
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (71)!
Image size: 320 x 240 (24 bpp)
Display size: 320 x 240
Fourcc: mp4v  Codec: ''
--------------
Warning! pts=476160  length=475675
MOV track #1: 20 chunks, 465 samples
Audio bits: 16  chans: 2  rate: 48000
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)!
Fourcc: mp4a
--------------
MOV track #2: 1 chunks, 0 samples
Generic track - not completely understood! (id: 2)
--------------
MOV track #3: 1 chunks, 0 samples
Generic track - not completely understood! (id: 3)
--------------
MOV: longest streams: A: #1 (465 samples)  V: #0 (297 samples)
VIDEO:  [mp4v]  320x240  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) 
decoder)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0" => local 
display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
AF_pre: 48000Hz/2ch/s16le
AO: [oss] 48000Hz 2ch s16le (2 bps)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12  [zoom]
A:   1.7 V:   1.7 A-V:  0.004 ct:  0.022  51/ 51 22%  7%  1.9% 1 0 38%
E




More information about the MPlayer-users mailing list