Live TV Stream to Android

Steam recording with RTMPDump or FFmpeg.
Post Reply
Posts: 2
Joined: Sat May 07, 2016 7:23 pm

Live TV Stream to Android

Post by felixeloga » Sat May 07, 2016 8:44 pm

Dear Sir or Ma'am,

I am Felix, new user on ffmpeg forum.
I wrote you today to get answer and solution to my problem.
I have input stream come from vlc. I need that all android connected to my network can watch stream in live in the same time like an online channel tv.
I saw for this channel

Code: Select all

there is a same ts file is generated for each 45 second.

I need to do the same but with a mp4 file that I insered on html5 video tag.
for that I tried to convert my input stream with this cmd on ffmpeg

Code: Select all
ffmpeg -i -c:v libx264 -profile:v baseline -c:a aac -ar 44100 -ac 2 -b:a 128k -f segment -segment_time 45 -segment_format_options movflags=+faststart -segment_list D:\live\play.m3u8 -segment_list_size 2 D:\live\watch%03d.mp4

I'm not satisfied. I can't insert m3u8 file in html5 video tag because android don't read it and his content.

I tried another code that I can say little similar that the result of this page

Code: Select all

Code: Select all
ffmpeg -i -hls_flags single_file D:\live\play.m3u8

It generated two files, a ts and a m3u8.
I know that html5 video tag can read ts file. Maybe there is a solution somewhere.

The second way I don't like in this code is ts file don't read in real time. When I read file it begin from the first encoding.

I don't know how to solve my problem that's why I write in thie forum.

Yjank you in advance for all your help!


Posts: 1872
Joined: Fri Aug 05, 2011 9:56 pm

Re: Live TV Stream to Android

Post by rogerdpack » Sat Jun 25, 2016 3:14 pm

Maybe you can set different transocde params that will work with android for the first example?

Post Reply