isomp4: Add official fourcc for VP8 codec

fourcc for VP8 codec is "vp08" defined by spec. To follow it,
add it to demux and change legacy VP8 fourcc "VP80" to "vp08" in mux.
Also, enable sync table in case of VP8 codec.
See also https://www.webmproject.org/vp9/mp4/

https://bugzilla.gnome.org/show_bug.cgi?id=790026
This commit is contained in:
Seungha Yang 2017-11-13 10:43:11 +09:00 committed by Nicolas Dufresne
parent 93f19b19d2
commit 8aa5c59b5f
3 changed files with 3 additions and 2 deletions

View file

@ -251,6 +251,7 @@ G_BEGIN_DECLS
#define FOURCC_vc_1 GST_MAKE_FOURCC('v','c','-','1') #define FOURCC_vc_1 GST_MAKE_FOURCC('v','c','-','1')
#define FOURCC_vide GST_MAKE_FOURCC('v','i','d','e') #define FOURCC_vide GST_MAKE_FOURCC('v','i','d','e')
#define FOURCC_vmhd GST_MAKE_FOURCC('v','m','h','d') #define FOURCC_vmhd GST_MAKE_FOURCC('v','m','h','d')
#define FOURCC_vp08 GST_MAKE_FOURCC('v','p','0','8')
#define FOURCC_vp09 GST_MAKE_FOURCC('v','p','0','9') #define FOURCC_vp09 GST_MAKE_FOURCC('v','p','0','9')
#define FOURCC_xvid GST_MAKE_FOURCC('x','v','i','d') #define FOURCC_xvid GST_MAKE_FOURCC('x','v','i','d')
#define FOURCC_wave GST_MAKE_FOURCC('w','a','v','e') #define FOURCC_wave GST_MAKE_FOURCC('w','a','v','e')

View file

@ -5346,8 +5346,7 @@ gst_qt_mux_video_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
goto refuse_caps; goto refuse_caps;
} }
} else if (strcmp (mimetype, "video/x-vp8") == 0) { } else if (strcmp (mimetype, "video/x-vp8") == 0) {
entry.fourcc = FOURCC_VP80; entry.fourcc = FOURCC_vp08;
sync = FALSE;
} else if (strcmp (mimetype, "video/x-vp9") == 0) { } else if (strcmp (mimetype, "video/x-vp9") == 0) {
entry.fourcc = FOURCC_vp09; entry.fourcc = FOURCC_vp09;
} else if (strcmp (mimetype, "video/x-dirac") == 0) { } else if (strcmp (mimetype, "video/x-dirac") == 0) {

View file

@ -13937,6 +13937,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps = gst_caps_from_string ("video/x-dnxhd"); caps = gst_caps_from_string ("video/x-dnxhd");
break; break;
case FOURCC_VP80: case FOURCC_VP80:
case FOURCC_vp08:
_codec ("On2 VP8"); _codec ("On2 VP8");
caps = gst_caps_from_string ("video/x-vp8"); caps = gst_caps_from_string ("video/x-vp8");
break; break;