On running the cron, the log says that it has successfully converted the file but its no where to be found in the directory it specifies...tho it fails to create a thumbnail.
mm_ffmpeg converted this file: files/media_mover/ffmpeg/converted/1/issue3.avi.flv
ffmpeg ran this command:
-i 'files/issue3.avi' -acodec mp3 'files/media_mover/ffmpeg/converted/1/issue3.avi.flv'
Comments
Comment #1
arthurf commentedCan you try selecting the audio codec liblamemp3 ? I think it's not happy about the mp3 codec
Comment #2
jordanmagnuson commentedI'm having this same issue. I set up a configuration to harvest from a local directory, convert the video, and then save to a local directory. When I run the configuration Media Mover tells me:
But I get this warning above from drupal:
The issue seems to be that there is no converted video in files/media_mover/ffmpeg/converted/6/ (indeed the case when I check). I have tried converting from .avi and .wmv, and converting to .flv and .avi, and nothing works. I have also tried storing the converted file as a node, but still no luck. (I also tried using the liblamemp3 codec when converting to .flv as you suggested Arthur).
Here's my log:
Message 1:
Message 2:
Any help would be much appreciated, thanks!
Comment #3
jordanmagnuson commentedThought I should perhaps note my ffmpeg version info as well:
I'm afraid I don't know a whole lot when it comes to ffmpeg... could "c:/msys/local/bin/ffmpeg.exe: missing argument for option '-v' " be the problem? I am running ffmpeg r13118 pre-compiled for win32.
Thanks again,
Jordan
Comment #4
arthurf commentedcan you run
from your drupal root? I'm guessing the audio settings are the problem, but let's see if it can convert
Comment #5
jordanmagnuson commentedThanks for the fast reply Arthur! Okay. I tried converting 2 files from drupal root with the command you gave me, one a small avi without sound, and one a larger wmv with sound. Both files seemed to convert fine, but I did get a couple of warnings. Here's what the command prompt gave me:
And for the second file, wmv with sound:
Comment #6
jordanmagnuson commentedOops -- sorry, I am using Media Mover 5.x-1.0-alpha1, and FFMpeg Wrapper 5.x-1.0-alpha1.
Comment #7
jordanmagnuson commentedAny ideas on a fix Arthur? I am in fairly urgent need of this module, so I really appreciate your help! Thanks again,
Jordan
Comment #8
arthurf commentedAh, it looks to me like -b 50k is the issue. Can you either remove that, or up the value to 500 or so?
Comment #9
jordanmagnuson commentedThanks Arthur! That put me on the right track: it turns out that that problem is the -ab 16, which I take it is the audio bit rate? I changed that to -ab 16k and everything worked without any warnings. I messed around, and discovered that anything from 1k up works without a warning, but anything lower (including -ab 999) produces a warning (it still converts the video okay from the command prompt, but I take it the warning is why media mover is not converting the file?)
The problem is when I select any of the audio bit rates in Media Mover (1k to 256k), when I look at the ffmpeg command in the log files, the 'k' is never there: it's always -ab 16 (for 16k) or -ab 256 (for 256k).
So I thought I could use the custom ffmpeg command box and run:
However, this didn't work either, and when I looked at the log it showed that the ffmpeg command run was:
Which is odd, because normally it shows the command with the actual file paths there, not 'n_file' and 'out_file'. It seems that the %in_file and %out_file tags did not work properly, as it should have said that this command was run:
I hope I've been coherent with all this! Please let me know if you need me to explain anything better. Otherwise, is there any hope to finding a solution here?
Thanks always!
Jordan
Comment #10
arthurf commentedOk, that's interesting. This might be a change in ffmpeg. I'll have to check on my other machine to confirm that. As per the custom command- that was fixed recently, I think it hasn't made it to the forthcoming alpha4 which should be out shortly. I'll take a look at fixing the ffmpeg commands for that release as well.
Comment #11
jordanmagnuson commentedThanks a lot Arthur! Please let me know when an update is ready to try!
Comment #12
jordanmagnuson commentedHi Arthur, just wondering: do you have any rough estimate for when a fix might be available for this issue? I totally understand if you're swamped right now: it's just that I've got a deadline coming up for a big project I'm working on, and need to know whether I'll be able to use this module, or if I need to look for alternatives. That being said, do you know of any alternatives out there? I haven't found any Drupal modules that have anywhere near the same functionality as Media Mover.
If you have a fix for this anywhere close to being done, I would be willing to pay you to work on it. Feel free to email a quote to me at jm.magnuson@gmail.com.
Thanks!
Comment #13
jordanmagnuson commentedGreat news: custom FFMPEG commands are now working--which means that I can get video converted!
Slightly bad news: only custom commands are working. If I don't use a custom command, I still have this problem, and the video fails to convert:
The main issue is resolved though, thanks to the custom commands working -- thanks a lot Arthur!
Comment #14
arthurf commentedOk, I'm going to put the k's into the ffmpeg_wrapper form- will require updating your ffmpeg_wrapper module and the configuration that you're currently using. Hopefully this will nip this issue in the bud!
Comment #15
arthurf commentedSwitched the project to ffmpeg. ks are now in the form, should hopefully solve the issue.