Reputation: 419
Im currently working on streaming a mp4 file encoded with h264 over TCP and decoding at the mobile side (Android).I successfully manage up connection and streaming h264 raw data but that image quality is too bad (half screen is green or purple and everything is pixelized).I started streaming with:
ffmpeg -re \
-i test.mp4 \
-vcodec libx264 \
-vf scale=1920:1080 \
-vprofile high \
-preset ultrafast \
-b:v 1M -maxrate 2M -bufsize 2M -pass 1 \
-strict experimental \
-pix_fmt yuv420p \
-tune zerolatency \
-movflags use_metadata_flag \
-movflags empty_moov+default_base_moof+faststart \
-f h264 tcp://10.230.253.241:9090
Result: Image
Am I on right road and its that possible with raw h264? Any advice would welcome! Thanks
Upvotes: 2
Views: 5413
Reputation: 31130
rawvideo
is the opposite of h264. Its non compressed raw video.
You need to set the format to -f h264
Upvotes: 3