[SOLVED] Can we specify the codec separately from the format for mpeg live streaming
Posted: Tue Apr 05, 2016 6:27 am
I have been testing 1.29 on ubuntu 15 for a couple weeks and I really like it. Thanks guys. The recent release has inspired me to start rebuilding my old app and I am experimenting with different video formats for streaming to determine best quality vs bandwidth vs server load. As of a couple days ago, I am able to stream flv into my app with an unlimited number of live streams because I am bypassing the limits of max simulatenous connections by using low level sockets. When debugging streams of flv, I can see that they are encoded with h263. I would like to get an flv live stream encoded with h264 to see if there can be any perceivable benefits. I tried reading the current data output as an h264 format, but since it is not in a flv container, I cannot use the as3 air netStream component because it needs to have "FLV" in the file header to be compatible.
For testing purposes, I was able to use ffmpeg to create a video clip which is encoded as H264 in a format of FLV. I then streamed that file from server to my app and was able to read the data and interpret the video.
I was also poking around the source code @ github/zoneminder but cannot determine which file sets the "codec" and "format" for the live stream. I would appreciate any advice to determine if it is already possible to select a format and codec separately for mpeg, or would I have to dig in the source and make a pull request. Thanks.
For testing purposes, I was able to use ffmpeg to create a video clip which is encoded as H264 in a format of FLV. I then streamed that file from server to my app and was able to read the data and interpret the video.
Code: Select all
ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -rtsp_transport tcp -i 'rtsp://192.168.1.161:554/user=admin&password=&channel=3&stream=1.sdp' -c:v libx264 -f flv testFile