[FFmpeg-user] ffplay can not play from the given point with the parameter "-ss 0" (for .wmv media file)

chenct1976 at sina.com chenct1976 at sina.com
Wed Feb 29 03:19:17 CET 2012


Dear experts.
I met a difficult question for a long time and need your help.
Test OS:  Win7 32bit + Wingw32
FFmpeg/FFplay version: v0.10
Question description:  
     When I played a .wmv media file with a given position in seconds, it can not play from the given point.
The first line test command:     
       ./ffplay_g -vf showinfo -i CassisDVD-30Clip.wmv -ss 0
The player can not play from 0 second, It played from about the 4th second.
But when I delete the parameter "-ss 0", use the second test command: 
        ./ffplay_g -vf showinfo -i CassisDVD-30Clip.wmv,  It can play from the begin.
My doubt: the first time test log says "first frame is no keyframe", But the second test for the same tested file,
it indicates the the first frame is key frame.
I dont know where is wrong, can you tell me the right reason?  
If it is ffplay's bug, any solution is more appreciated.
 
Thanks in advance !
Tom.chen
 
The first test log(part):
2012/02/29-09:35: ffplay version 0.10
2012/02/29-09:35: Copyright (c) 2003-2012 the FFmpeg developers
2012/02/29-09:35: built on Jan 29 2012 17:50:46 with gcc 4.5.2
2012/02/29-09:35: configuration: --prefix=/ffmpeg/release10 --enable-debug --disable-static --enable-shared --enable-gpl --enable-version3 --enable-avfilter --enable-memalign-hack --enable-avisynth --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-libspeex --enable-libopenjpeg --enable-libxavs --enable-libvpx --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libschroedinger --enable-libcelt --enable-frei0r --enable-libdirac --disable-decoder=libdirac --extra-cflags=-I/ffmpeg/olibs9/include --extra-ldflags=-L/ffmpeg/olibs9/lib --extra-libs=/mingw/lib/libdl.a
2012/02/29-09:35: libavutil 51. 34.101 / 51. 34.101
2012/02/29-09:35: libavcodec 53. 60.100 / 53. 60.100
2012/02/29-09:35: libavformat 53. 31.100 / 53. 31.100
2012/02/29-09:35: libavdevice 53. 4.100 / 53. 4.100
2012/02/29-09:35: libavfilter 2. 60.100 / 2. 60.100
2012/02/29-09:35: libswscale 2. 1.100 / 2. 1.100
2012/02/29-09:35: libswresample 0. 6.100 / 0. 6.100
2012/02/29-09:35: libpostproc 52. 0.100 / 52. 0.100
2012/02/29-09:35: Input #0, asf, from 'CassisDVD-30Clip.wmv':
2012/02/29-09:35: Metadata:
2012/02/29-09:35: encoder : Lavf53.31.100
2012/02/29-09:35: Duration: 
2012/02/29-09:35: 00:00:30.00
2012/02/29-09:35: start: 
2012/02/29-09:35: 0.000000
2012/02/29-09:35: bitrate: 
2012/02/29-09:35: 403 kb/s
2012/02/29-09:35: Stream #0:0
2012/02/29-09:35: Video: msmpeg4 (MP43 / 0x3334504D), yuv420p, 320x192
2012/02/29-09:35: 15 tbr
2012/02/29-09:35: 1k tbn
2012/02/29-09:35: 1k tbc
2012/02/29-09:35: Stream #0:1
2012/02/29-09:35: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 1 channels, s16, 128 kb/s
2012/02/29-09:35: [msmpeg4 @ 013cc640] warning: first frame is no keyframe
2012/02/29-09:35: [showinfo @ 0144b160] n:0 pts:3867 pts_time:3.867000 pos:119101 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:E47C0A8C plane_checksum:[F4E90708 BFED01C2 BFED01C2 00000000]
2012/02/29-09:35: [showinfo @ 0144b160] n:1 pts:3933 pts_time:3.933000 pos:119101 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:4DF0094C plane_checksum:[F4E90708 2DC60082 BFED01C2 00000000]
2012/02/29-09:35: [showinfo @ 0144b160] n:2 pts:4000 pts_time:4.000000 pos:119101 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:1 type:I checksum:01160E9C plane_checksum:[E0F5ADF4 B6A98E64 DD3BD226 00000000]
  
   ................
