mp4 > flv video errors streaming to my android

Need help? Post your questions here.

Moderator: moderators

mp4 > flv video errors streaming to my android

Postby bdf969 » Thu Jan 27, 2011 8:20 pm

Whenever i try and watch a .mp4 movie on my android phone i get this error:
"video not found or access is denied" javascript:emoticon(':?')

Transcoding from mp4 > flv is turned on and I'm playing the jwplayer.
the transcode instructions i have are as follows:
mp4>flv "ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -"

if I turn off transcoding and just straight stream the movie in its native format it doesn't error but at over 3 mbs the stream won't run anywhere close to smoothly.

all other movie file types/transcodes (avi>flv/mkv>flv) work great.

I'm using the latest versions of subsonic.

can anyone help me with a solution for streaming .mp4 movies to my android phone. I have spent hours looking for the solution.

Thank you!
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby GJ51 » Thu Jan 27, 2011 10:09 pm

ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec copy -

for mp4>flv
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bdf969 » Thu Jan 27, 2011 10:54 pm

GJ51 wrote:ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec copy -

for mp4>flv


thanks for the quick reply Gary. I made the changes to the transcode line and now the video is playing well. the only problem is that there is no audio. any suggestions for this?
thanks again.
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby GJ51 » Thu Jan 27, 2011 11:49 pm

Maybe?

ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -s %wx%h -ar 44100 -ac 2 -

or

ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -ar 44100 -ac 2 -
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bdf969 » Fri Jan 28, 2011 12:45 am

GJ51 wrote:Maybe?

ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -s %wx%h -ar 44100 -ac 2 -

or

ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -ar 44100 -ac 2 -


testing these 2 new options as you posted didn't even show video... adding the "-acodec copy -" after each of them got the video working again but still no sound..

any other ideas?
aspec ration i'm using is 384x240. tried mono and stereo audio but neither worked.

also, I have a pretty decent computer... core i7 920 w/6gb tri-channel ram. most encodings put maybe a 20% tax on one of my processor cores.. the transcode script you gave me almost maxes out the core with an avg 70% usage while decoding the mp4s i'm attempting to get sound on. (just thought that was interesting information.)

thanks again for the help.
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby bdf969 » Fri Jan 28, 2011 12:46 am

could it be a webplayer issue and not a transcoding issue?
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby GJ51 » Fri Jan 28, 2011 12:59 am

Got me baffled. Stozher is the expert. 8)

Do these videos play OK on your desktop?

Would you like me to test on my Android?

Also test your phone on my site.

http://maplegrove.subsonic.org

guest
guest


Open the Videos folder, go to Test videos and try mp4UMPC-Belle_hq and wmv and mp4 Wildlife to see if those play. Best to test over a wifi connection if possible.

Also, what audio codec are you using?
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bdf969 » Fri Jan 28, 2011 3:48 am

GJ51 wrote:Got me baffled. Stozher is the expert. 8)

Do these videos play OK on your desktop?

Would you like me to test on my Android?

Also test your phone on my site.

http://maplegrove.subsonic.org

guest
guest


Open the Videos folder, go to Test videos and try mp4UMPC-Belle_hq and wmv and mp4 Wildlife to see if those play. Best to test over a wifi connection if possible.

Also, what audio codec are you using?


K so I tried those videos of yours and they all worked fine. None of the videos in your test folder are the same as the ones I'm having trouble with. I can play mp4 files fine... but I have a problem with the mp4 files that I convert to flv... and the only reason I need to convert them to flv is so I can reduce the size for streaming purposes. Is there a way to go mp4 to mp4 and reduce the file size?

How do I know which audio code I'm using?

Thanks.
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby bdf969 » Fri Jan 28, 2011 6:02 am

and yes, to answer your question, all the mp4 videos play wonderfully on my computer.... but now that i think about it they play a little bit funny on my WD TV LIVE Media player... some are a bit skippy... but im sure this is not the forum for that.
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby GJ51 » Fri Jan 28, 2011 7:21 am

The audio codec used is determined by the software used to do the conversion from the source material.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby stozher » Fri Jan 28, 2011 11:21 am

MPEG-4 > FLV with AAC Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libfaac -aq 500 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libfaac -ar 44100 -aq 500 -


MPEG-4 > FLV with MP3 Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libmp3lame -aq 0 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libmp3lame -ar 44100 -aq 0 -
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby bdf969 » Fri Jan 28, 2011 5:21 pm

