[libav-tools] libav-tools Digest, Vol 18, Issue 6

Ares Zhang ares19851110 at gmail.com
Tue Oct 23 03:40:34 CEST 2012


Software decoder in 64bit-mingw work well. How to get a backtrace?
I debug my program with outputing log information.
System: Ubuntu12.04
Mingw: mingw-w64 2.0.1-1
Libav: libav-v0.8-2551-gc83f44d

Below it's my output information

[09:27:48] starting job
Encoding: task 1 of 1, 0.00 %[09:27:50] work: sanitizing track 1 mixdown
Dolby P
ro Logic II to Stereo
[09:27:50] sync: expecting 95 video frames
[09:27:50] job configuration:
[09:27:50]  * source
[09:27:50]    + in/blueangels.m2ps
[09:27:50]    + title 1, frames 0 to 100
[09:27:50]    + container: matroska,webm
[09:27:50]  * destination
[09:27:50]    + m2ps.m4v
[09:27:50]    + container: MPEG-4 (.mp4 and .m4v)
[09:27:50]  * video track
[09:27:50]    + decoder: mpeg2video
[09:27:50]      + bitrate 104857 kbps
[09:27:50]    + frame rate: same as source (around 23.937 fps)
[09:27:50]    + filters
[09:27:50]      + Framerate Shaper (0:27000000:1127981)
[09:27:50]        + frame rate: same as source (around 23.937 fps)
[09:27:50]      + Hardware Acceleration Crop and Scale (1280:720:0:0:0:0)
[09:27:50]        + source: 1920 * 1072, crop (0/0/0/0): 1920 * 1072,
scale: 1280 * 720
[09:27:50]    + custom anamorphic
[09:27:50]      + keeping source display aspect ratio
[09:27:50]      + storage dimensions: 1280 * 720, mod 0
[09:27:50]      + pixel aspect ratio: 1289 / 1280
[09:27:50]      + display dimensions: 1289 * 720
[09:27:50]    + encoder: H.264 (x264)
[09:27:50]      + options:
ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0
[09:27:50]      + quality: 20.00 (RF)
[09:27:50]  * audio track 1
[09:27:50]    + decoder: Unknown (aac) (2.0 ch) (track 1, id 0x1)
[09:27:50]      + samplerate: 48000 Hz
[09:27:50]    + mixdown: Stereo
[09:27:50]    + encoder: AAC (faac)
[09:27:50]      + bitrate: 160 kbps, samplerate: 48000 Hz
[09:27:50] reader: first SCR 0 id 0x1 DTS 0
Encoding: task 1 of 1, 0.00 %[09:27:50] dxva2:hb_d3d_create_device succeed
[09:27:50] dxva2:OurDirect3DCreateDeviceManager9 Success!
[09:27:50] dxva2:obtained IDirect3DDeviceManager9
[09:27:50] dxva2:DXVA2CreateVideoService Success!
[09:27:50] dxva2:'DXVA2_ModeMPEG2_VLD' is supported by hardware
[09:27:50] dxva2:'DXVA2_ModeMPEG2_IDCT' is supported by hardware
[09:27:50] dxva2:'H.264 VLD, no FGT' is supported by hardware
[09:27:50] dxva2:'VC-1 VLD' is supported by hardware
[09:27:50] dxva2: Trying to use 'DXVA2_ModeMPEG2_VLD' as input
[09:27:50] dxva2:NV12 is supported for output
[09:27:50] dxva2:Using 'DXVA2_ModeMPEG2_VLD' to decode to 'NV12'
[09:27:50] dxva2:CreateSurface succeed with 3, fmt (1920x1072) surfaces
(1920x1072)
[09:27:50] dxva2:we got 2 decoder configurations
[09:27:50] dxva2:configuration[0] ConfigBitstreamRaw 1
[09:27:50] dxva2:configuration[1] ConfigBitstreamRaw 1
[09:27:50] dxva2:IDirectXVideoDecoderService_CreateVideoDecoder succeed
[09:27:50] dxva2:Using DXVA2 for hardware decoding
[09:27:50] encx264: min-keyint: 24, keyint: 240
[09:27:50] in avcodec_decode_video2 lllllllllllllllllllllllll
[09:27:50] encx264: encoding with stored aspect 1289/1280
[09:27:50] dxva2:Available decoder output format 61 (PIX_FMT_DXVA2_VLD)
[09:27:50] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1289/1280
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign
LZCNT
x264 [info]: profile Main, level 3.1
The red line is my debug log. It's printed before enter
avcodec_decodec_video2 fuction.
After that it crashes.
2012/10/22 <libav-tools-request at libav.org>

