+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. When I want to convert with ffmpeg (under 64bit Win7) a (digicam) *.MOV video into an *.MP4 video then this seems to be NOT possible.

    I got errors like:

    [mp4 @ 000000000213cec0] Tag XVID/0x44495658 incompatible with output codec id '13' ( [0][0][0])

    and

    Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input

    Is this really not possible?

    Thank you
    Quote Quote  
  2. Member DB83's Avatar
    Join Date: Jul 2007
    Location: United Kingdom
    Search Comp PM
    Well almost anything is possible but here we have a distinct lack of information to work with.

    .MOV is a container format so,, to start with, post a mediainfo report of the source video

    What is you target playback device ? You appear to wish to convert whereas you may only need to repack. Again, mp4 is also a container format.

    If you still wish to convert, post your ffmeg command string
    Quote Quote  
  3. Ok, here is MediaInfo output for the source:

    Complete name : D:\todo\DSCN1162.MOV
    Format : MPEG-4
    Format profile : QuickTime
    Codec ID : qt
    File size : 17.3 MiB
    Duration : 15s 15ms
    Overall bit rate mode : Variable
    Overall bit rate : 9 670 Kbps
    Encoded date : UTC 2013-08-01 15:15:14
    Tagged date : UTC 2013-08-01 15:15:14
    NCDT : NCTG
    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Baseline@L3.1
    Format settings, CABAC : No
    Format settings, ReFrames : 2 frames
    Format settings, GOP : M=1, N=24
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 15s 15ms
    Bit rate : 9 342 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.423
    Stream size : 16.7 MiB (97%)
    Language : English
    Encoded date : UTC 2013-08-01 15:15:14
    Tagged date : UTC 2013-08-01 15:15:14
    Color primaries : BT.601 NTSC
    Transfer characteristics : BT.709
    Matrix coefficients : BT.601
    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 15s 15ms
    Source duration : 14s 997ms
    Bit rate mode : Variable
    Nominal bit rate : 128 Kbps
    Maximum bit rate : 192 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Source stream size : 233 KiB (1%)
    Language : English
    Encoded date : UTC 2013-08-01 15:15:14
    Tagged date : UTC 2013-08-01 15:15:14




    and I want to re-encode with parms:

    -vf "transpose=1" -acodec libmp3lame -aq 5 vcodec mpeg4 -vtag XVID -qscale:v 5
    Quote Quote  
  4. Member DB83's Avatar
    Join Date: Jul 2007
    Location: United Kingdom
    Search Comp PM
    I will add one more comment but leave the guts to someone who knows the ins and outs of ffmpeg.

    It would appear that you are trying to over-simplify the process and transfer all the avc(h264) settings to xvid(h263). I would think you need specific xvid parameters and not the preset avc ones.

    But I will ask this once more. Why are you converting ? What do you intend this video to play on ? Will this device not support avc albeit in a mp4 wrapper ? I would have thought that that is quite simple to achieve whereas a conversion to xvid is not.
    Quote Quote  
  5. -vf "transpose=1" -acodec libmp3lame -aq 5 vcodec mpeg4 -vtag XVID -qscale:v 5
    "vcodec" -> "-vcodec"
    If that does not help post your complete ffmpeg call and a small sample.
    Quote Quote  
  6. Ok, here is now the sample. Download MOV from

    http://www.sendspace.com/file/9yxky5

    I used the following cmdline command (I used 64bit static version under 64bit Win7):

    "D:\video\ffmpeg\v30.08.2013[x64static]\bin\FFmpeg.exe" -i "DSCN1859.MOV" -vf "transpose=1" -acodec libmp3lame -aq 5 -vcodec mpeg4 -vtag XVID -qscale:v 5 "DSCN1859.mp4"

    ...and got the following error (see bootom):

    Why is it not possible to convert the MOv to MP4? To *.AVI it is!

    ffmpeg version N-55922-g454a11a Copyright (c) 2000-2013 the FFmpeg developers
    built on Aug 30 2013 18:06:50 with gcc 4.7.3 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
    libavutil 52. 43.100 / 52. 43.100
    libavcodec 55. 29.100 / 55. 29.100
    libavformat 55. 15.100 / 55. 15.100
    libavdevice 55. 3.100 / 55. 3.100
    libavfilter 3. 82.102 / 3. 82.102
    libswscale 2. 5.100 / 2. 5.100
    libswresample 0. 17.103 / 0. 17.103
    libpostproc 52. 3.100 / 52. 3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'DSCN1859.MOV':
    Metadata:
    major_brand : qt
    minor_version : 537331968
    compatible_brands: qt niko
    creation_time : 2013-09-02 09:15:23
    Duration: 00:00:06.01, start: 0.000000, bitrate: 10229 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], 9803 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
    creation_time : 2013-09-02 09:15:23
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
    creation_time : 2013-09-02 09:15:23
    [swscaler @ 0000000000300620] deprecated pixel format used, make sure you did set range correctly
    [mp4 @ 000000000504e020] Tag XVID/0x44495658 incompatible with output codec id '13' ( [0][0][0])
    Output #0, mp4, to 'DSCN1859.mp4':
    Metadata:
    major_brand : qt
    minor_version : 537331968
    compatible_brands: qt niko
    Stream #0:0(eng): Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc (default)
    Metadata:
    creation_time : 2013-09-02 09:15:23
    Stream #0:1(eng): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp (default)
    Metadata:
    creation_time : 2013-09-02 09:15:23
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 -> mpeg4)
    Stream #0:1 -> #0:1 (aac -> libmp3lame)
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
    Image Attached Files
    Last edited by pxstein; 5th Sep 2013 at 05:29.
    Quote Quote  
  7. remove the "-vtag XVID" part, it's an option ment for .avi output files,..
    Quote Quote  



Similar Threads