[Libav-user] Video streaming file replacing

2018-02-01 Thread Yuriy Pryyma
Hi, guys I`m writing an application that replace streaming video files(HLS, MPEG-DASH) files with empty dummy videos. Basically I need to 1) Open .ts file for example 2) Read all its properties(duration, frame rate) 3) Create output context with the same properties 4) Write empty frames wi

[Libav-user] muxing.c example with dash format

2018-02-13 Thread Yuriy Pryyma
I have set output format to dash in muxing.c(I have removed audio stream) Here:     avformat_alloc_output_context2(&oc, NULL, "dash", filename); Program generated "chunk-stream0-1.m4s" "init-stream0.m4s" "main.mpd" Looks like everything is good, but video is black when playing using MP4Client

Re: [Libav-user] muxing.c example with dash format

2018-02-14 Thread Yuriy Pryyma
and c is your AvCodecContext. Gabriel. http://lives-video.com https://www.openhub.net/accounts/salsaman On Tue, Feb 13, 2018 at 11:14 AM, Yuriy Pryyma <mailto:priymayu...@gmail.com>> wrote: I have set output format to dash in muxing.c(I have removed audi

[Libav-user] Container duration

2018-02-16 Thread Yuriy Pryyma
I have some question regarding duration 1)Why we are adding "magic" 5000 to AVFormatContext duration in av_dump_format function? See here https://github.com/FFmpeg/FFmpeg/blob/9b79c65ec06f2bbe4f44c615b9df70db23126250/libavformat/dump.c#L576 2) How to set container duration longer then stream

[Libav-user] One frame video

2018-02-28 Thread Yuriy Pryyma
Good time of day I'm writing program that creates long videos("mp4 container") that show only one frame for all time. The idea is to write only one AVPacket that will be played for all time(seting pkt.pts, pkt.duration). The problem is that video is very short after that(this does not work). S