[FFmpeg-user] Extract xvid stream in mov container

jacques perconte tek at technart.net
Fri Apr 28 09:18:28 EEST 2017


Dear Cley,

here it is

ffmpeg -i HYPERS.MOV -c:v copy -an output.avi

HYPERS.MOV is a mov quicktime with a xvid video stream and no sound
the stream ha no keyframe - it is normal, so i do not want to re encode it.

console :

Retina:M Hypersoleils ZREO$ ffmpeg -i HYPERS.MOV -c:v copy -an output.avi
ffmpeg version N-85343-gd0a3143-tessus Copyright (c) 2000-2017 the
FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
--extra-version=tessus --enable-avisynth --enable-fontconfig
--enable-gpl --enable-libass --enable-libbluray --enable-libfreetype
--enable-libgsm --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus
--enable-libschroedinger --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-version3
--disable-ffplay --disable-indev=qtkit

  libavutil      55. 60.100 / 55. 60.100
  libavcodec     57. 92.100 / 57. 92.100
  libavformat    57. 72.100 / 57. 72.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 84.100 /  6. 84.100
  libswscale      4.  7.100 /  4.  7.100
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100

[mpeg4 @ 0x7ffc82817800] header damaged
[mpeg4 @ 0x7ffc82817800] time_increment_bits 4 is invalid in relation
to the current bitstream, this is likely caused by a missing VOL
header
[mpeg4 @ 0x7ffc82817800] time_increment_bits set to 5 bits, based on
bitstream analysis
[mpeg4 @ 0x7ffc82817800] looks like this file was encoded with
(divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] Could not find codec
parameters for stream 0 (Video: mpeg4 (xvid / 0x64697678),
yuv420p(bt709), 10032 kb/s): unspecified size

Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HYPERS.MOV':

  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2015-03-09T00:01:04.000000Z
    com.apple.quicktime.player.movie.visual.brightness: 0.000000
    com.apple.quicktime.player.movie.visual.color: 1.000000
    com.apple.quicktime.player.movie.visual.tint: 0.000000
    com.apple.quicktime.player.movie.visual.contrast: 1.000000
    com.apple.quicktime.player.version: 7.6.6 (7.6.6)
    com.apple.quicktime.version: 7.7.3 (2826.24) 0x7738000 (Mac OS X,
10.9.5, 13F34)

  Duration: 08:53:49.52, start: 0.000000, bitrate: 10033 kb/s
    Stream #0:0(eng): Video: mpeg4 (xvid / 0x64697678),
yuv420p(bt709), 10032 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)

    Metadata:
      creation_time   : 2015-03-09T00:01:04.000000Z
      handler_name    : Gestionnaire d?alias Apple

[avi @ 0x7ffc82015800] dimensions not set

Could not write header for output file #0 (incorrect codec parameters
?): Invalid argument

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
    Last message repeated 1 times

Retina:M Hypersoleils ZREO$


----

thank you
jacques
☀︎
Jacques Perconte
+33 660 615 408

http://www.jacquesperconte.comhttp://timeline.technart.fr / news
→ https://twitter.com/jacquesperconte / voix


On Tue, Apr 25, 2017 at 10:02 AM, Cley Faye <cleyfaye at gmail.com> wrote:
> 2017-04-25 9:52 GMT+02:00 jacques perconte <tek at technart.net>:
>
>>
>> ffmpeg -i input.mov -c:v copy -an output.avi
>> ffmpeg -loglevel debug -analyzeduration 6M  -i nput.mov -c copy -s
>> 1920x1080 output.avi
>>
>> it always print
>> "[avi @ 0x7fe9e303ce00] Dimensions not set
>> Could not write header for output file #0 (incorrect codec parameters
>> ?): Invalid argument"
>>
>> any idea ?
>
>
> Provide the full console output of these commands, it might give some
> insight on what's failing.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list