Axis Customer Forum

It is currently Mon Sep 23, 2019 8:08 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jul 09, 2012 7:04 pm 

Joined: Mon Jul 09, 2012 6:51 pm
Posts: 2
Hi!

I am struggling for months trying to save rtsp stream from AXIS P5512-E Network Camera as .ts file (MPEGTS). Camera firmware version: 5.25.

When using ffmpeg-0.11.1 and command
[admin@gpks ffmpeg-0.11.1]$ ./ffmpeg -rtsp_transport http -i rtsp://ip:44426/axis-media/media.amp -vcodec copy -t 5 -y /tmp/test.copy.ts

I get no errors and normally looking file, but when trying to play it with any video player (VLC, Windows Media) there is no video, VLC is giving multiple messages 'packetizer_h264 warning: waiting for SPS/PPS' and ffprobe gives

[h264 @ 0x9d9a2a0] non-existing PPS referenced
[h264 @ 0x9d9a2a0] non-existing PPS 0 referenced
[h264 @ 0x9d9a2a0] decode_slice_header error
[h264 @ 0x9d9a2a0] no frame!

I also tried ffmpeg-0.10.4, it throws error straight away:
[mpegts @ 0xa416280] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter
av_interleaved_write_frame(): Invalid data found when processing input

For some reason saving to .mkv file works, it can be later played, but I cannot stream it, and when attempting to convert to .ts file I get this again:
ffmpeg -i /tmp/test.copy.mkv -vcodec copy /tmp/test.copy.ts
[mpegts @ 0x9b06380] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter
av_interleaved_write_frame(): Invalid data found when processing input

Any ideas please?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2012 11:07 pm 

Joined: Mon Jul 09, 2012 6:51 pm
Posts: 2
I found workaround for this, first I save the stream to .mp4 file, and then convert it to .ts by the same ffmpeg program. So I think it is much more likely to be ffmpeg issue rather than Axis'.
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 18, 2013 4:17 pm 

Joined: Thu Aug 11, 2011 1:12 pm
Posts: 2
In fact, the camera Stream does not contain SPS/PPS packet, that's why decoders are not able to play the .ts files, as they does not have enough informations about the encoded video.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group