Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#559 closed defect (worksforme)

Can't decode .avi video

Reported by: bf4648 Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg -i test.avi -vcodec copy out.mkv
ffmpeg -i test.avi -vcodec copy out.mp4

both commands result in the following error message:

@ubuntu:~/Desktop/Vids$ ffmpeg -i test.avi -vcodec copy out.mkv
ffmpeg version N-33666-g7d2e467, Copyright (c) 2000-2011 the FFmpeg developers

built on Oct 15 2011 15:52:19 with gcc 4.5.2
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 16. 0 / 53. 16. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0

[avi @ 0x1cb07c0] Something went wrong during header parsing, I will ignore it and try to continue anyway.
[avi @ 0x1cb07c0] parser not found for codec none, packets or times may be invalid.
[avi @ 0x1cb07c0] max_analyze_duration 5000000 reached at 5000000
Input #0, avi, from 'test.avi':

Duration: 00:05:00.00, start: 0.000000, bitrate: 1559 kb/s

Stream #0:0: Video: none (8[0][0][0] / 0x0038), 94x1819440243, 30 fps, 30 tbr, 30 tbn, 30 tbc

Output #0, matroska, to 'out.mkv':
Output file #0 does not contain any stream

Attachments (1)

test (1.1 MB ) - added by bf4648 13 years ago.

Download all attachments as: .zip

Change History (6)

by bf4648, 13 years ago

Attachment: test added

comment:1 by bf4648, 13 years ago

when I play another video in VLC from the same security camera, I'm getting the following error:

VLC does not support the audio or video format "Q264"

I can't decode that video as well using ffmpeg, does ffmpeg need to be updated to support that codec?

comment:2 by bf4648, 13 years ago

when I play the video in VLC it gives me the following details on the Codec:

Stream 0

Type: Video
Codec: Motion JPEG Video (QIVG)
Resolution: 352x288
Frame Rate: 30

I'd would like to use ffmpeg to decode the video into mp4 and also use a new audio and video codec if that is possible.

comment:3 by Carl Eugen Hoyos, 13 years ago

Resolution: worksforme
Status: newclosed

I cannot imagine why it does not work for you, after making sure we are testing the same sample I suggest you:
Clone FFmpeg into a new directory, run './configure && make' without any additional options and try again.
If it still does not work, please reopen this ticket, but I currently don't know what else to try.
(Remuxing also works fine.)

$ md5sum test
8171c8de95e962681eab65bcfd61b4a4  test
$ ffmpeg -i test
ffmpeg -i test
ffmpeg version N-33666-g7d2e467, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 16 2011 01:23:02 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 21. 0 / 51. 21. 0
  libavcodec   53. 20. 1 / 53. 20. 1
  libavformat  53. 16. 0 / 53. 16. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
Input #0, avi, from 'test':
  Duration: 00:00:05.80, start: 0.000000, bitrate: 1537 kb/s
    Stream #0:0: Video: mjpeg (QIVG / 0x47564951), yuvj420p, 352x288 [SAR 1:1 DAR 11:9], 30 tbr, 30 tbn, 30 tbc
At least one output file must be specified

in reply to:  1 comment:4 by Carl Eugen Hoyos, 13 years ago

Replying to bf4648:

when I play another video in VLC from the same security camera, I'm getting the following error:

VLC does not support the audio or video format "Q264"

I can't decode that video as well using ffmpeg, does ffmpeg need to be updated to support that codec?

Command line and complete, uncut console output missing (in ticket #557), this also works fine for me with the version you tested here.

comment:5 by bf4648, 13 years ago

Sorry that one does work fine but I have others that aren't working. I'll just create a new ticket though.
Thanks,

Note: See TracTickets for help on using tickets.