Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 10-13-2012, 05:58 AM
whatthehellvivs whatthehellvivs is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
whatthehellvivs is on a distinguished road
Default

ffmpeg error loading first segment; recording olympic videos from nbc and youtube


So i have been recording 1080p videos (saved fresh m3u8 links, so my downloads are usually in 15-minute segments, because I think the link expires, hence the HTTP 404 error) from youtube and nbc using ffmpeg.

This one error below is puzzling really, and I'm wondering is there is a solution at all......... Can somebody help?

--new to ffmpeg btw
---------
Quote:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Eileen>cd desktop

C:\Users\Eileen\Desktop>cd bin

C:\Users\Eileen\Desktop\bin>ffmpeg.exe -i index.m3u8 -c copy index.ts
ffmpeg version N-43921-ga366bea Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 26 2012 21:01:41 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 54.100 / 54. 54.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 13.101 / 3. 13.101
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[hls,applehttp @ 00000000003aed80] Error when loading first segment 'http://redi
rector.c.youtube.com/videoplayback/id/ca1b281424c9912e/itag/96/source/youtube/ra
nge/5300078976-5303304687/file/seg.ts?ratebypass=yes&pbr=yes&playlist_type=DVR&m
audio=1&pmbypass=yes&upn=vrNICgGl18A&sver=3&ip=112 .205.82.87&ipbits=8&expire=135
0146014&sparams=ip,ipbits,expire,id,itag,source,ra tebypass,pbr,playlist_type,mau
dio,pmbypass&signature=0B6E12E25491B3032733F2338E6 7F1D3B868FB58.0F45DB59662A55FA
B10EB6164C7A3C0D9CA463B8&key=ck1&dur=3.960'
index.m3u8: Invalid data found when processing input

C:\Users\Eileen\Desktop\bin>
Attached Files
File Type: txt Error loading first segment.txt (1.9 KB, 0 views)
Reply With Quote
  #2  
Old 10-17-2012, 01:30 PM
Chug a Bug Chug a Bug is offline
Junior Member
 
Join Date: Sep 2012
Posts: 20
Chug a Bug is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


"Invalid data" error is usually because the key i.d. strings have been tampered with in my experience, you havn't modified the .m3u8 files in any way have you?

There are 3 of them, all identical. The first is in the header but there are 2 others scattered throughout the segments. They must be preserved in the position they're found in or it won't authenticate.
Reply With Quote
  #3  
Old 10-24-2012, 01:54 AM
whatthehellvivs whatthehellvivs is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
whatthehellvivs is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


No i haven't. I just followed your advice in another forum. Same process for all segments, until I encounter this error for a certain segment. It's annoying. I'm f*****g frustrated.
Reply With Quote
  #4  
Old 10-24-2012, 02:06 AM
whatthehellvivs whatthehellvivs is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
whatthehellvivs is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


Quote:
Originally Posted by Chug a Bug View Post
"Invalid data" error is usually because the key i.d. strings have been tampered with in my experience, you havn't modified the .m3u8 files in any way have you?

There are 3 of them, all identical. The first is in the header but there are 2 others scattered throughout the segments. They must be preserved in the position they're found in or it won't authenticate.
What if I just cut from a different part? Would it make sense?
Reply With Quote
  #5  
Old 10-24-2012, 09:45 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


Quote:
Originally Posted by Forum rules v1.1
If you truly want definitive answers quickly and without
delay, please include link(s) to the web-page(s) with video(s)

stream-recorder.com/forum/announcement.php?f=4
Reply With Quote
  #6  
Old 10-24-2012, 05:03 PM
whatthehellvivs whatthehellvivs is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
whatthehellvivs is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


Quote:
Originally Posted by svnpenn View Post
Video link:
http://www.youtube.com/watch?v=yhsoFCTJkS4

Attachment contains the original m3u8 saved as text, as well as the edit. Error occurs at this point: range/5300078976-5303304687
Attached Files
File Type: zip bin.zip (27.3 KB, 0 views)
Reply With Quote
  #7  
Old 10-26-2012, 02:08 PM
Chug a Bug Chug a Bug is offline
Junior Member
 
Join Date: Sep 2012
Posts: 20
Chug a Bug is on a distinguished road
Cool

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


You've lost the hlskey?id string at line 2596



your edit should start like this:



All HLS key i.d. strings must be preserved in order or it won't authenticate!

Last edited by Chug a Bug : 10-26-2012 at 07:18 PM.
Reply With Quote
  #8  
Old 10-28-2012, 04:26 PM
whatthehellvivs whatthehellvivs is offline
Junior Member
 
Join Date: Sep 2012
Posts: 8
whatthehellvivs is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


Chug, I'll work right on it. Crossing my fingers it would work. Thank you.......
Reply With Quote
  #9  
Old 11-28-2012, 03:46 AM
szjozsi79 szjozsi79 is offline
Junior Member
 
Join Date: Nov 2012
Posts: 2
szjozsi79 is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


All HLS key string?
But I found only ONE place the key string, at the beginning of the .m3u8 file (line 5th) Otherwise the error message is same.
Reply With Quote
  #10  
Old 11-28-2012, 04:19 AM
szjozsi79 szjozsi79 is offline
Junior Member
 
Join Date: Nov 2012
Posts: 2
szjozsi79 is on a distinguished road
Default

Re: ffmpeg error loading first segment; recording olympic videos from nbc and youtube


It's f...g annoying that I downloaded 2GB of data, and I can not use anything.
Reply With Quote
Reply Post New Thread
Tags: , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:26 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons