Re: [FFmpeg-user] Output to S3

2020-09-08 Thread Moritz Barsnick
Hi Bohdan/Bogdan,

On Tue, Sep 08, 2020 at 09:39:26 +0300, Bohdan Fihar wrote:
> How can I output a video file to AWS S3 either public bucket ot Presigned
> url ?
> I tried
> *ffmpeg -i small.mkv -f matroska -movflags frag_keyframe+empty_moov -method
> PUT https://[my-bucket-name].s3.us-east-2.amazonaws.com/video/output.mkv
> *
>
> bur it won't work, fails with
>
> *av_interleaved_write_frame(): I/O errorError writing trailer of https...*

I have no experience with S3, but this Stackoverflow thread seems to
suggest you need to use the "aws s3 cp" command:

https://stackoverflow.com/questions/54736246/stream-ffmpeg-transcoding-result-to-s3

I *guess* ffmpeg assumes it can seek on HTTP PUT output URLs, which
doesn't work on AWS S3. Instead, when piping with above command, ffmpeg
doesn't use this assumption. But I may be wrong.

Please try this.

Cheers,
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] Output to S3

2020-09-08 Thread Bohdan Fihar
Hi,

How can I output a video file to AWS S3 either public bucket ot Presigned
url ?
I tried
*ffmpeg -i small.mkv -f matroska -movflags frag_keyframe+empty_moov -method
PUT https://[my-bucket-name].s3.us-east-2.amazonaws.com/video/output.mkv
*

bur it won't work, fails with

*av_interleaved_write_frame(): I/O errorError writing trailer of https...*


-- 
All the best,

Bogdan
___
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] ffmpeg http filter?

2020-09-08 Thread Alex
Server just do post processing of raw rgb image/frame and return it as response 
for request.Something like so: POST http://localhost:8080


--- Original message ---
From: "Edward Park" 
Date: 8 September 2020, 02:19:21

Hi,

> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg


I don't think it's possible using filters, or with a single invocation like 
that. (The 'http' filter is hypothetical and just meant for illustration right?)

Depending on how you're connected to the server, I think pipes or sockets would 
be a better place to start. And also separate commands for outputting frames 
for the server to consume, and another that takes the returned images.


Regards,
Ted Park

___
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] Output to S3

2020-09-08 Thread Bohdan Fihar
Hi Moritz. Thanks for the answer.
I can't rely on "aws s3 cp", since it can be not installed on a machine
where I will run ffmpeg.

Do you know what this error means ?
[image: image.png]

On Tue, 8 Sep 2020 at 12:10, Moritz Barsnick  wrote:

> Hi Bohdan/Bogdan,
>
> On Tue, Sep 08, 2020 at 09:39:26 +0300, Bohdan Fihar wrote:
> > How can I output a video file to AWS S3 either public bucket ot Presigned
> > url ?
> > I tried
> > *ffmpeg -i small.mkv -f matroska -movflags frag_keyframe+empty_moov
> -method
> > PUT https://[my-bucket-name].s3.us-east-2.amazonaws.com/video/output.mkv
> > *
> >
> > bur it won't work, fails with
> >
> > *av_interleaved_write_frame(): I/O errorError writing trailer of
> https...*
>
> I have no experience with S3, but this Stackoverflow thread seems to
> suggest you need to use the "aws s3 cp" command:
>
>
> https://stackoverflow.com/questions/54736246/stream-ffmpeg-transcoding-result-to-s3
>
> I *guess* ffmpeg assumes it can seek on HTTP PUT output URLs, which
> doesn't work on AWS S3. Instead, when piping with above command, ffmpeg
> doesn't use this assumption. But I may be wrong.
>
> Please try this.
>
> Cheers,
> 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".



-- 
All the best,

Bohdan
___
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] ffmpeg http filter?

2020-09-08 Thread James Darnley
On 08/09/2020, Alex <3.1...@ukr.net> wrote:
> I need to send raw frame/image to server for post processing and server
> returned new image that I need to complete with ffmpeg. Do any one know how
> to do this?
> Somethink like that:
> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg

If I understand correctly: use two outputs.  One for the rawvideo
which goes over some network protocol to your server and one for that
jpeg output.
___
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] I can't copy or embed a picture to an output audio (A-A conversion)

