found problem: video comments and fix, sort of

Using D7B7 ;)

All of my video comments have shown as an error, file not found.  However when looking on the ftp the file is there.  After looking in my email I saw this at the tail end of the cron email and then looked into the database:

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)

Input #0, flv, from '/home/******/public_html/*******/flash/modules/video_comments/files/7.flv':

Duration: 00:00:09.19, start: 0.000000, bitrate: N/A

Stream #0.0: Video: flv, yuv420p, 640x360, 25 tbr, 1k tbn, 1k tbc

Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16

WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s

WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s

[mp4 @ 0xa97e160]track 1: could not find tag, codec not currently supported in container

Output #0, mp4, to '/home/********/public_html/*******/flash/modules/video_comments/files/7.mp4':

Stream #0.0: Video: mpeg4, yuv420p, 176x144, q=2-31, 0 kb/s, 25 tbn, 25 tbc

Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16

Stream mapping:

Stream #0.0 -> #0.0

Stream #0.1 -> #0.1

Could not write header for output file #0 (incorrect codec parameters ?)

Once I looked into the database all the comment videos were tagged in the last field as failed...I manually changed them to approved and voila they worked.

I could not find a ticket for this problem so I thought I would post it.  I do have one other related problem.  When posting a video comment in the articles module I can't even get the post button to light up after a video is recorded...any ideas with that problem?

Found a fix SORT OF....This will approve all video comments no matter what! Even if they should have failed for whatever reason.

Here goes...

Look in flash/modules/video_comments/inc/functions.inc.php around line #181 where it says

getResult("UPDATE `" . $sDBModule . "Files` SET `Status`='" . VC_STATUS_FAILED . "' WHERE `ID`='" . $sId . "'");

and change it to

getResult("UPDATE `" . $sDBModule . "Files` SET `Status`='" . VC_STATUS_APPROVED . "' WHERE `ID`='" . $sId . "'");

That should fix the problem for you :)

Quote · 2 Nov 2009

moved into one post for clarity...

Quote · 2 Nov 2009

There is a MAJOR problem with video comments, even on the demo site, they simply don't work.  I've found that the system is always declaring the comment failed and therefore generates the file not found error (shouldn't it not generate teh comment area if it failed instead of file not found?!?)

 

So if you go into the database and manually select approved for the comment it will play.  Something needs to be fixed about this.

Quote · 2 Nov 2009

Ticket added: http://www.boonex.com/trac/dolphin/ticket/1398

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 2 Nov 2009

Ticket added: http://www.boonex.com/trac/dolphin/ticket/1398

Thanks Michel, I realize my "fix" will only cause the failed video comments to show up as approved but it works for now.  Aslo you might look at the articles module concerning video comments, no matter what the post button won't even light up after recording the video comment.  I found it on my site and the demo site.  Just a heads up...Thanks so much for adding the ticket :)

After taking a look at the ticket, they tagged it "take a look at "files auto approving" in video comments flash admin. I have that checked and it still fails everyone of them. even on the demo site this happens. I know this is a problem for many more people than just me. Same ol' it isn't a problem line from Boonex.  I haven't been around this community long, I can't imagine how frustrated some of you are.

Quote · 4 Nov 2009

Agree that my setups all have auto enabled as well.  Somethign else is going on with the comments.

Quote · 4 Nov 2009

Hi,

ok, videocomments don't work for me because I've an old dated ray...

I need someone to make test to fix this problem.

Someone want to fix this error with me?

Quote · 4 Nov 2009

ok please someone try this:

1)open \flash\modules\video_comments\inc\functions.inc.php

2)locate the text (around the line 91):

function _getConverterTmpl($sInputFile, $sSize, $bSound = true)
{
global $sModule;
global $sFfmpegPath;

$sSound = $bSound ? " -acodec copy " : " -an ";
$sTmpl = $sFfmpegPath . " -y -i " . $sInputFile . " -r " . _getVideoFps() . " -s " . _getVideoSize($sSize) . $sSound;
if(getSettingValue($sModule, "sameQuality") == TRUE_VAL) $sTmpl .= "-sameq ";
return $sTmpl;
}

