Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th May 2017, 08:55   #1  |  Link
gaganspidey
Registered User
 
Join Date: Mar 2008
Posts: 21
ffmpeg - “Could not find the codec parameters”

Hello

I am trying to record a live HTTP stream using the following command:

Code:
ffmpeg -analyzeduration 2147483647 -probesize 2147483647  -i "http://mumsite.cdnsrv.jio.com/jioplay.catchup.cdn.jio.com/recordings/H8_S480_H264_MP/2556/1493919000.mp4/init/LIVEPROGRAM_CHANNEL_2556_START_1493919000_END_1493922600?uid=guest_uid&recid=SCHEDULED-A00B00C00D00E00F-_-_-2556_48168092&shard=shard_a&sid=77179867662431494241905&i=2&nwk=WIFI&pk=1&CurrentNetworkType=WIFI&CurrentNetworkType=WIFI" -c copy -absf aac_adtstoasc testing.ts


It looks like the URL is correct but no data is being saved in the file and these warning messages are shown:

Quote:
multiple fourcc not supported

Could not find codec parameters for stream 1 (Video: none (encv / 0x76636E65), none, 576x432): unknown codec
Am I doing this correctly? How do I determine which codec would handle that stream or is the reason something else?
gaganspidey is offline   Reply With Quote
Old 11th May 2017, 10:11   #2  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 8,989
"encv" smells like encrypted content.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 13th May 2017, 00:24   #3  |  Link
gaganspidey
Registered User
 
Join Date: Mar 2008
Posts: 21
Thanks for responding. Hmm...you're right, that's what it is. I tried it with livestreamer and a similar error was displayed:

Quote:
Missing #EXTM3U header
I know that this needs decryption before I am able to download it, but how to know what encryption method has been used here? A couple of methods that I've heard include EXT-X or m3u8 or TS or AES-128.

Apart from this, I have also sniffed the network traffic while streaming the video and have not observed any useful URLs, only a series of URLs which continue to appear for as long as the video is being streamed. These URLs are all the same except the fragment numbers that are in ascending order. An example of this kind of URL is:

Code:
http://smumcdnems04.cdnsrv.jio.com/mumsite.cdnsrv.jio.com/jioplay.catchup.cdn.jio.com/recordings/H2_W240_H264_MP/608/1494419400.mp4/fragment/1?uid=NzAxNDY4MjYzNSM2MmMwZmY3My03YjlmLTRjNzQtYjczMC1hMjEzMmFkYWNiODM&recid=SCHEDULED-A00B00C00D00E00F-_-_-608_48358337&shard=shard_a&sid=77179867662431494625027&i=0&nwk=WIFI&pk=1&CurrentNetworkType=WIFI&CurrentNetworkType=WIFI
gaganspidey is offline   Reply With Quote
Old 13th May 2017, 00:30   #4  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 8,989
'encv' is the ISO Common Encryption scheme for MP4 containers. Its AES-128.

The stream you are dealing with is likely a DASH stream, to properly record it you would need to pass the DASH manifest file to a recording tool, and not a single segment file.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 13th May 2017, 01:22   #5  |  Link
gaganspidey
Registered User
 
Join Date: Mar 2008
Posts: 21
Actually the live stream that I am trying to record belongs to an app from the playstore, there's no website for it. I grabbed the original URL by playing the stream on bluestacks.

And since no other URL has been sniffed, from where to get the DASH manifest file? I've downloaded a file from the same URL and attached here (or can be downloaded from below link). Would that be of any help?

LIVEPROGRAM_CHANNEL_608_START_1494419400_END_1494423000.mp4

Last edited by gaganspidey; 13th May 2017 at 01:26.
gaganspidey is offline   Reply With Quote
Old 14th May 2017, 15:31   #6  |  Link
gaganspidey
Registered User
 
Join Date: Mar 2008
Posts: 21
Quote:
Originally Posted by nevcairiel View Post
...to properly record it you would need to pass the DASH manifest file...
@nevcairiel

Kindly assist me with this, I'd be very grateful to you. I am a beginner, please provide me some info. on how to decrypt it.

My attempts so far:

(1) Fetching all the URLs by sniffing the network during streaming. This is a screenshot of all the URLs. It is apparent that only one URL is of use (the one already posted)-




So the question is, from where to get the DASH manifest file?

(2) I also tried dumping the memory and searching with HxD (hex editor) using keywords like "m3u8", "rtmpe", etc. but neither this seemed to return any results.

So, what should be my next step?
gaganspidey is offline   Reply With Quote
Reply

Tags
codec, ffmpeg, live

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.