> Send libav-tools mailing list submissions to
>         libav-tools at libav.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.libav.org/mailman/listinfo/libav-tools
> or, via email, send a message with subject or body 'help' to
>         libav-tools-request at libav.org
>
> You can reach the person managing the list at
>         libav-tools-owner at libav.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libav-tools digest..."
>
>
> Today's Topics:
>
>    1. hardware decode (Ares Zhang)
>    2. Re: hardware decode (Janne Grunau)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 22 Oct 2012 15:02:08 +0800
> From: Ares Zhang <ares19851110 at gmail.com>
> To: libav-tools at libav.org
> Subject: [libav-tools] hardware decode
> Message-ID:
>         <CAH-xzxR1c+VivHdbWDoOoNiXizr8jN6Hi9p2xN8YYA=
> yrL-geg at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Version:libav-v0.8-2551-gc83f44d.
> I compile it with 32bit-mingw and use it to decode .m2ps video with
> hardware. It works well
> But I compile it with 64bit-mingw and use it to decode .m2ps video with
> hardware. It crashes when call avcodec_decode_video2().
> I don?t know why. Anyone can help me?
>
> my configure option:
>      --disable-doc \
>      --disable-bsfs \
>      --disable-avconv \
>      --disable-avplay \
>      --disable-avprobe \
>      --disable-avserver \
>      --disable-avfilter \
>      --disable-muxers \
>      --disable-network \
>      --disable-vaapi \
>      --enable-dxva2 \
>      --enable-encoder=flac \
>      --enable-encoder=ac3 \
>      --enable-encoder=aac \
>      --enable-encoder=mpeg4 \
>      --enable-encoder=mpeg2video \
>      --enable-encoder=snow \
>      --enable-gpl \
>      --enable-zlib \
>      --enable-bzlib \
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.libav.org/pipermail/libav-tools/attachments/20121022/ae0f983e/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Oct 2012 11:19:56 +0200
> From: Janne Grunau <janne-libav at jannau.net>
> To: Usage of the libav applications <libav-tools at libav.org>
> Subject: Re: [libav-tools] hardware decode
> Message-ID: <20121022091956.GC27547 at sianko.jannau.net>
> Content-Type: text/plain; charset=utf-8
>
> On 2012-10-22 15:02:08 +0800, Ares Zhang wrote:
> > Version:libav-v0.8-2551-gc83f44d.
> > I compile it with 32bit-mingw and use it to decode .m2ps video with
> > hardware. It works well
> > But I compile it with 64bit-mingw and use it to decode .m2ps video with
> > hardware. It crashes when call avcodec_decode_video2().
> > I don?t know why. Anyone can help me?
>
> Since I and probably many others can't easily debug this. Does the
> software decoder in 64bit-mingw work? Do you have a crash report with
> backtrace?
>
> Janne
>
>
> ------------------------------
>
> _______________________________________________
> libav-tools mailing list
> libav-tools at libav.org
> https://lists.libav.org/mailman/listinfo/libav-tools
>
>
> End of libav-tools Digest, Vol 18, Issue 6
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20121023/907f7369/attachment.html>


More information about the libav-tools mailing list