Hi, I'm trying to use this little program to reset the PTS values in a transport stream (I also can't get ffmpeg to work properly with setpts). The code is crashing at this line:
pCodec = avcodec_find_decoder(pVideoStream->codec->codec_id);
I think because pVideoStream is null. I've been trying to track down the issue and it looks like fps is NAN in the for loop above. Not sure why that is. I'm not an expert at video file formats, so I'm a little out of my depth but would love to use this code if I'm able to get it working.
Any thoughts?
Hi, I'm trying to use this little program to reset the PTS values in a transport stream (I also can't get ffmpeg to work properly with setpts). The code is crashing at this line:
pCodec = avcodec_find_decoder(pVideoStream->codec->codec_id);
I think because pVideoStream is null. I've been trying to track down the issue and it looks like fps is NAN in the for loop above. Not sure why that is. I'm not an expert at video file formats, so I'm a little out of my depth but would love to use this code if I'm able to get it working.
Any thoughts?