Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Error in ffmpeg conversion
9 avril 2015, par Adam Mo.I have a VPS 1G RAM with CentOS 6 i386 minimal installed and installed ffmpeg by ffmpeginstaller.com to setup clipbucket 2.7 in the VPS. when I test the ffmpeg by this command:
wget "http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_surround.avi" ffmpeg -i big_buck_bunny_720p_surround.avi -vcodec libx264 big_buck_bunny_720p_surround-H264.avi
by following this tutorial I get error the output :
ffmpeg version N-71343-g32e06c4-syslint Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11) configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=- I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable- version3 --extra-version=syslint libavutil 54. 22.101 / 54. 22.101 libavcodec 56. 34.100 / 56. 34.100 libavformat 56. 30.100 / 56. 30.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 13.101 / 5. 13.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, avi, from 'big_buck_bunny_720p_surround.avi': Metadata: encoder : AVI-Mux GUI 1.17.7, Aug 8 2006 20:59:17 JUNK : Duration: 00:09:56.46, start: 0.000000, bitrate: 4456 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4001 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s Metadata: title : BBB-Master [libx264 @ 0x9360de0] using SAR=1/1 [libx264 @ 0x9360de0] using cpu capabilities: none! x264 [error]: malloc of size 5258784 failed Output #0, avi, to 'big_buck_bunny_720p_surround-H264.avi': Metadata: encoder : AVI-Mux GUI 1.17.7, Aug 8 2006 20:59:17 JUNK : Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 24 fps Metadata: encoder : Lavc56.34.100 libx264 Stream #0:1: Audio: mp3, 0 channels, 128 kb/s Metadata: title : BBB-Master encoder : Lavc56.34.100 libmp3lame Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
I don't know what the problem, can any one help me?
-
Generating movie from python without saving individual frames to files
8 avril 2015, par PaulI would like to create an h264 or divx movie from frames that I generate in a python script in matplotlib. There are about 100k frames in this movie.
In examples on the web [eg. 1], I have only seen the method of saving each frame as a png and then running mencoder or ffmpeg on these files. In my case, saving each frame is impractical. Is there a way to take a plot generated from matplotlib and pipe it directly to ffmpeg, generating no intermediate files?
Programming with ffmpeg's C-api is too difficult for me [eg. 2]. Also, I need an encoding that has good compression such as x264 as the movie file will otherwise be too large for a subsequent step. So it would be great to stick with mencoder/ffmpeg/x264.
Is there something that can be done with pipes [3]?
[1] http://matplotlib.sourceforge.net/examples/animation/movie_demo.html
-
Adjusting video length to fit audio length in FFmpeg
8 avril 2015, par SpreadysThis has been driving me mad! I have video.avi, a raw uncompressed video with a duration of 6mins I have audio.wav, a raw uncompressed audio with a duration of 9mins
I need to mux these together, but map the timing information from the audio. Using Vsync 2 I would hope that video frames get duplicated in order to do this.
My current (failed) attempt is
ffmpeg -i video.avi -i audio.wav -c:v rawvideo -c:a copy -vsync 2 -map 0:0,1:0 -map 1:0,1:0 newvideo.avi
My understanding is that the -map first designates what file:stream, and this is followed by the file:stream to be used for timing information.
I have attempted all my usual research methods in an attempt to avoid asking but it is still resulting in the avi container holding two streams with the video length unchanged. If anyone can shed some light on my errors, I would be very grateful....or if you need further info - please ask!
Thanks David
Any guidance on what other information may promote some suggestions to where i'm going wrong also appreciated. Thanks
-
How to delete one specific stream out of two audio streams from multiple video files of same properties using python ?
8 avril 2015, par Anvesh KurapatiI have a folder with 200(or more) video files, each approximately 70MB in size(which doesn't matter), and contain one video, one text and two audio streams, and audio streams belong to two different languages. All the files have the same two language audio streams. So how to delete one specific audio stream of the language of user's choice, from each file, and keep everything else intact. For a single file, I could've used mkvcleaver or some other GUI tools. Or even ffmpeg. But as its repetitive, as in Zen of python, I am thinking it could be automated. How do I do it in Python 3.4?
-
ffmpeg and hardcoding subtitles
8 avril 2015, par Adin GillI have a command like so
ffmpeg -i "F:\Filebotted\Rail Wars\Season 1\Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv" -map 0:0 -map 0:1 -b:v 750k -b:a 128k -c:v libx264 -c:a mp3 -ac 2 -filter_complex "subtitles=F:\Filebotted\Rail Wars\Season 1\Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv,scale=-1:360" "C:\Users\Adin\Desktop\Testy mc test\Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv"
Yes it is long but unfortunatly ffmpeg chucks a hissy fit and spits out the following
[subtitles @ 00000000050ce7c0] Unable to parse option value "FilebottedRail Wars Season 1Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv" as image size Last message repeated 1 times [subtitles @ 00000000050ce7c0] Error setting option original_size to value Fileb ottedRail WarsSeason 1Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv. [Parsed_subtitles_0 @ 0000000002c714c0] Error applying options to the filter. [AVFilterGraph @ 0000000002c5c540] Error initializing filter 'subtitles' with ar gs 'F:FilebottedRail WarsSeason 1Rail Wars.S01E07(7).You Look Good in That. 1080 p.mkv' Error configuring filters.
It works just fine when the file is in the same folder as ffmpeg (I found out that it doesn't like ' or - in the filename, but I just spent an hour trying to work out the issue with no avail.
Any help will be appreciated :)