Discussion:
[FFmpeg-user] [Help] How to convert DVR files?
Andrea Ambu
2010-10-11 14:07:56 UTC
Permalink
Hi everybody,

I've been asked to convert a bunch of DVR files to some more playable
format (like mpeg?).
They come from some security camera and I don't know why they use that
hostile format, the only
way I've been able to play them is with ffmplay, vlc and mplayer didn't work.

Now, I'm a total newbie with ffmpeg, and tried some guides online but
without any success on this format (I tried the same command for an
avi file I got and it worked so my installation should be fine,
shouldn't it?)

I've 2500+ files to convert (and if possible join, they last less than
a minute), is there any wise user who can help me here?

I can't share video sample.
--
Andrea
JD
2010-10-11 16:53:19 UTC
Permalink
Post by Andrea Ambu
Hi everybody,
I've been asked to convert a bunch of DVR files to some more playable
format (like mpeg?).
They come from some security camera and I don't know why they use that
hostile format, the only
way I've been able to play them is with ffmplay, vlc and mplayer didn't work.
Now, I'm a total newbie with ffmpeg, and tried some guides online but
without any success on this format (I tried the same command for an
avi file I got and it worked so my installation should be fine,
shouldn't it?)
I've 2500+ files to convert (and if possible join, they last less than
a minute), is there any wise user who can help me here?
I can't share video sample.
At the simplest level, you can just invoke ffmpeg like this

ffmpeg -i yourfile.dvr yourfile.mp4

will encode the dvr into an mpeg4 file.

and of course there are a ton of filters you can add, which
I am not much of an expert in.
Andy Civil
2010-10-11 17:33:32 UTC
Permalink
Post by Andrea Ambu
Hi everybody,
I've been asked to convert a bunch of DVR files to some more playable
format (like mpeg?).
They come from some security camera and I don't know why they use that
hostile format, the only
way I've been able to play them is with ffmplay, vlc and mplayer didn't work.
Now, I'm a total newbie with ffmpeg, and tried some guides online but
without any success on this format (I tried the same command for an
avi file I got and it worked so my installation should be fine,
shouldn't it?)
I've 2500+ files to convert (and if possible join, they last less than
a minute), is there any wise user who can help me here?
I can't share video sample.
When you're searching for answers, beware DVR-MS (Microsoft) and Digital Video
Recorder files, because they're different. Use the term CCTV in your search query.

It appears that you're not the only one suffering this problem. Many people have
the same need, and some have resorted to playing the file in their CCTV
software, and capturing it with CamStudio!

I think there are a number of different formats that CCTV cameras use with the
DVR extension, and they don't feel the need to be compatible with each other:
they expect you to use the software that came with the system.

Your best bet is to use the software supplied. Does it have an export function?

You describe using "FFmplay" but I don't think there's any such thing; was it a
typo for 'FFplay'? If FFplay works, then you have a good chance that FFmpeg can
convert it.