2020-09-08 Thread Moritz Barsnick
On Mon, Sep 07, 2020 at 05:11:53 +0300, Ilja wrote:
> ffprobe -hide_banner -show_streams /Users/home/Music/iTunes/iTunes\ 
> Media/Music/Black\ Sabbath/Born\ Again/01\ Trashed.aiff — the command

Please don't use "-hide_banner", especially if it's the only console
output you are showing.

>   Duration: 00:04:19.00, start: 0.00, bitrate: 12309 kb/s
> Stream #0:0: Audio: pcm_f32be (fl32 / 0x32336C66), 192000 Hz, 2 channels, 
> flt, 12288 kb/s
> Stream #0:1: Video: png, rgb24(pc), 732x745, 90k tbr, 90k tbn, 90k tbc 
> (attached pic)

Okay, two "streams" there.

> Based on that info I tried execute the following reincarnations of the 
> command to copy what ffprobe  interpreted as a video stream but 
> unsuccessfully:
>
> ffmpeg -y  -i /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ 
> Sabbath/Born\ Again/01\ Trashed.aiff -i /Users/home/Pictures/iTunes\ cover\ 
> art/born-again.png  -map 0:v -c:a pcm_s24be -c:v png _desposition:v 
> attached_pic   /Users/home/Desktop/01\ Trashed.aiff

I would assume "-map 0:v" *only* tries to map image attachment, no
audio. What's the second file good for anyway, if you're taking the
image from the first one?

And "_desposition:v" should throw a warning or an error. It will be
interpreted as an output file, not an option. (Even if you replaced "_"
with "-", the option is still misspelt.

> ffmpeg -y  -i /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ 
> Sabbath/Born\ Again/01\ Trashed.aiff -i /Users/home/Pictures/iTunes\ cover\ 
> art/born-again.png  -map 0:v:1 -c:a pcm_s24be -c:v:1 png _desposition:v:1 
> attached_pic   /Users/home/Desktop/01\ Trashed.aiff

Same here. And your stream indices are incorrect.

> ffmpeg -y  -i /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ 
> Sabbath/Born\ Again/01\ Trashed.aiff -map 0:v -map 0:a -vcodec: copy -c:a 
> pcm_s24be   /Users/home/Desktop/01\ Trashed.aiff
> The commands either fail, show warnings such as “the video stream doesn’t 
> exist” when I’m trying to map it, or transcode only the audio stream when I 
> use -vcodec:copy or -c:v copy. Running ffprobe on newly created file shows 
> the single audio stream as well.

This is not useful. Show us the actual command you tried, and its
complete, uncut console output. Then we can correlate the input and
your options to your error messages, and point out where you are going
wrong.

> A stunning revelation awaited me when I passed the input through
> MediaInfo application. It showed only the audio-stream and no
> metadata reported by ffprobe hence the “no videostream exists”

I would say metadata and video "stream" (attachment) do not relate, but
I may be wrong and Mediainfo may be weak with AIFF files - I don't
know.

> - or smth to the effect of that - message I mentioned above. What’s
> going on and where did ffprobe retrieve the metadata and cover
> information from?

Each and every format has it quirks on where that is stored, and ffmpeg
tries to implement that best it can.

> Is it a way to copy or embed an artwork or/and metadata to a new
> audio?

Generally, there should be. ffmpeg did have some limitations in the
past, and may still have some.

> The same situation with copying metadata under “Metadata” section. It
> returned errors too of which I don’t remember any now.

Well, then we can't interpret the errors. ;-)

> ffmpeg -y m:date m:lyrics-eng m:album m:iTunes_CDDB_TrackNumber m:artist 
> m:track m:genre m:album_artist m:title m:iTunes_CDDB_1 -i 
> /Users/home/Music/iTunes/iTunes\ Media/Music/Black\ Sabbath/Born\ Again/01\ 
> Trashed.aiff -map 0:v -map 0:a -vcodec: copy -c:a pcm_s24be   
> /Users/home/Desktop/01\ Trashed.aiff

What?

Cheers,
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] ffmpeg http filter?

2020-09-08 Thread Alex
Hi! Thank for reply, but no I need next logic:

input.jpg => (ffmpeg decode image/video) => (ffmpeg scale frame to 600x600 pix 
and convert frame format to rgb24) => (ffmpeg send frame to remote address 
localhost:8080 for post processing of image/frame) => (ffmpeg get result image 
from remote server, format + add overlay) => (ffmpeg encode frame/image to 
output format) => out.jpg


