video

JavaFX : MediaException: MEDIA_UNSUPPORTED : media type not supported

。_饼干妹妹 提交于 2021-01-29 17:56:38
问题 I need to play the 3gp , mov and mp4 videos in the media player. Right now I am using JavaFx media player but it supports only mp4 videos. So what I can do to play the other two formats as well in this player or is there any other solution also available for this. Any help and suggestions please? jdk = 1.7 JavaFx: 2.1 回答1: Here is a list of JavaFX supported audio and video formats. For anything unsupported by JavaFX, you have the option of either converting them to another format or finding a

MP4 file not loading on React / Rails app

老子叫甜甜 提交于 2021-01-29 15:13:53
问题 I'm getting this error. From what I can google, it needs to configure the webpack file but in this rails app it's a webpacker.yml file. CRA looks like it works fine when using the usual tag. Any help would be appreciated. ./app/javascript/components/User/cover.mp4 1:0 Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code

Embedded youtube videos showing up blank in Django card-columns page

拟墨画扇 提交于 2021-01-29 14:20:11
问题 I'm working in a django project and i've run into an issue using embedded videos with bootstraps card-columns. We have a django plugin, Media Player, that simply puts a div & iframe on the page, most of the JS comes from the websites. The videos in question are from youtube, but i've tried vimeo videos and same result. The issue is that some videos work fine, but others don't show up on the page, they are blank/white. However, the video is still there, it takes up space & i can hover over it

How to take metadata from .mp3 file and put it to a video as a text using FFmpeg?

百般思念 提交于 2021-01-29 11:23:01
问题 In my previously opened topic: How to make FFmpeg automatically inject mp3 audio tracks in the single cycled muted video I've got detailed explanation from @llogan how to broadcast looped short muted video on youtube automatically injecting audio tracks in it without interrupting a translation. I plan to enhance the flow and the next question I faced with is how to dynamically put an additional text to the broadcast. Prerequisites: youtube broadcast is up and running by ffmpeg short 3 min

How to get name of directory having audio files using mediastore.audio in android

岁酱吖の 提交于 2021-01-29 11:08:37
问题 I'm working on audio and video player. I got all video's folder name using mediastore.video.media.bucket_display_name , it's working perfectly with video files but when i uses mediastore.audio.media.bucket_display_name it shows error. Can anybody help me to get name of folders containing audio files. I need to do this using cursor. And i got this error: "no such column: bucket_display_name (Sqlite code 1): , while compiling: SELECT bucket_display_name FROM audio" 回答1: Use below code to get

Conversion from mjpeg to mp4 (libx264) with FFmpeg

那年仲夏 提交于 2021-01-29 10:56:57
问题 If you convert from mjpeg to mp4 (libx264) with FFmpeg, Playback can not be performed on Windows · Mac. Thumbnails are not displayed on the icon. However, with the HTML5 Video tag, playback is possible. Why? Please tell me if you understand. Thank you. ffmpeg -i source_file.mov -b 4000k -vcodec libx264 destination_file.mp4 回答1: The usual reason for this is the pixel format. The MJPEG may have 4:2:2 or 4:4:4 chroma sampling which most players don't support in H264. So try ffmpeg -i source_file

Have video Quality Controls in hls.js / Video.js for Live Streaming

♀尐吖头ヾ 提交于 2021-01-29 10:24:36
问题 Using HLS.js (() => { var video = document.getElementById('video'); console.log('VIDEO',video); if(Hls.isSupported()) { var hls = new Hls(); hls.loadSource('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function() { //https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api //console.log('RAHUL',hls.levels); video.play(); }); } // hls.js is not supported on platforms that do not have Media Source

ffmpeg amerge Error while filtering: Cannot allocate memory

泪湿孤枕 提交于 2021-01-29 09:23:54
问题 This seems to be a recurring problem, as seen here: ffmpeg Error while filtering: Cannot allocate memory . I ask this only because that question has no answer. I get a memory error every time I try to use amerge to combine music and a video (with audio). I am at a loss as to how to get around this, so if there are any other command line alternatives that do the same thing (combining audio with video, merging the new audio and the current audio on the video) any suggestions would be much

Cannot Play Video Output of Libavcodec (ffmpeg) Encoding Example

独自空忆成欢 提交于 2021-01-29 08:40:34
问题 From FFMPEG's GitHub, I use the encode_video.c to generate a 1 second video. Here is the example in question: https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/encode_video.c I compile with: gcc -Wall -o ffencode encode_video.c -lavcodec -lavutil -lz -lm Clean compile, zero warnings. I test the program by running: ./ffencode video.mp4 libx264 Lots of stats printed out (expected based on source code) as well as ffmpeg logs, but ultimately no errors or warnings. However, then the

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