stozher wrote:MPEG-4 > FLV with AAC Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libfaac -aq 500 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libfaac -ar 44100 -aq 500 -


MPEG-4 > FLV with MP3 Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libmp3lame -aq 0 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libmp3lame -ar 44100 -aq 0 -


first off, thanks stozher for joining the conversation! i really appreciate the help. i tried out these new 2-step transocde instructions.. niether of them worked. i looked into my mp4 files with gspot and all the ones i checked use the codec:
" mp4a: MPEG-4 AAC LC"

stozher's code gave me the same error message that i got originally.

any other suggestions?
thank you.
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Postby GJ51 » Fri Jan 28, 2011 5:36 pm

Stozher,

Thanks for the assist. Perhaps a good repost over on the Tutorial section under your post for the audio transcodings?

http://forum.subsonic.org/forum/viewtopic.php?t=5121

stozher wrote:MPEG-4 > FLV with AAC Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libfaac -aq 500 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libfaac -ar 44100 -aq 500 -


MPEG-4 > FLV with MP3 Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libmp3lame -aq 0 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libmp3lame -ar 44100 -aq 0 -
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby GJ51 » Fri Jan 28, 2011 5:42 pm

bdf969 wrote:
stozher wrote:MPEG-4 > FLV with AAC Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libfaac -aq 500 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libfaac -ar 44100 -aq 500 -


MPEG-4 > FLV with MP3 Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libmp3lame -aq 0 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libmp3lame -ar 44100 -aq 0 -


first off, thanks stozher for joining the conversation! i really appreciate the help. i tried out these new 2-step transocde instructions.. niether of them worked. i looked into my mp4 files with gspot and all the ones i checked use the codec:
" mp4a: MPEG-4 AAC LC"

stozher's code gave me the same error message that i got originally.

any other suggestions?
thank you.


" mp4a: MPEG-4 AAC LC"

mp4a :?:

I readily admit that I'm no genius at transcoding, but this is the first time I've seen mp4a mentioned in relation to the current problem. Is it a factor?

It appears you are not the only one to have a problem with this format.

http://www.hardwareforums.com/mpeg-4-aa ... dec-17606/

For those of us that aren't experts with ffmpeg I'd recommend using either Arcsoft's Media Converter 7 or AVS Media Converter to do the conversion of the original video to Mp4. The entire AVS suite is only $59 for a lifetime subscription and includes an incredible array of audio, video, and photo editing tools. All the video that plays on my sites have been converted with oone of these tools. The Arcsoft product is a little pricier, but not much, is only for video conversion, but it si easier to use for someone trying to get into video conversion. It also has the ability to monitor and automatically convert new video placed in a specified folder. Admittedly, I'm nowhere near the expert level on this topic that Stozher is, which is why I always defer to him on these questions, but by using the two products above and listening to what assistance Stozher provides, I've got all the video on my sites running properly. Sometimes, rather than trying to solve a problem that your focused on, it's just easier to find an easier solution to achieve the same result. :wink:
Last edited by GJ51 on Fri Jan 28, 2011 5:58 pm, edited 1 time in total.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby bdf969 » Fri Jan 28, 2011 5:48 pm

GJ51 wrote:
bdf969 wrote:
stozher wrote:MPEG-4 > FLV with AAC Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libfaac -aq 500 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libfaac -ar 44100 -aq 500 -


MPEG-4 > FLV with MP3 Stereo Audio:

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec libmp3lame -aq 0 -ac 2 -
Step 2: ffmpeg -v 0 -f flv -i - -f flv -vcodec copy -acodec libmp3lame -ar 44100 -aq 0 -


first off, thanks stozher for joining the conversation! i really appreciate the help. i tried out these new 2-step transocde instructions.. niether of them worked. i looked into my mp4 files with gspot and all the ones i checked use the codec:
" mp4a: MPEG-4 AAC LC"

stozher's code gave me the same error message that i got originally.

any other suggestions?
thank you.


" mp4a: MPEG-4 AAC LC"

mp4a :?:

I readily admit that I'm no genius at transcoding, but this is the first time I've seen mp4a mentioned in relation to the current problem. Is it a factor?


ya i dont know much either. a quick google has me believing that mp4a is the same as aac... and is handled by the ffmpeg module.

http://superuser.com/questions/118212/w ... v-and-mp4a
bdf969
 
Posts: 12
Joined: Thu Jan 27, 2011 8:00 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests