ActiveDen

H.264 video format issue

1236 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 200 and 499 users
LGLab says

Hey guys,

I’m making that as3 video player and was testing it with a mp4 video. Now I read a few articles and it appears to be normal that one can not seek a H.264 video if it doesn’t have any seek points in it, is that correct?

From what I have read, there is no extra code to add in AS right?

Now I also have a problem with my volume control, with doesn’t work anymore either with that mp4, is that all normal issues with H.264 encoded video?

The video plays fine though, just no video seek or volume seek.

Thanks, Greg

3 years ago
6471 posts
  • Has been a member for 4-5 years
  • Won a Competition
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Beta Tester
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 10 and 49 users
MSFX says

ive never had any issues with seeking or volume and have tested alot of videos from alot of sources with a current client…

can you link to the video your using…

3 years ago
MSFX is a moderator
1236 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 200 and 499 users
LGLab says

Hey Matt , thanks, not good news then lol. I emailed you a link to the online test for my player as it is not encrypted.

This is strange as it plays fine with FLVs…I wouldn’t be surprised if there was a bug in my code as it is my first AS3 video player, but I can’t see any obvious bugs, and since it works OK with FLVs, it appears to be due to the file type.

3 years ago
3678 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Brazil
  • Referred between 1 and 9 users
tsafi says
Now I read a few articles and it appears to be normal that one can not seek a H.264 video if it doesn’t have any seek points in it, is that correct?

No its not, you shouldn’t have any problem with this unless you are using this with functionality cue points(and I don’t think you use cue points)) just a different approach that`s all .

Check your listener NetStatusEvent.NET_STATUS .

in general I think you add your event listener to the wrong element but i am guessing here with out seeing the code .

3 years ago
1236 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 200 and 499 users
LGLab says
Now I read a few articles and it appears to be normal that one can not seek a H.264 video if it doesn’t have any seek points in it, is that correct?

No its not, you shouldn’t have any problem with this unless you are using this with functionality cue points(and I don’t think you use cue points)) just a different approach that`s all .

Check your listener NetStatusEvent.NET_STATUS .

in general I think you add your event listener to the wrong element but i am guessing here with out seeing the code .

Thanks Tsafi, that gives me something to look into, I’m pretty sure there is something wrong with my code but since it all went well testing with FLVs, I can’t seem to understand what part breaks my file when using a mp4.

I am adding my netStatusEvent listener to my netStream , isn’t that the only way?

3 years ago
3678 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Brazil
  • Referred between 1 and 9 users
tsafi says
Now I read a few articles and it appears to be normal that one can not seek a H.264 video if it doesn’t have any seek points in it, is that correct?

No its not, you shouldn’t have any problem with this unless you are using this with functionality cue points(and I don’t think you use cue points)) just a different approach that`s all .

Check your listener NetStatusEvent.NET_STATUS .

in general I think you add your event listener to the wrong element but i am guessing here with out seeing the code .

Thanks Tsafi, that gives me something to look into, I’m pretty sure there is something wrong with my code but since it all went well testing with FLVs, I can’t seem to understand what part breaks my file when using a mp4.

I am adding my netStatusEvent listener to my netStream , isn’t that the only way?

There are many ways doing it fast sample

var LG_Conn:NetConnection = new NetConnection();. LG_Conn.connect(null);. var LG_stream:NetStream = new NetStream(LG_Conn);. LG_stream.play("http://LG.mp4");. var metaListener:Object = new Object();. metaListener.onMetaData = theMeta;. LG_stream.client = metaListener;. var st:SoundTransform = new SoundTransform();. LG_stream.soundTransform = st;. var LGvideo:Video = new Video();. this.attachNetStream(LG_stream);. this.width = 840;. this.height = 460;. video_mc.addChild(LGvideo);.

From here you can carry on you don’t need to use NetStatusEvent.NET much simple and clean,.

build everything on pure As use enterFrame and build your bytes,,,,, blab la bla

just for sound you need to updateAfterEvent();

3 years ago
6471 posts
  • Has been a member for 4-5 years
  • Won a Competition
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Beta Tester
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 10 and 49 users
MSFX says

yeah i’m not sure why its not working your end but ive just tried several and it works here :)

you’re not on a mac are you :P :D lol

3 years ago
MSFX is a moderator
by
by
by
by
by