GStreamer encoding profile for the Meizu M6 player



Hi list !

I'm still investigating on why videos encoded with gstreamer fail to play on my Meizu M6 digital player, while converting them with mencoder works.

I had since last time [1] tried to generate with gstreamer :
- avi files with a video stream only (no audio stream)
- avi files with an audio stream only (no video stream)
...but they all failed to play too.

So I tried something else : creating a sample file with gstreamer with only a video stream, and encoding the file with mencoder with direct copy of the video stream.

The fast is that the video produced by mencoder, and based on the gstreamer-generated one, works ! As the video stream was untouched during the process, that means IMHO that the container is the one at fault here.

You can generate the gstreamer test file with this command :
gst-launch-0.10 videotestsrc num-buffers=100 ! 'video/x-raw-yuv,framerate=(fraction)20/1,width=320,height=240' ! videoflip method=clockwise ! xvidenc bitrate=384000 max-bframes=0 ! queue ! avimux name=mux ! progressreport ! filesink location=gstreamer.avi

Then, you can generate the mencoder test file with this command :
mencoder gstreamer.avi -ovc copy -o mencoder.avi

You'll find attached both logs generated (and cleaned up a bit) with the following syntax :
GST_DEBUG=avidemux:3,riff:3 gst-launch-0.10 playbin2 uri=file:///.....

But you may prefer read directly the attached diff.log file, containing the diff of both files, and showing the fields that are different between both avi files.

I'd be grateful if someone could tell me which field causes the problem, or how I can change those fields values. Even just knowing if the problem comes from the firmware of my player or from gstreamer would be useful !

Thanks in advance,
--
Luis

