Re: [FFmpeg-user] RES: RES: HLS - command line hls_segment_size creates problems in segments

2019-04-05 Thread Moritz Barsnick
On Fri, Apr 05, 2019 at 11:36:29 +, Phantom Scripts wrote:
> I'm using this video:
> https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4
[...]
> ffmpeg.exe -i SampleVideo_1280x720_30mb.mp4  -vcodec copy -acodec aac 
> -hls_list_size 0 -hls_segment_size 200 -f hls 
> SampleVideo_1280x720_30mb.m3u8
> - Console output:
> https://pastebin.com/B7tgTGp8

The only interesting bit here: One such message:

> [hls @ 0155b4a9e280] Cannot use rename on non file protocol, this may 
> lead to races and temporary partial files

> this time I used ffplay.exe, and this is the output of the console:
> https://pastebin.com/aSRnuyJF

The interesting bit here: A lot of errors when playing:
> [h264 @ 01a348c3e1c0] error while decoding MB 6 23, bytestream -5
> [h264 @ 01a348c3e1c0] concealing 1803 DC, 1803 AC, 1803 MV errors in P 
> frame
and dozens others.

> sorry if I forgot to send you more details.

Thanks for all the details.

I can reproduce the encoding warning with 4.1, it's gone with relative
recent git master (probably fixed by commit c822d70).

I can reproduce the error log on decoding. So apparently, ffmpeg cannot
decode its own muxing successfully. Or it introduces errors while
muxing. This doesn't happen when muxing to mp4 or mpegts (for some
reason noticably slower than mp4).

We may need to open a bug ticket for this.

Thanks,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Yufei He
On 04/05/2019 10:22 AM, Carl Eugen Hoyos wrote:
> 2019-04-04 20:06 GMT+02:00, Yufei He :
>
>> I'm trying to trancode a 1080i xavc long gop mxf file with
>> my codec, the file's frame rate is 29.97.
>>
>> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
>> is 15000.
>>
>> This is wrong.
> I opened ticket #7829 for the wrong average framerate
> calculation.
>
> If this has any real-world effects, please tell us.
>
> Carl Eugen
Hi Carl

My encoder got the correct framerate.
In my decoder, I use the frame rate to find difference between decoded 
uncompressed frames and input compressed packets which have time stamps.

Regards.

Yufei.
___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Carl Eugen Hoyos
2019-04-04 20:06 GMT+02:00, Yufei He :

> I'm trying to trancode a 1080i xavc long gop mxf file with
> my codec, the file's frame rate is 29.97.
>
> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
> is 15000.
>
> This is wrong.

I opened ticket #7829 for the wrong average framerate
calculation.

If this has any real-world effects, please tell us.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Carl Eugen Hoyos
2019-04-04 20:06 GMT+02:00, Yufei He :
> Hi
>
> I'm trying to trancode a 1080i xavc long gop mxf file with my
> codec, the file's frame rate is 29.97.
>
> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
> is 15000.
>
> This is wrong.

I tested the following:
$ ffmpeg -i m2641080i30m25.xavc.mxf -qscale 2 -vcodec mpeg4 out.mov

The output file plays both audio and video for 3:53 secondes (+/- 0:01).
This seems correct to me, no?

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Yufei He
On 04/05/2019 09:21 AM, Carl Eugen Hoyos wrote:
> 2019-04-05 14:19 GMT+02:00, Yufei He :
>
>> Normally, how does a user send a sample file to
>> ffmpeg-user@ffmpeg.org ?
> Ideally, you use a random file hoster of your choice.
>
> Carl Eugen
https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD

Please try this link.

Yufei.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Carl Eugen Hoyos
2019-04-05 14:19 GMT+02:00, Yufei He :

> Normally, how does a user send a sample file to
> ffmpeg-user@ffmpeg.org ?

Ideally, you use a random file hoster of your choice.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread andrei ka
and why not to put it on google drive :-P

On Fri, Apr 5, 2019 at 2:19 PM Yufei He  wrote:

> On 04/04/2019 02:47 PM, Carl Eugen Hoyos wrote:
> >
> >> Am 04.04.2019 um 20:06 schrieb Yufei He :
> >>
> >> I'm trying to trancode a 1080i xavc long gop mxf file with my codec, the
> >> file's frame rate is 29.97.
> >>
> >> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num is
> 15000.
> >>
> >> This is wrong.
> > Please provide a sample input file.
> >
> > Carl Eugen
> Hi Carl
> I sent a file of 1.3M yesterday, but still waiting for approval of the
> list moderator.
>
> Normally, how does a user send a sample file to ffmpeg-user@ffmpeg.org ?
>
> Regards.
>
> Yufei.
>
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Yufei He
On 04/04/2019 02:47 PM, Carl Eugen Hoyos wrote:
>
>> Am 04.04.2019 um 20:06 schrieb Yufei He :
>>
>> I'm trying to trancode a 1080i xavc long gop mxf file with my codec, the
>> file's frame rate is 29.97.
>>
>> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num is 15000.
>>
>> This is wrong.
> Please provide a sample input file.
>
> Carl Eugen
Hi Carl
I sent a file of 1.3M yesterday, but still waiting for approval of the 
list moderator.

Normally, how does a user send a sample file to ffmpeg-user@ffmpeg.org ?

Regards.

Yufei.

> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] RES: RES: HLS - command line hls_segment_size creates problems in segments

