Re: [Libav-user] Syncing multiple sources.

2019-02-01 Thread Hristo Ivanov
Hi Carl, > But the setpts filter is changing the framerate to 60 fps, no? I am pretty sure it does not, it changes the timebase in use. In a stream with 1/30 tb and pts values [0,1,2,3,4,5], using a 1/60 tb those pts values would change to [0,2,4,6,8,10]. > WMP only supports yuv420p, this is

Re: [Libav-user] Syncing multiple sources.

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 15:58 GMT+01:00, Hristo Ivanov : >> Please note that "-vsync 0 -f mp4" is not valid as FFmpeg's >> mp4 muxer only support cfr. > > Yeah, the generated file by this command is not playable by > the default windows player, but vlc plays the file fine. WMP only supports yuv420p, this is

Re: [Libav-user] Syncing multiple sources.

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 15:58 GMT+01:00, Hristo Ivanov : >> In this example, it looks as if the input already has 60fps. > > The inputs is 30fps, set by the '-r' flag. Maybe the settb filter is > throwing you off, but it only changes the timebase to 1/60, the > framerate is kept to 30/1. But the setpts

Re: [Libav-user] Syncing multiple sources.

2019-01-31 Thread Hristo Ivanov
Hi Carl, > In this example, it looks as if the input already has 60fps. The inputs is 30fps, set by the '-r' flag. Maybe the settb filter is throwing you off, but it only changes the timebase to 1/60, the framerate is kept to 30/1. > Your original email gave the impression that vstack somehow

Re: [Libav-user] Syncing multiple sources.

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 12:41 GMT+01:00, Hristo Ivanov : >> How can I reproduce this (major?) issue with ffmpeg (the application)? > > .\ffmpeg.exe -y -loop 1 -r 30 -t 5 -i .\frame.png -filter_complex > "[0]settb=expr=1/60[tb];[tb]split[s0][s1];[s1]setpts=PTS+1[offset];[s0][offset]vstack[out]" > -map [out]

Re: [Libav-user] Syncing multiple sources.

2019-01-31 Thread Hristo Ivanov
Hi Carl. > How can I reproduce this (major?) issue with ffmpeg (the application)? .\ffmpeg.exe -y -loop 1 -r 30 -t 5 -i .\frame.png -filter_complex "[0]settb=expr=1/60[tb];[tb]split[s0][s1];[s1]setpts=PTS+1[offset];[s0][offset]vstack[out]" -map [out] -c:v h264 -vsync 0 -f mp4 out.mp4 Here is

Re: [Libav-user] Syncing multiple sources.

2019-01-30 Thread Carl Eugen Hoyos
2019-01-30 16:41 GMT+01:00, Hristo Ivanov : > Hi. > > In my program I have the following filter: > " > [in0]format=pix_fmts=yuv420p,scale=-1:540[s0]; > [in1]format=pix_fmts=yuv420p,scale=-1:540[s1]; > [s0][s1]vstack[stacked]; > [stacked]pad=1920:1080:(ow-iw)/2:0[out0] > " > > My problem comes

Re: [Libav-user] Syncing multiple sources.

2019-01-30 Thread Hristo Ivanov
Hi I forgot to speak about the timebases in use, and those are important in this case. For my two inputs, after decoding, my AVCodecContexts have the following framerates and timebases: in0 => 30/1, 1/60 in1 => 359/12, 6/359 // Well this is not exactly 30fps, but close. The common selected

[Libav-user] Syncing multiple sources.

2019-01-30 Thread Hristo Ivanov
Hi. In my program I have the following filter: " [in0]format=pix_fmts=yuv420p,scale=-1:540[s0]; [in1]format=pix_fmts=yuv420p,scale=-1:540[s1]; [s0][s1]vstack[stacked]; [stacked]pad=1920:1080:(ow-iw)/2:0[out0] " My problem comes from the 'vstack' filter. The stack filters assign the same