--- Original message ---
From: "James Darnley" 
Date: 8 September 2020, 12:44:57

On 08/09/2020, Alex <3.1...@ukr.net> wrote:
> I need to send raw frame/image to server for post processing and server
> returned new image that I need to complete with ffmpeg. Do any one know how
> to do this?
> Somethink like that:
> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg

If I understand correctly: use two outputs.  One for the rawvideo
which goes over some network protocol to your server and one for that
jpeg output.
___
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] Correct conversion of yuvj420p?

2020-09-08 Thread Peter B.

Dear Paul,

On 07.09.20 23:57, Paul B Mahol wrote:

On Mon, Sep 07, 2020 at 11:20:10PM +0200, Peter B. wrote:

[...]
The source video is: yuvj420p(pc, smpte170m/bt709/bt709)
The output video is: yuv420p(pc, smpte170m/bt709/bt709)

What would be the right commandline to losslessly convert this to FFV1?
I've tried, but so far I get differing streamhash MD5s for the video -
regardless if I set the color range :(

ffmpeg -i input_video.mov -vf setrange=limited -c:v ffv1 out.mkv

That command will tell ffmpeg that range is not full but limited
and will not do lossy conversion with swscale at all.


That worked! Thank you!
Streamhash says it's a match :)



You will need to signal that encoded video is still full range somehow in 
container,
otherwise you will get correct hash but output display will think
its really limited while it is actually still full range.


Thanks for pointing that out.
I've done the following:

$FFMPEG -i $VIDEO_IN -an -c:v ffv1 \
 -vf setrange=limited \
 -pix_fmt yuv420p \
 -color_range jpeg \
 -colorspace smpte170m \
 -color_primaries bt709 \
 -color_trc bt709 \
out.mkv

The streamhash matches, and the color interpretation metadata seems to 
be identical to the source:


  * Source video (h.264):
    yuvj420p(pc, smpte170m/bt709/bt709)

  * Target video (ffv1):
    yuv420p(pc, smpte170m/bt709/bt709)



Thanks again Paul!
Peter
___
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] Output to S3

2020-09-08 Thread Carl Zwanzig

On 9/8/2020 6:07 AM, Bohdan Fihar wrote:

I can't rely on "aws s3 cp", since it can be not installed on a machine
where I will run ffmpeg.


A couple of things-
Isn't or can not be?
Please just post the error text, not an image of it (actually, you ought to 
be posting the complete/unedited command and output).


(and do not top-post on this list)

z!
___
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] Problem with time-lapse

2020-09-08 Thread Jippo12
  Hi!

I'm trying to automate time-lapse video from still images. I have all sky
camera that captures around 200 images / night. I've managed to do videos
like this
https://drive.google.com/file/d/1yyihZNypBy0r5y_JJiTHgtvc8N1RAZ3e/view?usp=sharing

However what i'm looking for is for smoother video. Is it possible with
ffmpeg?

I've tried to clone every image 30 times etc but still fail to get good
results. I've tried to search ffmpeg man pages and the web but no success.

I use python script to automate the whole process. so below is some option
ive tried

