Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Bruce Wheaton
On May 6, 2012, at 12:36 PM, Alex Cohn wrote: > > Good question. The intent is to seamlessly move from ingesting a movie and > > viewing it to playing back. I can't find a way to access the same movie for > > playback as it's being ingested (that would work fine too), can't tell > > which media

Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Bruce Wheaton
On May 6, 2012, at 7:16 PM, Kalileo wrote: >> code. > > Why don't you simply play the movie _before_ you encode it, when you still > have the raw data? I'd like to do both at once. Play the raw frames, and pass them for encoding, then at the end, finalize the movie and switch to playback mode.

Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Kalileo
On May 7, 2012, at 02:28 , Bruce Wheaton wrote: > Good question. The intent is to seamlessly move from ingesting a movie and > viewing it to playing back. I can't find a way to access the same movie for > playback as it's being ingested (that would work fine too), can't tell which > media cont

Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Alex Cohn
On May 6, 2012 10:28 PM, "Bruce Wheaton" wrote: > > On May 6, 2012, at 11:04 AM, Alex Cohn wrote:> >> >> > Then I suppose the question becomes, can I use the same AVFormatContext with encoders and decoders… and use the same AVStreams? >> > >> > Bruce >> >> They were never designed for such reuse;

Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Bruce Wheaton
On May 6, 2012, at 11:04 AM, Alex Cohn wrote:> > > Then I suppose the question becomes, can I use the same AVFormatContext > > with encoders and decoders… and use the same AVStreams? > > > > Bruce > > They were never designed for such reuse; but even if you could, what kind of > profit would you

Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Alex Cohn
On May 6, 2012 7:32 PM, "Bruce Wheaton" wrote: > > On May 5, 2012, at 9:16 PM, Alex Cohn wrote: > > > On May 6, 2012 6:28 AM, "Bruce Wheaton" wrote: > > > > > > Is it possible to open codecs for encoding, and use them to encode a complete piece, then, on the fly (when the complete clip had alread

Re: [Libav-user] AVFilter to do YUV->RGB

2012-05-06 Thread Nicolas George
L'octidi 18 floréal, an CCXX, 魏伦 a écrit : > In the traditional way , We usually convert the yuv to rgb using > libswscale . > But, I notice that the avfilter can do this work too . Do this two way make > some different in performance? > which way is now recommended? The filter in lavfi that does

Re: [Libav-user] Switching codecs from encode to playback on the fly

2012-05-06 Thread Bruce Wheaton
On May 5, 2012, at 9:16 PM, Alex Cohn wrote: > On May 6, 2012 6:28 AM, "Bruce Wheaton" wrote: > > > > Is it possible to open codecs for encoding, and use them to encode a > > complete piece, then, on the fly (when the complete clip had already been > > encoded) switch over and use them to decom

[Libav-user] AVFilter to do YUV->RGB

2012-05-06 Thread 魏伦
In the traditional way , We usually convert the yuv to rgb using libswscale . But, I notice that the avfilter can do this work too . Do this two way make some different in performance? which way is now recommended? ___ Libav-user mailing list Libav-user@f

Re: [Libav-user] Determining video container format of streamed file after url_open

2012-05-06 Thread Alex Cohn
On Sun, May 6, 2012 at 11:28 AM, Jean-Yves Avenard wrote: > On 6 May 2012 17:05, Alex Cohn wrote: >> The difference between mp4 and m4v is often illusionary, see >> http://en.wikipedia.org/wiki/M4V and >> https://discussions.apple.com/thread/2309476?start=0&tstart=0 for some >> details. The big i

Re: [Libav-user] Determining video container format of streamed file after url_open

2012-05-06 Thread Jean-Yves Avenard
On 6 May 2012 17:05, Alex Cohn wrote: > The difference between mp4 and m4v is often illusionary, see > http://en.wikipedia.org/wiki/M4V and > https://discussions.apple.com/thread/2309476?start=0&tstart=0 for some > details. The big issue is DRM, which may render the mv4 file > impossible to decode

Re: [Libav-user] Determining video container format of streamed file after url_open

2012-05-06 Thread Alex Cohn
On Sun, May 6, 2012 at 1:54 AM, Jean-Yves Avenard wrote: > Hi there. > > I would like to get help on the best way to determine what the > container format is of a streamed media accessed via ffmpeg; right > after calling url_open and before starting to use url_read > > What I'm trying to determine