illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.9k stars 1.51k forks source link

CodecUnsupported #124

Open jh531207323 opened 5 years ago

jh531207323 commented 5 years ago

hi. use ffmpeg to push rtmp stream the flv.js play with some error error message: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 2

blackstar-baba commented 5 years ago

it's same to me,how to process this? @illuspas

illuspas commented 5 years ago

Only h.264+aac is supported by flv.js

ffmpeg using copy codec ffmpeg -re -i h264_aac_video_file.mp4 -c copy -f flv rtmp://xxxxx/live/stream or ffmpeg -re -i other_codec_video_file.mp4 -c:v libx264 -c:a aac -f flv rtmp://xxxxx/live/stream

illuspas commented 5 years ago

Optimize for live streaming: ffmpeg -re -i other_codec_video_file.mp4 -c:v libx264 -tune zerolatency -c:a aac -f flv rtmp://xxxxx/live/stream

BlueClouDragon commented 1 month ago

I have same problem [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported audio codec idx: 7 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 12

my stream is H.256