os.system('ffmpeg -i ' + workdir2 + '%d.jpg  -vf '
'"tblend=average,framestep=1,setpts=0.50*PTS,minterpolate"'  + ' -r 30 -b:v
64K -crf 10 -an ' + destinationdir + videofile)
os.system('ffmpeg -r 30 -i ' + workdir2 + '%d.jpg -vcodec mpeg4 -qscale 1
-y -filter:v '" setpts=2.0*PTS"' ' + destinationdir + videofile)

Regards,
Jippo
___
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] Problem with time-lapse

2020-09-08 Thread Jippo12
Hi!

I'm trying to automate time-lapse video from still images. I have all sky
camera that captures around 200 images / night. I've managed to do videos
like this
https://drive.google.com/file/d/1yyihZNypBy0r5y_JJiTHgtvc8N1RAZ3e/view?usp=sharing

However what i'm looking for is for smoother video. Is it possible with
ffmpeg?

I've tried to clone every image 30 times etc but still fail to get good
results. I've tried to search ffmpeg man pages and the web but no success.

I use python script to automate the whole process. so below is some option
ive tried

os.system('ffmpeg -i ' + workdir2 + '%d.jpg  -vf '
'"tblend=average,framestep=1,setpts=0.50*PTS,minterpolate"'  + ' -r 30 -b:v
64K -crf 10 -an ' + destinationdir + videofile)
os.system('ffmpeg -r 30 -i ' + workdir2 + '%d.jpg -vcodec mpeg4 -qscale 1
-y -filter:v '" setpts=2.0*PTS"' ' + destinationdir + videofile)

Regards,
Jippo
___
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] Output to S3

2020-09-08 Thread Edward Park
Hi,
> I can't rely on "aws s3 cp", since it can be not installed on a machine
> where I will run ffmpeg.
Is setting up a sort of proxy server that will intermediate and upload to s3 an 
option?

> Do you know what this error means ?
> [image: image.png]

That is a very small window of view into the error you got, I'd try using the 
send_expect_100 option and confirming which ssl library is used, no real basis 
but what I might start with when I do the throw all of it on the wall and see 
what sticks routine.

Regards,
Ted Park

___
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] Problem with time-lapse

2020-09-08 Thread Jippo12
Hi!

I'm trying to automate time-lapse video from still images. I have all sky
camera that captures around 200 images / night. I've managed to do videos
like this
https://drive.google.com/file/d/1yyihZNypBy0r5y_JJiTHgtvc8N1RAZ3e/view?usp=sharing

However what i'm looking for is for smoother video. Is it possible with
ffmpeg?

I've tried to clone every image 30 times etc but still fail to get good
results. I've tried to search ffmpeg man pages and the web but no success.

I use python script to automate the whole process. so below is some option
ive tried

os.system('ffmpeg -i ' + workdir2 + '%d.jpg  -vf '
'"tblend=average,framestep=1,setpts=0.50*PTS,minterpolate"'  + ' -r 30 -b:v
64K -crf 10 -an ' + destinationdir + videofile)
os.system('ffmpeg -r 30 -i ' + workdir2 + '%d.jpg -vcodec mpeg4 -qscale 1
-y -filter:v '" setpts=2.0*PTS"' ' + destinationdir + videofile)

Regards,
Jippo
___
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] I can't copy or embed a picture to an output audio (A-A conversion)

2020-09-08 Thread Edward Park
Hi,

> ffprobe -hide_banner -show_streams /Users/home/Music/iTunes/iTunes\ 
> Media/Music/Black\ Sabbath/Born\ Again/01\ Trashed.aiff — the command
> 
> ##Result:
> 
> Input #0, aiff, from '/Users/home/Music/iTunes/iTunes Media/Music/Black 
> Sabbath/Born Again/01 Trashed.aiff':
...
>  Duration: 00:04:19.00, start: 0.00, bitrate: 12309 kb/s
>Stream #0:0: Audio: pcm_f32be (fl32 / 0x32336C66), 192000 Hz, 2 channels, 
> flt, 12288 kb/s
>Stream #0:1: Video: png, rgb24(pc), 732x745, 90k tbr, 90k tbn, 90k tbc 
> (attached pic)
...
> [STREAM]
> index=0
> codec_name=pcm_f32be
> codec_long_name=PCM 32-bit floating point big-endian
> profile=unknown
> codec_type=audio
...
> [/STREAM]
> [STREAM]
> index=1
> codec_name=png
> codec_long_name=PNG (Portable Network Graphics) image
> profile=unknown
> codec_type=video
...
> [/STREAM]
> 
> 
> Based on that info I tried execute the following reincarnations of the 
> command to copy what ffprobe  interpreted as a video stream but 
> unsuccessfully:
...
> The commands either fail, show warnings such as “the video stream doesn’t 
> exist” when I’m trying to map it, or transcode only the audio stream when I 
> use -vcodec:copy or -c:v copy. Running ffprobe on newly created file shows 
> the single audio stream as well.

Yes, it's rather misleading isn't it. Based on what the ff* tools tell you,  
what you tried (or at least one of them) should definitely have worked. The 
problem is that the output from the commands you used to determine your plan is 
not really an accurate description.

> A stunning revelation awaited me when I passed the input through MediaInfo 
> application. It showed only the audio-stream and no metadata reported by 
> ffprobe hence the “no videostream exists” - or smth to the effect of that - 
> message I mentioned above. What’s going on and where did ffprobe retrieve the 
> metadata and cover information from? Is it a way to copy or embed an artwork 
> or/and metadata to a new audio?

The output from mediainfo gives some indication that something is different; 
unusual; the video "stream" reported by ffprobe isn't really another stream. 
And when you think about it, it makes sense. It's an aiff format file, how is 
it going to have a video stream?? I don't even think it can have multiple 
streams of any kind (at least the "simple" kind, not the ones that are saved by 
drum machines and sequencers and whatnot. Think those get a different extension 
anyhow).

The answer is that the metadata and cover image are in an id3 tag. Use 
-write_id3v2 true with the aiff muxer to force it to write one. It's disabled 
by default for good reason though, chances are other applications than iTunes 
(and now its various spawns) won't expect, or look for one.

Regards,
Ted Park

___
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] Unable to play or import video files in an app that uses ffmpeg

2020-09-08 Thread Jim DeLaHunt

On 2020-09-08 14:30, Tim Stiles wrote:


Hi Jim! Hopefully I'm responding correctly, I'm not used to this email way
of posting. Unsure if I'm supposed to add my comments inline.



Ehh, you are doing fine. Start by doing a "reply to all", and your email 
program may indent the message to which you are replying, as mine has 
done. Or set it off with "> " prefixes on each line. Then delete the 
unnecessary part of the message, and interleave your reply.


The point is to make it easier to follow the thread of messages replying 
to messages replying to messages, by reading from top to bottom.




> The first log entry appears to show how the app called FFprobe. You
> could try to run that same command yourself from the Command Prompt…

[Tim] Here is the command line output of both tests one after the other…

C:\Users\Tim Stiles>"C:\PB_short_path_test\PinballBrowser756\ffprobe.exe"
-v error -show_format -show_streams -print_format xml "C:\Users\Tim
Stiles\AppData\Local\Temp\pbi2.mp4"


 
 …snip…
 

 




What this seems to show is that FFprobe is installed, and runs 
correctly, giving reasonable output. That makes it more likely that the 
log entries you posted are noting a successful run of FFprobe, instead 
of a failed run.  I think that puts the ball back in the PinballBrowser 
court. Is it getting the same result when it calls FFprobe?  And that is 
a question for them, not for this list.



___
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] Unable to play or import video files in an app that uses ffmpeg

