Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-24 Thread Tom Sparks
On 24/12/2020, Carl Eugen Hoyos  wrote:
> Am So., 20. Dez. 2020 um 07:17 Uhr schrieb Tom Sparks
> :
>>
>> On 20/12/2020, vallance via ffmpeg-user  wrote:
>
>> > I'm trying to create a GIF from an image sequence of PNGs with
>> > transparent
>> > pixels, but these transparent pixels convert to black in the resulting
>> > GIF.
>> > I'm using the following command :
>> >
>> > $ ffmpeg -i toile4-4-%d.png -framerate 12 toile4.webm
>> >
>>
>> Imagemagick is more suited to creating animated gifs
>
> I was under the impression that FFmpeg contains particularly useful
> algorithms to produce high-quality animated gifs, is that also true for
> ImageMagick?
>

ImageMagick has some very good Color Quantization and Dithering
methods[1][2] and animation modes[3] that ffmpeg dose not have/support
(as far as I know)

[1]: https://legacy.imagemagick.org/Usage/quantize/
[2]: https://legacy.imagemagick.org/Usage/video/
[3]: https://legacy.imagemagick.org/Usage/anim_opt/

> Merry Christmas, 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".
___
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] PNG images to avi - transparency issue

2020-12-23 Thread Tom Sparks
On 23/12/2020, Gopi Nath  wrote:
> Hello,
>
> i am trying to convert png images to avi which is working fine, but the
> video is not showing the background transparency (png images has)
>
> this is what my statement
> ffmpeg -r 30 -start_number 1 -f image2 -i "imagespath" -y -pix_fmt yuv420p
> -q:v 1 "output.avi"
>
> after reading from forum, i tried adding png codec
> ffmpeg -r 30 -start_number 1 -f image2 -i "imagespath" -vcodec png -y
> -pix_fmt yuv420p -q:v 1 "output.avi"
>
> then it shows the error
> Incompatible pixel format 'yuv420p' for codec 'png', auto-selecting format
> 'rgb24'
>
> so, i removed pix_fmt, then it creates video with transparency, but i am
> able to open this video ONLY in VLC player, not any other players supported
> this codec
> ffmpeg -r 30 -start_number 1 -f image2 -i "imagespath" -vcodec png -y -q:v
> 1 "output.avi"
>
> please suggest me any working method.

first update your version of ffmpeg to latest

PNG image inside avi/mov are not support in all plays, it is commonly
intermediate format

what are trying to do?


>
> Regards,
> Gopi.
> ___
> 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] 4096 x 2048 HEVC conversion

2020-12-21 Thread Tom Sparks
On 22/12/2020, Michael  wrote:
> Just started learning to use ffmpeg.  It's awesome.  Can someone help me
> with the code to convert the following:
>
> ProRes 422HQ 4096x2048 60fps stereo 3D side by side VR files with audio
> --> HEVC same size and frame rate @100Mbps with audio copied.

According to https://trac.ffmpeg.org/wiki/Encode/H.265

ffmeg -i "" -c:v libx265 -crf 17 -b:v 100M -c:a copy
""

that should give you a starting point

>
> Thanks!!!
> ___
> 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] PNGs with transparent pixels to GIF

2020-12-19 Thread Tom Sparks
On 20/12/2020, vallance via ffmpeg-user  wrote:
> Hello,
>
> I'm trying to create a GIF from an image sequence of PNGs with transparent
> pixels, but these transparent pixels convert to black in the resulting GIF.
> I'm using the following command :
>
> $ ffmpeg -i toile4-4-%d.png -framerate 12 toile4.webm
>

Imagemagick is more suited to creating animated gifs

> Thanks
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.
> ___
> 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] Win32 binaries = RIP?

2020-09-30 Thread Tom Sparks
On 30/09/2020, Gilles  wrote:
> Hello,
>
> Do you confirm that ffmpeg is no longer available in Win32?
>
> https://ffmpeg.org/download.html#build-windows →
> https://www.gyan.dev/ffmpeg/builds/
> https://github.com/BtbN/FFmpeg-Builds/releases

my understand is x86-32 cpu are no long being manufactured and
microsoft is phasing out 32bit support

>
> If so, how hard is it to compile, and is there a tutorial?

see https://trac.ffmpeg.org/wiki/CompilationGuide

