Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Pyglet and FFmpeg
15 mai 2018, par Yoann PietriI've been trying to play videos with python by using the piglet library. After installation, I tried the video.py in the examples folder. The following error occurred : "pyglet.media.sources.riff.WAVEFormatException: FFmpeg is required to decode compressed media". FFmpeg and AVBin are both installed on my computer. How can I make piglet work ?
-
Python-OpenCV forcing VideoWriter to use libx264 instead of libcuda.so.1
15 mai 2018, par neilthomI am using OpenCV for some video processing and require the output file to be in H264 encoded in an MP4 container. This is running on Ubuntu 16.04 in a Docker container, but I have also tested in Debian 9 (Stretch) and found the same issue. When the video writer begins to write to file, the following error occurs:
[h264_nvenc @ 0x7fd3c0468b60] Cannot load libcuda.so.1 Could not open codec ‘h264_nvenc’: Unspecified error
This seems to imply that nVidia cuda and nvenc is being used to encode the output video. This requires nVidia drivers to be installed, which is not an option right now.
The VideoWriter is created like so:
self.out = cv2.VideoWriter("test.mp4", cv2.VideoWriter_fourcc(*'X264'), 30, (1280, 720))
As I understand it, OpenCV uses FFmpeg for video reading and writing video. My FFmpeg install has libx264 enabled- is there a way to force OpenCV to use FFmpeg & libx264 for video writing instead of libcuda and nvenc?
Thanks.
-
ffmpeg - creating manifest file for smooth streaming
15 mai 2018, par user2928842I'm new to ffmpeg (and video encoding), and i'm trying to understand how do i create a manifest file for IIS i've tried creating the .ismv filem but it did not create the manifest file, i've saw the ismindex tool under the ffmpeg tools folder, but didn't quite understand how to use it.
-
ffmpeg scaling not working for video
15 mai 2018, par Neer PatelI am trying to change the dimensions of the video file through FFMPEG. I want to convert any video file to 480*360 .
This is the command that I am using...
ffmpeg -i oldVideo.mp4 -vf scale=480:360 newVideo.mp4
After this command 1280*720 dimensions are converted to 640*360.
I have also attached video. it will take less than minute for any experts out there. Is there anything wrong ?
You can see here. (in Video, after 20 seconds, direclty jump to 1:35 , rest is just processing time).
UPDATE :
I found the command from this tutorial
-
Add text to video using ffmpeg command working in mac but give error in ubuntu ?
15 mai 2018, par Jinal SomaiyaI am running below ffmpeg command that is working fine in mac but in ubuntu give error:
[aac @ 0x15187a0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
Command:
ffmpeg -i intro.mp4 -vf "drawtext=fontfile=FutuMd.ttf: text="Audi": x=680: y=500: fontsize=55: fontcolor=white: enable='between(t,4,6)'" introfinal.mp4
Thanks in advance