Michael Rampe
Forum Replies Created
-
[Larry Todd] “included in this program is a video conversion program that uses ffmpeg.”
What is this called? Is it a command line program? Can you post the full output?
Michael
-
Not enough information. Please post full output as well as command lines.
Michael
-
I am not sure why you are getting a 640×480 output at all without using the size flag (-s).
What version are you using? In the newer SVN versions, libavfilter is a better option for cropping and scaling (-vf).
Please post full output and I can work on a string to suit.
Michael
-
Please post the full FFmpeg console output.
For example:FFmpeg version SVN-r23145, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 16 2010 19:15:10 with gcc 4.2.1 (Apple Inc. build 5646) (dot 1)
configuration: –enable-gpl –enable-postproc –enable-swscale –enable-libmp3lame –enable-libx264 –enable-nonfree –enable-shared –arch=x86_64 –enable-avfilter –enable-avfilter-lavf
libavutil 50.15. 2 / 50.15. 2
libavcodec 52.67. 0 / 52.67. 0
libavformat 52.62. 0 / 52.62. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0
…(I am guessing you may be using an outdated version but want to make sure)
[hoa pham] “ffmpeg.exe -i DearJohn.avi -vcodec libx264 -b 950 -f mp4 DearJohn.mp4”
You stated that this works on your system but doesn’t with recent versions. The bitrate is far too low to be able to compress any video and libx264 doesn’t work without a preset or implicit encoding commands. The relevant warnings I get are:
“WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
…
[libx264 @ 0x10100d400]broken ffmpeg default settings detected
[libx264 @ 0x10100d400]use an encoding preset (vpre)”try “-b 950k” and “-vpre normal”
(I think you might have to specify the path to the location of the presets folder/file inside the FFmpeg folder on windows installs, not sure, I use *nix.)With your subtitle insert command:
One problem is your position of -newsubtitle… it belongs after the output.From the FFmpeg documentation:
“The -newvideo, -newaudio and -newsubtitle options have to be specified immediately after the name of the output file to which you want to add them.”I don’t have any subtitle files to replicate this at the moment but you could try:
ffmpeg -i [video_input] -i [subtitle input] [encode_parameters] [output_file] -newsubtitle
or in your case something like:
ffmpeg.exe -i DearJohn.avi -i kid.srt -vcodec copy -acodec copy -scodec copy DearJohn.mp4 -slang vie -newsubtitle
Let me know how you go…
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”
-
use “-vcodec copy” to pass through the video stream unchanged and “-acodec copy” to pass through the audio stream unchanged.
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”
-
Have you tried the subtitle file in the .txt format?
[hoa pham] “But it report at least an output specific”
Please post full output so versions, stream data and full errors can be seen.
[hoa pham] “-vcodec libx264
-b 950”Also post full command line. This is incomplete and will not encode with current versions. For libx264, you either specify all the options or use a preset.
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”
-
It should do. It installs as many dependencies as it can from my experience.
This was written for 0.5.1 so give it a go on 0.6 and let me know.
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”
-
Hi Bob,
A post on this site a few weeks ago contains a new site demonstrating a use of FFmpeg in a web wrapper for a similar purpose to the one you are proposing. Maybe contact them for more info.
https://forums.creativecow.net/readpost/291/139
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”
-
Let me know if it helps.
Just out of interest, why photojpeg and not something more efficient like H.264?
Also, my experience with grading AVCHD footage (which is just another use of H.264) is that it doesn’t hold up very well to anything beyond subtle grading. Noise removal would help if it is just noise but the macroblock artifacts produced by AVCHD can be very difficult to remove (maybe a deblocking filter before the grade).
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”
-
I got exactly the same results when trying to replicate your issue.
Based on the info about only reporting 103 versus 256 colors, my guess is that ImageMagick is using 256 indexed colors whilst FFmpeg is using a fixed 256 level system color palette.
I confirmed this theory in Photoshop. I converting your original jpeg to indexed color in photoshop. (Photoshop: Image/Mode/Indexed color…) By using the local selection, the image is converted like ImageMagick. By using the system or web selection (without diffusion), I get an image like FFmpeg.
Thus, FFmpeg is using a system color palette (or more likely a web palette) in converting GIFs.
Michael
“half-way to world domination A.K.A. the belligerent blue bike shed”