Questions tagged [video-conversion]

Video conversion deals mostly with converting videos from one codec to a second one or to resize the image size. It is also possible to change the container format as well.

Videos must be converted for several reasons from one codec to a second one or need to be resized to fit on smaller screens. In some cases devices can record or play just a view formats. With video conversion videos can been converted to be playable on a other device.

179 questions
1
vote
1 answer

ffmpeg - operation not permitted error while conversion

I am developing an android app. My requirement is that to implement an rtsp streaming server on android. It has to live stream video and audio captured using MediaRecorder. Another requirement is that I have to use live555 as the streaming server.…
Jomoos
  • 12,823
  • 10
  • 55
  • 92
1
vote
1 answer

Centos Video Optimizer

I have a lot of MP4 files on my server. And my aim is to get them to stream on android mobiles. The resolution of the videos are at 480×272 and this is not a problem because I tested it and most androids are able to stream it. But the problem is…
1
vote
0 answers

Error while Creating Videos from images using ffmpeg

I am trying to create videos from images sequence. I tried all the below code given in $ff_command variable. $path = dirname(__FILE__); $ff_command = "ffmpeg -f image2 -i {$path}/img%03d.jpg video.mpg"; $ff_command = "ffmpeg -r 10 -b 1800 -i…
Rcrd 009
  • 323
  • 6
  • 17
1
vote
1 answer

FFmpeg avcodec_open2 throws -22 ("Invalid Argument")

I got stuck trying to write a simple video conversion using C++ and ffmpeg. When trying to convert a video using FFmpeg, calling avcodec_open2 fails with the code "-22" which seems to be an "Invalid Argument"-error. I can't figure out why it fails,…
1
vote
1 answer

ffmpeg how to convert an existing mp4 to mpeg-4 part 14?

I need a video to comply with the following specifications Container: MOV or MP4 (MPEG-4 Part 14), no edit lists, moov atom at the front of the file. Audio codec: AAC, 48khz sample rate maximum, 1 or 2 channels (mono or stereo). Video codec: HEVC…
Micha
  • 523
  • 10
  • 26
1
vote
4 answers

Can I convert videos with javascript?

I am making an application in HTML5 that lets you choose a local video file, then play it using the video tag. The problem is that some of the codecs of the videos are not playable by current browsers (XviD in general, H.264 for Firefox, etc). Is it…
Cokegod
  • 8,256
  • 10
  • 29
  • 47
1
vote
0 answers

react-native-fs library readFile() function returns infinite base64 string

I got to check this library react-native-fs because I have this task wherein I have to convert a video into base64 string before sending it to our API. I am using the readFile function that's provided by this library to achieve that. But somehow I…
1
vote
0 answers

How do I concatenate two videos and apply a logo using moviepy in Python?

import os import moviepy import moviepy.editor as mp from moviepy.video.compositing.concatenate import concatenate_videoclips list1 = os.listdir("D:\\facemask") a = len(list1) for lst in range(a): video_path = "D:\\facemask\\" + list1[lst] …
Sharvari
  • 11
  • 2
1
vote
1 answer

How can I convert a mp4 file to webm using java only?

I am trying to convert a file from mp4 to webm. I am trying to use the JAVE wrapper of FFmpeg. I am getting the error. Here is my code: private String ConvertVideo(URL url) { File target =null; MultimediaObject multimediaObject = new…
mir-shakir
  • 41
  • 5
1
vote
0 answers

Why does converting a .ts stream to .mp4 result in a longer duration

Using ffmpeg to convert a .ts file to .mp4 format sometimes results in the converted video's duration being longer than its original. What would be causing this to happen? I've only found answers online that point towards timestamps and different…
phoenix
  • 69
  • 6
1
vote
2 answers

Convert .mp4 to .mpeg4 using Converter

I have an MP4 file, which I would like to convert into an MPEG4 file. TO do this, I have found the PythonVideoConvert package. On the PyPI page, the following code is given: from converter import Converter conv = Converter() info =…
Emil
  • 1,531
  • 3
  • 22
  • 47
1
vote
1 answer

Encoding in h264 with ffmpeg on RTX 3080 fails

I'm trying to convert a 7200x3600 60fps h265 video using my RTX 3080 to the h264 codec because of some compatibility issue with VR. This command line result in "No NVENC capable devices found" error: ffmpeg -hwaccel_device 0 -hwaccel cuda -i…
Entretoize
  • 2,124
  • 3
  • 23
  • 44
1
vote
1 answer

Ffmpeg - How can I create HLS multiple language streams, in multiple qualities?

Preface I'm working on converting videos from 4k to multiple qualities with multiple languages but am having issues with the multiple languages overlaying, sometimes losing quality and sometimes being out of sync. (this is less of a problem in the…
1
vote
2 answers

FFMPEG - 60fps to 30fps with burn in in one line

Ive been trying to get this work for a little while now and I think im just lacking some knowledge in something. I am basically trying to convert a 60fps video down to 30fps and burn in timecode all at the same time. So far I have ffmpeg -y -r 60 …
OliC
  • 21
  • 5
1
vote
1 answer

Converting several video files into audio with MoviePy

I have been trying to create a for loop in which Python goes through all of the video files in a folder, and converts each individual video file to a new audio file. I know that effective code for doing it exists, but only for individual files. This…
Manukapp
  • 21
  • 5