Closed (fixed)
Project:
OpenPackage Video
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2007 at 15:12 UTC
Updated:
17 Sep 2007 at 19:12 UTC
time nice -n 19 ffmpeg -y -i './files/videos/original/Prága 2005 124.mpg' -b 640k -g 0 -an ./files/videos/temp/1.flv -pass 1 -passlogfile ./files/videos/temp/2pass.1.log 2>&1
time nice -n 19 ffmpeg -y -i './files/videos/original/Prága 2005 124.mpg' -b 640k -g 0 -an ./files/videos/temp/1.flv -pass 2 -passlogfile ./files/videos/temp/2pass.1.log 2>&1
time nice -n 19 ffmpeg -y -i './files/videos/original/Prága 2005 124.mpg' -vcodec png -vframes 1 -f rawvideo -an -y ./files/videos/temp/1_raw_image_1.png 2>&1
time nice -n 19 ffmpeg -y -i './files/videos/original/Prága 2005 124.mpg' -ss 3.7 -vcodec png -vframes 1 -f rawvideo -an -y ./files/videos/temp/1_raw_image_2.png 2>&1
&1 - what does this mean?
why it creates image from video 2 times (I see 2 commands)
what does theese commands mean? :)
thanks
Comments
Comment #1
jbrown commentedIt grabs two frames: the first frame and the frame at 1/3 of video duration.
ffmpeg outputs to stderr, but we want to capture it, so we redirect it to stdout with 2>&1 .
Nothing is done with the output at the moment, but we could store it in the db in a later release of the module.
-g should not be 0. What are you setting for Key frame interval?
Comment #2
alippai commentedThere is 2.0 (on page + in DB).
But there are no images in 'transcoded' dir. I can't find it.
Comment #3
alippai commented{op_videos}.thumb_file_id is set to null and there are only videos in {op_video_files}
Comment #4
jbrown commented{op_videos}.thumb_file_id is NULL after transcoding. You need to view the thumbnail at least once for it to be rendered from the raw png.
The splash image sometimes gets rendered in cron by the search module.
Comment #5
alippai commentedBut I can't find raw images(.png) - they are missing from the 'files/videos/transcoded' folder...
There are no error messages in watchdog about it.
Comment #6
jbrown commentedcan you change every OP_VIDEO_EXEC_MODE_ECHO_AND_STORE to OP_VIDEO_EXEC_MODE_ECHO in ffmpeg.inc and post the results?
Comment #7
alippai commentedIs there problem with my installation?
It can't convert wmv videos. Is it supported without plug-ins/codecs?
Comment #8
alippai commentedThe mpg movie after conversation is 'muted'... There must be some installation problems...
Comment #9
jbrown commentedyeah - the problem is that you using a version of ffmpeg from 2004! ;-(
You need to get the latest version: http://openpackage.biz/ffmpeg
Comment #10
alippai commentedThanks for the quick reply and the solution :)
Comment #11
alippai commentedComment #12
(not verified) commented