[FFmpeg-user] Transcode from wmv to flv problem

Bourne help at nagashare.com
Tue Apr 10 08:36:38 CEST 2012


Hi All,

 

It seems transcode from wmv to flv have many problems with the latest ffmpeg
version.

Here is the error information:

[flv @ 00c490e0] Application provided invalid, non monotonically increasing
dts

to muxer in stream 1: 616 >= 614

av_interleaved_write_frame(): Invalid argument

 

I have tested many wmv file, most have that problem.

Here is a sample wmv file: http://www.nagasoft.cn/download/hlm/hh.wmv

 

And I found “git-849f80f” version not have that problem, but the video and
audio are not sync.

 

Here is the command line:

E:\ffmpeg>"C:\ffmpeg_new\bin\ffmpeg.exe" -i “E:\media\wmv\hh.wmv”  -y
-vcodec libx

264 -preset veryfast -r 10 -b:v 400k  -vf "movie=logo.png [movie];[in]
[movie]

overlay=main_w-overlay_w-10:10 [out]" -acodec libmp3lame -ar 44100 -b:a 6

4k -g 15 test.flv

ffmpeg version N-39664-g6bfb304 Copyright (c) 2000-2012 the FFmpeg
developers

  built on Apr  9 2012 20:31:02 with gcc 4.6.3

  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3

--disable-w32threads --enable-runtime-cpudetect --enable-avisynth
--enable-bzli

b --enable-frei0r --enable-libass --enable-libcelt
--enable-libopencore-amrnb --

enable-libopencore-amrwb --enable-libfreetype --enable-libgsm
--enable-libmp3lam

e --enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger

--enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc

--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
--en

able-libxavs --enable-libxvid --enable-zlib

  libavutil      51. 46.100 / 51. 46.100

  libavcodec     54. 14.101 / 54. 14.101

  libavformat    54.  3.100 / 54.  3.100

  libavdevice    53.  4.100 / 53.  4.100

  libavfilter     2. 67.101 /  2. 67.101

  libswscale      2.  1.100 /  2.  1.100

  libswresample   0. 10.100 /  0. 10.100

  libpostproc    52.  0.100 / 52.  0.100

Input #0, asf, from 'E:\media\wmv\hh.wmv':

  Metadata:

    WMFSDKVersion   : 10.00.00.4072

    WMFSDKNeeded    : 0.0.0.0000

    IsVBR           : 0

  Duration: 00:01:18.81, start: 0.000000, bitrate: 280 kb/s

    Stream #0:0(chi): Audio: wmav2 (a[1][0][0] / 0x0161), 32000 Hz, 2
channels,

s16, 32 kb/s

    Stream #0:1(chi): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p,
320x240,

241 kb/s, 23.98 tbr, 1k tbn, 1k tbc

-deinterlace is deprecated, use -filter:v yadif instead

[buffer @ 0003ba40] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:fl

ags=2

[movie @ 00c14f60] seek_point:0 format_name:(null) file_name:bzntv.png
stream_in

dex:0

[overlay @ 00c67dc0] auto-inserting filter 'auto-inserted scale 0' between
the f

ilter 'Parsed_movie_0' and the filter 'Parsed_overlay_1'

[scale @ 00be76a0] w:87 h:16 fmt:rgba sar:1/1 -> w:87 h:16 fmt:yuva420p
sar:1/1

flags:0x4

[overlay @ 00c67dc0] main w:320 h:240 fmt:yuv420p overlay x:223 y:10 w:87
h:16 f

mt:yuva420p

[overlay @ 00c67dc0] main_tb:1/1000000 overlay_tb:1/25 -> tb:1/1000000
exact:1

[libx264 @ 00c77a40] using cpu capabilities: MMX2 SSE2Slow SlowCTZ

[libx264 @ 00c77a40] profile High, level 1.3

[libx264 @ 00c77a40] 264 - core 120 r2164 da19765 - H.264/MPEG-4 AVC codec -
Cop

yleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1
deb

lock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00
mixed_ref=0 m

e_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1
chro

ma_qp_offset=0 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_co

mpat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
wei

ghtb=1 open_gop=0 weightp=1 keyint=15 keyint_min=1 scenecut=40
intra_refresh=0 r

c_lookahead=10 rc=abr mbtree=1 bitrate=400 ratetol=1.0 qcomp=0.60 qpmin=0
qpmax=

69 qpstep=4 ip_ratio=1.40 aq=1:1.00

Output #0, flv, to 'test.flv':

  Metadata:

    WMFSDKVersion   : 10.00.00.4072

    WMFSDKNeeded    : 0.0.0.0000

    IsVBR           : 0

    encoder         : Lavf54.3.100

    Stream #0:0(chi): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240,
q=-

1--1, 400 kb/s, 1k tbn, 10 tbc

    Stream #0:1(chi): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, 2
channels,

s16, 64 kb/s

Stream mapping:

  Stream #0:1 -> #0:0 (wmv3 -> libx264)

  Stream #0:0 -> #0:1 (wmav2 -> libmp3lame)

Press [q] to stop, [?] for help

[flv @ 00c490e0] Application provided invalid, non monotonically increasing
dts

to muxer in stream 1: 616 >= 614

av_interleaved_write_frame(): Invalid argument

 

Bourne

 

 



More information about the ffmpeg-user mailing list