Re: [Libav-user] avformat_open_input can not open input file (example code)

2012-10-31 Thread Wenpeng Zhou
Hi, The problem was resolved! -Original Message- From: libav-user-boun...@ffmpeg.org [mailto:libav-user-boun...@ffmpeg.org] On Behalf Of Wenpeng Zhou Sent: 31. lokakuuta 2012 9:48 To: 'This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.' Subject:

[Libav-user] usb-camera fill realtime buffer

2012-10-31 Thread pi88el
hi guy's, i'new in libav and have a little problem. i have a thread which read frames from a usb-camera. this is happening in a thread, which i made pauseable. but when i pause the thread the real time buffer stil get filled with frames from the camera until it is full. so when i continue the

[Libav-user] How can we set frame size for live stream?

2012-10-31 Thread Wenpeng Zhou
Hi, I use the USB camera to capture live video. The default codec context is: Input #0, dshow, from 'video=Mercury USB2.0 Camera': Duration: N/A, start: 58890.453000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 1280x720, 30 tbr, 1k tbn, 30 tbc I hope to change frame size from

Re: [Libav-user] How can we set frame size for live stream?

2012-10-31 Thread Carl Eugen Hoyos
Wenpeng Zhou zhou.wenpeng@... writes: Input #0, dshow, from 'video=Mercury USB2.0 Camera': Duration: N/A, start: 58890.453000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 1280x720, 30 tbr, 1k tbn, 30 tbc I hope to change frame size from 1280x720 to 640x480. If your

Re: [Libav-user] How can we set frame size for live stream?

2012-10-31 Thread Wenpeng Zhou
Hi Carl, Thanks for your reply! I mean this command. ffplay -f dshow -i video=Mercury USB2.0 Camera -s 640x480 How can we set 640x480 in C++ code? -Original Message- From: libav-user-boun...@ffmpeg.org [mailto:libav-user-boun...@ffmpeg.org] On Behalf Of Carl Eugen Hoyos Sent: 31.

Re: [Libav-user] How can we set frame size for live stream?

2012-10-31 Thread Carl Eugen Hoyos
Wenpeng Zhou zhou.wenpeng@... writes: I mean this command. ffplay -f dshow -i video=Mercury USB2.0 Camera -s 640x480 How can we set 640x480 in C++ code? To quote my original answer: there is libswscale (or the scale filter that uses libswscale) to do the resizing. See

Re: [Libav-user] soft telecine 29.97 fps

2012-10-31 Thread Carl Eugen Hoyos
Alex Balk abalk@... writes: When i use ffmpeg to encode an h264 input into mpeg2 video, I notice that even though my h264 file has some frames with pic_struct = 8 indicating frame doubling for soft telecined video, the mpeg2 output has the repeat_first_field set to 0 on all frames. I am

[Libav-user] Need help for decoding AAC with ffmpeg and separated AVCodecContex

2012-10-31 Thread lingshan kong
hi I need some help with decoding AAC stream of audio. I get audio data via socket. It is neccessary to create AVCodecContext separately, not from AVFormatContext-streams[...]-codec; First i create AVCodec, AVCOdecContext and encode PCM data to AAC packet: avcodec_init();

Re: [Libav-user] Need help for decoding AAC with ffmpeg and separated AVCodecContex

2012-10-31 Thread Michael Bradshaw
On Tue, Oct 30, 2012 at 8:10 PM, lingshan kong konglings...@duoku.com wrote: hi I need some help with decoding AAC stream of audio. What version of FFmpeg libraries are you using? There are some old functions you're using (like avcodec_open()). Also, try following the Audio Decoding (starts at

Re: [Libav-user] How can we set frame size for live stream?

2012-10-31 Thread Wenpeng Zhou
I mean this command. ffplay -f dshow -i video=Mercury USB2.0 Camera -s 640x480 How can we set 640x480 in C++ code? To quote my original answer: there is libswscale (or the scale filter that uses libswscale) to do the resizing. See doc/examples/filtering_video.c for an example for on how