2020-09-08 Thread Edward Park
Hi,

> Issue: For me specifically on my Windows 10 PC, these video playback and
> import features do not work. When I select a video to play, nothing happens
> (the app is supposed to have an inner window that displays the playback but
> that is non-existent when I hit play). 

Perhaps some differential diagnosis could be helpful. It sounds like the 
program worked, and you used it successfully at some point, what has changed? 
Which operating system did you run before?

Regards,
Ted Park
___
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] Unable to play or import video files in an app that uses ffmpeg

2020-09-08 Thread Tim Stiles
Hi Jim! Hopefully I'm responding correctly, I'm not used to this email way
of posting. Unsure if I'm supposed to add my comments inline.

Tests you asked for:

"The first log entry appears to show how the app called FFprobe. You
could try to run that same command yourself from the Command Prompt:

C:\> "C:\PB_short_path_test\PinballBrowser756\ffprobe.exe" -v error
-show_format -show_streams -print_format xml "C:\Users\My
Name\AppData\Local\Temp\pbi2.mp4"

When you run that, what do you get?

Also, the final quoted entry in that command is the location of the file
being probed. Maybe try this again, but with you filling in the location
of the file you want to use.

Try posting the complete uncut command and output of those two experiments."

[Tim] Here is the command line output of both tests one after the other (I
just left them with my name in the directory paths since I suppose there's
no issue in doing so):

C:\Users\Tim Stiles>"C:\PB_short_path_test\PinballBrowser756\ffprobe.exe"
-v error -show_format -show_streams -print_format xml "C:\Users\Tim
Stiles\AppData\Local\Temp\pbi2.mp4"




















C:\Users\Tim Stiles>"C:\PB_short_path_test\PinballBrowser756\ffprobe.exe"
-v error -show_format -show_streams -print_format xml
"C:\PB_short_path_test\123.mp4"



















On Mon, Sep 7, 2020 at 3:03 PM Jim DeLaHunt 
wrote:

>
> On 2020-09-07 14:32, Tim Stiles wrote:
> > Thanks guys. I totally get your points about […snip…]
> >
> > On Mon, Sep 7, 2020 at 2:05 PM Chris Miceli  wrote:
> >
> >> Hi Tim,
> >>
> >> As Jim was saying it's unfortunately a little difficult from what we can
> >> see if it's ffmpeg causing you this trouble.
>
>
> There are bots which monitor this list and send cryptic messages about
> "learn what top-posting is and stop doing it". You may have just
> triggered them. This
> 
> is a hint about what they mean.
>
>
> On 2020-09-07 14:32, Tim Stiles wrote:
> > …Is it bad that, for ffprobe.exe a ProcessCreate event occurs, then and a
> > ProcessTerminate follows just milliseconds after?…
> >
> > ParentImage C:\PB_short_path_test\PinballBrowser756\ffprobe.exe
> > ParentCommandLine "C:\PB_short_path_test\PinballBrowser756\ffprobe.exe"
> -v
> > error -show_format -show_streams -print_format xml C:\Users\My
> > Name\AppData\Local\Temp\pbi2.mp4
> >
> Maybe, maybe not. The purpose of FFprobe is to examine a media file and
> print out facts about its structure, format, size, etc. Maybe it can do
> that in a few milliseconds. Computers these days are very fast. Or maybe
> it is just failing immediately.
> > …I have reached out to the developer and have done everything he's
> > recommended.…
>
> Good, good. That context matters for this list.
>
>
> > …For some reason he cannot tell me what's going on, he just
> > keeps saying it's probably a problem with ffmpeg on my machine. I will
> push
> > him to look closer at the exceptions that seem to not be ffmpeg related.…
> I can think of something the developer could do. The event log entries
> you included in your message show that FFprobe was called, but they
> don't show the result, or even whether the result indicated success or
> failure.  The developer could ensure that some indication of result made
> it into these logs.
> > … Could you please let me know what
> > command line I could run just to see if ffmpeg.exe or ffprobe.exe are
> > working as expected?…
>
> The first log entry appears to show how the app called FFprobe. You
> could try to run that same command yourself from the Command Prompt:
>
> C:\> "C:\PB_short_path_test\PinballBrowser756\ffprobe.exe" -v error
> -show_format -show_streams -print_format xml "C:\Users\My
> Name\AppData\Local\Temp\pbi2.mp4"
>
> When you run that, what do you get?
>
> Also, the final quoted entry in that command is the location of the file
> being probed. Maybe try this again, but with you filling in the location
> of the file you want to use.
>
> Try posting the complete uncut command and output of those two experiments.
>
> Best regards,
>—Jim DeLaHunt
>
>
> ___
> 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] Output to S3

2020-09-08 Thread Bohdan Fihar
>  Is setting up a sort of proxy server that will intermediate and upload
to s3 an option?
It might be the option, but it will be the last option I'd like to accept.
I'm seeking for more simple solution.
I'm afraid that I'll stuck on sending a video to that server too.

>  That is a very small window of view into the error you got, I'd try
using the send_expect_100 option and confirming which ssl library is used,
no real basis but what I might start with when I do the throw all of it on
the wall and see what sticks routine.
The error says:
Error in the push function.
av_interleaved_write_frame(): I/O error
Error writing trailer of
https://bogdan-public.s3.us-east-2.amazonaws.com/video/output.ts: I/O error
frame=  218 fps=184 q=10.9 Lsize= 404kB time=00:00:07.17 bitrate=
461.4kbits/s speed=6.06x
video:352kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 14.843175%
[tls @ 01b41de52940] The specified session has been invalidated for
some reason.
[tls @ 01b41de52940] Error in the pull function.
[https @ 01b41de52840] URL read error: I/O error
Conversion failed!

I tried several video formats with this command:
ffmpeg -i sample_640x360.ts -method PUT
https://bogdan-public.s3.us-east-2.amazonaws.com/video/output.ts

The bucket (its name is changed here) is public and I was able to send data
to it by Http Put request from the C# code sample.

On Tue, 8 Sep 2020 at 20:07, Edward Park  wrote:

> Hi,
> > I can't rely on "aws s3 cp", since it can be not installed on a machine
> > where I will run ffmpeg.
> Is setting up a sort of proxy server that will intermediate and upload to
> s3 an option?
>
> > Do you know what this error means ?
> > [image: image.png]
>
> That is a very small window of view into the error you got, I'd try using
> the send_expect_100 option and confirming which ssl library is used, no
> real basis but what I might start with when I do the throw all of it on the
> wall and see what sticks routine.
>
> Regards,
> Ted Park
>
> ___
> 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".



-- 
All the best,

Bohdan
___
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] Output to S3

2020-09-08 Thread Bohdan Fihar
Hi Carl,
This is the whole output:

d:\Programs\ffmpeg-20200831-4a11a6f-win64-static\bin>
ffmpeg -i sample_640x360.ts -method PUT
https://bogdan-public.s3.us-east-2.amazonaws.com/video/output.ts
ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 10.2.1 (GCC) 20200805
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
--enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm
--enable-librav1e --enable-libsvtav1 --disable-w32threads --enable-libmfx
--enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va
--enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
--enable-libopenmpt --enable-amf
  libavutil  56. 58.100 / 56. 58.100
  libavcodec 58.101.101 / 58.101.101
  libavformat58. 51.101 / 58. 51.101
  libavdevice58. 11.101 / 58. 11.101
  libavfilter 7. 87.100 /  7. 87.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Input #0, mpegts, from 'sample_640x360.ts':
  Duration: 00:00:13.35, start: 1.433367, bitrate: 387 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, progressive), 640x360 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr,
90k tbn, 59.94 tbc
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 49152 vbv_delay: N/A
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to '
https://bogdan-public.s3.us-east-2.amazonaws.com/video/output.ts':
  Metadata:
encoder : Lavf58.51.101
Stream #0:0: Video: mpeg2video (Main), yuv420p, 640x360 [SAR 1:1 DAR
16:9], q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
Metadata:
  encoder : Lavc58.101.101 mpeg2video
Side data:
  cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: N/A
frame=   17 fps=0.0 q=7.6 size=  93kB time=00:00:00.46
bitrate=1622.7kbits/s speed=0.9frame=  148 fps=147 q=12.7 size= 310kB
time=00:00:04.83 bitrate= 525.4kbits/s speed=4.[tls @ 0279bdb62940] Error
in the push function.
av_interleaved_write_frame(): I/O error
Error writing trailer of
https://bogdan-public.s3.us-east-2.amazonaws.com/video/output.ts: I/O error
frame=  177 fps=156 q=13.1 Lsize= 349kB time=00:00:05.80 bitrate=
491.9kbits/s speed= 5.1x
video:300kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 16.271618%
[tls @ 0279bdb62940] The specified session has been invalidated for
some reason.
[tls @ 0279bdb62940] Error in the pull function.
[https @ 0279bdb62840] URL read error: I/O error
Conversion failed!

I tried several video formats.
The video files I downloaded from https://filesamples.com/.
AWS will not be installed on the machine.

-- 
All the best,

Bohdan
___
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] Problem with time-lapse

2020-09-08 Thread Edward Park
Hi,

> I'm trying to automate time-lapse video from still images. I have all sky
> camera that captures around 200 images / night. I've managed to do videos
> like this
> https://drive.google.com/file/d/1yyihZNypBy0r5y_JJiTHgtvc8N1RAZ3e/view?usp=sharing

Timelapse can be counterintuitive sometimes.

Sometimes you need to slow the framerate down, sometimes you need to raise it. 

Sometimes you need less frequent captures (or a step in the middle where you 
approve/reject the pictures that are going to be your frames), and sometimes, 
you need to capture at a much higher rate. 

> However what i'm looking for is for smoother video. Is it possible with
> ffmpeg?

I think this case it is a matter of not enough captures to make a good 
timelapse video.

> I've tried to clone every image 30 times etc but still fail to get good
> results. I've tried to search ffmpeg man pages and the web but no success.
Also, maybe interpolating/duplicating frames is actually counterproductive by 
giving you a less clean starting point? I think the simplest timelapse render 
looks pretty good, from there maybe you can minterpolate but I'm not sure if 
the filters before minterpolate help.

https://media.kumowoon1025.com/videos/simple-timelapse-example.mov

> I use python script to automate the whole process. so below is some option
> ive tried
> 
> os.system('ffmpeg -i ' + workdir2 + '%d.jpg  -vf '
> '"tblend=average,framestep=1,setpts=0.50*PTS,minterpolate"'  + ' -r 30 -b:v
> 64K -crf 10 -an ' + destinationdir + videofile)
> os.system('ffmpeg -r 30 -i ' + workdir2 + '%d.jpg -vcodec mpeg4 -qscale 1
> -y -filter:v '" setpts=2.0*PTS"' ' + destinationdir + videofile)

This is just a general tip, I can excavate the command from that, but it would 
be immensely helpful if you put it into a line you can feed into a shell and 
also attach the output.


Regards,
Ted Park

___
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".