>
> Thank you.
> ___
> 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] facing max delay reached. Need to consume packets. RTP missed packets

2020-09-28 Thread Tom Sparks
On 28/09/2020, USMAN AAMER  wrote:
> Hi,
> I am streaming videos on LAN using ffmpeg - VP9 encoding and facing the
> issue at client (screenshot is attached): "max delay reached. Need to
> consume packets. RTP missed packets"
> how to resolve this?
> [image: image.png]
>
Can include the command line of ffmpeg
also do not use screenshots, copy and paste the output

tom
___
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] last 2 seconds are cut recording screen - hardware aceleration

2020-06-30 Thread Tom Sparks
On 30/06/2020, Leonardo via ffmpeg-user  wrote:
> Hello,
>
> I'm trying to use ffmpeg to record the computer screen and also audio from
> microfone. Googling I found a lot of "how to". Although I can now record, I
> do have a few questions (3):
>
> 1) Using command
>
> $ ffmpeg -thread_queue_size 512 -f alsa -ac 2 -ar 44100 -i hw:0,0
> -video_size 1024x768 -probesize 10M -framerate 30 -thread_queue_size 512 -f
> x11grab -i :0.0 -c:a aac -c:v libx264 -vf "format=yuv420p" output.mp4



> 3) Are those commands above "correct"? I mean, is there something "wrong" or
> can it be improved to reduce file size, improve video quality or sound
> quality? I know that ffmpeg has tons of options and "improve" is not a clear
> question.

For x264 compressed video use -crf 17see for other options
https://trac.ffmpeg.org/wiki/Encode/H.264

For aac audio compression use -b:a 192k for the bitrate see for other
options https://trac.ffmpeg.org/wiki/Encode/AAC

$ ffmpeg -thread_queue_size 512 -f alsa -ac 2 -ar 44100 -i hw:0,0
-video_size 1024x768 -probesize 10M -framerate 30 -thread_queue_size
512 -f x11grab -i :0.0 -c:a aac -b:a 192k  -c:v libx264  -crf 17  -vf
"format=yuv420p" output.mp4
___
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] 360 degree VR video streaming support in ffmpeg+HLS

2020-06-27 Thread Tom Sparks
On 27/06/2020, Rama Krishna Thelagathoti  wrote:
> I am using VLC.

it looks like no, ffmpeg cant add spatial media metadata

if you were using a web based viewer (krpano/video.js) you would not
need to add the spatial media metadata to the video file.


>
> On Sat, Jun 27, 2020 at 2:47 AM Tom Sparks  wrote:
>
>> what is the viewing software you are using?
>> eg: krpano / video.js
>>
>> On 27/06/2020, Rama Krishna Thelagathoti 
>> wrote:
>> > could someone help me with this?
>> >
>> > On Thu, Jun 25, 2020 at 11:51 PM Rama Krishna Thelagathoti <
>> > mrk.ramakris...@gmail.com> wrote:
>> >
>> >> Hello ffmpeg team
>> >> Does ffmpeg support 360 degree VR video streaming through HLS/DASH?
>> >> I could see its being supported in libx264 under
>> unofficial/experimental ,
>> >> but I do not see this support in HLS.
>> >>
>> >> when transcoding to HLS, looks like ffmpeg drops spatial metadata.
>> please
>> >> confirm.
>> >>
>> >> --
>> >> Best Regards
>> >> *Rama krishna Thelagathoti*
>> >>
>> >
>> >
>> > --
>> > Best Regards
>> > *Rama krishna Thelagathoti*
>> > ___
>> > 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".
>
> --
> Best Regards
> *Rama krishna Thelagathoti*
> ___
> 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] 360 degree VR video streaming support in ffmpeg+HLS

2020-06-27 Thread Tom Sparks
what is the viewing software you are using?
eg: krpano / video.js

On 27/06/2020, Rama Krishna Thelagathoti  wrote:
> could someone help me with this?
>
> On Thu, Jun 25, 2020 at 11:51 PM Rama Krishna Thelagathoti <
> mrk.ramakris...@gmail.com> wrote:
>
>> Hello ffmpeg team
>> Does ffmpeg support 360 degree VR video streaming through HLS/DASH?
>> I could see its being supported in libx264 under unofficial/experimental ,
>> but I do not see this support in HLS.
>>
>> when transcoding to HLS, looks like ffmpeg drops spatial metadata. please
>> confirm.
>>
>> --
>> Best Regards
>> *Rama krishna Thelagathoti*
>>
>
>
> --
> Best Regards
> *Rama krishna Thelagathoti*
> ___
> 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] Capture multiple streams into same container?

