Re: [FFmpeg-user] Possible bug in TEE muxer.

2017-07-18 Thread Alex Molon
It wooorkkks :)
Thanks a lot! Really :)

Alex

-Original Message-
From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Moritz 
Barsnick
Sent: 18 July 2017 00:20
To: FFmpeg user discussions
Subject: Re: [FFmpeg-user] Possible bug in TEE muxer.

On Mon, Jul 17, 2017 at 14:57:37 +0100, Alex Molon wrote:

> # ffmpeg -v verbose -i udp://226.45.23.147:2001 -c:v h264_nvenc -c:a 
> aac -strict 2 -f tee -map 0 
> [f=mpegts:hls_segment_filename=sftp://compliance:complitest@localhost/
> home/auser/test/test.ts]sftp://compliance:complitest@localhost/home/au
> ser/test/test.m3u8

> And the result is always the same:
> 
> [tee @ 0x556de1794140] No option found near 
> "//compliance:complitest@localhost/home/auser/test/test.ts]sftp://compliance:complitest@localhost/home/auser/test/test.m3u8;
> [tee @ 0x556de1794140] All tee outputs failed.
> 
> I've tried with single, double and triple escape before the ":" signs 
> (how suggested in https://trac.ffmpeg.org/ticket/5692 regarding 
> something similar) but the result is always the same :(

I tried it like this, and it works:

$ ffmpeg -re -f lavfi -i testsrc2 -c:v libx264 -t 33 -map 0 -f tee 
-use_localtime 1 
"[f=hls:use_localtime=1:hls_segment_filename='sftp\://user\:password@sunshine/home/user/tmp/sftp-%Y-%m-%d-%H-%M-%S']sftp://user:password@sunshine/home/user/tmp/sftp.m3u8;

This also works - this is your approach, but you don't use *any* quotation 
marks. That's something I would avoid, as soon as e.g. square brackets come 
into play. That's probably why you need *even more*
(four) backslashes - for the shell this time.

$ ffmpeg -re -f lavfi -i testsrc2 -c:v libx264 -t 33 -map 0 -f tee 
-use_localtime 1 
[f=hls:use_localtime=1:hls_segment_filename=sftp://user:password@sunshine/home/user/tmp/sftp-%Y-%m-%d-%H-%M-%S]sftp://user:password@sunshine/home/user/tmp/sftp.m3u8

BTW:
- "f=mpegts" is incorrect, as you wanted hls (as in the original, non-tee
  command line).
- "-strict 2" doesn't do anything. The native aac encoder used to
  require "-strict -2", but no longer does. But that was a "minus two".
  ;-)

So proud that I got it to work :-D
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Possible bug in TEE muxer.

2017-07-17 Thread Moritz Barsnick
On Mon, Jul 17, 2017 at 14:57:37 +0100, Alex Molon wrote:

> # ffmpeg -v verbose -i udp://226.45.23.147:2001 -c:v h264_nvenc -c:a aac 
> -strict 2 -f tee -map 0 
> [f=mpegts:hls_segment_filename=sftp://compliance:complitest@localhost/home/auser/test/test.ts]sftp://compliance:complitest@localhost/home/auser/test/test.m3u8

> And the result is always the same:
> 
> [tee @ 0x556de1794140] No option found near 
> "//compliance:complitest@localhost/home/auser/test/test.ts]sftp://compliance:complitest@localhost/home/auser/test/test.m3u8;
> [tee @ 0x556de1794140] All tee outputs failed.
> 
> I've tried with single, double and triple escape before the ":" signs (how 
> suggested in https://trac.ffmpeg.org/ticket/5692 regarding something similar) 
> but the result is always the same :(

I tried it like this, and it works:

$ ffmpeg -re -f lavfi -i testsrc2 -c:v libx264 -t 33 -map 0 -f tee 
-use_localtime 1 
"[f=hls:use_localtime=1:hls_segment_filename='sftp\://user\:password@sunshine/home/user/tmp/sftp-%Y-%m-%d-%H-%M-%S']sftp://user:password@sunshine/home/user/tmp/sftp.m3u8;

This also works - this is your approach, but you don't use *any*
quotation marks. That's something I would avoid, as soon as e.g. square
brackets come into play. That's probably why you need *even more*
(four) backslashes - for the shell this time.

$ ffmpeg -re -f lavfi -i testsrc2 -c:v libx264 -t 33 -map 0 -f tee 
-use_localtime 1 
[f=hls:use_localtime=1:hls_segment_filename=sftp://user:password@sunshine/home/user/tmp/sftp-%Y-%m-%d-%H-%M-%S]sftp://user:password@sunshine/home/user/tmp/sftp.m3u8

BTW:
- "f=mpegts" is incorrect, as you wanted hls (as in the original, non-tee
  command line).
- "-strict 2" doesn't do anything. The native aac encoder used to
  require "-strict -2", but no longer does. But that was a "minus two".
  ;-)

So proud that I got it to work :-D
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Possible bug in TEE muxer.

2017-07-17 Thread Alex Molon
Update.

Well... I'm trying with this command:

# ffmpeg -v verbose -i udp://226.45.23.147:2001 -c:v h264_nvenc -c:a aac 
-strict 2 -f tee -map 0 
[f=mpegts:hls_segment_filename=sftp://compliance:complitest@localhost/home/auser/test/test.ts]sftp://compliance:complitest@localhost/home/auser/test/test.m3u8

And the result is always the same:

[tee @ 0x556de1794140] No option found near 
"//compliance:complitest@localhost/home/auser/test/test.ts]sftp://compliance:complitest@localhost/home/auser/test/test.m3u8;
[tee @ 0x556de1794140] All tee outputs failed.

I've tried with single, double and triple escape before the ":" signs (how 
suggested in https://trac.ffmpeg.org/ticket/5692 regarding something similar) 
but the result is always the same :(

Same happens if I try to use the ftp:// protocol.


-Original Message-
From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Alex 
Molon
Sent: 15 July 2017 14:05
To: FFmpeg user discussions; FFmpeg user questions
Subject: Re: [FFmpeg-user] Possible bug in TEE muxer.

Sorry i wrote ssh:// by mistake actually i'm having the issue with sftp:// 
urls

Get Outlook for Android<https://aka.ms/ghei36>




On Fri, Jul 14, 2017 at 7:03 PM +0100, "Moritz Barsnick" 
<barsn...@gmx.net<mailto:barsn...@gmx.net>> wrote:


On Fri, Jul 14, 2017 at 10:33:08 +0100, Alex Molon wrote:
> Basically, if I launch ffmpeg in this way:
>
> # ffmpeg -i input -f hls -hls_segment_filename 
> ssh://user:password@host/path/filename-%Y-%m-%d-%H-%M-%S 
> ssh://user:password@host/path/filename.m3u8
>
> everything works as expected. Both playlist and chunks are correctly sent to 
> the ssh server and saved regularly.

Could you show us the complete, uncut console output (but blank out the 
passwords, please)?

I can find no indication whatsoever that ffmpeg supports ssh:// URLs.

> If I launch ffmpeg in this way:
>
> # ffmpeg -i input -f tee 
> [f=whatever]|[f=hls:use_localtime=1:hls_segment_filename=ssh\://user\:
> password@host/path/filename-%Y-%m-%d-%H-%M-%S]ssh://user:password@host
> /path/filename.m3u8
>
> the playlist is correctly sent to the SSH server, but the chunks are not 
> saved.

I'll try to reproduce once I understand how to use ssh://. Perhaps if you add 
"-loglevel verbose", ffmpeg might show you how it interprets the options you 
are passing.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

On Fri, Jul 14, 2017 at 10:33:08 +0100, Alex Molon wrote:
> Basically, if I launch ffmpeg in this way:
>
> # ffmpeg -i input -f hls -hls_segment_filename 
> ssh://user:password@host/path/filename-%Y-%m-%d-%H-%M-%S 
> ssh://user:password@host/path/filename.m3u8
>
> everything works as expected. Both playlist and chunks are correctly sent to 
> the ssh server and saved regularly.

Could you show us the complete, uncut console output (but blank out the 
passwords, please)?

I can find no indication whatsoever that ffmpeg supports ssh:// URLs.

> If I launch ffmpeg in this way:
>
> # ffmpeg -i input -f tee 
> [f=whatever]|[f=hls:use_localtime=1:hls_segment_filename=ssh\://user\:
> password@host/path/filename-%Y-%m-%d-%H-%M-%S]ssh://user:password@host
> /path/filename.m3u8
>
> the playlist is correctly sent to the SSH server, but the chunks are not 
> saved.

I'll try to reproduce once I understand how to use ssh://. Perhaps if you add 
"-loglevel verbose", ffmpeg might show you how it interprets the options you 
are passing.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://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
http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Possible bug in TEE muxer.

2017-07-15 Thread Alex Molon
Sorry i wrote ssh:// by mistake actually i'm having the issue with sftp:// 
urls

Get Outlook for Android




On Fri, Jul 14, 2017 at 7:03 PM +0100, "Moritz Barsnick" 
> wrote:


On Fri, Jul 14, 2017 at 10:33:08 +0100, Alex Molon wrote:
> Basically, if I launch ffmpeg in this way:
>
> # ffmpeg -i input -f hls -hls_segment_filename 
> ssh://user:password@host/path/filename-%Y-%m-%d-%H-%M-%S 
> ssh://user:password@host/path/filename.m3u8
>
> everything works as expected. Both playlist and chunks are correctly sent to 
> the ssh server and saved regularly.

Could you show us the complete, uncut console output (but blank out the
passwords, please)?

I can find no indication whatsoever that ffmpeg supports ssh:// URLs.

> If I launch ffmpeg in this way:
>
> # ffmpeg -i input -f tee 
> [f=whatever]|[f=hls:use_localtime=1:hls_segment_filename=ssh\://user\:password@host/path/filename-%Y-%m-%d-%H-%M-%S]ssh://user:password@host/path/filename.m3u8
>
> the playlist is correctly sent to the SSH server, but the chunks are not 
> saved.

I'll try to reproduce once I understand how to use ssh://. Perhaps if
you add "-loglevel verbose", ffmpeg might show you how it interprets
the options you are passing.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

On Fri, Jul 14, 2017 at 10:33:08 +0100, Alex Molon wrote:
> Basically, if I launch ffmpeg in this way:
>
> # ffmpeg -i input -f hls -hls_segment_filename 
> ssh://user:password@host/path/filename-%Y-%m-%d-%H-%M-%S 
> ssh://user:password@host/path/filename.m3u8
>
> everything works as expected. Both playlist and chunks are correctly sent to 
> the ssh server and saved regularly.

Could you show us the complete, uncut console output (but blank out the
passwords, please)?

I can find no indication whatsoever that ffmpeg supports ssh:// URLs.

> If I launch ffmpeg in this way:
>
> # ffmpeg -i input -f tee 
> [f=whatever]|[f=hls:use_localtime=1:hls_segment_filename=ssh\://user\:password@host/path/filename-%Y-%m-%d-%H-%M-%S]ssh://user:password@host/path/filename.m3u8
>
> the playlist is correctly sent to the SSH server, but the chunks are not 
> saved.

I'll try to reproduce once I understand how to use ssh://. Perhaps if
you add "-loglevel verbose", ffmpeg might show you how it interprets
the options you are passing.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://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
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Possible bug in TEE muxer.

2017-07-14 Thread Moritz Barsnick
On Fri, Jul 14, 2017 at 10:33:08 +0100, Alex Molon wrote:
> Basically, if I launch ffmpeg in this way:
> 
> # ffmpeg -i input -f hls -hls_segment_filename 
> ssh://user:password@host/path/filename-%Y-%m-%d-%H-%M-%S 
> ssh://user:password@host/path/filename.m3u8
> 
> everything works as expected. Both playlist and chunks are correctly sent to 
> the ssh server and saved regularly.

Could you show us the complete, uncut console output (but blank out the
passwords, please)?

I can find no indication whatsoever that ffmpeg supports ssh:// URLs.

> If I launch ffmpeg in this way:
> 
> # ffmpeg -i input -f tee 
> [f=whatever]|[f=hls:use_localtime=1:hls_segment_filename=ssh\://user\:password@host/path/filename-%Y-%m-%d-%H-%M-%S]ssh://user:password@host/path/filename.m3u8
> 
> the playlist is correctly sent to the SSH server, but the chunks are not 
> saved.

I'll try to reproduce once I understand how to use ssh://. Perhaps if
you add "-loglevel verbose", ffmpeg might show you how it interprets
the options you are passing.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Possible bug in TEE muxer.

2017-07-14 Thread Alex Molon
Hi All,

I was playing around with the tee muxer and I wasn't able to do something, but 
I actually don't know if it's a bug or I'm doing something wrong.
Apparently the muxer is handling umproperly the " : " character. 

Basically, if I launch ffmpeg in this way:

# ffmpeg -i input -f hls -hls_segment_filename 
ssh://user:password@host/path/filename-%Y-%m-%d-%H-%M-%S 
ssh://user:password@host/path/filename.m3u8

everything works as expected. Both playlist and chunks are correctly sent to 
the ssh server and saved regularly.

If I launch ffmpeg in this way:

# ffmpeg -i input -f tee 
[f=whatever]|[f=hls:use_localtime=1:hls_segment_filename=ssh\://user\:password@host/path/filename-%Y-%m-%d-%H-%M-%S]ssh://user:password@host/path/filename.m3u8

the playlist is correctly sent to the SSH server, but the chunks are not saved.

I also tried to remove the backslashes before the : but nothing happened.

I found the same behaviour in different versions of ffmpeg.

What am I doing wrong?
Thanks in advance.

Cheers
Alex Molon
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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