Even if you can't post an actual video sample (I understand!) it would be useful
to see the output from ffprobe, and also what error messages you get if you
attempt to convert with ffmpeg. Try the simple command that JD posted "ffmpeg -i
yourfile.dvr yourfile.mp4". It doesn't set a sensible bitrate, so the output
will be awful if it works, but it would be useful to get the success/fail or any
error messages. Post the whole text output if you can. Blank out any filenames
or anything else that might be private if necessary.
--
Andy
Andrea Ambu
2010-10-11 20:11:25 UTC
Permalink
Post by Andy Civil
Your best bet is to use the software supplied. Does it have an export function?
I don't know anything about the system, they just brought me those
files hoping I'll be able to do something out of them.
Post by Andy Civil
You describe using "FFmplay" but I don't think there's any such thing; was
it a typo for 'FFplay'? If FFplay works, then you have a good chance that
FFmpeg can convert it.
It was FFplay, my typo, sorry.
Post by Andy Civil
Even if you can't post an actual video sample (I understand!) it would be
useful to see the output from ffprobe, and also what error messages you get
if you attempt to convert with ffmpeg. Try the simple command that JD posted
"ffmpeg -i yourfile.dvr yourfile.mp4". It doesn't set a sensible bitrate, so
the output will be awful if it works, but it would be useful to get the
success/fail or any error messages. Post the whole text output if you can.
Blank out any filenames or anything else that might be private if necessary.
Both command produce std_err stuff, I put them as attachment, thank
you for your time!
--
Andrea
-------------- next part --------------
$ ffmpeg -i IMG1153471222.dvr test.mp4
FFmpeg version SVN-r25444, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 0x1f60470] Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x1f62f00] Header missing
Last message repeated 1 times
[NULL @ 0x1f63570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1f63570] my guess is 5 bits ;)
[mpeg4 @ 0x1f63570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1f63570] my guess is 5 bits ;)
[mpeg4 @ 0x1f63570] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1f63570] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f63570] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x1f68710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1f68710] my guess is 4 bits ;)
[NULL @ 0x1f68710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1f68710] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1f68710] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f68710] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x1f81a50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1f81a50] my guess is 5 bits ;)
[mpeg4 @ 0x1f81a50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1f81a50] my guess is 5 bits ;)
[mpeg4 @ 0x1f81a50] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1f81a50] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f81a50] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x1f885d0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1f885d0] my guess is 4 bits ;)
[NULL @ 0x1f885d0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1f885d0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1f885d0] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f885d0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1f62f00] Header missing
[NULL @ 0x1f95c10] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1f95c10] my guess is 4 bits ;)
[NULL @ 0x1f95c10] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1f95c10] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1f95c10] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f95c10] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x1f68710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1f68710] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f68710] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x1f81a50] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f81a50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1f62f00] Header missing
[mpeg4 @ 0x1f68710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1f68710] my guess is 5 bits ;)
[mpeg4 @ 0x1f68710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1f68710] my guess is 5 bits ;)
[mpeg4 @ 0x1f68710] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f68710] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1f62f00] Header missing
[mpeg4 @ 0x1f81a50] [IMGUTILS @ 0x7fff3bcad5b0] Picture size 0x0 is invalid
[mpeg4 @ 0x1f81a50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1f62f00] Header missing
Last message repeated 45 times
[NULL @ 0x1f63570] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f68710] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f68d80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f81a50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f885d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f8f290] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f95c10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1f864b0] start time is not set in av_estimate_timings_from_pts
Input #0, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
[buffer @ 0x24665b0] w:720 h:576 pixfmt:yuv420p
[libfaac @ 0x1f85cf0] encoding 0 channel(s) is not allowed
Output #0, mp4, to 'test.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: libfaac, 0 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
andrea at ubuntu:~/Documents/video_da_convertire$ ffmpeg -i IMG1153471222.dvr test.mp4 > jd_command_failure.txt
FFmpeg version SVN-r25444, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 0x2d09470] Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x2d0bf00] Header missing
Last message repeated 1 times
[NULL @ 0x2d0c570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2d0c570] my guess is 5 bits ;)
[mpeg4 @ 0x2d0c570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2d0c570] my guess is 5 bits ;)
[mpeg4 @ 0x2d0c570] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2d0c570] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d0c570] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2d11710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2d11710] my guess is 4 bits ;)
[NULL @ 0x2d11710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2d11710] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2d11710] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d11710] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2d2aa50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2d2aa50] my guess is 5 bits ;)
[mpeg4 @ 0x2d2aa50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2d2aa50] my guess is 5 bits ;)
[mpeg4 @ 0x2d2aa50] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2d2aa50] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d2aa50] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2d315d0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2d315d0] my guess is 4 bits ;)
[NULL @ 0x2d315d0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2d315d0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2d315d0] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d315d0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2d0bf00] Header missing
[NULL @ 0x2d3ec10] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2d3ec10] my guess is 4 bits ;)
[NULL @ 0x2d3ec10] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2d3ec10] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2d3ec10] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d3ec10] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x2d11710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2d11710] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d11710] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x2d2aa50] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d2aa50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2d0bf00] Header missing
[mpeg4 @ 0x2d11710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2d11710] my guess is 5 bits ;)
[mpeg4 @ 0x2d11710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2d11710] my guess is 5 bits ;)
[mpeg4 @ 0x2d11710] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d11710] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2d0bf00] Header missing
[mpeg4 @ 0x2d2aa50] [IMGUTILS @ 0x7fff57a6d490] Picture size 0x0 is invalid
[mpeg4 @ 0x2d2aa50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2d0bf00] Header missing
Last message repeated 45 times
[NULL @ 0x2d0c570] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d11710] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d11d80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d2aa50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d315d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d38290] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d3ec10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2d2f4b0] start time is not set in av_estimate_timings_from_pts
Input #0, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] ^C
andrea at ubuntu:~/Documents/video_da_convertire$ ^C
andrea at ubuntu:~/Documents/video_da_convertire$ ^C
andrea at ubuntu:~/Documents/video_da_convertire$ ^C
andrea at ubuntu:~/Documents/video_da_convertire$ ls
IMG1153471179.dvr IMG1153471184.dvr IMG1153471216.dvr IMG1153471221.dvr IMG1153471222.dvr.idx test.mp4
IMG1153471180.dvr IMG1153471185.dvr IMG1153471217.dvr IMG1153471222.dvr jd_command_failure.txt
andrea at ubuntu:~/Documents/video_da_convertire$ rm test.mp4
andrea at ubuntu:~/Documents/video_da_convertire$ ffmpeg -i IMG1153471222.dvr test.mp4 > jd_command_failure.txt
FFmpeg version SVN-r25444, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 0x2487470] Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x2489f00] Header missing
Last message repeated 1 times
[NULL @ 0x248a570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x248a570] my guess is 5 bits ;)
[mpeg4 @ 0x248a570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x248a570] my guess is 5 bits ;)
[mpeg4 @ 0x248a570] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x248a570] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x248a570] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x248f710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x248f710] my guess is 4 bits ;)
[NULL @ 0x248f710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x248f710] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x248f710] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x248f710] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x24a8a50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x24a8a50] my guess is 5 bits ;)
[mpeg4 @ 0x24a8a50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x24a8a50] my guess is 5 bits ;)
[mpeg4 @ 0x24a8a50] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x24a8a50] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x24a8a50] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x24af5d0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x24af5d0] my guess is 4 bits ;)
[NULL @ 0x24af5d0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x24af5d0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x24af5d0] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x24af5d0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2489f00] Header missing
[NULL @ 0x24bcc10] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x24bcc10] my guess is 4 bits ;)
[NULL @ 0x24bcc10] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x24bcc10] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x24bcc10] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x24bcc10] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x248f710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x248f710] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x248f710] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x24a8a50] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x24a8a50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2489f00] Header missing
[mpeg4 @ 0x248f710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x248f710] my guess is 5 bits ;)
[mpeg4 @ 0x248f710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x248f710] my guess is 5 bits ;)
[mpeg4 @ 0x248f710] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x248f710] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2489f00] Header missing
[mpeg4 @ 0x24a8a50] [IMGUTILS @ 0x7fff8151e290] Picture size 0x0 is invalid
[mpeg4 @ 0x24a8a50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2489f00] Header missing
Last message repeated 45 times
[NULL @ 0x248a570] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x248f710] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x248fd80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x24a8a50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x24af5d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x24b6290] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x24bcc10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x24ad4b0] start time is not set in av_estimate_timings_from_pts
Input #0, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
[buffer @ 0x298d5b0] w:720 h:576 pixfmt:yuv420p
[libfaac @ 0x24accf0] encoding 0 channel(s) is not allowed
Output #0, mp4, to 'test.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: libfaac, 0 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
-------------- next part --------------
FFprobe version SVN-r25444, Copyright (c) 2007-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[NULL @ 0x1473190] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1473190] my guess is 5 bits ;)
[mpeg4 @ 0x1473190] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1473190] my guess is 5 bits ;)
[mpeg4 @ 0x1473190] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1473190] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1473190] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x1477230] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1477230] my guess is 4 bits ;)
[NULL @ 0x1477230] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1477230] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1477230] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1477230] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x1491730] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1491730] my guess is 5 bits ;)
[mpeg4 @ 0x1491730] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1491730] my guess is 5 bits ;)
[mpeg4 @ 0x1491730] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1491730] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1491730] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x14982b0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x14982b0] my guess is 4 bits ;)
[NULL @ 0x14982b0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x14982b0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x14982b0] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x14982b0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1472b20] Header missing
[NULL @ 0x14a5890] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x14a5890] my guess is 4 bits ;)
[NULL @ 0x14a5890] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x14a5890] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x14a5890] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x14a5890] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x1477230] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1477230] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1477230] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x1491730] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1491730] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1472b20] Header missing
[mpeg4 @ 0x1477230] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1477230] my guess is 5 bits ;)
[mpeg4 @ 0x1477230] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1477230] my guess is 5 bits ;)
[mpeg4 @ 0x1477230] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1477230] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1472b20] Header missing
[mpeg4 @ 0x1491730] [IMGUTILS @ 0x7fff6fcae6f0] Picture size 0x0 is invalid
[mpeg4 @ 0x1491730] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[mp1 @ 0x1472b20] Header missing
[NULL @ 0x1473190] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1477230] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x14778a0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1491730] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x14982b0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x149ef70] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x14a5890] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1496190] start time is not set in av_estimate_timings_from_pts
Input #0, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Andy Civil
2010-10-11 23:46:28 UTC
Permalink
Post by Andrea Ambu
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
then the reason they use "that hostile format" is because it contains EIGHT
video streams... and no sound :-) That would make sense for a CCTV system, but
highly unusual in the FFmpeg world... LOL!
Post by Andrea Ambu
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: libfaac, 0 channels, s16, 64 kb/s
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
The mp4 format says that you have to have a sound channel. FFmpeg is asking the
AAC library to encode 'nothing', and the library encoder is returning an error.

