Page 1 of 1

Saved stream skips and is choppy

Posted: 01 Apr 2018 18:08
by mips12
Hi,

I'm automating saving of streams on my Pi2 B+ using cron.

The command I use is "cvlc stream.m3u8 --sout=file/ts:foo.mpg --run_time 3600"

This works correctly in that the resulting video file gets created and is playable (again through vlc). However, a few things are off..
  • Segments of the video are missing. I'll be watching it from start to beginning and then it'll just skip to another later part.
  • Forwarding and rewinding results in gray "blocks" for a sec until everything normalizes.
  • Scrolling through the video results in vlc not showing a time for the video anymore. It just says 0
Any ideas as to what may be causing this?

Does my command look right in that I'm saving an m3u8 ts stream to an mpeg?
Could this have anything to do with the processing power of my Pi2 B+?

Thanks!

Re: Saved stream skips and is choppy

Posted: 01 Apr 2018 19:20
by mips12
I should add that I'm saving the stream to an external HDD and that I'm playing the video back on a Macbook Air (upon downloading it from the Pi)

Re: Saved stream skips and is choppy

Posted: 02 Apr 2018 16:57
by mips12
SOLVED: This was due to me trying to capture a .m3u8. M3u8s are just text files for playlists containing actual links. Thus, vlc would miss some data causing the choppiness. I solved this by using ffmpeg and everything works great.