Where is the log and where are the thumnails?
alippai - August 30, 2007 - 15:12
| Project: | OpenPackage Video |
| Version: | 5.x-2.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
It 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?
#2
There is 2.0 (on page + in DB).
But there are no images in 'transcoded' dir. I can't find it.
#3
{op_videos}.thumb_file_id is set to null and there are only videos in {op_video_files}
#4
{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.
#5
But 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.
#6
can you change every OP_VIDEO_EXEC_MODE_ECHO_AND_STORE to OP_VIDEO_EXEC_MODE_ECHO in ffmpeg.inc and post the results?
#7
time nice -n 19 ffmpeg -y -i './files/videos/original/8pounder.mpg' -b 640k -g 0 -ab 64k -ac 2 -ar 44100 ./files/videos/temp/8.flv -pass 1 -passlogfile ./files/videos/temp/2pass.8.log 2>&1Input #0, mpeg, from './files/videos/original/8pounder.mpg':
Duration: 00:00:07.8, bitrate: 761 kb/s
Stream #0.0: Video: mpeg1video, 160x112, 29.97 fps
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, flv, to './files/videos/temp/8.flv':
Stream #0.0: Video: flv, 160x112, 29.97 fps, q=2-31, 640 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 219 q=5.6 size= 672kB time=7.3 bitrate= 753.2kbits/s
frame= 390 q=8.0 Lsize= 1147kB time=13.0 bitrate= 722.2kbits/s
video:1020kB audio:0kB global headers:0kB muxing overhead 12.525742%
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
built on Jul 25 2007 08:44:48, gcc: 2.95.4 20020320 [FreeBSD]
0.96 real 0.25 user 0.02 sys
time nice -n 19 ffmpeg -y -i './files/videos/original/8pounder.mpg' -b 640k -g 0 -ab 64k -ac 2 -ar 44100 ./files/videos/temp/8.flv -pass 2 -passlogfile ./files/videos/temp/2pass.8.log 2>&1
Input #0, mpeg, from './files/videos/original/8pounder.mpg':
Duration: 00:00:07.8, bitrate: 761 kb/s
Stream #0.0: Video: mpeg1video, 160x112, 29.97 fps
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 192 kb/s
Output #0, flv, to './files/videos/temp/8.flv':
Stream #0.0: Video: flv, 160x112, 29.97 fps, q=2-31, 640 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 390 q=8.0 Lsize= 1147kB time=13.0 bitrate= 722.2kbits/s
video:1020kB audio:0kB global headers:0kB muxing overhead 12.525742%
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
built on Jul 25 2007 08:44:48, gcc: 2.95.4 20020320 [FreeBSD]
0.27 real 0.23 user 0.02 sys
time nice -n 19 ffmpeg -y -i './files/videos/original/8pounder.mpg' -vcodec png -vframes 1 -f rawvideo -an -y ./files/videos/temp/8_raw_image_1.png 2>&1
Input #0, mpeg, from './files/videos/original/8pounder.mpg':
Duration: 00:00:07.8, bitrate: 761 kb/s
Stream #0.0: Video: mpeg1video, 160x112, 29.97 fps
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 192 kb/s
Unknown video codec 'png'
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
built on Jul 25 2007 08:44:48, gcc: 2.95.4 20020320 [FreeBSD]
0.05 real 0.00 user 0.00 sys
time nice -n 19 ffmpeg -y -i './files/videos/original/8pounder.mpg' -ss 2.6 -vcodec png -vframes 1 -f rawvideo -an -y ./files/videos/temp/8_raw_image_2.png 2>&1
Input #0, mpeg, from './files/videos/original/8pounder.mpg':
Duration: 00:00:07.8, bitrate: 761 kb/s
Stream #0.0: Video: mpeg1video, 160x112, 29.97 fps
Stream #0.1: Audio: mp2, 44100 Hz, stereo, 192 kb/s
Unknown video codec 'png'
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
built on Jul 25 2007 08:44:48, gcc: 2.95.4 20020320 [FreeBSD]
0.01 real 0.00 user 0.00 sys
Is there problem with my installation?
It can't convert wmv videos. Is it supported without plug-ins/codecs?
#8
The mpg movie after conversation is 'muted'... There must be some installation problems...
#9
yeah - the problem is that you using a version of ffmpeg from 2004! ;-(
You need to get the latest version: http://openpackage.biz/ffmpeg
#10
Thanks for the quick reply and the solution :)
#11
#12