[1] http://mail.gnome.org/archives/gnome-multimedia/2009-October/msg00018.html
INFO                avidemux gstavidemux.c:977:gst_avi_demux_parse_avih:<avidemux0> avih tag found:
INFO                avidemux gstavidemux.c:978:gst_avi_demux_parse_avih:<avidemux0>  us_frame    50000
INFO                avidemux gstavidemux.c:979:gst_avi_demux_parse_avih:<avidemux0>  max_bps     4608000
INFO                avidemux gstavidemux.c:980:gst_avi_demux_parse_avih:<avidemux0>  pad_gran    0
INFO                avidemux gstavidemux.c:981:gst_avi_demux_parse_avih:<avidemux0>  flags       0x00000010
INFO                avidemux gstavidemux.c:982:gst_avi_demux_parse_avih:<avidemux0>  tot_frames  100
INFO                avidemux gstavidemux.c:983:gst_avi_demux_parse_avih:<avidemux0>  init_frames 0
INFO                avidemux gstavidemux.c:984:gst_avi_demux_parse_avih:<avidemux0>  streams     1
INFO                avidemux gstavidemux.c:985:gst_avi_demux_parse_avih:<avidemux0>  bufsize     0
INFO                avidemux gstavidemux.c:986:gst_avi_demux_parse_avih:<avidemux0>  width       240
INFO                avidemux gstavidemux.c:987:gst_avi_demux_parse_avih:<avidemux0>  height      320
INFO                avidemux gstavidemux.c:988:gst_avi_demux_parse_avih:<avidemux0>  scale       0
INFO                avidemux gstavidemux.c:989:gst_avi_demux_parse_avih:<avidemux0>  rate        0
INFO                avidemux gstavidemux.c:990:gst_avi_demux_parse_avih:<avidemux0>  start       0
INFO                avidemux gstavidemux.c:991:gst_avi_demux_parse_avih:<avidemux0>  length      0
INFO                    riff riff-read.c:307:gst_riff_parse_strh:<avidemux0> strh tag found:
INFO                    riff riff-read.c:309:gst_riff_parse_strh:<avidemux0>  type        vids
INFO                    riff riff-read.c:311:gst_riff_parse_strh:<avidemux0>  fcc_handler XVID
INFO                    riff riff-read.c:312:gst_riff_parse_strh:<avidemux0>  flags       0x00000000
INFO                    riff riff-read.c:313:gst_riff_parse_strh:<avidemux0>  priority    0
INFO                    riff riff-read.c:314:gst_riff_parse_strh:<avidemux0>  init_frames 0
INFO                    riff riff-read.c:315:gst_riff_parse_strh:<avidemux0>  scale       1
INFO                    riff riff-read.c:316:gst_riff_parse_strh:<avidemux0>  rate        20
INFO                    riff riff-read.c:317:gst_riff_parse_strh:<avidemux0>  start       0
INFO                    riff riff-read.c:318:gst_riff_parse_strh:<avidemux0>  length      100
INFO                    riff riff-read.c:319:gst_riff_parse_strh:<avidemux0>  bufsize     0
INFO                    riff riff-read.c:320:gst_riff_parse_strh:<avidemux0>  quality     0
INFO                    riff riff-read.c:321:gst_riff_parse_strh:<avidemux0>  samplesize  0
INFO                avidemux gstavidemux.c:1563:gst_avi_demux_parse_stream: Stream duration according to header: 0:00:05.000000000
INFO                    riff riff-read.c:398:gst_riff_parse_strf_vids:<avidemux0> strf tag found in context vids:
INFO                    riff riff-read.c:399:gst_riff_parse_strf_vids:<avidemux0>  size        40
INFO                    riff riff-read.c:400:gst_riff_parse_strf_vids:<avidemux0>  width       240
INFO                    riff riff-read.c:401:gst_riff_parse_strf_vids:<avidemux0>  height      320
INFO                    riff riff-read.c:402:gst_riff_parse_strf_vids:<avidemux0>  planes      1
INFO                    riff riff-read.c:403:gst_riff_parse_strf_vids:<avidemux0>  bit_cnt     24
INFO                    riff riff-read.c:405:gst_riff_parse_strf_vids:<avidemux0>  compression XVID
INFO                    riff riff-read.c:406:gst_riff_parse_strf_vids:<avidemux0>  image_size  76800
INFO                    riff riff-read.c:407:gst_riff_parse_strf_vids:<avidemux0>  xpels_meter 0
INFO                    riff riff-read.c:408:gst_riff_parse_strf_vids:<avidemux0>  ypels_meter 0
INFO                    riff riff-read.c:409:gst_riff_parse_strf_vids:<avidemux0>  num_colors  0
INFO                    riff riff-read.c:410:gst_riff_parse_strf_vids:<avidemux0>  imp_colors  0
INFO                avidemux gstavidemux.c:1910:gst_avi_demux_parse_odml:<avidemux0> dmlh tag found:
INFO                avidemux gstavidemux.c:1911:gst_avi_demux_parse_odml:<avidemux0>  totalframes: 100
INFO                avidemux gstavidemux.c:2188:gst_avi_demux_stream_index: will parse index chunk size 1600 for tag idx1
INFO                avidemux gstavidemux.c:1989:gst_avi_demux_parse_index: Parsing index, nr_entries =    100
INFO                avidemux gstavidemux.c:2102:gst_avi_demux_parse_index: Parsed index,    100 entries,     1 keyframes, entry size = 48, total size =       4800
INFO                avidemux gstavidemux.c:2882:gst_avi_demux_calculate_durations_from_index: Stream 0 duration according to index: 0:00:05.000000000
INFO                avidemux gstavidemux.c:2912:gst_avi_demux_calculate_durations_from_index: Setting total duration to: 0:00:05.000000000
INFO                avidemux gstavidemux.c:4400:gst_avi_demux_loop: stream_movi flow: unexpected
INFO                avidemux gstavidemux.c:4446:gst_avi_demux_loop:<avidemux0> sending eos
INFO                avidemux gstavidemux.c:977:gst_avi_demux_parse_avih:<avidemux0> avih tag found:
INFO                avidemux gstavidemux.c:978:gst_avi_demux_parse_avih:<avidemux0>  us_frame    50000
INFO                avidemux gstavidemux.c:979:gst_avi_demux_parse_avih:<avidemux0>  max_bps     0
INFO                avidemux gstavidemux.c:980:gst_avi_demux_parse_avih:<avidemux0>  pad_gran    0
INFO                avidemux gstavidemux.c:981:gst_avi_demux_parse_avih:<avidemux0>  flags       0x00000910
INFO                avidemux gstavidemux.c:982:gst_avi_demux_parse_avih:<avidemux0>  tot_frames  100
INFO                avidemux gstavidemux.c:983:gst_avi_demux_parse_avih:<avidemux0>  init_frames 0
INFO                avidemux gstavidemux.c:984:gst_avi_demux_parse_avih:<avidemux0>  streams     1
INFO                avidemux gstavidemux.c:985:gst_avi_demux_parse_avih:<avidemux0>  bufsize     0
INFO                avidemux gstavidemux.c:986:gst_avi_demux_parse_avih:<avidemux0>  width       240
INFO                avidemux gstavidemux.c:987:gst_avi_demux_parse_avih:<avidemux0>  height      320
INFO                avidemux gstavidemux.c:988:gst_avi_demux_parse_avih:<avidemux0>  scale       0
INFO                avidemux gstavidemux.c:989:gst_avi_demux_parse_avih:<avidemux0>  rate        0
INFO                avidemux gstavidemux.c:990:gst_avi_demux_parse_avih:<avidemux0>  start       0
INFO                avidemux gstavidemux.c:991:gst_avi_demux_parse_avih:<avidemux0>  length      0
INFO                    riff riff-read.c:307:gst_riff_parse_strh:<avidemux0> strh tag found:
INFO                    riff riff-read.c:309:gst_riff_parse_strh:<avidemux0>  type        vids
INFO                    riff riff-read.c:311:gst_riff_parse_strh:<avidemux0>  fcc_handler XVID
INFO                    riff riff-read.c:312:gst_riff_parse_strh:<avidemux0>  flags       0x00000000
INFO                    riff riff-read.c:313:gst_riff_parse_strh:<avidemux0>  priority    0
INFO                    riff riff-read.c:314:gst_riff_parse_strh:<avidemux0>  init_frames 0
INFO                    riff riff-read.c:315:gst_riff_parse_strh:<avidemux0>  scale       1
INFO                    riff riff-read.c:316:gst_riff_parse_strh:<avidemux0>  rate        20
INFO                    riff riff-read.c:317:gst_riff_parse_strh:<avidemux0>  start       0
INFO                    riff riff-read.c:318:gst_riff_parse_strh:<avidemux0>  length      100
INFO                    riff riff-read.c:319:gst_riff_parse_strh:<avidemux0>  bufsize     6621
INFO                    riff riff-read.c:320:gst_riff_parse_strh:<avidemux0>  quality     0
INFO                    riff riff-read.c:321:gst_riff_parse_strh:<avidemux0>  samplesize  0
INFO                avidemux gstavidemux.c:1563:gst_avi_demux_parse_stream: Stream duration according to header: 0:00:05.000000000
INFO                    riff riff-read.c:398:gst_riff_parse_strf_vids:<avidemux0> strf tag found in context vids:
INFO                    riff riff-read.c:399:gst_riff_parse_strf_vids:<avidemux0>  size        40
INFO                    riff riff-read.c:400:gst_riff_parse_strf_vids:<avidemux0>  width       240
INFO                    riff riff-read.c:401:gst_riff_parse_strf_vids:<avidemux0>  height      320
INFO                    riff riff-read.c:402:gst_riff_parse_strf_vids:<avidemux0>  planes      1
INFO                    riff riff-read.c:403:gst_riff_parse_strf_vids:<avidemux0>  bit_cnt     24
INFO                    riff riff-read.c:405:gst_riff_parse_strf_vids:<avidemux0>  compression XVID
INFO                    riff riff-read.c:406:gst_riff_parse_strf_vids:<avidemux0>  image_size  76800
INFO                    riff riff-read.c:407:gst_riff_parse_strf_vids:<avidemux0>  xpels_meter 0
INFO                    riff riff-read.c:408:gst_riff_parse_strf_vids:<avidemux0>  ypels_meter 0
INFO                    riff riff-read.c:409:gst_riff_parse_strf_vids:<avidemux0>  num_colors  0
INFO                    riff riff-read.c:410:gst_riff_parse_strf_vids:<avidemux0>  imp_colors  0
INFO                avidemux gstavidemux.c:2188:gst_avi_demux_stream_index: will parse index chunk size 1600 for tag idx1
INFO                avidemux gstavidemux.c:1989:gst_avi_demux_parse_index: Parsing index, nr_entries =    100
INFO                avidemux gstavidemux.c:2102:gst_avi_demux_parse_index: Parsed index,    100 entries,     1 keyframes, entry size = 48, total size =       4800
INFO                avidemux gstavidemux.c:2882:gst_avi_demux_calculate_durations_from_index: Stream 0 duration according to index: 0:00:05.000000000
INFO                avidemux gstavidemux.c:2912:gst_avi_demux_calculate_durations_from_index: Setting total duration to: 0:00:05.000000000
INFO                avidemux gstavidemux.c:4400:gst_avi_demux_loop: stream_movi flow: unexpected
INFO                avidemux gstavidemux.c:4446:gst_avi_demux_loop:<avidemux0> sending eos
--- gstreamer.log	2010-02-10 02:09:02.000000000 +0100
+++ mencoder.log	2010-02-10 02:08:42.000000000 +0100
@@ -1,8 +1,8 @@
 INFO                avidemux gstavidemux.c:977:gst_avi_demux_parse_avih:<avidemux0> avih tag found:
 INFO                avidemux gstavidemux.c:978:gst_avi_demux_parse_avih:<avidemux0>  us_frame    50000
