[gst-devel] Different encoding behavior gstreamer/ffmpeg

Andoni Morales ylatuya at gmail.com
Thu Aug 6 16:55:21 CEST 2009


2009/8/6 Albert Costa <costa_albert at yahoo.fr>:
> Hi all,
> in my attemps to use gstreamer for dealing with mpeg2 ts files, I've ended
> up with following issues:
> I'm willing to generate mpg2ts files that will be used for analysis whilst
> beeing generated (this is what ts is good for...). I also need to seek for a
> specific frame in the file (using external code).
> I tried following things:
> gst-launch filesrc location=myfile.avi ! decodebin ! ffmpegcolorspace !
> ffenc_mpeg2video quantizer=4 gop-size=1 ! ffmux_mpegts ! filesink
> location=myfile.ts
> This generates a mpg2ts file that I can read with gstreamer, windows media
> player (with haali splitter codec), but not VLC...
> I tried similar thing using ffmpeg:
> ffmpeg -y -i myfile.avi -copyts -an -vcodec mpeg2video -intra -qscale 4 -f
> mpegts myfile.ts
> This should generate the same output, but it does not. Here I can read the
> output file with all media players.
> More than that, using command line to seek&extract a frame:
> ffmpeg -y -ss 0:4:0.0 -i myfile.ts -vframes 1 -f image2 test.jpg will seek
> (almost) correctly and get the frame with ffmpeg-generated file, but not
> with gstreamer-generated file.
> I thought that gstreamer ffdec/mux plugins were based on ffmpeg, but it
> seems it doesn't have correct behavior. Has anyone experienced the same
> problems? Or could reproduce it? How can I know which version of ffmpeg the
> gst plugins are based on? Looks like the gst formating is not so
> well-formed...
> I'm really stuck with that problem, and would like to get over it, so any
> hint is welcomed!
> Best Regards,
> Al
> (my config: XP with winbuild-0.10.4)
The 0.10.4 WinBuild release uses the official FFmpeg 0.5 release.
Here is the list of the packages used to build GStreamer WinBuild
http://code.google.com/p/ossbuild/source/browse/trunk/Libraries/Packages/ReadMe.txt

Andoni
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es




More information about the gstreamer-devel mailing list