Re: [FFmpeg-user] Ffmpeg + VAAPI on Polaris GPU not recovering after corrupt video

2022-01-22 Thread Tom W

Hi All,

After receiving confirmation of the same behaviour from 2 people with 
polaris hardware so I have submitted a bug report.


https://trac.ffmpeg.org/ticket/9608


On 02/12/2021 9:12 pm, Tom W wrote:

Hi All,

I have been experiencing heavy artifacting in dvb-t live TV streams 
after corruption in videos with ffmpeg + vaapi + AMD polaris GPU 
(rx560). The video in question is a live TV stream and I am able to 
reproduce the issue when the recording is played from a local 
harddisk. The issue occurs in linux and windows, in kodi, vlc and 
ffplay and the videos recover OK when played on nvidia and intel gpu's 
on both windows and linux. The video plays ok if I disable vaapi (most 
of my testing is done in linux).


I have tried updating mesa to the current release, using a 5.15 kernel 
and tried various operating systems (manjaro, libreelec nighty, ubuntu 
20.04, windows 10).


output of
ffmpeg -hwaccel vaapi -i Downloads/The\ Project.ts -vcodec rawvideo 
-acodec copy -f matroska -sn - | ffplay -report -i -

https://paste.ubuntu.com/p/tP9zrjZ796/

snippets of kodi.log from when the corruption occurs (I can provide 
more logs)
2021-11-30 20:36:36.863 T:333115   DEBUG : 
ffmpeg[0x56321c011040X]: [mpegts] Packet corrupt (stream = 0, dts = 
2007374635).


2021-11-30 20:52:18.128 T:366796   DEBUG : 
ffmpeg[0x56321b9c1730X]: [mpegts] Packet corrupt (stream = 0, dts = 
2209044203).
2021-11-30 20:52:33.301 T:372941   DEBUG : 
ffmpeg[0x7f559c0dec80X]: [image2] Custom AVIOContext makes no sense 
and will be ignored with AVFMT_NOFILE format.


vainfo
http://ix.io/3EE0 

mediainfo of a longer version of the sample video
https://paste.ubuntu.com/p/wthYZhVMMf/ 



video of artefacting
https://youtu.be/EJCfi4RP5Pg 

Sample video (200mb) Corruption occurs at around 4m40s.
https://www.dropbox.com/s/aaiwgvsou10aq2w/corruption-recovery-amd.ts?dl=0

I can provide more info and samples if requested.
Anyone have any thoughts on the issue?
Thanks in advance.

___
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] issue with pcm_mulaw

2022-01-22 Thread Carl Eugen Hoyos
Am So., 16. Jan. 2022 um 12:34 Uhr schrieb manu . :

> I used to transcode my cams Stream RTSP in HLS with ffmpeg on my Raspberry 
> for years
> to play it in all browsers without problem, since i have updated my Raspberry 
> with the
> latest Raspbian Bullseye and ffmpeg, i have no more audio … and i have this 
> warning :
> Stream 1, codec pcm_mulaw, is muxed as a private data stream and may not be 
> recognized upon reading.
>
> My ffmpeg command is :
> ffmpeg -fflags nobuffer -rtsp_transport tcp -i rtsp://user 
> :pass@192.168.0.44/ISAPI/Streaming/channels/1 -err_detect ignore_err -vsync 0 
> -map 0:v -map 0:a:0? -c:a copy -c:v copy -async 1 -f hls -hls_time 2 
> -hls_list_size 10 -hls_allow_cache 1 -hls_delete_threshold 10 -hls_flags 
> delete_segments /var/www/cam/28/live.m3u8
> Can anyone help me pls ?

Complete, uncut console output missing.

Your report indicates that the same command line used to work - please
also provide the console output for a working version.

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] Feeding frames to ffmpeg directly

2022-01-22 Thread Carl Eugen Hoyos
Am So., 16. Jan. 2022 um 22:24 Uhr schrieb Moritz Barsnick :
>
> Hi Violet,
>
> On Sun, Jan 16, 2022 at 15:14:47 -0600, Violet White wrote:
> > Hi, I have a program that generates frames of animation and saves
> > them to individual files on a disk, but what I would like to do is avoid
> > writing the images to disk and simply pipe them in.
> >
> > Can I expect this to just work if I write multiple png files to the same 
> > stream?
> > Or will I need to adjust my program's output format?
>
> This should just work. ffmpeg has an input format called "png_pipe"
> (and similar for other formats.
>
> Assuming all images have the same dimensions and colorspace - though
> I'm not sure that is a must - you can just do:
>
> $ cat *.png | ffmpeg -f png_pipe -i - ...
>
> Of course, you have no files on disk, as in this example. So you would
> just change your program to output the consecutive PNGs to stdout, and
> pipe that to the ffmpeg command.
>
> $ ./your_program | ffmpeg -f png_pipe -i - ...

Nothing wrong but note that png is a format that will not work at
all if auto-detection fails (there are many formats where forcing
the format can be necessary) so in this specific case, the
following will always work if the above works:
$ ./your_program | ffmpeg -i - ...

As an advantage, this may also work if the program sometimes
outputs png, sometimes other formats.

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] How to submit sample media

2022-01-22 Thread Carl Eugen Hoyos
Am Do., 20. Jan. 2022 um 00:04 Uhr schrieb Whatsthis XTnetwork
:
>
> In some recent ffmpeg logs I see messages like:
>
> [h264 @ 0x123456789abc] If you want to help, upload a sample of this file
> to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
> list. (ffmpeg-de...@ffmpeg.org)

Just post a link to your favorite file hoster here or on the bug tracker.

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