-INFO                avidemux gstavidemux.c:979:gst_avi_demux_parse_avih:<avidemux0>  max_bps     4608000
+INFO                avidemux gstavidemux.c:979:gst_avi_demux_parse_avih:<avidemux0>  max_bps     0
 INFO                avidemux gstavidemux.c:980:gst_avi_demux_parse_avih:<avidemux0>  pad_gran    0
-INFO                avidemux gstavidemux.c:981:gst_avi_demux_parse_avih:<avidemux0>  flags       0x00000010
+INFO                avidemux gstavidemux.c:981:gst_avi_demux_parse_avih:<avidemux0>  flags       0x00000910
 INFO                avidemux gstavidemux.c:982:gst_avi_demux_parse_avih:<avidemux0>  tot_frames  100
 INFO                avidemux gstavidemux.c:983:gst_avi_demux_parse_avih:<avidemux0>  init_frames 0
 INFO                avidemux gstavidemux.c:984:gst_avi_demux_parse_avih:<avidemux0>  streams     1
@@ -23,7 +23,7 @@
 INFO                    riff riff-read.c:316:gst_riff_parse_strh:<avidemux0>  rate        20
 INFO                    riff riff-read.c:317:gst_riff_parse_strh:<avidemux0>  start       0
 INFO                    riff riff-read.c:318:gst_riff_parse_strh:<avidemux0>  length      100
