GNOME Bugzilla – Bug 668565
typefinding: detect raw VC-1 streams
Last modified: 2018-11-03 11:20:53 UTC
I'm using GStreamer Core Library version 0.10.35.2 and all plugins from .2 prerelease, and it looks like typefind can't detect VC-1 raw stream and determine it as "video/x-h264, stream-format=(string)byte-stream, probability=80", so decoder can't decode this stream. The stream is not corrupted and other player (mplayer, with ffmpeg's libavformat) detects it as "raw VC-1" and plays this stream correctly.
Could you attach the beginning of your file please? head --bytes=990k > 668565.vc1 should do the trick.
Created attachment 205965 [details] piece of the problem file
(In reply to comment #0) > I'm using GStreamer Core Library version 0.10.35.2 and all plugins from .2 > prerelease, and it looks like typefind can't detect VC-1 raw stream and > determine it as "video/x-h264, stream-format=(string)byte-stream, > probability=80", so decoder can't decode this stream. The stream is not > corrupted and other player (mplayer, with ffmpeg's libavformat) detects it as > "raw VC-1" and plays this stream correctly. I could patch typefinder to detect raw VC-1 bitstreams, but I don't think that'd be useful without the vc1parse element enabled. Anyhow, I will cook a patch. BTW, do we need to differentiate formats (WMV3 vs. WVC1) here or is this left to some other element? Rationale: people usually make "vc1" to express VC-1 Advanced profile only, and Simple/Main profiles are labelled as "wmv3".
Created attachment 234292 [details] [review] typefind: detect VC-1 elementary streams Here is the suggested patch. I also have a variant for 0.10 if needed.
Comment on attachment 234292 [details] [review] typefind: detect VC-1 elementary streams I get way too many false positives with this, on mpeg-2 ES, DVD IFO/BUP files, MPEG-TS files, also mp4 file fragments (m4s).
Hi, I completely forgot I still had this patch around. :) Let me check if I don't have an update at the office.
(In reply to comment #6) > Hi, I completely forgot I still had this patch around. :) Let me check if I > don't have an update at the office. Checked around, found nothing newer, and not even that original patch. Probably elsewhere. :)
for sake of completeness, I checked how libav does it. It relies in the file extension! if the file ends with .vc1
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/62.