I think the CCTV system may encode all eight channels into one file, because the
timing (sychronisation) of the different streams may be important in the
certainty of evidence.

I am certainly not an expert in FFmpeg usage, but I will give you my best
attempt at how to approach this. If it fails, the chances are that you will need
to persuade someone cleverer to join in.

First of all, I would solve the issue of no sound, by providing a 'silence' file
so that libfaac doesn't feel so unwanted. Can you use a sound editor such as
Audacity to create a file containing enough silence that it's always longer than
your video clip? Let's call it silence.aac. You may have to look up the sampling
rate allowed by the .mp4 format; if you get that "maybe incorrect parameters"
error again, it could be because your silence is at the wrong sampling rate.
Your files look like PAL format, you must be in Europe. Try 48Khz and 128kb/s?

Second, let's set up a command to copy the video part, but specify which stream
we want. I suspect that FFplay is playing the first stream only! It would be
VERY interesting to repeat the FFplay experiment on one file, and see if
pressing the 'v' key cycles between the different streams! This would be a
validation of my theory.

ffmpeg -i silence.aac -i IMG1153471222.dvr -vcodec copy -map 1:1 -map 0:0
-shortest -y IMG1153471222_1.mp4

and if that works, move on to the next stream...

ffmpeg -i silence.aac -i IMG1153471222.dvr -vcodec copy -map 1:2 -map 0:0
-shortest -y IMG1153471222_2.mp4