2020-06-24 Thread Tom Sparks
On 25/06/2020, Simon Roberts  wrote:
> On Wed, Jun 24, 2020 at 3:41 AM Tom Sparks  wrote:
>
>> mkv is a better output format to use
>>
>
> Thanks for this Tom, can you expand on what the benefits are? I think I
> ended up with mov as it seemed to be the "natural" choice for apple prores
> content, but there was no thought went into it, just "what somebody said" :)
>
mkv support every know format*

the could be a case when you want to store the:
* video in FFV1 (lossless) or AV1 (lossy) or Mjpeg (i-frame)
* audio in opus (lossy) or flac (lossless)

this link talk more about using proress with ffmpeg:
https://trac.ffmpeg.org/wiki/Encode/VFX

you can disregard everything else I said if you want to
>
* except really old formats like realaudio/video
___
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] Capture multiple streams into same container?

2020-06-24 Thread Tom Sparks
mkv is a better output format to use

On 24/06/2020, Simon Roberts  wrote:
> Greetings all, I'm a pretty low-level ffmpeg user, just doing screen
> captures, compressions, and some simple format conversions. I have not made
> much progress understanding more advanced key concepts; I apologize if this
> is a basic question.
>
> I have a four-input video capture card, (Blackmagic DeckLink) and I
> successfully built ffmpeg with support for that. I can capture using the
> card, and I can run two captures concurrently as independent processes
> putting output into two different files. I haven't tried running all four
> at once (though that's my long-term goal, along with another four audio
> channels from a USB capture device).
>
> However, I would like to be able to put the multiple streams into a single
> file. There are a couple of reasons for this, and if my expectations are
> misplaced, now's a great time to tell me. One is that I'd like the
> timecodes to be synchronized, another is that I'd prefer a single command
> to start everything, and end everything, at the same instant. This, I hope
> will reduce the complexity of synchronizing the channels in later editing.
>
> But I have no clue how to start with this. I tried simply adding more input
> channels to my input specifications:
>
> ffmpeg -f decklink -i 'DeckLink Quad HDMI Recorder (1)' -f decklink -i
> 'DeckLink Quad HDMI Recorder (4)'  -c:v copy -c:a copy -metadata
> title=DeckLinkCapture  capture.mov
>
> But all I got was a ton of buffer overruns, and a file that ffprobe said
> only contained one video stream.
>
> I believe that .mov can hold multiple streams, but I have not particular
> reason for using that file format, other than I often use it when I go with
> a prores compression. (I'm hoping that later in this project I might get
> enough CPU power to go that route, and reduce bandwidth and storage
> requirements to less insane levels)
>
> Can someone point me at a template for a command line that might do what I
> need? If the explanation or resources might help me understand the concepts
> better, that would be a bonus (and might result in my becoming a little
> more self-sufficient!)
>
> Cheers,
> Simon
>
>
> --
> Simon Roberts
> (303) 249 3613
> ___
> 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] Add delay to stream on twitch/youtube/restream.io, add chat and alerts

2020-06-15 Thread Tom Sparks
Have you looked at OBS[1]?

[2]: https://obsproject.com/

On 15/06/2020, KoreanFanOfficial  wrote:
> Hello. I want to add delay, chat and alerts to my stream with ffmpeg. How i
> can do it?
> ___
> 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] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-18 Thread Tom Sparks
On 17/05/2020, Ram Shaffir  wrote:
>> You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
>> h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the
>> CPU power and the USB bus cant handle 248.583875 Mbytes/s
>
> Thanks Tom, how did you calculate the 248.583875 Mbytes/s?

Google with the search term 1988671 kbits to Mbytes

> ___
> 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] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread Tom Sparks
On 15/05/2020, Ram Shaffir  wrote:
>> You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
>> h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the CPU
>> power and the USB bus cant
>> handle 248.583875 Mbytes/s
>
> Hmm... any suggestions on how to make it work? A different HW between the
> GoPro and the PI that does most of the encoding? Something like this:
> https://www.epiphan.com/products/avio-hd/  (this solution does not work with
> the PI according to their support), but maybe something else?
>
> I truly need to find a solution to this, and your support is priceless!!

