Wowza Community

VLC transcoder problem on iPhone/iPad

I have set up VLC transcoder like this:

vlc -vvv "C:\temp\video.avi" --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=ip-of-my-wowza-server,port=10000,mux=ts}"

This live video is working only on my computer and android phone. But on iPad and iPhone it hasn’t worked.

The Ifound on internet some other transcoding code:

vlc -vvv "c:\temp\video.avi" --sout "#transcode{fps=25,vcodec=h264,vb=1280,venc=x264{aud,profile=baseline,level=30, keyint=30,bframes=0,ref=1,nocabac},acodec=mp3,ab=56,audio-sync,deinterlace}:rtp{dst=ip-of-my-wowza-server,port=10000,mux=ts}"

And is still doesn’t work on iPhone and iPad.

On a webpage I use thic code for display video:

Have you got any suggestions?

Try adding these for the audio

channels=2,samplerate=44100

For example:

vlc -vvv "%WMSAPP_HOME%/content/sample.mp4" --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=10000,mux=ts}"

Richard

Actually, I was suggesting stereo (channels=2) and samplerate=44100 for your mp3 encoding, but a more important difference in the full example I showed is AAC audio (acodec=mp4a). Use that instead of mp3.

Richard

If you are using AAC, the sample rate and stereo are not important. Why 44100hz and stereo are required for MP3 in iOS, I don’t know.

Richard

Thanks Richard for your kindness! Everything is working perfect.

Why is audio samplerate 44100 so important for HTML5 and Apple devices? Can you give me also more theoretical answer what is happening with packages? In my option samplerate 48000 I had got only 3 packeges inside m3u8 file which size were around 17kB, but for computer were everything all right with samplerate 48000.