ffmpeg -i silence.aac -i IMG1153471222.dvr -vcodec copy -map 1:3 -map 0:0
-shortest -y IMG1153471222_3.mp4

It's not normal to post a command line that you haven't tested. However, since
you can't provide a sample, you will have to be 'alpha tester' LOL!

P.S. this is what the parameters mean:

-i silence.aac / read silence file
-i IMG1153471222.dvr / read video file
-vcodec copy / don't re-encode the video, just copy the stream
-map 1:3 / make the first stream of the output from the fourth stream of the
second input file
-map 0:0 / make the second stream of the output from the first stream of the
first input file
-shortest / stop when either the sound or the video runs out
-y IMG1153471222_3.mp4 /write the output file without asking about overwrite
--
Andy
Andrea Ambu
2010-10-12 08:10:34 UTC
Permalink
Post by Andy Civil
[...]
then the reason they use "that hostile format" is because it contains EIGHT
video streams... and no sound :-) That would make sense for a CCTV system,
but highly unusual in the FFmpeg world... LOL!
That would totally make sense, they say the system has 8 cameras. What
I don't understand is why FFplay show me a different one depending on
what file I open. Strange.
Post by Andy Civil
Let's call it silence.aac. [...]
Europe. Try 48Khz and 128kb/s?
I failed to create silence.aac with Audacity, I created silence.ac3
and then converted it with:
$ pacpl --to aac --bitrate 128 --freq 48000 silence.ac3