-INFO                    riff riff-read.c:319:gst_riff_parse_strh:<avidemux0>  bufsize     0
+INFO                    riff riff-read.c:319:gst_riff_parse_strh:<avidemux0>  bufsize     6621
 INFO                    riff riff-read.c:320:gst_riff_parse_strh:<avidemux0>  quality     0
 INFO                    riff riff-read.c:321:gst_riff_parse_strh:<avidemux0>  samplesize  0
 INFO                avidemux gstavidemux.c:1563:gst_avi_demux_parse_stream: Stream duration according to header: 0:00:05.000000000
@@ -39,8 +39,6 @@
 INFO                    riff riff-read.c:408:gst_riff_parse_strf_vids:<avidemux0>  ypels_meter 0
 INFO                    riff riff-read.c:409:gst_riff_parse_strf_vids:<avidemux0>  num_colors  0
 INFO                    riff riff-read.c:410:gst_riff_parse_strf_vids:<avidemux0>  imp_colors  0
-INFO                avidemux gstavidemux.c:1910:gst_avi_demux_parse_odml:<avidemux0> dmlh tag found:
-INFO                avidemux gstavidemux.c:1911:gst_avi_demux_parse_odml:<avidemux0>  totalframes: 100
 INFO                avidemux gstavidemux.c:2188:gst_avi_demux_stream_index: will parse index chunk size 1600 for tag idx1
 INFO                avidemux gstavidemux.c:1989:gst_avi_demux_parse_index: Parsing index, nr_entries =    100
 INFO                avidemux gstavidemux.c:2102:gst_avi_demux_parse_index: Parsed index,    100 entries,     1 keyframes, entry size = 48, total size =       4800


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]