Why do you need to use a Gopro?

When a webcam can do the job?
___
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] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread Tom Sparks
On 14/05/2020, Ram Shaffir  wrote:
> My "success" wasn't as good as I thought when capturing the video feed for
> over 15 seconds or so I get an error and the although the output video size
> keeps on growing there are no new frames only audio:
>
> ffmpeg -y -f alsa -thread_queue_size 15000 -ac 2 -itsoffset -0.5 -i hw:1,0
> -f v4l2 -thread_queue_size 15000 -i /dev/video0 -acodec ac3 -ab 51k -s
> 896x504 -r 30 -vcodec libx264 -b:v 2100K -pix_fmt yuv422p -f mp4
> /usr/ramDisk/libx264.mp4
> Input #1, video4linux2,v4l2, from '/dev/video0':
>   Duration: N/A, start: 53746.367981, bitrate: 1988671 kb/s
> Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080,
> 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc

You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the
CPU power and the USB bus cant handle 248.583875 Mbytes/s
___
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] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-13 Thread Tom Sparks
On 14/05/2020, Ram Shaffir  wrote:
> Hi Carl,
>
> Got some progress ,however, whenever I use the h264_omx I still get
> low-quality video output compared with libx264 (increasing the bitrate
> didn't do too much), my current command is:
>
> ffmpeg -y -f alsa -thread_queue_size 15000 -ac 2 -itsoffset -0.5 -i hw:1,0
> -f v4l2 -thread_queue_size 15000 -i /dev/video0 -acodec ac3 -ab 51k -s
> 896x504 -r 30 -vcodec h264_omx -b:v 1K -pix_fmt yuv420p -f mp4
> /usr/ramDisk/h264_omx.mp4 -loglevel debug 2> /usr/ramDisk/h264_omx.mp4.log
>
your version of FFmpeg is very old


> Opening an input file: hw:1,0.
> [alsa @ 0x748310] All info found
> Guessed Channel Layout for Input Stream #0.0 : stereo
> Input #0, alsa, from 'hw:1,0':
>   Duration: N/A, start: 1589402974.746268, bitrate: 1536 kb/s
> Stream #0:0, 1, 1/100: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536
> kb/s
> Successfully opened the file.
> Parsing a group of options: input url /dev/video0.
> Applying option f (force format) with argument v4l2.
> Applying option thread_queue_size (set the maximum number of queued packets
> from the demuxer) with argument 15000.
> Successfully parsed a group of options.
> Opening an input file: /dev/video0.
> [video4linux2,v4l2 @ 0x75bb30] fd:3 capabilities:84a1
> [video4linux2,v4l2 @ 0x75bb30] Current input_channel: 0, input_name: HDMI,
> input_std: 0
> [video4linux2,v4l2 @ 0x75bb30] Querying the device for the current frame
> size
> [video4linux2,v4l2 @ 0x75bb30] Setting frame size to 1920x1080
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x32315559 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv420p
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x32315559 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv420p
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x32315659 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv422p
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x50323234 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuyv422
> [video4linux2,v4l2 @ 0x75bb30] All info found
> Input #1, video4linux2,v4l2, from '/dev/video0':
>   Duration: N/A, start: 963.335659, bitrate: 1988671 kb/s
> Stream #1:0, 1, 1/100: Video: rawvideo, 1 reference frame (YUY2 /
> 0x32595559), yuyv422, 1920x1080, 0/1, 1988671 kb/s, 59.94 fps, 59.94 tbr,
> 1000k tbn, 1000k tbc
> Successfully opened the file.

you are not setting up the /dev/video0 input correctly see


Let the camera/capture card to the encoding  and save stream with -c:v
copy -c:a copy

> Many thanks again!
> Best,
> RS
___
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 recorded YouTube stream

2020-04-21 Thread Tom Sparks
Are you sure you are using the latest version of youtube-dl from
https://youtube-dl.org/ ?
Are you using the latest version of python?