I don't know if it is good anyway.
Post by Andy Civil
Second, let's set up a command to copy the video part, but specify which
stream we want. I suspect that FFplay is playing the first stream only! It
would be VERY interesting to repeat the FFplay experiment on one file, and
see if pressing the 'v' key cycles between the different streams! This would
be a validation of my theory.
IT DOES! The video is too short so I need to click at the beginning
each time but it does cycle!
Post by Andy Civil
ffmpeg -i silence.aac -i IMG1153471222.dvr -vcodec copy -map 1:1 -map 0:0
-shortest -y IMG1153471222_1.mp4
[...]
It's not normal to post a command line that you haven't tested. However,
since you can't provide a sample, you will have to be 'alpha tester' LOL!
I hope I'll do that well :P
Unfortunately that command failed, the output is attached :(
--
Andrea
-------------- next part --------------
FFmpeg version SVN-r25444, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[aac @ 0x13a9470] max_analyze_duration reached
[aac @ 0x13a9470] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 'silence.aac':
Duration: 00:00:59.12, bitrate: 129 kb/s
Stream #0.0: Audio: aac, 48000 Hz, stereo, s16, 129 kb/s
[NULL @ 0x13aa720] Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x13baf60] Header missing
Last message repeated 1 times
[NULL @ 0x13d5920] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x13d5920] my guess is 5 bits ;)
[mpeg4 @ 0x13d5920] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x13d5920] my guess is 5 bits ;)
[mpeg4 @ 0x13d5920] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x13d5920] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13d5920] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x13adad0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x13adad0] my guess is 4 bits ;)
[NULL @ 0x13adad0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x13adad0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x13adad0] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13adad0] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x13b1f00] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x13b1f00] my guess is 5 bits ;)
[mpeg4 @ 0x13b1f00] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x13b1f00] my guess is 5 bits ;)
[mpeg4 @ 0x13b1f00] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x13b1f00] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13b1f00] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x13f7b30] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x13f7b30] my guess is 4 bits ;)
[NULL @ 0x13f7b30] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x13f7b30] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x13f7b30] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13f7b30] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x13baf60] Header missing
[NULL @ 0x1405110] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x1405110] my guess is 4 bits ;)
[NULL @ 0x1405110] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1405110] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1405110] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x1405110] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x13adad0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x13adad0] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13adad0] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x13b1f00] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13b1f00] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x13baf60] Header missing
[mpeg4 @ 0x13adad0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x13adad0] my guess is 5 bits ;)
[mpeg4 @ 0x13adad0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x13adad0] my guess is 5 bits ;)
[mpeg4 @ 0x13adad0] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13adad0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x13baf60] Header missing
[mpeg4 @ 0x13b1f00] [IMGUTILS @ 0x7fff37aeaf10] Picture size 0x0 is invalid
[mpeg4 @ 0x13b1f00] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x13baf60] Header missing
Last message repeated 45 times
[NULL @ 0x13d5920] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x13adad0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x13b1890] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x13b1f00] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x13f7b30] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x13fe7f0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x1405110] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x13f5a10] start time is not set in av_estimate_timings_from_pts
Input #1, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #1.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #1.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #1.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
[libfaac @ 0x13ac400] encoding 0 channel(s) is not allowed
Output #0, mp4, to 'IMG1153471222_1.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 90k tbn, 25 tbc
Stream #0.1: Audio: libfaac, 0 channels, s16, 64 kb/s
Stream mapping:
Stream #1.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
Andy Civil
2010-10-12 14:17:09 UTC
Permalink
Post by Andrea Ambu
Post by Andy Civil
[...]
then the reason they use "that hostile format" is because it contains EIGHT
video streams... and no sound :-) That would make sense for a CCTV system,
but highly unusual in the FFmpeg world... LOL!
That would totally make sense, they say the system has 8 cameras. What
I don't understand is why FFplay show me a different one depending on
what file I open. Strange.
Post by Andy Civil
Let's call it silence.aac. [...]
Europe. Try 48Khz and 128kb/s?
I failed to create silence.aac with Audacity, I created silence.ac3
$ pacpl --to aac --bitrate 128 --freq 48000 silence.ac3
I don't know if it is good anyway.
Post by Andy Civil
Second, let's set up a command to copy the video part, but specify which
stream we want. I suspect that FFplay is playing the first stream only! It
would be VERY interesting to repeat the FFplay experiment on one file, and
see if pressing the 'v' key cycles between the different streams! This would
be a validation of my theory.
IT DOES! The video is too short so I need to click at the beginning
each time but it does cycle!
Post by Andy Civil
ffmpeg -i silence.aac -i IMG1153471222.dvr -vcodec copy -map 1:1 -map 0:0
-shortest -y IMG1153471222_1.mp4
[...]
It's not normal to post a command line that you haven't tested. However,
since you can't provide a sample, you will have to be 'alpha tester' LOL!
I hope I'll do that well :P
Unfortunately that command failed, the output is attached :(
Mike Scheutzow suggests that it may even work with no sound if we actually TELL
it there's no sound, instead of having it attempt sound and not finding any. So
before I try to analyse what happened there, can we try this:

ffmpeg -i IMG1153471222.dvr -an -vcodec copy -map 0:1 -y IMG1153471222_1.mp4
ffmpeg -i IMG1153471222.dvr -an -vcodec copy -map 0:2 -y IMG1153471222_2.mp4
etc.

It all depends on whether it's legal to have an mp4 file with no sound, I guess.
I should be able to try this on my own computer actually... stay tuned.
--
Andy
Mike Scheutzow
2010-10-12 13:24:26 UTC
Permalink
Post by Andy Civil
First of all, I would solve the issue of no sound, by providing a
'silence' file so that libfaac doesn't feel so unwanted. Can you use a
sound editor such as Audacity to create a file containing enough silence
that it's always longer than your video clip?
It would be much easier to use the command line option '-an' to tell
ffmeg to discard the input audio.


Mike Scheutzow
Andy Civil
2010-10-12 14:40:05 UTC
Permalink
It would be much easier to use the command line option '-an' to tell ffmeg to
discard the input audio.
You're right, I've tried it with a regular .mp4 file and it doesn't complain
about missing sound if you use -an. I've given Andrea a simpler command. Sorry
about the silence diversion! (I was going for what had the greatest chance of
success, rather than the simplest.)
--
Andy
Andrea Ambu
2010-10-12 17:21:02 UTC
Permalink
Post by Andy Civil
It would be much easier to use the command line option '-an' to tell ffmeg to
discard the input audio.
You're right, I've tried it with a regular .mp4 file and it doesn't complain
about missing sound if you use -an. I've given Andrea a simpler command.
Sorry about the silence diversion! (I was going for what had the greatest
chance of success, rather than the simplest.)
Cool, thank you both!
Now it actually produce a playable piece of video, sort of.

The result last for a couple of second but it's likely to be the true
length, I guess the guys who give me these file cloned the system DB
without using any export feature it may have, ARGH! :P

It keeps ranting but I'm not sure about what, I attached ffmpeg
outputs (for the first two conversion, I don't know if their diff is
meaningful to you) and vlc output as it complains as well when
playing. What do you think?
--
Andrea
-------------- next part --------------
FFmpeg version SVN-r25444, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 0x203d470] Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x203ff00] Header missing
Last message repeated 1 times
[NULL @ 0x2040570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2040570] my guess is 5 bits ;)
[mpeg4 @ 0x2040570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2040570] my guess is 5 bits ;)
[mpeg4 @ 0x2040570] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2040570] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x2040570] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2045710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2045710] my guess is 4 bits ;)
[NULL @ 0x2045710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2045710] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2045710] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x2045710] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x205ea50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x205ea50] my guess is 5 bits ;)
[mpeg4 @ 0x205ea50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x205ea50] my guess is 5 bits ;)
[mpeg4 @ 0x205ea50] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x205ea50] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x205ea50] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x20655d0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x20655d0] my guess is 4 bits ;)
[NULL @ 0x20655d0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x20655d0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x20655d0] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x20655d0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x203ff00] Header missing
[NULL @ 0x2072c10] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2072c10] my guess is 4 bits ;)
[NULL @ 0x2072c10] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2072c10] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2072c10] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x2072c10] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x2045710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2045710] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x2045710] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x205ea50] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x205ea50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x203ff00] Header missing
[mpeg4 @ 0x2045710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2045710] my guess is 5 bits ;)
[mpeg4 @ 0x2045710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2045710] my guess is 5 bits ;)
[mpeg4 @ 0x2045710] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x2045710] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x203ff00] Header missing
[mpeg4 @ 0x205ea50] [IMGUTILS @ 0x7fffcf1da1a0] Picture size 0x0 is invalid
[mpeg4 @ 0x205ea50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x203ff00] Header missing
Last message repeated 45 times
[NULL @ 0x2040570] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2045710] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2045d80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x205ea50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x20655d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x206c290] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2072c10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x20634b0] start time is not set in av_estimate_timings_from_pts
Input #0, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Output #0, mp4, to 'IMG1153471222_1.mp4':
Metadata:
encoder : Lavf52.81.0
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 25 tbn, 25 tbc
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop encoding
[mp4 @ 0x2063f00] pts has no value
Last message repeated 57 times
frame= 58 fps= 0 q=-1.0 Lsize= 706kB time=2.32 bitrate=2491.3kbits/s
video:705kB audio:0kB global headers:0kB muxing overhead 0.142493%
-------------- next part --------------
FFmpeg version SVN-r25444, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 11 2010 14:42:16 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.81. 0 / 52.81. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.49. 0 / 1.49. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 0x2a5e470] Format detected only with low score of 25, misdetection possible!
[mp1 @ 0x2a60f00] Header missing
Last message repeated 1 times
[NULL @ 0x2a61570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2a61570] my guess is 5 bits ;)
[mpeg4 @ 0x2a61570] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2a61570] my guess is 5 bits ;)
[mpeg4 @ 0x2a61570] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2a61570] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a61570] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2a66710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2a66710] my guess is 4 bits ;)
[NULL @ 0x2a66710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2a66710] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2a66710] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a66710] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2a7fa50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2a7fa50] my guess is 5 bits ;)
[mpeg4 @ 0x2a7fa50] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2a7fa50] my guess is 5 bits ;)
[mpeg4 @ 0x2a7fa50] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2a7fa50] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a7fa50] get_buffer() failed (-1 0 0 (nil))
[NULL @ 0x2a865d0] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2a865d0] my guess is 4 bits ;)
[NULL @ 0x2a865d0] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2a865d0] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2a865d0] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a865d0] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2a60f00] Header missing
[NULL @ 0x2a93c10] hmm, seems the headers are not complete, trying to guess time_increment_bits
[NULL @ 0x2a93c10] my guess is 4 bits ;)
[NULL @ 0x2a93c10] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2a93c10] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x2a93c10] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a93c10] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x2a66710] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x2a66710] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a66710] get_buffer() failed (-1 0 0 (nil))
[mpeg4 @ 0x2a7fa50] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a7fa50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2a60f00] Header missing
[mpeg4 @ 0x2a66710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2a66710] my guess is 5 bits ;)
[mpeg4 @ 0x2a66710] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x2a66710] my guess is 5 bits ;)
[mpeg4 @ 0x2a66710] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a66710] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2a60f00] Header missing
[mpeg4 @ 0x2a7fa50] [IMGUTILS @ 0x7ffff26d7be0] Picture size 0x0 is invalid
[mpeg4 @ 0x2a7fa50] get_buffer() failed (-1 0 0 (nil))
[mp1 @ 0x2a60f00] Header missing
Last message repeated 45 times
[NULL @ 0x2a61570] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a66710] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a66d80] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a7fa50] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a865d0] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a8d290] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a93c10] start time is not set in av_estimate_timings_from_pts
[NULL @ 0x2a844b0] start time is not set in av_estimate_timings_from_pts
Input #0, mpeg, from 'IMG1153471222.dvr':
Duration: 00:00:18.68, start: 21480.000400, bitrate: 2249 kb/s
Stream #0.0[0x1c0]: Audio: mp1, 0 channels, s16
Stream #0.1[0x1e6]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.2[0x1e4]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.46 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.3[0x1e1]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.4[0x1e5]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25.47 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.5[0x1e3]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.6[0x1e7]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.7[0x1e2]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.8[0x1e8]: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc
Output #0, mp4, to 'IMG1153471222_2.mp4':
Metadata:
encoder : Lavf52.81.0
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 25 tbn, 25 tbc
Stream mapping:
Stream #0.2 -> #0.0
Press [q] to stop encoding
[mp4 @ 0x2a84f00] pts has no value
Last message repeated 55 times
frame= 56 fps= 0 q=-1.0 Lsize= 651kB time=2.32 bitrate=2298.5kbits/s
video:650kB audio:0kB global headers:0kB muxing overhead 0.154161%
-------------- next part --------------
VLC media player 1.0.6 Goldeneye
[0x18d24b8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
header damaged
QPainter::begin: Paint device returned engine == 0, type: 1
Andy Civil
2010-10-12 18:58:27 UTC
Permalink
Post by Andrea Ambu
Now it actually produce a playable piece of video, sort of.
The result last for a couple of second but it's likely to be the true
length, I guess the guys who give me these file cloned the system DB
without using any export feature it may have, ARGH! :P
Good news, sort of. :-)

