Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
trying to download a ts packet using command lineI would like to capture a TS packet using a command line method so that I can automate downloading the entire stream.
Here's an example packet from nbcolympics.com. It is a 5-second transport stream packet. http://r2---dfw06s22.c.youtube.com/v...es&file=seg.ts I can open this link in VLC player and it will play or let me save it to disk. I can also open it in a web browser and save it to disk. I cannot figure out any way to do it using command line. I tried to do it with VLC's command line options but it says it cannot be opened. Can anyone give me an example command line string, using any program, to do this? Last edited by wer783 : 08-22-2012 at 10:25 PM. |
#2
|
|||
|
|||
Re: trying to download a ts packet using command lineI've found no easy way to do this yet, but I haven't had a lot of time to put into it. As for getting all the 5-second file segments, a really easy way to do it is with Streaming Video Recorder (apowersoft), but it can't join the files. I've explained this challenge to their support and they say they're working on it and it will be in the next version.
VLC can play the entire folder of these crystal clear files, but there's a short pause at the end of each segment before the following one plays. Perhaps VLC has a way of exporting the playing of this sequential playlist to a file(?). |
#3
|
|||
|
|||
Re: trying to download a ts packet using command lineQuote:
|
#4
|
|||
|
|||
Re: trying to download a ts packet using command lineQuote:
|
#5
|
|||
|
|||
Re: trying to download a ts packet using command lineQuote:
BTW, if I use ffmpeg to capture the file, is there a simple way to record a 4 hour video in 30 minute segments? |
#6
|
|||
|
|||
Re: trying to download a ts packet using command lineQuote:
•Start Firefox •Open web console (CTRL-SHIFT-K) •Optional - Unselect CSS, JS, & Logging on the menu bar •Type in "m3u8" in the filter on top right •Start the video you want to see •Click the gear icon on bottom right of video and select the quality you want (typically 1080) and you'll see a new m3u8 file appear •Use this URL for the "-i" option of ffmpeg The m3u8 file is a playlist that contains all those small files. Next, what you do is run this command, where URL is the m3u8 playlist file and output.ts is the name of the output video file: ffmpeg.exe -i URL -c copy output.ts |
#7
|
|||
|
|||
Re: trying to download a ts packet using command lineQuote:
|
#8
|
|||
|
|||
Re: trying to download a ts packet using command lineThanks for the information on Streaming Video Recorder. I tried it out and was able to get it to give me a bunch of pieces. The only problem is that it just grabs what is currently playing and so there's not any way to automate the process. So it's not any better than using ffmpeg to capture the stream by reading the m3u8 playlist file described in the big nbcolympics.com thread. But I like that program because I have been using GetFlv for a long time and thought it was the only game in town. It looks like this program will do similar things.
By the way, anyone reading this who just wants an easy way to capture videos from nbcolympics.com should see this thread: http://stream-recorder.com/forum/cap...om-t13287.html It's explained very well there and is easy to do. The only reason I'm trying to directly download each 5-second segment is that the connections will usually timeout before I can download an entire video. It usually takes a lot of tries to get the full video. Some of the longer ones, like the ones that are 7 hours long, I've been uanble to get. I've tried to use wget and VLC command line and they don't work, but it's really easy to download these segments if you just paste the link in VLC player or a web browser. But this would take forever and wouldn't be practical. deadmund seemed to have figured out how to download individual packets this with VLC player from a script, but has still not come back to explain. It seems like there should be some way to do this, given that it's so easy to do with a GUI. |
Tags: download |
Thread Tools | |
Display Modes | |
|
|