On 22/04/2020, H  wrote:
> On 04/20/2020 02:58 PM, Carl Zwanzig wrote:
>> On 4/20/2020 11:42 AM, H wrote:
>>> I am running ffmpeg 2.8.15 under CentOS 7, the latest version released
>>> for that operating system.
>>
>> First- that version is positively _ancient_ and not supported at all.
>> Download a current linux build as linked from
>> https://ffmpeg.org/download.html and try that. Or pull the source from git
>> and build your own version.
>>
>> Second- please post the _entire_ command output
>>
>> (third- when replying, do not top-post your message)
>>
>> These are pretty much immutable rules of the list and are discussed in
>> https://ffmpeg.org/mailing-list-faq.html
>>
>>
>> Later,
>>
>> 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".
>
> I downloaded the latest version of ffmpeg for CentOS 7 and tried to view the
> file, the error message is pretty much the same as with the older version of
> ffmpeg, ie:
>
> [hakan@decd379621cd ~]$ ffmpeg -v 9 -loglevel 99 -i *mp4
> ffmpeg version 3.4.7 Copyright (c) 2000-2019 the FFmpeg developers
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
>   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
> --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg
> --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g
> -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
> --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' '
> --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd
> --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa
> --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm
> --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm
> --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl
> --enable-opengl --enable-libopenjpeg --enable-libopus
> --disable-encoder=libopus --enable-libpulse --enable-librsvg
> --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter
> --enable-avresample --enable-postproc --enable-pthreads --disable-static
> --enable-shared --enable-gpl --disable-debug --disable-stripping
> --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
>   libavutil  55. 78.100 / 55. 78.100
>   libavcodec 57.107.100 / 57.107.100
>   libavformat    57. 83.100 / 57. 83.100
>   libavdevice    57. 10.100 / 57. 10.100
>   libavfilter 6.107.100 /  6.107.100
>   libavresample   3.  7.  0 /  3.  7.  0
>   libswscale  4.  8.100 /  4.  8.100
>   libswresample   2.  9.100 /  2.  9.100
>   libpostproc    54.  7.100 / 54.  7.100
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
> argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level) with argument '99'.
> Reading option '-i' ... matched as input url with argument
> 'RRTepdBvUFE.mp4'.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Successfully parsed a group of options.
> Parsing a group of options: input url RRTepdBvUFE.mp4.
> Successfully parsed a group of options.
> Opening an input file: RRTepdBvUFE.mp4.
> [NULL @ 0x248ee00] Opening 'RRTepdBvUFE.mp4' for reading
> [file @ 0x248f620] Setting default whitelist 'file,crypto'
> Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] Format mov,mp4,m4a,3gp,3g2,mj2 probed
> with size=2048 and score=100
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'ftyp' parent:'root' sz: 32 8
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] ISO: File Type Major Brand: isom
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'free' parent:'root' sz: 8 40
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] type:'mdat' parent:'root' sz: 0 48
> 227566402
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x248ee00] moov atom not found
> [AVIOContext @ 0x2497800] Statistics: 65536 bytes read, 3 seeks
> RRTepdBvUFE.mp4: Invalid data found when processing input
>
>
>
> 

Re: [FFmpeg-user] How to compress .MOV file compatible to Canon camera

2020-03-03 Thread Tom Sparks
On 04/03/2020, Ulf Zibis  wrote:
>
> Am 04.03.20 um 00:52 schrieb Carl Eugen Hoyos:
>> Am Mi., 4. März 2020 um 00:50 Uhr schrieb Ulf Zibis :
>>> Am 01.03.20 um 18:13 schrieb Carl Eugen Hoyos:
 Both the level and the profile options are mentioned in the
 documentation.
>>> But not it's possible values :-(
>> As you found out (I didn't know), the ones that are related to
>> FFmpeg are mentioned, the ones that are part of x264 are
>> not mentioned in the FFmpeg documentation.
>
> And where can I find the ones, that are part of x264 ?
>
> Anyway, isn't x264 part of ffmpeg?
>
> To me it looks it is:
> https://www.ffmpeg.org/ffmpeg-codecs.html#libx264_002c-libx264rgb

no, x264 is done by the VLC community see
https://www.videolan.org/developers/x264.html
ffmpeg use x264 as a library

tom
___
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] [VR8K-dataset] help decoding YUV files

2020-02-02 Thread Tom Sparks
On 02/02/2020, Carl Eugen Hoyos  wrote:
>
>
>> Am 02.02.2020 um 11:22 schrieb Tom Sparks :
>>
>> ffmpeg -f rawvideo -s 3840x2160 -r 30 -i
>> "BundNightscape_3840x2160_30fps_bt709_444_videoRange.yuv"
>
> The file name indicates that you need “-pix_fmt yuv444p”