I think two seconds is the actual length. The output you posted says 18 seconds,
but I think this is spread over all eight channels. If you take the number of
frames at 25fps and eight channels, it works out about right. Perhaps it is
chosen because the 'write time' resolution on FAT file times is two seconds.

I think all the error messages are caused because there's no real header
information in your file. Just a guess, but if the designers of the CCTV
intended that the files were only created and used by their system, then there's
no need to write correct header information. Compatibility with other video
players probably wasn't in the job description.

Now that you can successfully extract two second clips, what are you going to do
with them? Did you want to chain a number of them together? You hinted at this,
at the start. I think there are two directions you can take; either hope that
you can concatenate your clips (if necessary, converting to a format that allows
concatenation) or switch to a different program (e.g. AVIsynth?) that has better
support for concatenating files.

I know that the standard video editor for Linux is "Cinelerra" but I've never
used it; perhaps that would chain your files together?

Concatenation is not a 'feature' of FFmpeg, but I have certainly seen people
suggest it, using 'cat' and a pipe.
--
Andy
Andrea Ambu
2010-10-12 20:21:22 UTC
Permalink
Post by Andy Civil
I think all the error messages are caused because there's no real header
information in your file. Just a guess, but if the designers of the CCTV
intended that the files were only created and used by their system, then
there's no need to write correct header information. Compatibility with
other video players probably wasn't in the job description.
This make sense.
Post by Andy Civil
Now that you can successfully extract two second clips, what are you going
to do with them? Did you want to chain a number of them together? You hinted
at this, at the start. I think there are two directions you can take; either
hope that you can concatenate your clips (if necessary, converting to a
format that allows concatenation) or switch to a different program (e.g.
AVIsynth?) that has better support for concatenating files.
I need to check if the streams are kept in order through the files, I
mean I need to check if the first stream is always from the same
camera and so on.

After that I should split them all and then join the parts separately.
Post by Andy Civil
I know that the standard video editor for Linux is "Cinelerra" but I've
never used it; perhaps that would chain your files together?
Concatenation is not a 'feature' of FFmpeg, but I have certainly seen people
suggest it, using 'cat' and a pipe.
I don't know, AVIsynth is not available on Linux, I think I'll try:
mencoder -oac copy -ovc copy -o [whole] [part]*

If you have a better option feel free to suggest!-)
--
Andrea
Andy Civil
2010-10-12 20:54:12 UTC
Permalink
Post by Andrea Ambu
I need to check if the streams are kept in order through the files, I
mean I need to check if the first stream is always from the same
camera and so on.
After that I should split them all and then join the parts separately.
I suggested the 'v' key for stream cycling, but if you're scanning hundreds of
files, using the '-vst {n}' option to select the stream from the start, might be
more convenient.
Post by Andrea Ambu
mencoder -oac copy -ovc copy -o [whole] [part]*
If you have a better option feel free to suggest!-)
Mencoder might barf on '-oac copy' if there's no sound. Try '-nosound'.
--
Andy
Loading...