[Libav-user] How to set display and sample aspect ratio in stream

2015-10-14 Thread qw
Hi, I use ffmpeg to encode video/audio and mux video/audio streams into one files. How to set display and sample aspect ratio for video stream? Thanks! B.R. Andrew___ Libav-user mailing list Libav-user@ffmpeg.org

[Libav-user] WMV File shows no progress on playback.

2015-10-14 Thread Kevin J. Brooks
I am successfully recording video and audio captured from devices attached to the computer. However, when the file is played back using Windows Media player, the progress slider at the bottom is not updated. I do write the trailer just before calling avformat_free_context with my output

Re: [Libav-user] WMV File shows no progress on playback.

2015-10-14 Thread Robin Stevens
Most likely time info is wrong: pts values or time base. Run the file through ffmpeg.exe with acodec and vcodec set to copy. This will remux the file and yield compliant (though not necessarily correct) timestamps. If the remuxed version plays ok, examine it to find out its time base and the

Re: [Libav-user] How to set display and sample aspect ratio in stream

2015-10-14 Thread Carl Eugen Hoyos
qw writes: > I use ffmpeg to encode video/audio and mux video/audio > streams into one files. How to set display From a programer's pov, there is no display aspect ratio. > and sample aspect ratio for video stream? (Where did you search for "aspect" in the code?) Video SAR

Re: [Libav-user] pts < dts error

2015-10-14 Thread Carl Eugen Hoyos
YIRAN LI writes: > But from one file I used I see that PTS == DTS. Could > this be produced by an encoder configure with non-zero > max bframes? Only if the encoder is broken afaict but I am certainly not an expert for these kind of questions. > If yes, do I still need to