Re: Xvid-devel Digest, Vol 118, Issue 1
"Robin Colclough" <[email protected]> Tue, 10 Jun 2014 20:58:12 +0200
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Organization | Sentel Advance |
| Message-ID | <E07ABCF23AB94EFEBE35AD541A859A9B@UsuarioPC> |
Hi, and thanks for the replies which I=B4ve only just seen at the end of th= e = email; not familiar with this format yet. I am using AVIStreamWrite to output the xvid encoded video and audio (lame = mp3 encoder). I=B4m trying to synchronise 3D gpu frame drawing with the encoding process, = and its been quite difficult to do in real-time but I=B4m almost there. The xvid encoder doesn=B4t always output a frame at each time slot, mainly = because the GPU can=B4t process more complex 3D within real-time constraint= s. To handle this I now calculate the AVI write frame number using the elapsed = time, using QueryPerformanceCounter(). That seems to work, as the video file now tracks each frame to the correct = time spot. The audio arrives every 2 seconds from the mp3 encoder, because the WAVE AP= I = makes calls every 2 seconds with the cached audio stream. The audio also records okay, BUT when I play the file its synced until I = click the player timeline to move the play point, then the audio is just no= t = synced anymore. Its not an XVID problem as such, but so far I=B4ve no idea why the audio = stream doesn=B4t get set to the correct time. Thanks Rob -----Original Message----- = From: [email protected] Sent: Tuesday, June 03, 2014 12:00 PM To: [email protected] Subject: Xvid-devel Digest, Vol 118, Issue 1 Send Xvid-devel mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://list.xvid.org/mailman/listinfo/xvid-devel or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Xvid-devel digest..." Today's Topics: 1. I set FPS to 120, encode 240 frames, and the video plays back over some 8-10 seconds (Robin Colclough) 2. Re: I set FPS to 120, encode 240 frames, and the video plays back over some 8-10 seconds (Michael Militzer) 3. Re: I set FPS to 120, encode 240 frames, and the video plays back over some 8-10 seconds (Elio Blanca) ---------------------------------------------------------------------- Message: 1 Date: Tue, 3 Jun 2014 10:33:23 +0200 From: "Robin Colclough" <[email protected]> Subject: [Xvid-devel] I set FPS to 120, encode 240 frames, and the video plays back over some 8-10 seconds To: <[email protected]> Message-ID: <D088D7DB96234E9CA1626705FEA34CCF@UsuarioPC> Content-Type: text/plain; charset=3D"iso-8859-1" I?m using the xvid encoder in non-realtime to encode frames, but its like = xvid ignores the FPS I set, and records at the incoming speed. I set the FPS to 120, then encode 240 frames, i.e, 2 seconds of video, put = the playback file is wrong, and runs at around the same speed I sent the = frames in. Why would this happen? ------------------------------ Message: 2 Date: Tue, 03 Jun 2014 11:14:18 +0200 From: Michael Militzer <[email protected]> Subject: Re: [Xvid-devel] I set FPS to 120, encode 240 frames, and the video plays back over some 8-10 seconds To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=3DISO-8859-1; DelSp=3D"Yes"; format=3D"flowed" Hi, the first questions are: Which program/API do you use to encode your file? And which program do you use to decode/playback? Note that framerate information is not only written by the encoder into the encoded bitstream but container formats (like AVI) have a framerate setting in their container headers as well. The framerate as written in the container usually precedes the framerate setting that the encoder wrote into the bitstream. In practice this means that if you e.g. write your video into AVI output but don't set the framerate of the AVI properly, you can specify whatever framerate you want in Xvid encoder settings but it will have no effect when playing the file (because the AVI framerate precedes). Best regards, Michael Quoting Robin Colclough <[email protected]>: > I?m using the xvid encoder in non-realtime to encode frames, but its > like xvid ignores the FPS I set, and records at the incoming speed. > > I set the FPS to 120, then encode 240 frames, i.e, 2 seconds of > video, put the playback file is wrong, and runs at around the same > speed I sent the frames in. > > Why would this happen? > _______________________________________________ > Xvid-devel mailing list > [email protected] > http://list.xvid.org/mailman/listinfo/xvid-devel > > ------------------------------ Message: 3 Date: Tue, 03 Jun 2014 11:25:29 +0200 From: Elio Blanca <[email protected]> Subject: Re: [Xvid-devel] I set FPS to 120, encode 240 frames, and the video plays back over some 8-10 seconds To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed Further, I would suggest some useful free tools that can tell you many = details about the resulting stream, such as "mplayer" (it is a command line tool, better results with = `mplayer -identify video_stream_name'), "avidemux" and "media player classic - home cinema", = any of them can report which frame rate has been set in the container header in order to clarify = where the error lies. Il 03/06/2014 11:14, Michael Militzer ha scritto: > Hi, > > the first questions are: Which program/API do you use to encode your file? > And which program do you use to decode/playback? > > Note that framerate information is not only written by the encoder into = > the > encoded bitstream but container formats (like AVI) have a framerate = > setting > in their container headers as well. The framerate as written in the > container usually precedes the framerate setting that the encoder wrote = > into > the bitstream. > > In practice this means that if you e.g. write your video into AVI output > but don't set the framerate of the AVI properly, you can specify whatever > framerate you want in Xvid encoder settings but it will have no effect = > when > playing the file (because the AVI framerate precedes). > > Best regards, > Michael > > > Quoting Robin Colclough <[email protected]>: > >> I?m using the xvid encoder in non-realtime to encode frames, but its >> like xvid ignores the FPS I set, and records at the incoming speed. >> >> I set the FPS to 120, then encode 240 frames, i.e, 2 seconds of >> video, put the playback file is wrong, and runs at around the same >> speed I sent the frames in. >> >> Why would this happen? >> _______________________________________________ >> Xvid-devel mailing list >> [email protected] >> http://list.xvid.org/mailman/listinfo/xvid-devel >> >> > > > > > _______________________________________________ > Xvid-devel mailing list > [email protected] > http://list.xvid.org/mailman/listinfo/xvid-devel > ------------------------------ _______________________________________________ Xvid-devel mailing list [email protected] http://list.xvid.org/mailman/listinfo/xvid-devel End of Xvid-devel Digest, Vol 118, Issue 1 ****************************************** =