codec

How to determine the proper HTML5 video codec attribute for an AV1 file based on the FFMpeg encoding command or output?

家住魔仙堡 提交于 2021-02-20 00:46:59
问题 We have some files encoded in AV1, but we recently noticed that Chrome mobile fails to play the files - but it doesn't fall back to an encoding it can use - it just puts the unplayable AV1 file in there. I'm hoping that if we add a codec attribute we can remedy this - but I'm not sure how to determine the codec for these AV1 files. I've come across this documentation on MDN, but I'm not sure how I would determine the proper codec from that. It starts off simple enough, but some of the values

ffmpeg convert from H.264 (High 4:4:4 Profile) to H.264 (Main Profile)

我的未来我决定 提交于 2021-02-17 15:20:08
问题 How can I convert a video from H.264 (High 4:4:4 Profile) to H.264 (Main Profile) using ffmpeg? I can't do that with this command: ffmpeg -i 1/25359.mp4 -profile:v main out.mp4 . That'd return an error: ... That'd return an error: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1/25359.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf56.40.101 Duration: 00:00:06.08, start: 0.000000, bitrate: 1059 kb/s Stream #0:0(und): Video: h264 (High 4:4:4

How to call Method's Class Name dynamically?

南楼画角 提交于 2021-02-10 14:13:10
问题 Is it possible to use an input variable as a Method's Class Name? What I'm using now: Switch / Case with multiple Namespace.Class.Method() 's. Each Codec Method is in its own Class. public static void SetControls(string codec_SelectedItem) { switch (codec_SelectedItem) { case "Vorbis": Codec.Vorbis.Set(); break; case "Opus": Codec.Opus.Set(); break; case "AAC": Codec.AAC.Set(); break; case "FLAC": Codec.FLAC.Set(); break; case "PCM": Codec.PCM.Set(); break; } } Trying to simplify: A single

How can I (or is it possible to) convert the AVC codec profile and level to the MIME codec definition?

喜你入骨 提交于 2021-02-08 07:23:35
问题 In my use-case I have to provide codec specification within the HTML5 video source 's MIME type. But even a type="video/mp4; codecs=avc1" is not detailed enough for Firefox. Firefox needs the extra detail of for example type="video/mp4; codecs=avc1.64001E" . My problem is that I don't know where to get this 64001E part from. The whole identification happens on server side. So far I was using ffprobe and that's perfectly supplies me JSON format output, like so: ffprobe -select_streams v:0 -v

How do I create a custom media player to play a custom codec in Android?

≯℡__Kan透↙ 提交于 2021-02-05 20:30:32
问题 n00b here (first Android project). I have been given a custom video codec that has been integrated with an Android firmware build. It's an .so file containing a class that inherits from MediaPlayerInterface, as well as a custom MediaPlayerService implementation to return instances of the custom codec class from the create() factory function for the appropriate file types. I want to use this codec as part of a video player application that can be installed on phones that do not contain the

How do I create a custom media player to play a custom codec in Android?

跟風遠走 提交于 2021-02-05 20:28:31
问题 n00b here (first Android project). I have been given a custom video codec that has been integrated with an Android firmware build. It's an .so file containing a class that inherits from MediaPlayerInterface, as well as a custom MediaPlayerService implementation to return instances of the custom codec class from the create() factory function for the appropriate file types. I want to use this codec as part of a video player application that can be installed on phones that do not contain the

Python does not play mp4 and avi files

岁酱吖の 提交于 2021-02-05 11:22:15
问题 This program does not play videos but the sound is okey. I get an error about h264 or MJPG.When trying to play an .mp4 or .avi file I see the this messages. main decoder error: Codec `MJPG' (Motion JPEG Video) is not supported. main decoder error: Codec not supported main decoder error: VLC could not decode the format "MJPG" (Motion JPEG Video) or main decoder error:Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported. main decoder error: Codec not supported main decoder error: VLC

Playing *.avi files with Qt

瘦欲@ 提交于 2021-01-29 07:46:37
问题 I am trying to play *.avi file (~900MB) with this code: QMediaPlayer* player = new QMediaPlayer(this); player->setMedia(QUrl::fromLocalFile("mes1.avi")); player->setVideoOutput(ui->videoWidget); player->play(); where ui->videoWidget is QVideoWidget and every time I play it I am getting this error code (in Application Output console) Since google doesn't help, this is my only choice... DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102) EDIT1: I have

How can I read OPUS packets one by one from ogg/opus file

℡╲_俬逩灬. 提交于 2021-01-28 22:04:57
问题 I need to read OPUS packets one by one from ogg/opus file and send them further in OPUS format so without decoding. I'm looking at opusfile lib but API and examples are rather complicated and more focused on decoding the file and getting resulted PCM. Is there a way to achieve what I want with this lib and how? If not what other options do I have? 回答1: libogg could be used to parse the Ogg Opus file's "pages", and then the opus "packets" could then be extracted from those pages. Mind that

The byte stream type of the given URL is unsupported MediaFoundation

喜欢而已 提交于 2021-01-07 07:01:52
问题 I need to create a reader from buffer(that is wav bytes ) in order to do it I am using such approach: void co_AudioEncoderMF::load_from_memory(unsigned char const * data, long data_size) { unsigned char * buf = new unsigned char[data_size]; //JUST FOR TEST IN ORDER TO BE SURE THAT I HAVE THIS DATA memcpy(buf, data, data_size); IMFMediaType *input_type = nullptr; IMFSourceReader *source_reader = nullptr; IMFMediaType *ouput_media_type = nullptr; IMFSinkWriter *sink_writer = nullptr; IStream *