[FFmpeg-devel] How to get correctly timestamp of mp3?

2016-10-10 Thread Halley Zhao
Hi expert: I have one mp3 file, when I play it normally from beginning to the end . the last pts equal to duration. but when I do some seek in the middle of playback, the final several packet pts is bigger than duration. I guess it is caused by the fact of VBR mp3 file, we calculate a non-accurat

Re: [FFmpeg-devel] how to download specific track data of a m3u8 content?

2016-07-01 Thread Halley Zhao
track as well when video track is changed, to use single program only. 2016-07-01 13:20 GMT+08:00 Halley Zhao : > I tried ffplay on Ubuntu15.10, not expected result. seems buggy: > ffplay.c, 3160, got packet with stream_index: 0 > ffplay.c, 3160, got packet with stream_index: 2 > ff

Re: [FFmpeg-devel] how to download specific track data of a m3u8 content?

2016-06-30 Thread Halley Zhao
stream_index: 2 ffplay.c, 3160, got packet with stream_index: 4 ffplay.c, 3160, got packet with stream_index: 0 ffplay.c, 3160, got packet with stream_index: 2 2016-07-01 9:22 GMT+08:00 Halley Zhao : > I tried it; but got unexpected result. > the pkt of discarded stream (stream_ind

Re: [FFmpeg-devel] how to download specific track data of a m3u8 content?

2016-06-30 Thread Halley Zhao
I tried it; but got unexpected result. the pkt of discarded stream (stream_index) is still got from av_read_frame(). my code is here: https://github.com/halleyzhao/player-ffmpeg-yami/blob/m3u8/player.c ## the code piece is here: #define MAX_TRACK_COUNT 10 uint32_t video_tracks[MAX_TRA