2019-04-05 Thread Phantom Scripts
Thank you for replying again.





I'm using this video:

https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4

mp4 format, size 30MB and resolution 1280x720



- Command Line:

ffmpeg.exe -i SampleVideo_1280x720_30mb.mp4  -vcodec copy -acodec aac 
-hls_list_size 0 -hls_segment_size 200 -f hls SampleVideo_1280x720_30mb.m3u8

- Console output:

https://pastebin.com/B7tgTGp8

- Created files download(m3u8 and TS files):

https://ufile.io/fg8w5 (OR)

https://mega.nz/#!wscHyAxS!pKj4RjVBFCwe3tjbaSoJUly_im72h6ZrIncF4_ex100





this time I used ffplay.exe, and this is the output of the console:

https://pastebin.com/aSRnuyJF





sorry if I forgot to send you more details.

but I hope this is enough.



Thx






De: ffmpeg-user  em nome de Moritz Barsnick 

Enviado: Friday, April 5, 2019 4:36:34 AM
Para: FFmpeg user discussions
Assunto: Re: [FFmpeg-user] RES: HLS - command line hls_segment_size creates 
problems in segments

On Fri, Apr 05, 2019 at 01:28:35 +, Phantom Scripts wrote:
> thanks for answering Carl Eugen, but I think you do not understand.

Still, if you think there's an issue with how ffmpeg is encoding your
video, please provide the actual command line used and the command's
complete, uncut console output.

There may be useful information in there, and it might help us to
reproduce the issue.

Which BugBuckBunny video are you using as input? (In case we want to
reproduce.)

> but there is a problem during the vídeo.
> in this link:
> http://phantsc.rf.gd/AAA/Bbb.html
> contains an hls player, which contains the files I created with the mentioned 
> command,
> touch play in the video and look at the second 7, for some milleseconds the 
> video and audio 'hangs'
> this happens in the whole video, when it is from a segment to a new segment.

Have you tried in a different player? (I understand well that this is
HTML5, so the browser is the player.) I was trying to let ffmpeg play
this stream, and I figured out that the HLS URL seems to be
http://phantsc.rf.gd/AAA/SampleVideo_1280x720_30mb/SampleVideo_1280x720_30mb.m3u8,
but I get a 403 on that link, even if I try with "Referer:" and
"Cookie:" headers. What a convoluted piece of JavasScript obfuscation
"sh*t" (sorry) - this is just to prevent the video to be seen in
anything else but the browser window?

In a Wireshark trace (thank you, obfuscation!), I can see that the m3u8
contains:

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:8.40,
#EXT-X-BYTERANGE:1662108@0
SampleVideo_1280x720_30mb0.ts
#EXTINF:4.56,
#EXT-X-BYTERANGE:383896@0
SampleVideo_1280x720_30mb1.ts

So I assume the issue with the stalling picture occurs in the first
segment named SampleVideo_1280x720_30mb0.ts? Can you just provide a
(downloadable!) link to this segment?



> I need to use '-hls_segment_size' to set a maximum size of segment files
> and use '-hls_time' to set the seconds for byte-ranges in the m3u8 file.

But that's not part of your issue, right? Are you assuming it is? You
provided so much information around this fact that it was hard to
understand your actual issue.

Thanks,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] RES: HLS - command line hls_segment_size creates problems in segments

2019-04-05 Thread Moritz Barsnick
On Fri, Apr 05, 2019 at 01:28:35 +, Phantom Scripts wrote:
> thanks for answering Carl Eugen, but I think you do not understand.

Still, if you think there's an issue with how ffmpeg is encoding your
video, please provide the actual command line used and the command's
complete, uncut console output.

There may be useful information in there, and it might help us to
reproduce the issue.

Which BugBuckBunny video are you using as input? (In case we want to
reproduce.)

> but there is a problem during the vídeo.
> in this link:
> http://phantsc.rf.gd/AAA/Bbb.html
> contains an hls player, which contains the files I created with the mentioned 
> command,
> touch play in the video and look at the second 7, for some milleseconds the 
> video and audio 'hangs'
> this happens in the whole video, when it is from a segment to a new segment.

Have you tried in a different player? (I understand well that this is
HTML5, so the browser is the player.) I was trying to let ffmpeg play
this stream, and I figured out that the HLS URL seems to be
http://phantsc.rf.gd/AAA/SampleVideo_1280x720_30mb/SampleVideo_1280x720_30mb.m3u8,
but I get a 403 on that link, even if I try with "Referer:" and
"Cookie:" headers. What a convoluted piece of JavasScript obfuscation
"sh*t" (sorry) - this is just to prevent the video to be seen in
anything else but the browser window?

In a Wireshark trace (thank you, obfuscation!), I can see that the m3u8
contains:

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:8.40,
#EXT-X-BYTERANGE:1662108@0
SampleVideo_1280x720_30mb0.ts
#EXTINF:4.56,
#EXT-X-BYTERANGE:383896@0
SampleVideo_1280x720_30mb1.ts

So I assume the issue with the stalling picture occurs in the first
segment named SampleVideo_1280x720_30mb0.ts? Can you just provide a
(downloadable!) link to this segment?



> I need to use '-hls_segment_size' to set a maximum size of segment files
> and use '-hls_time' to set the seconds for byte-ranges in the m3u8 file.

But that's not part of your issue, right? Are you assuming it is? You
provided so much information around this fact that it was hard to
understand your actual issue.

Thanks,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".