Questions tagged [pts]

The presentation timestamp (PTS) is a timestamp metadata field in a video stream.

78 questions
1
vote
0 answers

how to use the pts in ffmpeg

I have a library with can provide video data and PTS. The library head file Like this: /** * \brief Write mirror video H.264 frame to player. * \param p_src Pointer to source buffer. * \param size H.264 frame size. (unit:…
Allan
  • 41
  • 4
1
vote
1 answer

measuring the effect of eglPresentationTimeANDROID()

I am debugging a C++ video renderer that uses eglPresentationTimeANDROID() to improve the lipsynk. This egl extension is not available on all devices I tested, but for some (e.g. adreno), it must be manually disabled - otherwise the stream gets…
Alex Cohn
  • 56,089
  • 9
  • 113
  • 307
1
vote
1 answer

Read noonnamed pipe in terminal

Hellow. I have very simple C program. I create pipe in program (standard, non-named). Can I read pipe of existing process in terminal (stream with > or cat?). I try it but my command do nothing. Im know tkat i can create named pipe who is very easy…
Kirk Brodie
  • 42
  • 1
  • 7
1
vote
1 answer

Android Native Window timestamp

I've got a simple NDK Android code to decode and play simple video file. I have noticed that Android has native_window_set_buffers_timestamp(ANativeWindow, int64_t); method. I read that it gives timestamps to frames added to the queue. Is there a…
1
vote
2 answers

bash invoked via ssh does not store variables

there is a problem with the invoked via ssh bash, although i have read mans about it i still can't explain the following: Here is a script, very simple #!/bin/bash theUser=$1 theHost=$2 ssh -tt $theUser@$theHost 'bash' << EOF a=1 echo 'dat…
user3909893
  • 421
  • 1
  • 4
  • 15
1
vote
2 answers

Writing PTS/DTS to MPEG Stream (Gstreamer)

So, for a GNURadio project, I am sending MPEG-2 video muxed with PSIP data to my TV. The actual passing of said data and video is fine, however, the video is not decoded properly. It is mostly blank with blinking blocks everywhere, with fast moving…
user3693244
1
vote
1 answer

use ffmpeg to parse info about presentation time in h264 stream encoded by MediaCodec

I have seen the below example for encode/decode using MediaCodec API. https://android.googlesource.com/platform/cts/+/jb-mr2-release/tests/tests/media/src/android/media/cts/EncodeDecodeTest.java In which there is a comparsion of the guessed…
Phan Lac Phuc
  • 87
  • 1
  • 7
1
vote
2 answers

Importing a large point cloud data file into MATLAB

I am a new MATLAB user with little programming experience (I have a mechanical engineering background) so I apologise in advance if this is a simple question! I am trying to import a large point cloud file (.pts file extension) into MATLAB for…
TEnsbury
  • 13
  • 3
1
vote
1 answer

How to capture stdout from another pts?

I have say two terminal sessions pts/10 and pts/11. In pts/10, I want to capture the stdout of any process that takes place in pts/11 and redirect it to a file. I know that the output can be redirected from pts/11 itself (using >/dev/pts/10), but I…
Nehal J Wani
  • 16,071
  • 3
  • 64
  • 89
0
votes
3 answers

writing to terminal from Java

Process proc = new ProcessBuilder("xterm").start(); How can I write and execute commands into this xterm window after the process has been initiated? In my application I definitely do require executing commands in the same xterm window after it has…
Ameet Gohil
  • 93
  • 1
  • 6
0
votes
0 answers

ffmpeg - set pts for vfr video from list of values

I have a list of timestamps in milliseconds that I want to apply as the PTS values of a video stream. The video is a h264 stream without a container and I want to stream copy into an MKV with the PTS values from a text file. The video has a…
DanWheeler
  • 188
  • 10
0
votes
0 answers

ffmpeg - pts drift after seek with codec copy

There are two ffmpeg commands. First one is used to seek and copy video chunk. Second one is used to transcode video chunk applying select filter for exact frames match. Here is how: ffmpeg -ss -to -copyts -i -map 0:v:0…
Andrey Rikunov
  • 115
  • 2
  • 11
0
votes
1 answer

Problem about saving cv::Mat to mp4 file via appsrc

I want to save CV:: mat as MP4 file through appsrc or forward it through RTMP. I implemented a simple code that can run successfully, but the obtained MP4 file cannot be played. Can someone tell me what the problem is? I think maybe the PTS is set…
DJI_lover
  • 61
  • 1
  • 6
0
votes
1 answer

Snooping on pseudo terminal

I want to write a program that can capture the input/output of a pseudo terminal without it affecting the original terminal. It can be likened to pointing script to a /dev/pts/. Use Case: A user ssh's into my machine and runs an interactive tool.…
incubus
  • 681
  • 1
  • 5
  • 21
0
votes
1 answer

ffmpeg +libx264 iPhone -> 'avcodec_encode_video' return always 0 . please advice

av_register_all(); AVCodec *codec; AVCodecContext *c= NULL; int out_size, size, outbuf_size; //FILE *f; uint8_t *outbuf; printf("Video encoding\n"); /* find the mpeg video…
isaiah
  • 1
  • 1
  • 6