Questions tagged [video-encoding]

0

votes
0

answer
3

Views

How do companies like jwplayer, Vimeo, and Google create a dataset for certifying their encoding presets?

Bunch of sites give an encoding recommendation for the videos being uploaded. Example : youtube, jwplayer, vimeo How do they create their datasets? Dataset has to be representative of all the kind of content which can be served at whatever resolution. Is it algorithmic or manual process to pick vid...
gegupta
1

votes
2

answer
3k

Views

Correctly Allocate And Fill Frame In FFmpeg

I am filling a Frame with a BGR image for encoding, and I am getting a memory leak. I think I got to the source of the problem but it appears to be a library issue instead. Since FFmpeg is such a mature library, I think I am misusing it and I would like to be instructed on how to do it correctly. I...
mFeinstein
1

votes
1

answer
43

Views

Why review compositing work in MJPEG videos rather than (say) H.264?

I have received a request to encode DPX files to MOV/MJPEG rather than MOV/H.264 (which ffmpeg picks by default if you convert to output.mov). These is to review compositing renders (in motion), so color accuracy is critical. Comparing a sample 'ideal' MOV to the current (H.264) output I can see: re...
d3vid
1

votes
1

answer
1.8k

Views

Android Media Recorder Video Encoding for HEVC(H.265) in Android