The second test log(part):
2012/02/29-10:00: ffplay version 0.10
2012/02/29-10:00: Copyright (c) 2003-2012 the FFmpeg developers
2012/02/29-10:00: built on Jan 29 2012 17:50:46 with gcc 4.5.2
2012/02/29-10:00: configuration: --prefix=/ffmpeg/release10 --enable-debug --disable-static --enable-shared --enable-gpl --enable-version3 --enable-avfilter --enable-memalign-hack --enable-avisynth --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-libspeex --enable-libopenjpeg --enable-libxavs --enable-libvpx --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libschroedinger --enable-libcelt --enable-frei0r --enable-libdirac --disable-decoder=libdirac --extra-cflags=-I/ffmpeg/olibs9/include --extra-ldflags=-L/ffmpeg/olibs9/lib --extra-libs=/mingw/lib/libdl.a
2012/02/29-10:00: libavutil 51. 34.101 / 51. 34.101
2012/02/29-10:00: libavcodec 53. 60.100 / 53. 60.100
2012/02/29-10:00: libavformat 53. 31.100 / 53. 31.100
2012/02/29-10:00: libavdevice 53. 4.100 / 53. 4.100
2012/02/29-10:00: libavfilter 2. 60.100 / 2. 60.100
2012/02/29-10:00: libswscale 2. 1.100 / 2. 1.100
2012/02/29-10:00: libswresample 0. 6.100 / 0. 6.100
2012/02/29-10:00: libpostproc 52. 0.100 / 52. 0.100
2012/02/29-10:00: Input #0, asf, from 'CassisDVD-30Clip.wmv':
2012/02/29-10:00: Metadata:
2012/02/29-10:00: encoder : Lavf53.31.100
2012/02/29-10:00: Duration: 
2012/02/29-10:00: 00:00:30.00
2012/02/29-10:00: start: 
2012/02/29-10:00: 0.000000
2012/02/29-10:00: bitrate: 
2012/02/29-10:00: 403 kb/s
2012/02/29-10:00: Stream #0:0
2012/02/29-10:00: Video: msmpeg4 (MP43 / 0x3334504D), yuv420p, 320x192
2012/02/29-10:00: 15 tbr
2012/02/29-10:00: 1k tbn
2012/02/29-10:00: 1k tbc
2012/02/29-10:00: Stream #0:1
2012/02/29-10:00: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 1 channels, s16, 128 kb/s
2012/02/29-10:00: [showinfo @ 013c8100] n:0 pts:0 pts_time:0.000000 pos:701 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:1 type:I checksum:5B85CE47 plane_checksum:[27BD38D2 BBA9CAB3 BBA9CAB3 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:1 pts:67 pts_time:0.067000 pos:701 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:5B85CE47 plane_checksum:[27BD38D2 BBA9CAB3 BBA9CAB3 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:2 pts:133 pts_time:0.133000 pos:701 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:A9C3D847 plane_checksum:[2FAB42D2 BBA9CAB3 BBA9CAB3 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:3 pts:200 pts_time:0.200000 pos:3901 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:2BB7BBAB plane_checksum:[9AC62636 BBA9CAB3 BBA9CAB3 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:4 pts:267 pts_time:0.267000 pos:7101 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:F6120EDC plane_checksum:[2C8A7958 BBA9CAB3 BBA9CAB3 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:5 pts:333 pts_time:0.333000 pos:7101 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:A0950EDB plane_checksum:[4F0D7957 BBA9CAB3 BBA9CAB3 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:6 pts:400 pts_time:0.400000 pos:10301 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:061B435E plane_checksum:[8483DB9A C19CB173 237DB633 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:7 pts:467 pts_time:0.467000 pos:10301 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:FB345D5B plane_checksum:[9F0401A0 64E8A41B 56C4B791 00000000]
2012/02/29-10:00: [showinfo @ 013c8100] n:8 pts:533 pts_time:0.533000 pos:13501 fmt:yuv420p sar:0/1 s:320x192 i:P iskey:0 type:P checksum:28788E10 plane_checksum:[573A3338 E6D0A31D 3890B7AC 00000000]

The tested file: http://www.datafilehost.com/download-2745d54c.html


More information about the ffmpeg-user mailing list