Archiving Nebraska Legislature Videos

NET Nebraska provides streaming video from the floor of the Nebraska Legislature. I’d like to be able to listen to floor debate after the fact but the video from most sessions isn’t archived. Using some ffmpeg trickery, we can save a copy of the stream for later offline viewing.

NET makes two versions of the video available: one with “burned in” captions, and one without. They provide the video using HTTP Live Streaming over Amazon Cloudfront.

  • Subtitles overlaid on video:
  • Subtitles embedded in the ATSC stream:

First, we save a copy of the live stream:

ffmpeg -i "" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 output.mp4

Then, we can extract the embedded ATSC subtitles to an SRT file:

ffmpeg -f lavfi -i "movie=output.mp4[out0+subcc]" -map s

Presto, easy offline viewing.

Subscribe to the RSS Feed or sign up for email notifications for more articles like this.

©2010-2022 Nate Benes unless marked otherwise.