Stream conversion on the FLY

Steam recording with RTMPDump or FFmpeg.
Post Reply
Posts: 6
Joined: Tue May 06, 2014 2:40 pm

Stream conversion on the FLY

Post by ironhide707 »

Hey all,
As the title suggests, i need to know that how can i convert a stream to a required format. My application structure is like this:

1- I have a parser which parses a youtube video download response which in turn provides me with different stream URLS.
2 - After that i want to grab that input stream and put it inside a container which could flv or 3GP.

I read somewhere that FFMPEG has the option of using HTTP protocol for getting streams so i did something like this:

ffmpeg -i http:http:

But it gives me this error:
[tcp @ 0200bc60] Port missing in uri
http:http: ... .40.157.23:
Input/output error

Please it would be very helpful for me if someone can help me on this.


Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: Stream conversion on the FLY

Post by svnpenn »

This seems to do it

Code: Select all

youtube-dl -g wsVNgB_DS_g | xargs -i ffmpeg -i {} outfile.flv

Posts: 6
Joined: Tue May 06, 2014 2:40 pm

Re: Stream conversion on the FLY

Post by ironhide707 »

Yup, got it to work :) thanks svnpenn. I have another question though, i am actually doing all this using PHP scripts, i just wanted to know one thing, is it possible to send the converted stream to a client using php scripts OR more better using FFMPEG? if anyone has any sort of info on this lemme know.

Posts: 4
Joined: Mon Jun 09, 2014 10:48 am

Re: Stream conversion on the FLY

Post by heklind »

I'm not sure what do you mean. ffmpeg download, then save transcoded video file to the destination you provided. Now you can play it whathever you like (you can use scripts and whatever you want, to play file from the destination you provided in ffmpeg command line).

Post Reply