PDA

View Full Version : ffmpeg error loading first segment; recording olympic videos from nbc and youtube


whatthehellvivs
10-13-2012, 04:58 AM
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
---------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,ratebypass ,pbr,playlist_type,mau
dio,pmbypass&signature=0B6E12E25491B3032733F2338E67F1D3B868FB58 .0F45DB59662A55FA
B10EB6164C7A3C0D9CA463B8&key=ck1&dur=3.960'
index.m3u8: Invalid data found when processing input

C:\Users\Eileen\Desktop\bin>

Chug a Bug
10-17-2012, 12:30 PM
"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.

whatthehellvivs
10-24-2012, 12:54 AM
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.

whatthehellvivs
10-24-2012, 01:06 AM
"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?

svnpenn
10-24-2012, 08:45 AM
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 (stream-recorder.com/forum/announcement.php?f=4)

whatthehellvivs
10-24-2012, 04:03 PM
stream-recorder.com/forum/announcement.php?f=4 (stream-recorder.com/forum/announcement.php?f=4)

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

Chug a Bug
10-26-2012, 01:08 PM
You've lost the hlskey?id string at line 2596

http://i45.tinypic.com/27xf8r9.jpg

your edit should start like this:

http://i47.tinypic.com/168fzig.jpg

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

whatthehellvivs
10-28-2012, 03:26 PM
Chug, I'll work right on it. Crossing my fingers it would work. Thank you....... :)

szjozsi79
11-28-2012, 02:46 AM
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.

szjozsi79
11-28-2012, 03:19 AM
It's f...g annoying that I downloaded 2GB of data, and I can not use anything. :mad: