Discussion:
[FFmpeg-user] mp4 seeking in flash
Jose Armando
2013-01-14 10:13:32 UTC
Permalink
Hi,

I  transcode a video transport stream to mp4  and stream it. The transcoding command I use is:
ffmpeg -i video.ts -vcodec libx264  -acodec libfaac video.mp4


everything works fine except when the mp4 file is viewed with a flash player. Unfortunately, to seek into a video I must wait until it downloads everything previous to the point  I want to seek. The behaviour I need, is  to jump right to the point  I want and not wait for the preceding video part to download. I searched and found I need to encode to mp4v2 and not isom that I currently do. Can anyone tell me the correct options to do so or point me to the right direction. Any help is much appreciated.

Jose
Carl Eugen Hoyos
2013-01-14 10:17:50 UTC
Permalink
Post by Jose Armando
I searched and found I need to encode to mp4v2 and
not isom that I currently do.
Where did you find this?
(It does not sound very likely to me.)

Carl Eugen
Jose Armando
2013-01-14 10:33:50 UTC
Permalink
the link I read this is:

http://forums.creativecow.net/thread/291/493


moreover when I encoded in mp4v2 with another program I could seek in the produced video to the point I wanted without waiting for the previous part to download. 


________________________________
From: Carl Eugen Hoyos <***@ag.or.at>
To: ffmpeg-***@ffmpeg.org
Sent: Monday, January 14, 2013 12:17 PM
Subject: Re: [FFmpeg-user] mp4 seeking in flash
Post by Jose Armando
I searched and found I need to encode to mp4v2 and
not isom that I currently do.
Where did you find this?
(It does not sound very likely to me.)

Carl Eugen
John Doe
2013-01-14 10:54:30 UTC
Permalink
Post by Jose Armando
everything works fine except when the mp4 file is viewed with a flash player.
Unfortunately, to seek into a video I must wait until it downloads everything
previous to the point  I want to seek. The behaviour I need, is  to jump right
to the point  I want and not wait for the preceding video part to download. I
searched and found I need to encode to mp4v2 and not isom that I currently do.
Can anyone tell me the correct options to do so or point me to the right
direction. Any help is much appreciated.
Did you use qt-faststart or any other tool (AtomicParsley...) to relocate the meta to the beginning of the file...?

JD
Jose Armando
2013-01-14 11:01:38 UTC
Permalink
Yes, I tried qt-faststart but it didn't help. I don't know AtomicParsley maybe I will give it a try. In your experience the default behaviour for an encoded mp4 file (-vcodec libx264) should allow seeking without downloading everything up to the seeking point?

Jose


________________________________
From: John Doe <***@yahoo.com>
To: FFmpeg user questions <ffmpeg-***@ffmpeg.org>
Sent: Monday, January 14, 2013 12:54 PM
Subject: Re: [FFmpeg-user] mp4 seeking in flash
Post by Jose Armando
everything works fine except when the mp4 file is viewed with a flash player.
Unfortunately, to seek into a video I must wait until it downloads everything
previous to the point  I want to seek. The behaviour I need, is  to jump right
to the point  I want and not wait for the preceding video part to download. I
searched and found I need to encode to mp4v2 and not isom that I currently do.
Can anyone tell me the correct options to do so or point me to the right
direction. Any help is much appreciated.
Did you use qt-faststart or any other tool (AtomicParsley...) to relocate the meta to the beginning of the file...?

JD
Вадим Лазовский
2013-01-14 11:20:44 UTC
Permalink
Hello.

In addition to qt-faststart you are expected to use web-server witch
supports mp4 pseudo streaming.
ex.: nginx (http://nginx.org/en/docs/http/ngx_http_mp4_module.html) or
similar.
Post by Jose Armando
Yes, I tried qt-faststart but it didn't help. I don't know AtomicParsley
maybe I will give it a try. In your experience the default behaviour for an
encoded mp4 file (-vcodec libx264) should allow seeking without downloading
everything up to the seeking point?
Jose
________________________________
Sent: Monday, January 14, 2013 12:54 PM
Subject: Re: [FFmpeg-user] mp4 seeking in flash
Post by Jose Armando
everything works fine except when the mp4 file is viewed with a flash
player.
Post by Jose Armando
Unfortunately, to seek into a video I must wait until it downloads
everything
Post by Jose Armando
previous to the point I want to seek. The behaviour I need, is to jump
right
Post by Jose Armando
to the point I want and not wait for the preceding video part to
download. I
Post by Jose Armando
searched and found I need to encode to mp4v2 and not isom that I
currently do.
Post by Jose Armando
Can anyone tell me the correct options to do so or point me to the right
direction. Any help is much appreciated.
Did you use qt-faststart or any other tool (AtomicParsley...) to relocate
the meta to the beginning of the file...?
JD
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
--
Best Regards,
Vadim Lazovskiy
Jan Ehrhardt
2013-01-14 18:36:06 UTC
Permalink
Jose Armando in gmane.comp.video.ffmpeg.user (Mon, 14 Jan 2013 02:13:32
Post by Jose Armando
ffmpeg -i video.ts -vcodec libx264  -acodec libfaac video.mp4
Try to add -movflags +faststart (with a recent FFMpeg).

Jan

Loading...