Transport Stream video encoded by VLC doesn't play on iPhone

macOS specific usage questions
physicsguy
New Cone
New Cone
Posts: 5
Joined: 16 Jul 2004 05:42
Location: Cupertino, CA, USA

Re: Transport Stream video encoded by VLC doesn't play on iPhone

Postby physicsguy » 10 Jul 2009 01:30

For what it's worth, Mpeg Streamclip has similar problems with H.264+AAC encapsulated by VLC into MPEG2 TS. The video won't play.

jaimed
Blank Cone
Blank Cone
Posts: 21
Joined: 16 Jun 2009 08:54

Re: Transport Stream video encoded by VLC doesn't play on iPhone

Postby jaimed » 16 Jul 2009 12:57

from the apple forums:

"VLC does not work with our client (iPhone). It does not add the required H.264 Access Unit NAL between access units."

jaimed
Blank Cone
Blank Cone
Posts: 21
Joined: 16 Jun 2009 08:54

Re: Transport Stream video encoded by VLC doesn't play on iPhone

Postby jaimed » 17 Aug 2009 14:12

from viewtopic.php?f=4&t=63082&p=210918#p212377 :

In "Tools" -> "Preferences", select "All" in the Show settings box to display the advanced options. Then go to "Input/Codecs" -> "Video Codecs" -> "x264", and at the bottom of the list, tick the "Access unit delimiters" box. This will generate the NAL units required by the segmenter.

The segmenter doesn't give errors any more! but the video won't play on the iPhone, as before :( This is my command line:

Code: Select all

"/Applications/VLC.app/Contents/MacOS/VLC" -vvv -I dummy "/Users/ajln/Desktop/batman.mp4" --sout='#transcode{vcodec=h264,venc=x264{no-cabac,level=3.0,subme=5,trellis=1,merange=16,min-keyint=25,scenecut=40,ipratio=0.71,ratetol=20k,vbv-maxrate=96k,vbv-bufsize=96k,qcomp=0.6,qpmin=10,qpmax=51,qpstep=4,keyint=30,ref=1,deblock=0:0,aud},scale=1,acodec=mp4a,ab=128,samplerate=48000,channels=2,width=320,height=240}:duplicate{dst=std{access=udp,mux=ts,dst=127.0.0.1:1234}}'

arai
New Cone
New Cone
Posts: 2
Joined: 12 Dec 2009 02:28

Re: Transport Stream video encoded by VLC doesn't play on iPhone

Postby arai » 12 Dec 2009 02:38

Hi jaimed.
Here is my workaround.

VLC command line:

Code: Select all

/Applications/VLC.app/Contents/MacOS/VLC --intf=dummy --sout=#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac},acodec=mp4a,ab=56}:duplicate{dst=std{access=udp,mux=ts,dst=127.0.0.1:54321}} http://streaming-server-address/
mediastreamsegmenter command line:

Code: Select all

mediastreamsegmenter -b http://web-server/stream-dir -f /path/to/stream-dir -t 10 -s 4 -D 127.0.0.1:54321
and HTML:

Code: Select all

<video width="320" height="240"> <source src="./prog_index.m3u8" /> </video>
I hope this helps you :D

arai
New Cone
New Cone
Posts: 2
Joined: 12 Dec 2009 02:28

Re: Transport Stream video encoded by VLC doesn't play on iPhone

Postby arai » 12 Dec 2009 04:33

Here is more simple way.
Instead of using UDP stream, use stdout/stdin.

Code: Select all

/Applications/VLC.app/Contents/MacOS/VLC --intf=dummy --sout=#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac},acodec=mp4a,ab=56}:duplicate{dst=std{access=file,mux=ts,dst=-}} http://streaming-server-address/ | mediastreamsegmenter -b http://web-server/stream-dir -f /path/to/stream-dir -t 10 -s 4 -D

gcollette
New Cone
New Cone
Posts: 1
Joined: 01 Nov 2012 19:43

Re: Transport Stream video encoded by VLC doesn't play on iP

Postby gcollette » 01 Nov 2012 21:26

You should consider using InStream Mobile app to play natively UDP MPEG Transport Stream with H.264 video / AAC-LC audio on iOS

http://itun.es/us/Jq0QH.i

Pretty simple to use and it works well over both unicast & multicast-capable wireless networks


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 8 guests