[FFmpeg-user] Problems saving rtsp stream directly as mpegts

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Nov 3 02:45:59 CET 2014


Jonathan Viney <jonathan.viney <at> gmail.com> writes:

> ffmpeg -i rtsp://10.9.9.3:554/axis-media/media.amp -c copy -f mpegts out.ts
> 
> This seems to work fine, but the output file is 
> not recognised by ffmpeg/ffprobe.

Complete, uncut console output missing.
(I would have expected above command to return an 
error message and I would like to know why there 
is no such message.)

> If I do it in two steps, first saving the stream 
> as a .mp4, it converts to mpegts fine with:
> 
> ffmpeg -i out.mp4 -c copy -bsf h264_mp4toannexb out.ts
> 
> Is it possible to do this in one step without the 
> intermediary file?

What happens if you add the bitstreamfilter to the 
first command?

Carl Eugen



More information about the ffmpeg-user mailing list