turns out it was a PEBKAC error, I was trying to decode the wrong video file
the link at the bottom of the page point to the wrong directory witch
I was downloading from,
the link underneath the images point to the correct location.

>
> 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".
___
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] [VR8K-dataset] help decoding YUV files

2020-02-02 Thread Tom Sparks
On 02/02/2020, Carl Eugen Hoyos  wrote:
>
>
>> Am 02.02.2020 um 03:19 schrieb Tom Sparks :
>>
>> I am having trouble getting FFmpeg to decode the YUV video files.
>
> Command line and complete, uncut console output missing.
doh sorry

--sniped
tom@ubuntu:~/dataset/videos/360/202.120.39.226/UHD_YUV444_10b_videoRange$
ffmpeg -f rawvideo -s 3840x2160 -r 30 -i
"BundNightscape_3840x2160_30fps_bt709_444_videoRange.yuv" -c:v libx264
-preset ultrafast -qp 0 outputfile.mp4
ffmpeg version N-51185-gfc3760a66d-static
https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg
developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gmp --enable-libgme --enable-gray
--enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf
--enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis
--enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d
--enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil  56. 37.100 / 56. 37.100
  libavcodec 58. 65.100 / 58. 65.100
  libavformat58. 35.101 / 58. 35.101
  libavdevice58.  9.101 / 58.  9.101
  libavfilter 7. 69.101 /  7. 69.101
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc55.  6.100 / 55.  6.100
[rawvideo @ 0x5d00c80] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from
'BundNightscape_3840x2160_30fps_bt709_444_videoRange.yuv':
  Duration: 00:00:01.37, start: 0.00, bitrate: 3001733 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
3840x2160, 2985984 kb/s, 30 tbr, 30 tbn, 30 tbc
File 'outputfile.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x5d0cd40] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX BMI1 SlowPshufb
[libx264 @ 0x5d0cd40] profile High 4:4:4 Predictive, level 5.1, 4:2:0, 8-bit
[libx264 @ 0x5d0cd40] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html -
options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0
deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250
keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, mp4, to 'outputfile.mp4':
  Metadata:
encoder : Lavf58.35.101
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
3840x2160, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
  encoder : Lavc58.65.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Truncating packet of size 12441600 to 3732840e=00:00:01.20
bitrate=3105364.7kbits/s speed=0.0387x
Truncating packet of size 8708760 to 2896
BundNightscape_3840x2160_30fps_bt709_444_videoRange.yuv: corrupt input
packet in stream 0
[rawvideo @ 0x5d0ac00] Invalid buffer size, packet size 3735735 <
expected frame_size 12441600
Error while decoding stream #0:0: Invalid argument
frame=   41 fps=1.1 q=-1.0 Lsize=  504224kB time=00:00:01.33
bitrate=3097801.1kbits/s speed=0.0373x
video:504223kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.000222%
[libx264 @ 0x5d0cd40] frame I:1 Avg QP: 0.00  size:14040759
[libx264 @ 0x5d0cd40] frame P:40Avg QP: 0.00  size:12557070
[libx264 @ 0x5d0cd40] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x5d0cd40] mb P  I16..4: 69.7%  0.0%  0.0%  P16..4: 30.3%
0.0%  0.0%  0.0%  0.0%skip: 0.0%
[libx264 @ 0x5d0cd40] coded y,uvDC,uvAC intra: 100.0% 100.0% 100.0%
inter: 100.0% 100.0% 100.0%
[libx264 @ 0x5d0cd40] i16 v,h,dc,p: 81%  0%  8% 10%
[libx264 @ 0x5d0cd40] i8c dc,h,v,p: 17%  0% 73% 10%
[libx264 @ 0x5d0cd40] kb/s:3022381.50

--snip-
the error near the end is because I am downloading the file
the resulting video looks scrambled


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


[FFmpeg-user] [VR8K-dataset] help decoding YUV files

2020-02-01 Thread Tom Sparks
I've found an 8K VR dataset :)

but I am having trouble getting FFmpeg to decode the YUV video files.
I email the authors but have got no reply.

So I am hoping that the FFmpeg community can help me


http://medialab.sjtu.edu.cn/vr8K/index.html
ftp://202.120.39.226/UHD_YUV444_10b_videoRange/
___
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".