Curently I am using MediaRecorder.VideoEncoder Class for creating a HEVC(H.265) encoded video in Android. I am using Camera Class with SurfaceView for start/stop camera preview, and retrieve frames for encoding video(Recording Video). Camera mCamera = Camera.open(); mCamera.setDisplayOrientation(90...
A-Droid Tech
1

votes
0

answer
58

Views

Media Foundation video re-encoding producing audio stream sync offset

I'm attempting to write a simple windows media foundation command line tool to use IMFSourceReader and IMFSyncWriter to load in a video, read the video and audio as uncompressed streams and re-encode them to H.246/AAC with some specific hard-coded settings. The simple program Gist is here A sample...
m1keall1son
1

votes
2

answer
430

Views

Multiple side-to-side video streams in one file without transcoding

I am investigating a possibility to store video streams which are coming from few sources already coded in h264 without video transcoding as the device I would like to use for this project won't be capable of transcoding combined video on the fly. What I am looking for is two or more pictures side t...
1

votes
1

answer
92

Views

Explain how this encoder deals with PPS and SPS?

I found this code online can someone please explain the PPS and SPS part? Everything after the else of if (sps != null && pps != null) I understand that since we check if (spsPpsBuffer.getInt() == 0x00000001) because a NALU starts with 0x00000001 but after that I really don't understand the followi...
jjdoedoe
1

votes
2

answer
870

Views

Scriptable utility to convert BMPs + WAV to video (XviD)?

I'm looking for a scriptable utility to convert a bunch of BMPs and a WAV file into a video. XviD needs to be the output format. I'd like it to work on Linux (Ubuntu) if possible. A command line utility would be great, as I have 36 videos to create this way. A bash (or [insert favorite scripting...
Benjamin Oakes
1

votes
2

answer
1.3k

Views

Wordpress - Stream Video Player - Large flv files

I need to enable locally hosted video player in a wordpress site. Currently I am using the steam video player plugin. It seems to work fine for small files, and large files simply stalls as they take too long to load. See examples here. How to handle this situation. Are there any alternative p...
Natkeeran
1

votes
2

answer
8.9k

Views

Android: Video Encoding H.264 and Setting Framerate Not Working

I have an HTC MyTouch 3G Slide (Android 2.1, API level 7). I am trying to write a program to record 320x240 h.264 video at 15fps, but I have 2 major problems. I would be grateful for a solution to either issue. Here is what I am doing: mediaRecorder = new MediaRecorder(); mediaRecorder.setCamera(cam...
Tom D
1

votes
2

answer
641

Views

Encoding parameters in videos for web (low in size) while keeping quality good enough?

I'm trying to build a video sharing platform much like youtube. So far everything is going great, but i'm having difficulties with my encoding parameters in ffmpeg. I'm using a silverlight media player so the output file must be in wmv format. The only thing i can play freely was -qscale parameter a...
umutto
1

votes
3

answer
1.3k

Views

.AMV video encoder/converter?

I'm looking for a converter that can encode input files to amv format output. I've found this project, but it looks somewhat outdated and not maintained. And the problem of that is that it supports a very limited variety of input file types. Do you know of a solid and reliable amv encoder (any API o...
Shimmy
1

votes
1

answer
3.4k

Views

Copying timecode into output file ffmpeg or ffmbc

I have media files in various formats that I want to be able to segment using ffmbc, same acodec, vcodec and container as original. I would like to be able to maintain the timecode data e.g. start_delay, from the original to destination media files ( with the segmented offset taken into account ). A...
user989056
1

votes
1

answer
4.9k

Views

Maintaining exact aspect ratio when scaling videos using ffmpeg

I have a mkv video, which is a mix of multiple resolution recordings, e.g. I have the first few seconds of widescreen 16:9 (1024x576) resolution, and the rest of the video if 4:3 (768x576) resolution. I want to scale this video down 3 times, while copying all the other attributes (audio codec, subti...
Khushman Patel
0

votes
0

answer
6

Views

Using MoviePy to fix unfinalized .flv video

While recording my screen with OBS capture, I accumulated large quantity of videos that had been subject to a forced system shutdown, leaving them unfinalized. The videos were created using an .flv format, so when I play them in VLC Player they play flawlessly, however they are missing an end time (...
Frank Fanelli
1

votes
3

answer
3.1k

Views

“NVENC Feature not available for current license key type” error from nvEncoder sample

When I try to run the nvEncoder sample application included in NV Encode SDK 2.0, it fails to open an encode session. Here is the output: C:\Users\Timothy\Downloads\nvenc_2.0_pkg\Samples\nvEncodeApp>1080p_heavyhand_3se c.bat C:\Users\Timothy\Downloads\nvenc_2.0_pkg\Samples\nvEncodeApp>nvEncoder -in...
Timothy003
1

votes
2

answer
3.6k

Views

How can I run and test NVENC API working on Linux CentOS?

We have a server with kepler graphics card and Nvidia driver already installed. How can I run NVENC(Hardware for Video encoding), and use its SDK on linux CentOS 6.4? Also, how can I test if it is working in general aspects? Is there any test program, like a NVENC hello world to test NVENC API? Is i...
1

votes
2

answer
417

Views

Android Video Encoding

I just want to merge a mp3 file and image file into mp4 video format. I have done google on this topic and found some third parties libraries such as FFMPEG,Jcodec etc and i am unable to use these libraries. So please help me out from this problem.
Tajinder
1

votes
1

answer
841

Views

Encoding with ffmpeg: video quality drops

I'm trying to encode a set of pictures into a video with ffmpeg. I'm new to this stuff, but I managed to get it work. I have only one problem: the first second or two of video look good but as the time goes the video quality keeps dropping and dropping. At the end (it's a video of about 16 seconds)...
Adi Ulici
1

votes
1

answer
6.1k

Views

How can I stream Youtube videos in my Roku Channel? [closed]

I am trying to create a Roku channel that could stream video content from a Youtube Channel. I am aware of a Linux command-line program (youtube-dl) that can let me programmatically download videos that I can potentially reference via Youtube video ids obtained by the Youtube API results. My issue w...
Yannick Y
1

votes
3

answer
269

Views

mpeg-dash toolkit, how can I make such videos?

I was reading about this nice specification but I'm not sure what's the current status. Ffmpeg has some coverage http://ffmpeg.org/ffmpeg-all.html#webm_005fdash_005fmanifest but it is not clear to me if I could encode videos in such format. So, the question is, If I were to produce mpeg-dash compl...
sathia
1

votes
1

answer
1.3k

Views

NVENC : fail to compress H264 with for multiple video streams

I have two Quadro K620 NVidia video cards. I want to compress 4 H.264 streams using NVENC SDK, 2 streams per card. video is 640x 480 30 fps. 2 streams working well without any problem but It's failed when I try to encod 3 Streams. The function nvEncOpenEncodeSessionEx return NV_ENC_ERR_OUT_O...
daniel
1

votes
1

answer
3.3k

Views

OpenCV encoding to H264

I want to encode images to H264 video in OpenCV. As part of my software for image tracking, I'm using VideoWriter in OpenCV 3.4 (64-bit) with Visual Studio 2017 C++. I use ffmpeg for manual encoding, and as it comes with OpenCV I assume this is the best option. My version of OpenCV indicates it has...
Yost777
2

votes
2

answer
3.9k

Views

Using FFMpeg to determine video-type, converting afterwards?

I'm trying to determine the real type of a file programmatically. It seems I have to use for example FFMPeg for that. I want to determine if an uploaded file is in fact a MP4 or FLV (for flash videos) [or WebM (for HTML5)]. I know the -i operator in FFMPeg but I don't know what to check for. For e...
sinni800
9

votes
0

answer
323

Views

How to generate video file from QImage sequence using QMediaRecorder in Qt5 C++

Basically what I want is to encode a video using QMediaRecorder by supplying as a source a sequence of QImages that I generate in custom code at run-time. So far I have found no easy way to do this, and everything points at the solution where I have to somehow implement my own subclass of QMediaServ...
Lennart Rolland
2

votes
1

answer
931

Views

Android H.263 or H.264 file?

Is there a way to find the codec difference for a video file on Android? I need to find out if the file is encoded as H.263 or as H.264? The mime type is always video/3gp, so that's not useful. I read something about magic cookies, but I cannot find the magic cookie format for H.263 encoded files. A...
pol
2

votes
2

answer
4.2k

Views

MediaCodec Video Streaming From Camera wrong orientation & color

I'm trying to stream video capturing directly from camera for android devices. So far I have been able to capture each frame from android camera's onPreviewFrame(byte[] data, Camera camera) function, encode the data & then successfully decode the data and show to the surface. I used android's MediaC...
Asif Aminur Rashid
2

votes
1

answer
6.2k

Views

Save MP4 into iPhone photo album

I have an app that plays video clips through the MPMovieplayer. These clips are in mp4 format and everything works dandy. I want to take that same clip and save it into the photo album. This works if I manually sync the video from a computer through iTunes to the phone. It appears to transcode t...
spentak
0

votes
2

answer
58

Views

mp4 in VideoView

The original format I had for my video file made it not work for any device, so I ran it through ffmpeg to convert it to a type which would be more compatible. Now, it runs on most devices, but there are still a few that give the error 'Cannot play this file' The command i used to convert it was: f...
Abhishek Patel
17

votes
5

answer
49.9k

Views

Using FFMPEG to reliably convert videos to mp4 for iphone/ipod and flash players

I need to convert videos for use in both a flash player and the iphone/ipod touch. I'm using the following batch script with ffmpeg: @echo off ffmpeg.exe -i %1 -s qvga -acodec libfaac -ar 22050 -ab 128k -vcodec libx264 -threads 0 -f ipod %2 This always outputs an mp4 file, and I can always play it...
Jake Stevenson
17

votes
1

answer
12.6k

Views

streaming video FROM an iPhone

I can get individual frames from the iPhone's cameras just fine. what I need is a way to package them up with sound for streaming to the server. Sending the files once I have them isn't much of an issue. Its the generation of the files for streaming that I am having problems with. I've been trying t...
iHorse
7

votes
1

answer
12.9k

Views

Video encode from sequence of images from java android [duplicate]

This question already has an answer here: Encode a series of Images into a Video 4 answers I would like to encode video from sequence of images with java only in my current android project. I mean without any use of external tools such as NDK. Also is there any availability of java libraries for en...
captaindroid
18

votes
1

answer
32.3k

Views

Image sequence to video quality [closed]

I have been experimenting with creating a video from a sequence of images. When I use the suggested ffmpeg method: ffmpeg -f image2 -i image%d.jpg video.mpg The video is not really as good as I hoped it would be :/ For example with VDUB, If I export avi from the same image sequence its perfect qulal...
brux
18

votes
1

answer
24.1k

Views

How to disable subtitles decoding in ffmpeg

I'm trying to convert some video file containing video, audio and subtitles streams into another format using FFMpeg. However, ffmpeg complains about the subtitles format - it cannot decode the stream. Since I don't need this subtitles stream, I'd like to know how can I disable subtitles stream deco...
v_2e
2

votes
2

answer
58

Views

MediaFoundation HEVC H265 encoding

I'm able to successfully encode H264 video using MediaFoundation. Now I want to export HEVC which is, according to official documentation, is supported. I am doing everything as described there but whenever I want to set input media type to the writer it ends up with an error: No suitable transform...
mbaros
19

votes
2

answer
9.5k

Views

Is there a downside to putting the MOOV atom at the beginning of an MP4 file?

I see tons of questions about relocating the moov atom from the end of a MP4 video container to the beginning, to make the video 'web optimized' or easier to stream. It seems like most tools require an explicit option to do this when first encoding the video, if it's available at all. If placing th...
Coderer
6

votes
3

answer
13k

Views

Writing video with OpenCV + Python + Mac

I keep getting an assertion error when I'm trying to write frames to video. The error I'm getting is this: Traceback (most recent call last): File 'VideoMixer.py', line 23, in cv.WriteFrame(writer, cv.LoadImage(fileName)) cv.error: dst.data == dst0.data Here's my script: import cv import sys files...
rgbrgb
40

votes
4

answer
24.3k

Views

Encode a series of Images into a Video

How can I create a video file from a series of images/photos on Android? Can this be done with the current SDK? or do I need a codec library?
Rad The Mad
6

votes
1

answer
3.1k

Views

Multiple CUDA contexts for one device - any sense?

I thought I had the grasp of this but apparently I do not:) I need to perform parallel H.264 stream encoding with NVENC from frames that are not in any of the formats accepted by the encoder so I have a following code pipeline: A callback informing that a new frame has arrived is called I copy the f...
Rudolfs Bundulis
6

votes
1

answer
4.3k

Views

Cannot play certain videos

I'm trying to play movies on the Android device from our server. It is not a media server, just a regular Apache server. We use the same API to access the videos on the iPhone and it works fine. On the Android device, certain videos work, and others do not. They were all created the same way, excep...
Jai

View additional questions