Opened 5 years ago

Closed 5 years ago

#1236 closed defect (invalid)

error when converting wmv to mp4

Reported by: davidengler Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: av_interleaved_write_frame
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

'/usr/local/bin/ffmpeg' -y -i sample.wmv -threads 0 -acodec libfaac -strict experimental -vcodec libx264 -ab 64k -s 480x270 -t 10000 sample.mp4
ffmpeg version git-2012-04-05-2c5a295 Copyright (c) 2000-2012 the FFmpeg developers

built on Apr 18 2012 18:00:41 with gcc 4.4.5
configuration: --enable-gpl --enable-libx264 --enable-nonfree --enable-libfaac
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 66.101 / 2. 66.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100

[wmv3 @ 0xa935980] Extra data: 8 bits left, value: 0
Input #0, asf, from 'sample.wmv':

Metadata:

WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0

Duration: 00:00:03.90, start: 0.000000, bitrate: 1707 kb/s

Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 48 kb/s
Stream #0:1: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 426x240, 1500 kb/s, 29.97 tbr, 1k tbn, 1k tbc

[buffer @ 0xa92f1a0] w:426 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[scale @ 0xa969ea0] w:426 h:240 fmt:yuv420p sar:0/1 -> w:480 h:270 fmt:yuv420p sar:0/1 flags:0x4
[libx264 @ 0xa936c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle? SSE4.2
[libx264 @ 0xa936c00] profile High, level 2.1
[libx264 @ 0xa936c00] 264 - core 122 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[wmv3 @ 0xa935980] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'sample.mp4':

Metadata:

WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
encoder : Lavf54.3.100
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 480x270, q=-1--1, 30k tbn, 29.97 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 64 kb/s

Stream mapping:

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

Press [q] to stop, ? for help
[mp4 @ 0xa9364c0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 7168 >= 6615
av_interleaved_write_frame(): Invalid argument

Attachments (1)

sample.wmv (812.9 KB) - added by davidengler 5 years ago.
This is the sample file. Thank you!

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by davidengler

This is the sample file. Thank you!

comment:1 follow-up: Changed 5 years ago by cehoyos

  • Keywords av_interleaved_write_frame added

Please test current git head.

Is this also reproducible without using external libraries (libx264 and libfaac)?
Is this also reproducible with -an or -vn?

comment:2 in reply to: ↑ 1 Changed 5 years ago by davidengler

Replying to cehoyos:

Please test current git head.

Is this also reproducible without using external libraries (libx264 and libfaac)?
Is this also reproducible with -an or -vn?

works fine with -an, still errors with -vn
here is output without using external libs:

# '/usr/local/bin/ffmpeg' -y -i sample.wmv sample.mp4
ffmpeg version git-2012-04-05-2c5a295 Copyright (c) 2000-2012 the FFmpeg developers

built on Apr 18 2012 18:00:41 with gcc 4.4.5
configuration: --enable-gpl --enable-libx264 --enable-nonfree --enable-libfaac
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 66.101 / 2. 66.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100

[wmv3 @ 0xa1a1980] Extra data: 8 bits left, value: 0
Input #0, asf, from 'sample.wmv':

Metadata:

WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0

Duration: 00:00:03.90, start: 0.000000, bitrate: 1707 kb/s

Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 48 kb/s
Stream #0:1: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 426x240, 1500 kb/s, 29.97 tbr, 1k tbn, 1k tbc

[buffer @ 0xa19b1a0] w:426 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[libx264 @ 0xa1a2c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle? SSE4.2
[libx264 @ 0xa1a2c00] profile High, level 2.1
[libx264 @ 0xa1a2c00] 264 - core 122 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[wmv3 @ 0xa1a1980] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'sample.mp4':

Metadata:

WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
encoder : Lavf54.3.100
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 426x240, q=-1--1, 30k tbn, 29.97 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 128 kb/s

Stream mapping:

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

Press [q] to stop, ? for help
[mp4 @ 0xa1a24c0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 7168 >= 6615
av_interleaved_write_frame(): Invalid argument

comment:3 follow-up: Changed 5 years ago by cehoyos

Please test current git head.

To test without external libraries (and without recompiling), use -an -vcodec mpeg4

comment:4 in reply to: ↑ 3 ; follow-up: Changed 5 years ago by davidengler

Replying to cehoyos:

Please test current git head.

To test without external libraries (and without recompiling), use -an -vcodec mpeg4

this one works fine , but of course no audio, and poor video quality -

# '/usr/local/bin/ffmpeg' -y -i sample.wmv -threads 0 -strict experimental -vcodec mpeg4 -ab 64k -s 480x270 -t 10000 -an sample.mp4

not sure what current git head means - do you mean latest ffmpeg version?

Last edited 5 years ago by davidengler (previous) (diff)

comment:5 in reply to: ↑ 4 ; follow-up: Changed 5 years ago by cehoyos

Replying to davidengler:

Replying to cehoyos:

Please test current git head.

To test without external libraries (and without recompiling), use -an -vcodec mpeg4

this one works fine , but of course no audio, and poor video quality -

I assume it also works with audio, and you can use -qscale -vb to increase the quality.

not sure what current git head means - do you mean latest ffmpeg version?

Current git head is the latest FFmpeg version, yes.

comment:6 in reply to: ↑ 5 Changed 5 years ago by davidengler

Replying to cehoyos:

Replying to davidengler:

Replying to cehoyos:

Please test current git head.

To test without external libraries (and without recompiling), use -an -vcodec mpeg4

this one works fine , but of course no audio, and poor video quality -

I assume it also works with audio, and you can use -qscale -vb to increase the quality.

not sure what current git head means - do you mean latest ffmpeg version?

Current git head is the latest FFmpeg version, yes.

no errors with current git head. thank you! :)
but...... the video has a green line on top and the colors are not very good

Version 0, edited 5 years ago by davidengler (next)

comment:7 Changed 5 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

Thank you for clarifying.

Note: See TracTickets for help on using tickets.