3)Now change this:

$sSound = $bSound ? " -acodec copy " : " -an ";

with:

$sSound = $bSound ? " -acodec libmp3lame -ar 44100 " : " -an ";

4)Save and upload

5)Try to make a new comment and write here the result of the email and if it work!

Thx

Quote · 4 Nov 2009

luca doing that change does make the video comments play.  However, on the playback the sound itself is not matching up with the video.

Quote · 4 Nov 2009

luca doing that change does make the video comments play.  However, on the playback the sound itself is not matching up with the video.

Ok, it's not good but it's a start....

Can u paste here your cronjob output?

ok

now change

$sSound = $bSound ? " -acodec libmp3lame -ar 44100 " : " -an ";

in

$sSound = $bSound ? " -ab 56 -ar 44100  " : " -an ";

and let me know

Quote · 4 Nov 2009

luca doing that change does make the video comments play.  However, on the playback the sound itself is not matching up with the video.

I don't know if this is the case with your video but I have found when you bring the video quality settings below 100% or fps below 25fps  in flash app settings it will cause that to happen.  Make sure your settings are as stated above and see if after you record a video comment if that doesn't help the syncing of the audio and video.  Luca and I are going to work together and see if we can't get this nailed.

Thanks Luca for the help, I know a lot of people can benefit from this work.

P.S.-I'll let you know what happens after I put in your fix, going to do so now. *Crossing my fingers*

Quote · 5 Nov 2009

luca doing that change does make the video comments play.  However, on the playback the sound itself is not matching up with the video.

the problem is in the source flv file...if you try to open it u can see audio have a delay...

the conversion work good with my fix..

Quote · 5 Nov 2009

ok.... please someone add a ticket for this....below the notes for this ticket:

1st) problem is codec of flv don't fit in mpeg4 (then we can't use -acodec copy)...this is the solution i've tryed:

$sSound = $bSound ? " -acodec libmp3lame -ar 44100 " : " -an ";

in file \flash\modules\video_comments\inc\functions.inc.php, it work but video and audio aren't sync.

2nd) audio and video aren't sync.:

Further investigations reveal that the original flv audio aren't sync..

Please Boonex create a video comment, then open the flv (I think created by rms) file in the folder flash/modules/video_comments/files/ yu'll see it isn't sync.

I think it's an RMS bug, and after fixed functions.inc.php and the sync bug all work good....

Thx

Quote · 5 Nov 2009

Ticket added: http://www.boonex.com/trac/dolphin/ticket/1434

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 5 Nov 2009

Seems the problem is another..i'm doing some tests

Quote · 5 Nov 2009

ok..trying another way...please someone do this open \flash\modules\video_comments\inc\functions.inc.php:

Change this:

$sSound = $bSound ? " -acodec copy " : " -an ";

with:

$sSound = $bSound ? " -acodec libmp3lame " : " -an ";

2) Locate:

$sMobileFile = $sTempFile . VC_MOBILE_EXTENSION;
$sMobileCommand = _getConverterTmpl($sSourceFile, "qcif") . "-b 180 -sameq -ab 64 -acodec libmp3lame -ac 1 " . $sMobileFile;
$bResult = convertFile($sSaveFile, $sSaveCommand) && convertFile($sMobileFile, $sMobileCommand);

Change:

$sMobileCommand = _getConverterTmpl($sSourceFile, "qcif") . "-b 180 -sameq -ab 64 -acodec libmp3lame -ac 1 " . $sMobileFile;

In:

$sMobileCommand = _getConverterTmpl($sSourceFile, "qcif") . "-b 180 -sameq -ab 64 -acodec libmp3lame -ac 1 -ar 22050 " . $sMobileFile;

Post here the result...thank

Quote · 6 Nov 2009

I thibk i'm arrived to' the final solution but i need some tester...Who want to test it?

Quote · 6 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.