I can transcode a mp4 video, but only with cron, and with several errors in the process:
1) No thumbnail images are created for any h264 source (as .mov file), while other formats do create them:
Error generating thumbnail for video source.mov: PHPVideoToolkit error: Execute error. Output for file "~/sites/default/files/private/videos/original/source.mov" was not found. No images were generated..
2) Convert on Save produces "Recoverable fatal error" for mp4 files, which happens for new nodes and for re-transcoding; it does NOT happen for webm or other presets:
Recoverable fatal error: Argument 1 passed to file_delete() must be an instance of stdClass, string given, called in ~/sites/all/modules/video/transcoders/TranscoderAbstractionFactoryFfmpeg.inc on line 290 and defined in file_delete() (line 1236 of ~/includes/file.inc).
3) Failed convert on save nodes never show video with cron without removing and re-uploading source.
4) Transcoder error with ajax link in log gives false report about exceeding file size: "The uploaded file likely exceeded the maximum file size (1.95 GB) that this server supports."
5) Manual conversion on the command line works fine for h264 sources.
# ---------------------------------------------------
# Troubleshooting:
rebuilt FFmpeg and x264, also updated qt-faststart and flvtool2
tried all current versions of 7.x-2.8 for the Video module (git, dev, stable)
tried one- and two-pass transcoding
tried both private and public file system, also video field settings
tried a different preset format (to bypass x264)
tried changing display settings to different resolutions, also in node, so preset overrides all others
tried turning off transliteration
# ---------------------------------------------------
# My settings:
CentOS 6.3
Server can handle very large files:
post_max_size = 2000M
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers (old)
built on Nov 29 2012 00:27:10 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --arch=x86_64 --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-nonfree --disable-mmx --enable-swscale --enable-shared --enable-libx264 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libmp3lame --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-zlib --enable-libschroedinger
ffmpeg version N-48100-g3f72dbe (new)
built on Dec 21 2012 23:21:10 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --arch=x86_64 --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-nonfree --disable-mmx --enable-swscale --enable-shared --enable-libx264 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libmp3lame --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-zlib --enable-libschroedinger
Comments
Comment #1
Jorrit commentedCan you send a link to a small test video that exhibits this problem?
Comment #2
michael.k commentedhttp://video12.mkdev.org/family-videos
When you login with your account, you'll see the error test videos at the top of the page. Both tests were done with the same source video, I just changed the name before uploading it. Source and transcoded clip info is on video-error-test-1.
Also, you can see that there are other Nikon D4 video tests farther down that page. Those were transcoded on a different server and transferred (CentOS 5 > CentOS 6), but they are exactly the same source as the error tests above.
Comment #3
Jorrit commentedI have found and fixed "Recoverable fatal error: Argument 1 passed to file_delete() must be an instance of stdClass". That error only occurred after a transcoding error.
Comment #4
michael.k commentedThanks for looking at this, Jorrit.
I'm still getting the same "Error Generating thumbnail for video" in the logs with no thumbnail output for this filetype, plus now this mixed result on save for the node:
Green checkbox message:
Red x message:
Unfortunately, the file was NOT converted, and there is only a 48 bit file in sites/default/files/private/videos/converted/961, showing this for "ffmpeg -i filename_mp4_1356740701.mp4":
Comment #5
michael.k commentedI'm changing this to a support request because I tested the module on a different server and it worked; it did not have the same problem generating thumbnails.
Jorrit, I'm going to send you a link to an html page with some differences between the servers in case you have any time to notice anything that would cause that.
Thanks
Comment #6
michael.k commentedRebuilding Apache did the trick. I had found an error for xcache.so: "cannot open shared object file" so I added XCache. A lot of other things changed in this build so it's hard to say which resolved it, but perhaps most significant was that PHP went from version 5.3.13 to 5.3.20.