[FFmpeg-user] parse mkv file wrong problem

Steven Liu lingjiujianke at gmail.com
Tue Oct 16 03:35:06 CEST 2012


Hi Roger Pack


           perhaps i have used error parameter?

           ffmpeg -i Hotcha.mkv -strict experimental -acodec aac
-vcodec libx264 -pix_fmt yuv420p -debug_ts -b:v 2000k   -b:a 192k -ar
44100 -preset ultrafast -vprofile main -vlevel 3.1 -map 0 -f segment
-segment_time 10 -segment_format mpegts -segment_list a.m3u8
-segment_list_flags live -async 1 -bsf:v h264_mp4toannexb -v debug
-window_size hd720 test-%d.ts



Thanks



2012/10/15 Steven Liu <lingjiujianke at gmail.com>:
> Hi all,
>
>       When i transcode the mkv file like this:
>        http://blog.fs-linux.org/Hotcha.mkv
>       It give the message bellow:
>
>       [matroska,webm @ 0x3207240] Format matroska,webm probed with
> size=2048 and score=100
> st:0 removing common factor 500000 from timebase
> st:1 removing common factor 500000 from timebase
> st:2 removing common factor 500000 from timebase
> st:3 removing common factor 500000 from timebase
> [matroska,webm @ 0x3207240] File position before
> avformat_find_stream_info() is 5965
> [matroska,webm @ 0x3207240] max_analyze_duration 5000000 reached at 5000000
> [matroska,webm @ 0x3207240] Could not find codec parameters for stream
> 2 (Video: h264 (H264 / 0x34363248), 1920x1080, 1/4000): unspecified
> pixel format
> Consider increasing the value for the 'analyzeduration' and 'probesize' options
> [matroska,webm @ 0x3207240] File position after
> avformat_find_stream_info() is 1981448
> Input #0, matroska,webm, from 'Hotcha.mkv':
>   Duration: 00:04:05.89, start: 0.000000, bitrate: 5621 kb/s
>     Stream #0:0(eng), 125, 1/2000: Video: h264 (High) (H264 /
> 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1/50, 25 fps, 25
> tbr, 2k tbn, 50 tbc (default)
>     Metadata:
>       BPS             : 5513740
>       BITSPS          : 5513740
>       FPS             : 24.9981
>     Stream #0:1, 218, 1/2000: Audio: aac, 44100 Hz, stereo, s16 (default)
>     Metadata:
>       FPS             : 43.0665
>       BPS             : 103356
>       BITSPS          : 103356
>     Stream #0:2(eng), 0, 1/2000: Video: h264 (H264 / 0x34363248),
> 1920x1080, 1/4000, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2k tbn, 4k tbc
> (default)
>     Metadata:
>       BPS             : 5513740
>       BITSPS          : 5513740
>       FPS             : 24.9981
>     Stream #0:3, 0, 1/2000: Audio: aac, 44100 Hz, stereo, s16 (default)
>     Metadata:
>       FPS             : 43.0665
>       BPS             : 103356
>       BITSPS          : 103356
> [graph 0 input from stream 0:0 @ 0x3351d80]Steven
> Print==args=|video_size=1920x1080:pix_fmt=0:time_base=1/2000:pixel_aspect=1/1:sws_param=flags=2:frame_rate=25/1|
> [buffer @ 0x3326d40] Setting entry with key 'video_size' to value '1920x1080'
> [buffer @ 0x3326d40] Setting entry with key 'pix_fmt' to value '0'
> [buffer @ 0x3326d40] Setting entry with key 'time_base' to value '1/2000'
> [buffer @ 0x3326d40] Setting entry with key 'pixel_aspect' to value '1/1'
> [buffer @ 0x3326d40] Setting entry with key 'sws_param' to value 'flags=2'
> [buffer @ 0x3326d40] Setting entry with key 'frame_rate' to value '25/1'
> [graph 0 input from stream 0:0 @ 0x3351d80] w:1920 h:1080
> pixfmt:yuv420p tb:1/2000 fr:25/1 sar:1/1 sws_param:flags=2
> [abuffer @ 0x3313c60] Setting entry with key 'time_base' to value '1/44100'
> [abuffer @ 0x3313c60] Setting entry with key 'sample_rate' to value '44100'
> [abuffer @ 0x3313c60] Setting entry with key 'sample_fmt' to value 's16'
> [abuffer @ 0x3313c60] Setting entry with key 'channel_layout' to value '0x3'
> [graph 1 input from stream 0:1 @ 0x32c18e0] tb:1/44100 samplefmt:s16
> samplerate:44100 chlayout:0x3
> -async is forwarded to lavfi similarly to -af
> aresample=min_comp=0.001:min_hard_comp=0.100000.
> [aformat @ 0x33262c0] Setting entry with key 'sample_fmts' to value 'fltp'
> [aformat @ 0x33262c0] Setting entry with key 'sample_rates' to value '44100'
> [graph 1 aresample for input stream 0:1 @ 0x3308ba0] chl:stereo
> fmt:s16 r:44100Hz -> chl:stereo fmt:fltp r:44100Hz
> [graph 2 input from stream 0:2 @ 0x3313be0] Steven Print
> ==args=|video_size=1920x1080:pix_fmt=-1:time_base=1/2000:pixel_aspect=1/1:sws_param=flags=2:frame_rate=25/1|
> [buffer @ 0x3312580] Setting entry with key 'video_size' to value '1920x1080'
> [buffer @ 0x3312580] Setting entry with key 'pix_fmt' to value '-1'
> [buffer @ 0x3312580] Unable to parse option value "-1" as pixel format
>
>
>
> Perhaps the error was at demux the mkv file,
>
> Michael,
>
>        Is this a BUG?
>
>
>
> Best regards


More information about the ffmpeg-user mailing list