Re: [FFmpeg-user] ffmpeg list FAQ- for those who can't click a link

2023-02-04 Thread Dan Harkless
Holy crap, I haven't seen a flamewar like this on a technical forum 
since Usenet in the '90s.  Really gross, folks.


My humble suggestion would be to put the mailing list rules higher up in 
the FAQ.  I realize it's organized in a logical way, but if first-time 
posters are constantly posting without following them, resulting in 
annoyance and discord, they should probably be more prominent.


Perhaps even as the very first section, with a "DO NOT SUBSCRIBE BEFORE 
READING THESE RULES"-type warning.  And then perhaps at the end of the 
subscription instructions, a reminder of that with a link back up to them.


--
Dan Harkless
http://harkless.org/dan/

___
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] Does "cat" degrade video quality?

2023-01-01 Thread Dan Harkless

On 1/1/2023 10:16 AM, pehache wrote:

Le 03/12/2022 à 15:42, David Niklas a écrit :
> On Fri, 2 Dec 2022 11:49:04 -0800
> Dan Harkless  wrote:
>> MakeMKV is in a semi-permanent Beta state, so you need to periodically
>> download new license keys from:
>>
>>       https://forum.makemkv.com/forum/viewtopic.php?t=1053
>>
>> but aside from that, it's easy to use, and is free and open-source.
>> Good luck with your family video preservation, and cheers.
> 
> How can it be open-source but also require a license key?


Free software is not necessarily free. Even when the sources are
released under a free software license (such as GPL), the compiled
versions can be charged. But anyone is free to get the sources and
compile them.

That said, MakeMKV is not a free software, and it is only partly
open-source. It's a freeware (for the DVD rip/decrypt part) and a
shareware (for the bluray rip/decrypt part).


Thanks for correcting me on MakeMKV being only partially open-source, 
pehache.  And sorry, David, for not responding to your query — the list 
server didn't send me that email, for some reason.


--
Dan Harkless
http://harkless.org/dan/

___
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] Extract chapter names to a text file?

2022-12-05 Thread Dan Harkless

On 12/5/2022 4:30 PM, Carl Zwanzig wrote:

On 12/5/2022 4:20 PM, Laine wrote:
>   
> And the following appears to remove “title=“ from lines generated by "grep '^title=‘ chapters.txt” alone.
> 
> grep '^title=' chapters.txt | perl -pe 's/title=//s’


I'm not clear you you'd use perl at all when sed is more common for this
sort of thing (sed 's/title=//’), but whatever works for you.


If it were me, I'd also add a '^' to anchor the regular expression 
(regexp) to the beginning of the line, as in 's/^title=//', just on the 
off chance the string "title=" appears in a chapter name. That'll work 
in sed or perl.


And in the perl regexp, the 's' at the end isn't needed there (only 
changes how the '.' character is processed).  And if you copy and paste 
from the above, note that those curly quotes should be straight quotes.  
Putting that all together:


    grep '^title=' chapters.txt | perl -pe 's/^title=//'

or:

    grep '^title=' chapters.txt | sed 's/^title=//'

--
Dan Harkless
http://harkless.org/dan/

___
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] Does "cat" degrade video quality?

2022-12-03 Thread Dan Harkless

On 12/3/2022 6:03 AM, MyCraigs List via ffmpeg-user wrote:

  makeMkV is working pretty well.  It certainly is going to save a lot of time 
in taking the old DVDs and separating them into titles.
I've been suspicious of the name Matroska as I thought it was a format not 
worth considering.


Because it's a Russian name, and you were thus worried about possible 
connections to the Russian government?  No, it's an open format, meaning 
"(nested) Russian doll", alluding to its flexibility as a container 
format, and it's supported by a non-profit organization in France.  It's 
gradually overtaking .mp4 for storing AVC and HEVC videos, due to this 
flexibility, and because it's not patent-encumbered like .mp4.


If it bothered you, you could always use ffmpeg after MakeMKV to 
repackage your MPEG-2 MKVs into .mpg files without quality loss, since 
your DVD home videos presumably don't need to take advantage of the more 
flexible container.


--
Dan Harkless
http://harkless.org/dan/

___
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] Does "cat" degrade video quality?

2022-12-02 Thread Dan Harkless

On 12/2/2022 11:17 AM, MyCraigs List via ffmpeg-user wrote:

  Dan,
Thanks for the reply.  They are family videos some of which were made with a (I think) 
"tape eating" Panasonic and then later a Sony mini-DV tape video camera(s).  
Now I use a Sony video camera that records in MTS to an sd chip.  I think the tape 
cameras produced AVI files (I think...but am not sure).  I still have the tapes but 
can't/won't transfer them from the camera for fear of destroying them (tape eater 
cameraboth).


Understood.  I had a Sony MiniDV camera that started getting bad audio 
dropouts.  At the Sony service center (back in the good old days when 
there was a local one), I learned that the cause was my mixing different 
brands of MiniDV tapes.  Apparently the different lubricants the 
different brands use react together to produce a sticky residue.  It was 
reportedly OK to use, say, Panasonic tapes with a Sony cam, but only if 
you *always* used Panasonic tapes. After I got my camera back from the 
service center, I only used Sony tapes from then on.  Not that that 
necessarily has anything to do with your tape-eating problem, which is 
probably issues with the transport mechanism, but I thought I'd mention 
it since you said you had Sony and Panasonic cameras.


And yeah, the Sony capture application produced AVI files with DV contents.


The VOB files are from DVD's I made from the tape cameras.  It's the best I've 
got without the aforementioned problems.  I don't expect much super quality out 
of them but they're good enough.  Would it be smart of convert them to a format 
such at mp4 and H.264for preservation of a common standard?
As to the MTS files- the quality is excellent.  Cat does a great job and I'm 
amazed how a clod such as myself got perfect results.  Butbutperhaps it 
also would be smart to convert them to mp4 H.264?


I don't think MPEG-2 compatibility will be going away any time in the 
forseeable future, especially since the later formats like H.264/AVC and 
H.265/HEVC are also MPEG standards.  MPEG-2 videos have slightly better 
picture quality than they do after transcoding to AVC or HEVC, so the 
only reason to convert to one of those formats would be to save disk 
space.  If you have enough space to keep them in MPEG-2 format, I would 
do that.  MPEG-2 is also easier for video editing programs to deal with 
than the later, more highly compressed standards (especially if you want 
to make frame-accurate edits), though not as easy as DV format (the one 
used on the MiniDV tapes themselves), since *it* only uses intraframe 
compression, not interframe compression.



I'm pretty old and want our kids to be able to watch these videos in the future 
when I probably will have broken the social security system.
Thankswill look link below.
Thank you, again...
Craig


I don't have a suggestion for the MTS files (beyond using ffmpeg to 
concatenate, if cat results in problems at the concatenation points), as 
my cameras don't produce that format, but if I were you, I would 
download MakeMKV:


    https://www.makemkv.com/

which is available for Windows, Mac, and Linux.  Rather than trying to 
mess with VOB files directly, you can use that application to convert 
each DVD to a series of .MKV files (one per "title" on the DVD; you may 
or may not have more than one, depending on how you authored them), with 
MPEG-2 contents.  The nice thing about doing it this way is that there 
is zero loss of quality, unlike with apps that go directly to AVC or 
HEVC.  Also, you don't have to make the decision of whether to 
deinterlace to ~30 frames per second or line-double the fields to ~60 
frames per second (assuming you're in NTSC land) — you can leave the 
MPEG-2 interlaced, and let the player deal with it (not a problem for 
modern programs like VLC).


MakeMKV is in a semi-permanent Beta state, so you need to periodically 
download new license keys from:


    https://forum.makemkv.com/forum/viewtopic.php?t=1053

but aside from that, it's easy to use, and is free and open-source. Good 
luck with your family video preservation, and cheers.


--
Dan Harkless
http://harkless.org/dan/

___
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] Does "cat" degrade video quality?

2022-12-02 Thread Dan Harkless

On 12/2/2022 4:36 AM, MyCraigs List via ffmpeg-user wrote:

I'm running Debian 11.
I use the command line "cat" to concatenate videos of all the same quality together.  All 
VOB files are cat'd together and none others.  The second bunch of videos I cat together are from a 
Sony video camera and are "MTS" files.  That's to say I do not cat VOB and MTS files 
together.
The command I use for VOB is (at command line) $ cat File_1.VOB  File_2.VOB> 
New_File_1.VOBThe command I use for MTS is (at command line) $ cat File_1.MTS 
File_2.MTS> New_File_2.MTS

Not wanting to lose any video or audio quality, does "cat" files degrade their 
quality?  If it does can you recommend a code line that'll preserve the quality?

VOB file example;
Input #0, mpeg, from 'VTS_06_1.VOB':
   Duration: 00:00:32.53, start: 0.213367, bitrate: 6688 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bottom first), 
720x480 [SAR 8:9 DAR 4:3], 5000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Side data:
   cpb: bitrate max/min/avg: 500/0/0 buffer size: 1835008 vbv_delay: N/A
     Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s


MTS file example;
Input #0, mpegts, from '00105.MTS':
   Duration: 00:00:49.06, start: 1.033367, bitrate: 22411 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top 
first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 
fltp, 256 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 
0x0090), 1920x1080
I've never dug into the technicalities of VOB files (nor MTS).  The most 
I've done with them aside from extracting them into more conventional 
video containers with DVD-ripping software such as MakeMKV is to play 
them with VLC Media Player.


'cat' just does a straight binary concatenation of files, without 
touching their contents (assuming you don't give it any commandline 
options), so no, there's no quality degradation. However, I'm unaware if 
VOB or MTS files have headers that need to be preserved and that need to 
match things like the time duration of the file.


Have you tried watching / listening to the concatenated files with a 
player (e.g. VLC)?  Do they look and sound OK when you cross the time 
index of the concatenation point?  If so, I think you're probably fine 
(though depending on what your intended use is, you might run into 
trouble in the future due to

the files not being standards-compliant thanks to header issues).

If you have problems, you could try concatenating them with ffmpeg 
instead, à la the examples here:


https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg

--
Dan Harkless
http://harkless.org/dan/

___
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] Ubuntu 22.04 audio capture issue

2022-11-30 Thread Dan Harkless

On 11/29/2022 7:56 PM, Dave Blanchard wrote:


> To understand the times we are living in better, consult 1984, Brave New 
World, Animal Farm, Atlas Shrugged, etc. And then the Bible. And then pray.


I'm well-versed in "1984" and "Brave New World".  "Animal Farm" is still
on my to-watch and to-read lists.  I'm also well versed in the fiction
that is the Bible.  I recommend people read through the website
nobeliefs.com, which is unfortunately no longer online, but is still
available at the Internet Archive at
<https://web.archive.org/web/20200516093025/http://www.nobeliefs.com/>.


> And stop watching TV, or believing anything you read anywhere, especially on 
the internet.


Well, I gotta say that that definitely applies to your assertions,
except for a few grains of truth regarding warrantless surveillance by
governments.

Anyway, to echo Carl Zwanzig's response, you are veering way, way off
topic for the ffmpeg list.

--
Dan Harkless
http://harkless.org/dan/


___
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] Prevent ffmpeg from completely skipping corrupt frames when transcoding MPEG-2 TS?

2022-11-29 Thread Dan Harkless

On 11/23/2022 4:23 AM, Dan Harkless wrote:

Hi.  I have some old SD & HD recordings in MPEG-2 Transport Stream
format, mostly recorded off my U.S. cable-box 1394 port with CapDVHS.
My end-goal is to transcode these to interlaced AVC, while preserving
the optional embedded Closed Captions.  Per MediaInfo, the CCs are in
EIA-608 and EIA-708 format, (DTVCC Transport) muxed into the main video
stream.

I've tried various software to do the transcoding, but the only one that
preserves the CCs is ffmpeg.  It even lets me use the MP4 container
format (which my old versions of Sony Vegas read, unlike MKV), thanks to
the single muxed video stream.  A command like this (using a recent
gyan.dev Windows build, run from Cygwin bash) works almost perfectly:

% ffmpeg -y -i tvshow.ts -map 0 -c:v libx264 -b:v 5500k -flags
+ildct+ilme -threads 0 -pass 1 -fps_mode cfr -f null /dev/null && ffmpeg
-i tvshow.ts -map 0 -c:v libx264 -b:v 5500k -flags +ildct+ilme -threads
0 -pass 2 -fps_mode cfr -c:a copy -c:s copy tvshow.mp4

(Not 100% sure the -c:s copy is necessary.  Also, I had to avoid using
slow presets, as they cause originally good frames after dropouts to
contain new corruption artifacts, presumably due to more aggressive
reference framing into the corrupt areas.)

The one glaring problem is that the .MP4 is over 30 seconds shorter than
the .TS.  The reason for this is occasional corrupt frame-sequences.
When watching the original TS with VLC, at these points, the video
freezes and the audio goes silent for the expected duration, then
resumes, which I want.

In the transcoded MP4, the munged parts are just skipped over, so
someone will be cut off mid-word, and then the next frame, it
immediately jumps to where the signal came back, continuing
mid-someone-else's-word.  Very jarring, and hides how much time is
missing in each dropout.

The docs say that when using -vsync/-fps_mode cfr, "Frames will be
duplicated and dropped to achieve exactly the requested constant frame
rate."  Does this only apply to VFR->CFR conversion, not to handling of
corrupt frames?  Is there any way to get ffmpeg to preserve these
time-slices, either by repeating the last good frame, or showing a black
frame or color bars?

Using 'NVEncC64 --avsync forcecfr' properly includes these sequences,
and matches the source length, with correct sync.  But it doesn't
preserve the CCs.  Looks like I might be able to get it to work if I add
Caption2Ass to convert them to subtitles, but I'd prefer to leave them
as-is.

Things I've tried that didn't work include doing a simple -c copy to
another .TS file before transcoding, adding an explicit -r framerate,
-fflags genpts/igndts/sortdts, and more.  I didn't try messing with
-async and -adrift_threshold, since the audio also drops out during the
corruptions.

I can use different (free) software if someone has a suggestion, but it
seems impossible that ffmpeg has no way to do this...?


Since I posted this on Thanksgiving eve, I thought I'd try again to see 
if anyone has any thoughts on whether ffmpeg can be made to preserve the 
time-duration of corrupted frames, when transcoding...?


In case it's helpful, I'll paste below the results of running
'|ffmpeg -v error -i tvshow.ts -f null - >errors.log 2>&1'.  I could 
also temporarily upload the TV show to a file-sharing site, if needed.


[mpeg2video @ 0173d9548140] Invalid frame dimensions 0x0.
    Last message repeated 4 times
[mpeg2video @ 0173d996c880] 00 motion_type at 86 67
[mpeg2video @ 0173d996c880] Warning MVs not available
[ac3 @ 0173d7d5d400] exponent -1 is out-of-range
[ac3 @ 0173d7d5d400] error decoding the audio block
Error while decoding stream #0:1: Error number -16976906 occurred
[null @ 0173d9582800] Application provided invalid, non 
monotonically increasing dts to muxer in stream 0: 16366 >= 16366

[mpeg2video @ 0173d996c880] slice mismatch
[mpeg2video @ 0173d996c880] 00 motion_type at 4 45
[mpeg2video @ 0173d996c880] mb incr damaged
[mpeg2video @ 0173d996c880] 00 motion_type at 5 38
[mpeg2video @ 0173d996c880] 00 motion_type at 12 24
[mpeg2video @ 0173d996c880] ac-tex damaged at 13 53
[mpeg2video @ 0173d996c880] slice mismatch
[mpeg2video @ 0173d996c880] invalid cbp -1 at 1 23
[mpeg2video @ 0173d996c880] slice mismatch
[mpeg2video @ 0173d996c880] 00 motion_type at 3 60
[mpeg2video @ 0173d996c880] ac-tex damaged at 0 61
[mpeg2video @ 0173d996c880] mb incr damaged
    Last message repeated 1 times
[mpeg2video @ 0173d996c880] 00 motion_type at 5 54
[mpeg2video @ 0173d996c880] slice mismatch
[mpeg2video @ 0173d996c880] 00 motion_type at 1 28
[mpeg2video @ 0173d996c880] ac-tex damaged at 0 29
[mpeg2video @ 0173d996c880] slice mismatch
    Last message repeated 1 times
[mpeg2video @ 0173d996c880] invalid cbp -1 at 21 63
[mpeg2video @ 0173d9

Re: [FFmpeg-user] Ubuntu 22.04 audio capture issue

2022-11-29 Thread Dan Harkless

On 11/28/2022 9:03 AM, Dave Blanchard wrote:
I can't help with the audio problem, unfortunately. All I can say is 
this is exactly the sort of thing that drove me completely away from 
mainstream Linux junkware distros like Ubuntu, and into the open and 
waiting arms of my own custom distro, made from scratch. These sort of 
problems are now fading, distant memories for me. It's always set up 
to be exactly how I want it to be, out of the box. You would not 
believe how much faster, snappier, and more stable the experience is, 
even on new hardware, let alone old hardware. I highly recommend 
others to take a similar route, and get off mainstream Linux and into 
something better. 


I, too, have found Debian-based distributions to be too buggy for my 
use, but Red Hat Enterprise Linux–based distributions like CentOS have 
been extremely stable, in my experience.  Even Fedora Linux, which is 
more of a bleeding-edge distro, I've found to have very good QA (only 
real issues I've ever had with it are due to its incompatibility with 
old, low-end Nvidia cards).



If you want to know what the main root of the problem is on Ubuntu, look at any software 
authored by the paid saboteur known as "Linux Puttering" aka Linus Poettering. 
That would be systemd, and of course the original O.G. Puttering junkware, pulseaudio. 
There is a master plan at work here, and a sinister one at that.


Hmm, I'm aware of the great systemd debate, but was not previously aware 
of the "paid saboteur" theory.  FWIW, recent versions of CentOS and 
Fedora, like almost all distros, use systemd, and it's never caused a 
problem for me.  It's more complex to write custom startup and shutdown 
scripts for, but it has backwards compatibility for init.d-style scripts.


The saboteur thing is plausible (and a scary thought), but I have a hard 
time believing so many distros would have adopted it if it's such 
"junkware".  I think it's more that enterprise use, faster systems, and 
faster disks, started to make init.d's serial processing of tasks a 
bottleneck, and systemd's parallelism addressed that.


As someone else noted, putting together a custom distro is beyond most 
people's needs and abilities, though Arch Linux is a nice middle ground 
between from-scratch distro-building and ready-to-go ones.  I've also 
found it to have comparably good QA to the Red Hat–based distros.


--
Dan Harkless
http://harkless.org/dan/

___
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] Prevent ffmpeg from completely skipping corrupt frames when transcoding MPEG-2 TS?

2022-11-23 Thread Dan Harkless
Hi.  I have some old SD & HD recordings in MPEG-2 Transport Stream 
format, mostly recorded off my U.S. cable-box 1394 port with CapDVHS.  
My end-goal is to transcode these to interlaced AVC, while preserving 
the optional embedded Closed Captions.  Per MediaInfo, the CCs are in 
EIA-608 and EIA-708 format, (DTVCC Transport) muxed into the main video 
stream.


I've tried various software to do the transcoding, but the only one that 
preserves the CCs is ffmpeg.  It even lets me use the MP4 container 
format (which my old versions of Sony Vegas read, unlike MKV), thanks to 
the single muxed video stream.  A command like this (using a recent 
gyan.dev Windows build, run from Cygwin bash) works almost perfectly:


% ffmpeg -y -i tvshow.ts -map 0 -c:v libx264 -b:v 5500k -flags 
+ildct+ilme -threads 0 -pass 1 -fps_mode cfr -f null /dev/null && ffmpeg 
-i tvshow.ts -map 0 -c:v libx264 -b:v 5500k -flags +ildct+ilme -threads 
0 -pass 2 -fps_mode cfr -c:a copy -c:s copy tvshow.mp4


(Not 100% sure the -c:s copy is necessary.  Also, I had to avoid using 
slow presets, as they cause originally good frames after dropouts to 
contain new corruption artifacts, presumably due to more aggressive 
reference framing into the corrupt areas.)


The one glaring problem is that the .MP4 is over 30 seconds shorter than 
the .TS.  The reason for this is occasional corrupt frame-sequences.  
When watching the original TS with VLC, at these points, the video 
freezes and the audio goes silent for the expected duration, then 
resumes, which I want.


In the transcoded MP4, the munged parts are just skipped over, so 
someone will be cut off mid-word, and then the next frame, it 
immediately jumps to where the signal came back, continuing 
mid-someone-else's-word.  Very jarring, and hides how much time is 
missing in each dropout.


The docs say that when using -vsync/-fps_mode cfr, "Frames will be 
duplicated and dropped to achieve exactly the requested constant frame 
rate."  Does this only apply to VFR->CFR conversion, not to handling of 
corrupt frames?  Is there any way to get ffmpeg to preserve these 
time-slices, either by repeating the last good frame, or showing a black 
frame or color bars?


Using 'NVEncC64 --avsync forcecfr' properly includes these sequences, 
and matches the source length, with correct sync.  But it doesn't 
preserve the CCs.  Looks like I might be able to get it to work if I add 
Caption2Ass to convert them to subtitles, but I'd prefer to leave them 
as-is.


Things I've tried that didn't work include doing a simple -c copy to 
another .TS file before transcoding, adding an explicit -r framerate, 
-fflags genpts/igndts/sortdts, and more.  I didn't try messing with 
-async and -adrift_threshold, since the audio also drops out during the 
corruptions.


I can use different (free) software if someone has a suggestion, but it 
seems impossible that ffmpeg has no way to do this...?


--
Dan Harkless
http://harkless.org/dan/

___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-10-11 Thread Dan

On Sun, 25 Sep 2022 10:38:22 +0100, Reino Wijnsma  wrote:


On 2022-09-21T17:10:21+0200, Dan  wrote:

Thanks for both of those ffmpeg CLI lines! They do actually work for me (in MPC 
and Chrome).
Would you consider both of the lines safe to use?

These commands, after careful observation, are the ones that work for me to 
closely match the original colours.
I'm no expert, nor am I an FFmpeg-developer, so someone else would have to answer whether 
it's "safe" to use.
I guess it is though.


I resubscribed just to give some finality to this.

I managed to reproduce the problem that I had before and just to confirm at 
least one of
your two command lines came through wonderfully! The line with: "-color_range tv 
-colorspace bt470bg"
inside was quite good, though some RGB values were off by up to 4 units.

However the winning line:

ffmpeg -i input.png -t 5 -vf "zscale=m=709" -c:v libx264 -crf 0 out.mp4

...seems practically flawless, with RGB values only off by up 1/256. The 
"zscale=m=709"
really seems to do the trick.

Tested with the flat green colour and with the testchart.png

Thanks, Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-21 Thread Dan

On Sun, 18 Sep 2022 22:49:58 +0100, Reino Wijnsma  wrote:


With FFmpeg, creating a temp-file, zscale does work:

ffmpeg -i PLdsb.png -t 5 -vf "zscale=m=709" -c:v libx264 -crf 0 
PLdsb_zscale-bt709.mp4

Again, not exactly the same colour, but very close.


 SNIP


These are all VUI (Video Usability Information) options and, unlike the 
colourmatrix conversions above, don't have a direct impact on the video-image 
itself.


 SNIP


ffmpeg -i PLdsb.png -t 5 -color_range tv -colorspace bt470bg -c:v libx264 -crf 
0 PLdsb_vui-tv601.mp4


Thanks for both of those ffmpeg CLI lines! They do actually work for me (in MPC 
and Chrome).
Would you consider both of the lines safe to use?

Unfortunately, the line that I used which failed before, now also succeeds in 
producing accurate colours:

ffmpeg.exe -i testchart.png -crf 0 -vcodec libx264 -t 5 -y -colorspace bt470bg 
testchart.mp4

Here is the URL again for the test chart: https://www.belle-nuit.com/test-chart

I'm at a loss why it's suddenly producing correct colour results when it didn't 
before.


If you insist on using these VUI options, then in contrast to what you might 
expect (PC,BT.709) it's actually TV,BT.601 that has the expected result.
Welcome to the wonderful world of video conversions.


Feels like I'm going crazy haha. Hope it's all simplified and unified in the 
future, and all this
arbitrary legacy baggage can be put behind us once and for all.

Dan
___
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] Info

2022-09-20 Thread Dan
Hi, 

I'm trying to run a stream on YouTube a video that loops 24/7, using FFmpeg 4.4 
from a server with Ubuntu 22, but cannot succeed, any help would be appreciated.

Here's 2 scripts I made, the 1st one works with a CPU showing around 75% but 
does not loop.

VBR="1500k"
FPS="24"
QUAL="superfast"

YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
KEY="mykey"
SOURCE="/home/ubuntu/Video.mp4"
AUDIO_SOURCE="/home/ubuntu/Music.mp3"
ffmpeg \
-re -f lavfi -i "movie=filename=$SOURCE:loop=0, setpts=N/(FRAME_RATE*TB)" \
-thread_queue_size 512 -i "$AUDIO_SOURCE" \
-map 0:v:0 -map 1:a:0 \
-map_metadata:g 1:g \
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) 
-b:v $VBR \
-acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 32 -bufsize 
512k \
-f flv "$YOUTUBE_URL/$KEY"


The 2nd script loops but the CPU on the server shows 190% and I loose the 
"Live" red light on YouTube.


VBR="1500k"
FPS="24"  
QUAL="superfast" 

YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"  
SOURCE="/home/ubuntu/Video.mp4"  
KEY="mykey"  
ffmpeg \
-stream_loop -1 -i "$SOURCE" -deinterlace \
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) 
-b:v $VBR \
-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k 
\
-f flv "$YOUTUBE_URL/$KEY"

Thanks.
Dan



___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-16 Thread Dan

Please show your complete command line. Because for me it doesn't work.
Different colors for height 576 and 720.


Sure:

ffmpeg.exe -f lavfi -i color=0x19be0f:s=400x720 -crf 0 -vcodec libx264
-t 5 -y -colorspace fcc 720fcc.mp4



For me that doesn't work in Windows. The color in VLC player is
18,190,18 for height=576 and 13,163,11 for height=720.
It doesn't help if I specify -color_trc, -color_primaries and -color_range.

In VLC player are functions Tools / Media Information and Tools / Codec
information. What's shown here is exactly the same for height=576 and
height=720. But the colors are different.


You on Windows 10? Maybe you'd have more luck if you
tried loading the video into Chrome or Media Player Classic (like I use).

Let me know if you'd like me to try anything else.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-16 Thread Dan

On Fri, 16 Sep 2022 15:51:22 +0100, Erik Dobberkau  
wrote:


Thinking RGB would be the remedy for everything is simply a bit naive (no
offense intended), because even RGB may (quite likely) not be one and the
same in any given case.


No offense taken. I'm thinking in more of an ideal sense in the far future, 
where
monitors and TVs are a near commodity and calibrated to the same precise 
standard,
where memory and bandwidth issues are a relic of the past, where operating 
systems
too, agree on a unified colour space standard.

If I may be so brave, I think the colour format of the future could be something
as simple as 64 bit RGB (16 bits each for R, G, B, and A) to allow for great 
dynamic
contrast (super bright displays!). No conversion to and from YUV necessary, 
either for
the display device or for the h266 (well h292 by then!) compression. And no 
chroma
subsampling, haha.

Great for developers, video content creators, and end users alike. Everything
is compatible with everything else instantly.

Maybe I'm still naive, but that's the hope and the vision. Simplify everything
as much as can be, but no further.

Think of the time saved if nothing else ;)

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-16 Thread Dan

On Fri, 16 Sep 2022 14:55:20 +0100, Michael Koch  
wrote:


Am 16.09.2022 um 15:20 schrieb Dan:

showinfo filter shows video frame color metadata to output of console,
nothing less - nothing more. showinfo cant produce incorrect video, if
you ever bothered to read documentation you would know.


By the way, just to clarify, I wasn't talking about the console
output, but
the window it opened up alongside (on the right), which showed the green
was darker.


Nobody is wrong. Everybody is correct. Your file is encoded so badly
that it should be immediately removed from existence.


In the end, I used "-colorspace fcc" which seems to have fixed the issue.


Please show your complete command line. Because for me it doesn't work.
Different colors for height 576 and 720.


Sure:

ffmpeg.exe -f lavfi -i color=0x19be0f:s=400x720 -crf 0 -vcodec libx264 -t 5 -y 
-colorspace fcc 720fcc.mp4

Here's an image comparison. As you can see, the green in the FCC versions
are that brighter (how they should be): https://i.imgur.com/RqJAp5t.png

Tested with Chrome too and FCC works there too.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-16 Thread Dan

It is evident that your knowledge is exactly 0.


I know enough to say I can't wait until everyone can unify under a single
colour space/profile, scrap YUV, scrap chroma subsampling and go with RGB.
Disk space and bandwidth is getting cheaper and cheaper after all.

Haha, okay let's put egos aside. Michael recommended I try going
through the various colour spaces, so that's what I did. And hey, FCC worked 
for me!
What might go wrong if I stick with this technique?


FCC colorspace is not correct way to represent encoded material.

Use -color_range flags.


Why didn't you recommend this originally? Anyway, *finally* found docs for it
under the codecs section: https://ffmpeg.org/ffmpeg-codecs.html

I tried all of them: "tv", "mpeg", "pc", "jpeg". Here's the line I used:

ffmpeg.exe -i testchart.tif -color_range mpeg -crf 0 -vcodec libx264 -pix_fmt 
yuv420p output-mpeg.mp4

Unfortunately, colours are still muted/changed: https://i.imgur.com/H7GzYS4.png

Am I supposed to combine it with another CLI argument?

Dan







Dan
___
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] ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-16 Thread Dan

showinfo filter shows video frame color metadata to output of console,
nothing less - nothing more. showinfo cant produce incorrect video, if
you ever bothered to read documentation you would know.


By the way, just to clarify, I wasn't talking about the console output, but
the window it opened up alongside (on the right), which showed the green
was darker.


Nobody is wrong. Everybody is correct. Your file is encoded so badly
that it should be immediately removed from existence.


In the end, I used "-colorspace fcc" which seems to have fixed the issue.
A shame we needed to research that, since it looks like fcc should be
the default, at least for a large subset of Windows systems.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-16 Thread Dan

Sure.

The colour is both the same now (for both Chrome and MPC), except it's
the darker, wrong colour (green=164 instead of 190).


Try some other values instead of "bt709".


Went through a ton

ERROR - DIDN'T RUN: bt470m, bt601-6-525, bt601-6-625, bt2020, bt2020ncl, 
linear, log100, log316, iec61966-2-4

RUNS BUT BAD COLOURS: bt709, smpte240m, ycgco (very bad colors), bt2020nc, 
bt2020c, smpte2085, chroma-derived-nc, chroma-derived-c, ictcp

RUNS AND WORKS WITH THAT GREEN, BUT SLIGHTLY TO FAIRLY DESATURATED COLOURS ON 
TEST CHART: bt470bg, smpte170m

AND I STRUCK GOLD WITH: fcc

The "fcc" actually produce the desired result (or very nearly!). R, G, B were 
only off by 2/256 at the most. I also tested it with -pix_fmt yuv420p for Chrome 
compatibility, and on the 1920x1080 colour test chart shown here: 
https://www.belle-nuit.com/test-chart -  all was good! No drawbacks I assume?

Thank you a ton for this! I wonder if fcc works for you too on your Linux 
system. Any idea what's going on and why ffmpeg doesn't use that one by 
default? Without specifying, does ffmpeg just give it an unknown/unmanaged 
colour profile? And if that's the case, then why does Chrome and MPC interpret 
that unknown profile in different ways according to the size?

I look forward to the day when everyone uses the same colour space/profile, 
gamma correction, and finally scrapping YUV and chroma subsampling (bleurgh) - 
just sticking with RGB. We'll save the world a lot of time and heartache.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-15 Thread Dan

On Thu, 15 Sep 2022 12:07:08 +0100, Michael Koch  
wrote:


Am 15.09.2022 um 11:53 schrieb Dan:

This seems to work with VLC player:

ffmpeg -f lavfi -i color=0x19be0f:s=400x576 -colorspace bt709 -crf 0
-vcodec libx264 -t 5 -y out1.mp4
ffmpeg -f lavfi -i color=0x19be0f:s=400x578 -colorspace bt709 -crf 0
-vcodec libx264 -t 5 -y out2.mp4


Unfortunately, doesn't work for me in MPC or Chrome. Can you try a
height of 720 instead of 578 to see if that fails for you?


Please try this, for me it works with VLC player, the color is exactly
the same:

ffmpeg -f lavfi -i color=0x19be0f:s=400x576 -colorspace bt709
-color_primaries bt709 -color_trc bt709 -crf 0 -vcodec libx264 -t 5 -y
out1.mp4
ffmpeg -f lavfi -i color=0x19be0f:s=400x720 -colorspace bt709
-color_primaries bt709 -color_trc bt709 -crf 0 -vcodec libx264 -t 5 -y
out2.mp4


Sure.

The colour is both the same now (for both Chrome and MPC), except it's
the darker, wrong colour (green=164 instead of 190).

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-15 Thread Dan

On Thu, 15 Sep 2022 10:40:10 +0100, Paul B Mahol  wrote:


Looks like your knowledge is very limited, incorrect.


Of course it is! I said I was a beginner to ffmpeg and never pretended 
otherwise.
My expertise is in other areas (3D, C# programming, music etc.)

I never made any outright statements, always "maybe", or "Could there be".
In that last post, I also provided empirical data in the form of *four* 
different
media players. Perhaps I misunderstood showinfo's output. And?


Next time be less so ignorant and do some research and do read

documentation and do your homework before coming here asking for
questions.

Please be less rude. I've spent multiple if not over a dozen hours on this whole
niche of a niche bug! I should NEVER have had to do this in the first place if 
the
format was properly implemented and interpreted. I'm merely an end user.
Frankly, I'm amazed at just how messy this situation is (and no, I'm not 
necessarily
blaming ffmpeg now).

From what you claim, it looks like Chrome et al could indeed be at fault.
But there's something FUNDAMENTALLY wrong or miscommunicated with how
h264 or ffmpeg, or Chrome et al's interpretation is implemented, at least on
Windows, if things like this can surface.

So what do I do now. File a bug report to Chrome, Edge and the others?
Perhaps I could try filing a bug report with ffmpeg, or will it merely be 
ignored?

Also, where can I read more information about this mysterious and slippery bug,
so I can at least know a little more about its nature.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-15 Thread Dan

This seems to work with VLC player:

ffmpeg -f lavfi -i color=0x19be0f:s=400x576 -colorspace bt709 -crf 0
-vcodec libx264 -t 5 -y out1.mp4
ffmpeg -f lavfi -i color=0x19be0f:s=400x578 -colorspace bt709 -crf 0
-vcodec libx264 -t 5 -y out2.mp4


Unfortunately, doesn't work for me in MPC or Chrome. Can you try a
height of 720 instead of 578 to see if that fails for you?

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-15 Thread Dan

You are right that datascope shows no difference. But the issue is also
reproducible with VLC player.


As well as VLC Player and FFplay, I've tried MediaPlayerClassic, Google Chrome,
Microsoft Edge and Vegas Pro, and the problem occurs with each of those. Could
there be a "takes two to tango" thing going on, where both the players and 
ffmpeg
are at fault due to miscommunication? It's somewhat hard to conceive they'd all
interpret the file incorrectly otherwise. Only one player I tried - Irfanview - 
interpreted
it correctly.

I can't get to test it with Firefox or Waterfox unfortunately. They think the 
file
is corrupt (output mp4 produced using the "-f lavfi -i 
color=0x19be0f:s=400x720" technique).
Maybe there's a way around that.

Also, showinfo produced an incorrect colour too. See: 
https://i.imgur.com/LF43udT.png

(I use: "ffplay.exe -vf showinfo 576.mp4" ).

In summary, I've love a workaround at least, or at least some reassurance that
Chrome et al. will come round to fix this, or that ffmpeg will communicate the 
file
better to them.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

The crazy thing is when you vertically stack the two videos together,
then the colors become again identical in the output:

ffmpeg -i out1.mp4 -i out2.mp4 -lavfi vstack -y out.mp4

Sorry, I have no idea for a solution or workaround.


To make things even more confusing, Media Player Classic breaks the pic using 
the 578 pixel
height, but Chrome actually works with both the 576 and 578 pixel height. 
However, as soon as I
change the height to 984, then both Media Player Classic AND Chrome show it 
broken.

There must be some cut off point off where Chrome gives up, which exceeds Media 
Player
Classic's cut off point.

What a mess.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

zscale=...,format=yuv420p


O okay. I tried that before (except using two -vf commands), because I
suspected you might've meant that.

Just tried it again, still no luck. Let me know if I need to tweak anything:

ffmpeg.exe -f lavfi -i color=0x19be0f:s=400x578 -crf 0 -vcodec libx264 -vf 
zscale=w=-1:h=-1,format=yuv420p -t 5 -y "578.mp4"

I'm using Media Player Classic to test the colours, which breaks the pic using 
the 578 pixel
height. Chrome actually works with both the 576 and 578 pixel height, but as 
soon as I
change the height to 984, then both Media Player Classic AND Chrome show it 
broken.

Datascope shows the strange and seemingly unrelated 78,4C,44 values for all 
three sizes,
but it does that even without using zscale at all.

Dan



Here both zscale/scale gives same output pixel values.
I use datascope filter to inspect it.

ffplay input.file -vf datascope
___
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] ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

Unless I'm somehow misusing zscale (which is a possibility), it would seem
as if the
problem lies elsewhere.


If you do not use format filter after zscale it will not work correctly.


Do you mean using the "filter" keyword under the zscale property/variable?

I tried this, again no luck (also tried filter=point):

ffmpeg.exe -f lavfi -i color=0x19be0f:s=400x578 -crf 0 -vcodec libx264 -vf 
zscale=w=-1:h=-1:filter=lanczos -t 5 -y "578.mp4"

If you would kindly give the appropriate command line, or even just the 
relevant bit of the line
to make zscale work, that might help save me from flailing around as much ;)

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

On Wed, 14 Sep 2022 21:26:59 +0100, Carl Zwanzig  wrote:


On 9/14/2022 8:01 AM, Paul B Mahol wrote:

The reason of scale behavior is known and legacy.


Is it documented with the filter? I don't see anything obvious about it at
https://ffmpeg.org/ffmpeg-filters.html#toc-scale-1, where can a person find
about this otherwise-known behavior?


To be fair, Paul did suggest the use of the zscale filter instead of using 
scale.
I actually managed to get the line to run in the end. I just needed to put the
"zscale=w=-1:h=-1" bit at the end like this:

ffmpeg.exe -i "input.bmp" -crf 0 -vcodec libx264 -t 5 -y "output.mp4" -vf 
zscale=w=-1:h=-1

Unfortunately, I'm still getting the same darkening problem. The second mp4 is 
darker
than the first.

Even tried using Michael's direct colour technique combined with zscale:

ffmpeg.exe -f lavfi -i color=0x19be0f:s=400x576 -crf 0 -vcodec libx264 -vf 
zscale=w=-1:h=-1 -t 5 -y "576.mp4"
ffmpeg.exe -f lavfi -i color=0x19be0f:s=400x578 -crf 0 -vcodec libx264 -vf 
zscale=w=-1:h=-1 -t 5 -y "578.mp4"

Again, no luck. Second is darker.

Unless I'm somehow misusing zscale (which is a possibility), it would seem as 
if the
problem lies elsewhere.

Dan
___
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 MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

That's a great idea to use specified colours directly supported by ffmpeg
and helps narrow down the issue a lot!

Would you count this as a bug? If this is a known legacy quirk, it seems
one of the ugliest and most misleading quirks I have seen in a while, and I 
could
imagine being responsible for wasting thousands of hours of thought based upon
mis-diagnosed colour-profiling assumptions.

I've spoken with two separate long-time video professionals so far, and they
were both convinced this was a colour profile thing and that my source images
were the problem, and not ffmpeg's behaviour, despite saying I checked both
BMPs in a hex editor, and they were byte-identical (other than 
resolution/filesize).

Are you using Windows per chance? To make things even more confusing, one
of the aforementioned pros says he can't spot a difference on his non-Windows
system (presuming Mac, could be Linux) between the two output mp4s' colours.

I'm almost suspecting this is a problem only with the Windows version of ffmpeg,
or at least with the OS's viewer (e.g: Chrome / Classic Media Player). Maybe 
Paul
could confirm that.

Dan


On Wed, 14 Sep 2022 15:49:23 +0100, Michael Koch  
wrote:


Am 14.09.2022 um 11:21 schrieb Dan:

Using the latest 5.1.1 "essentials build" by www.gyan.dev.

Hi all, I'm a beginner to ffmpeg so I'm having a hard time believing
that a utility so old and so widely used has such a fundamental bug,
but the evidence is staring me in the face and leads me to no other
conclusion.

It's incredibly easy to replicate thankfully. I want to convert
numerous frames to make an animation, but thankfully, I've simplified
the problem to even using a single image to make a '1 frame video' for
the purposes of debugging.

Simply perform this command line:

ffmpeg.exe -i original.png -crf 0 -vcodec libx264 output.mp4

...With this "original.png" ("fC2Tj") image:
https://i.stack.imgur.com/5jkct.png

And this command line:

ffmpeg.exe -i doubleHeight.png -crf 0 -vcodec libx264 output.mp4

...On this "doubleHeight" ("RGIvA") image:
https://i.stack.imgur.com/PLdsb.png

The double height version is darker than it should be. I've checked
the resulting video in both Media Player Classic and Chrome.


The issue can be reproduced without input images as follows:

ffmpeg -f lavfi -i color=0x19be0f:s=400x576 -crf 0 -vcodec libx264 -t 5
-y out1.mp4
ffmpeg -f lavfi -i color=0x19be0f:s=400x578 -crf 0 -vcodec libx264 -t 5
-y out2.mp4

The color seems to be brighter if the height is 576 or smaller, and
darker if the height is 578 or larger.
It's clearly visible if you play both videos side by side. I did test
with VLC Player and FFplay. I don't see how zscale could fix this issue.

Michael

___
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] ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

On Wed, 14 Sep 2022 11:12:25 +0100, Paul B Mahol  wrote:


On 9/14/22, Dan  wrote:

Using the latest 5.1.1 "essentials build" by www.gyan.dev.

Hi all, I'm a beginner to ffmpeg so I'm having a hard time believing that a
utility so old and so widely used has such a fundamental bug, but the
evidence is staring me in the face and leads me to no other conclusion.

It's incredibly easy to replicate thankfully. I want to convert numerous
frames to make an animation, but thankfully, I've simplified the problem to
even using a single image to make a '1 frame video' for the purposes of
debugging.

Simply perform this command line:


Scale filter may give different colors depending on frame dimensions.

Use zscale filter instead.


Oh, that's interesting! Would you call this a bug? Going by the element of
least surprise, it doesn't seem to make sense that scaling in a different
way should change the colours of the output and especially not in such a
seemingly unpredictable and erratic way. I've spent countless hours
trying to track this down.

Does this have anything to do with image colour profiles by the way?

Anyway, I tried your suggestion, and I'm now getting this error:

"[Parsed_zscale_0 @ 02315a134f00] code 1026: YUV color family cannot have RGB 
matrix coefficients".

My command line looks like this:

ffmpeg.exe -i test.bmp -crf 0 -vcodec libx264 -vf zscale=w=-1:h=-1 output.mp4

Thanks, D
___
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] ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

2022-09-14 Thread Dan

Using the latest 5.1.1 "essentials build" by www.gyan.dev.

Hi all, I'm a beginner to ffmpeg so I'm having a hard time believing that a 
utility so old and so widely used has such a fundamental bug, but the evidence 
is staring me in the face and leads me to no other conclusion.

It's incredibly easy to replicate thankfully. I want to convert numerous frames 
to make an animation, but thankfully, I've simplified the problem to even using 
a single image to make a '1 frame video' for the purposes of debugging.

Simply perform this command line:

ffmpeg.exe -i original.png -crf 0 -vcodec libx264 output.mp4

...With this "original.png" ("fC2Tj") image: https://i.stack.imgur.com/5jkct.png

And this command line:

ffmpeg.exe -i doubleHeight.png -crf 0 -vcodec libx264 output.mp4

...On this "doubleHeight" ("RGIvA") image: https://i.stack.imgur.com/PLdsb.png

The double height version is darker than it should be. I've checked the 
resulting video in both Media Player Classic and Chrome.

If you check the dark green colour on the original PNG images, using an eye 
dropper tool, they're both R=25,G=74,B=15. However, if you check the same 
colour on the output MP4s, the colour matches on the original PNG, but not the 
doubleHeight version, which is R=22,G=66,B=12.

If I use -vcodec libx264rgb, instead of -vcodec libx264, that fixes the issue, 
but I need libx264 so the output video can work on Chrome and other media 
players.

What gives? CLI output below (for the double height version):

---

D:\Utils\ffmpeg\bin\ffmpeg.exe -i C:\Users\\Desktop\testcol\PLdsb.png -crf 
0 -vcodec libx264 C:\Users\\Desktop\testcol\PLdsb.mp4
ffmpeg version 5.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the 
FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv 
--enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib 
--enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass 
--enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf 
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid 
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va 
--enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora 
--enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil  57. 28.100 / 57. 28.100
  libavcodec 59. 37.100 / 59. 37.100
  libavformat59. 27.100 / 59. 27.100
  libavdevice59.  7.100 / 59.  7.100
  libavfilter 8. 44.100 /  8. 44.100
  libswscale  6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc56.  6.100 / 56.  6.100
Input #0, png_pipe, from 'C:\Users\\Desktop\testcol\PLdsb.png':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgb24(pc), 968x984, 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 01b24acb3400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 01b24acb3400] profile High 4:4:4 Predictive, level 3.2, 4:4:4, 
8-bit
[libx264 @ 01b24acb3400] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC 
codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: 
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=0 mixed_ref=1 
me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 
chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 
decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 
keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, mp4, to 'C:\Users\\Desktop\testcol\PLdsb.mp4':
  Metadata:
encoder : Lavf59.27.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv444p(tv, progressive), 
968x984, q=2-31, 25 fps, 12800 tbn
Metadata:
  encoder : Lavc59.37.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=1 fps=0.0 q=0.0 Lsize=   2kB time=00:00:00.00 
bitrate=180512.8kbits/s speed=0.0017x
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 88.235291%
[libx264 @ 01b24acb3400] frame I:1 Avg QP: 0.00  size:   405
[libx264 @ 01b24acb3400] mb I  I16..4: 83.5% 16.4%  0.1%
[libx264 @ 01b24acb3400] 8x8 transform intra:16.4%
[libx264 @ 01b24acb3400] coded y,u,v intra: 0.0% 0.0% 0.0%
[libx264 @ 01b24acb3400] i16 v,h,dc,p: 100%  0%  0%  0%
[libx264 @

Re: [FFmpeg-user] Can ffmpeg record video from this kind of URL?

2022-03-04 Thread Dan Schultz
This is not an ffmpeg solution, but the Internet Archive has a large
repository of TV News content that includes 24/7 MSNBCfeeds:
https://archive.org/details/tv?q=MSNBC

For your consideration.

Best,
 - Dan

On Fri, Mar 4, 2022 at 2:44 PM Paul B Mahol  wrote:

> On 3/4/22, Bo Berglund  wrote:
> > On Sat, 9 Oct 2021 03:23:52 +0300, Anatoly 
> > wrote:
> >
> >>On Thu, 07 Oct 2021 10:27:51 +0200
> >>Bo Berglund  wrote:
> >>
> >>> On Wed, 1 Sep 2021 16:30:00 +0300, anat...@kazanfieldhockey.ru wrote:
> >>>
> >>> >Right, you need m3u8.
> >>> >F12->Network->Enter "m3u8" in the textbox above the list to filter
> >>> >out.
> >>> >> Is there a command line call I can make to extract the m3u8 URL
> >>> >> automatically so
> >>> >> it can be used in a script only supplied the main page URL?
> >>> >To get url of the first m3u8 from the page (this page actually has
> >>> >only one) curl "https://www.livenewsmag.com/msnbc-news-live-stream/";
> >>> >| grep -o -e "https://.\+m3u8"; | head -n 1
> >>>
> >
> >>> Coming back to this issue again since the command you suggested has
> >>> stopped working...
> >>> I am trying this command and I get an empty result:
> >>>
> >>> $ curl -s "https://msnbcdailyshows.com/"; | grep -o -e
> >>> "https://.\+m3u8"; | head -n 1
> >>>
> >>> The page above does have an embedded video player but your command for
> >>> extraction of the m3u8 URL returns an *empty* output...
> >>>
> >>> But it does work on other such pages like this:
> >>>
> >>> $ curl -s "https://www.livenewsmag.com/msnbc-news-live-stream"; | grep
> >>> -o -e "https://.\+m3u8"; | head -n 1
> >>>
> https://1420543146.rsc.cdn77.org/Z5XPzYjFisC9SrZHwPgDUg==,1633615580/LS-ATL-54548-10/index.m3u8
> >>>
> >>> Why is the command working on one URL but not the other?
> >
> >>Because as Moritz Barsnick  Wed, 1 Sep 2021 15:37:21
> >>+0200 already told you:
> >>"There's often a lot of magic involved in extracting the video URLs from
> >>webpages - parsing JavaScript, downloading and parsing JSON files,
> >>re-using cookies and referrers, and so on."
> >>
> >>So this is very hard, nearly to impossible to create a tool or
> >>receipe that will automatically extract video urls on *any* arbitrary
> >>page. Last time I just took a quick look at www.livenewsmag.com and
> >>found a simple solution for you, because that page is simple enough.
> >>Now let's do the same:
> >>
> >>#!/bin/sh
> >>#resolution here may be: prem, 720, 480, 240
> >>resolution="480"
> >>sdate=`date "+%Y%m%d-%H%M"`
> >>filename="rec-msnbc1-${sdate}.mp4"
> >>msn1url="https://msnbcdailyshows.com/";
> >>ggid=`curl $msn1url | grep -o -e "https://goodgame\.ru/player?[0-9]\+";
> >>| grep -o -e "[0-9]\+"`
> >>m3u8url="https://hls.goodgame.ru/hls/${ggid}_${resolution}.m3u8";
> >>ffmpeg -user_agent "Mozilla" -i $m3u8url -c copy $filename
> >>
> >>Also this page contains url of youtube stream of same program, which
> >>can be extracted with
> >>curl "https://msnbcdailyshows.com/"; | grep -o -e
> >>"https://youtu.be/[0-9a-zA-Z]\+ <https://youtu.be/%5B0-9a-zA-Z%5D%5C+>"
> >>and then fed to youtube-dl
> >
> > I return again to this subject because the extraction I have used for a
> > long
> > time now has failed again, probably because part of it is a russian site
> so
> > they
> > changed to something else...
> >
> > With the war in Ukraine I would very much like to record the MSNBC stream
> > nightly using ffmpeg and it seems impossible now.
> > I have tried my two ffmpeg formats using the page url:
> >
> > https://msnbcdailyshows.com/
> >
> > and the m3u8 URL I find if I use F12 in the browser when it plays:
> >
> > https://cdn.plt.one/cdn/premium327/chunks.m3u8
> >
> > But my ffmpeg command does not work with these...
> > Example (on one line):
> >
> > ffmpeg -hide_banner -referer \"https://msnbcdailyshows.com/\"; -i
> > https://cdn.plt.one/cdn/premium327/chunks.m3u8  -vf scale=w=-4:h=480
> -c:v
> > libx264 -preset fast -crf 26 -c:a copy -t 120 test1.mp4
> >
> > It fails to actually get any data, so much tghat the timeout does not
> even
> > trigger...
> >
> > What can be done to get this working again?
>
> It is premium content for users that pay.
>
> >
> >
> > --
> > Bo Berglund
> > Developer in Sweden
> >
> > ___
> > 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".


[FFmpeg-user] Can FFmpeg change top-bottom smartphone balance? Example in link

2021-06-05 Thread Dan Baker
Dear FFmpeg Questions,

I haven't asked a question in a long time but OH my lord, this TikTok
changes the "balance" not left-right but top-bottom on my iPhone:

https://vm.tiktok.com/ZMeKT6wmy/

That's an instance, let me see if I can link the uninstantiated audio, the
abstract class of the TikTok if you wish:

https://vm.tiktok.com/ZMeKTYAnF/

Okay so here is metadata:

It is the song "Water Fountain" by Alec Benjamin.

How even - how do I introspect the audio of a TikTok?

And how did they make the sound come alternately from the earpiece and the
mouthpiece-edge?

The iPhone doesn't respect right-left channels in MP3 except with
headphones, I think. This iPhone sadly does NOT get audio files from any
laptops or desktops.

What kind of black magic is this?

Does FFmpeg have a filter or support a container format where the channels
can be "mouth" and "ear" instead of R, L, right surround, left surround,
center, and I don't know if 7.1 has standardized channel names? "Right
surround" might not even be standard, I've seen "right rear".

Any clues would be greatly appreciated,

Thank you,

Tushotts N. Arm
Google user.
Pronouns he/him
Blue with red skiers for BC-Talk
___
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] resume encoding live HLS stream?

2021-01-21 Thread dan
I've googled to death but I can't find anything but other people
asking for this.

Specifically, I want to encode an HLS 'kit' live and if the ffmpeg
process gets stopped, I want to restart it but continue on with file
numbering and keep the old chunks.

A few examples:
A) ffmpeg segfaults because of some wacket error in the input, I'd
like it to start back up (in a while true; or via systemd script etc)
and preserve the old files in the m3u8 instead of starting over.
B) There is a power outage and when the system comes back up and
starts the ffmpeg script I don't want to erase all the history.

I plan to keep about 72 hours if the live stream available and allow
users to jump into the history at any point via js in the browser,
which I have working but every now and then something gets reset and I
have to start from scratch.

Is this possible with ffmpeg and/or is it something on the wish 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] ffmpeg qsv performance well below expected

2021-01-05 Thread dan
On Tue, Jan 5, 2021 at 9:53 AM andrei ka  wrote:
>
> well, intel mentions h264/h265 9/1 perfs ratio on older cpus here:
> https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/cloud-computing-quicksync-video-ffmpeg-white-paper.pdf
> so, chances are this is how it is, veven if you're supposed to have enough
> vid memory to do 2hd & and 4 720p, you hit gflops limit...
> &rei
> ___
> 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'm on a 10th gen i3-10100

That paper is really dated though, ffmpeg 2.8 which was during Intel's
6th gen series which were notable worse performers.
___
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] mpeg2video errors

2021-01-02 Thread dan
On Sat, Jan 2, 2021 at 11:14 AM dan  wrote:
>
> Hello all, I'm getting a number of mpeg2 errors
> My encode:
> ffmpeg -hwaccel qsv -i http://10.39.40.173:5004/auto/v2.1 -c:v
> hevc_qsv -c:a aac -b:a 64k -profile:v main -global_quality 30 -g 48
> -keyint_min 48 -sc_threshold 0 -hls_time 2 -hls_list_size 8
> -hls_segment_type mpegts -hls_flags delete_segments
> -hls_segment_filename video_%03d.ts video.m3u8
>
> i've tried w/o -hwaccel and also using vaapi and I get these same
> errors.  This same stream plays very happily on VLC and mplayer and no
> errors show up in the logs.
>
> Source is an HDHomeRun Quadro.  This manifests by the encode having
> more and more errors over time to the point that the output doesn't
> play and there are "non-monotonous DTS in output stream 0:1" errors
> (sorry, takes 10 hours and I didn't copy that output)
>
> This seems like an ffmpeg issue but I don't know where to look next.
>
> ubuntu
> ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
>   built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
>
>
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 63
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 64
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 65
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 66
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 67
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 14 46
> [mpeg2video @ 0x55ff855da480] slice mismatch
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 2 59
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 7 37
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 27 38
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 11 47
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 7 27
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 28
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 6 48
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 15 39
> [mpeg2video @ 0x55ff855da480] Invalid mb type in P-frame at 5 49
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 6 50
> [mpeg2video @ 0x55ff855da480] Invalid mb type in P-frame at 3 51
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 1 40
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 16 52
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 8 41
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 4 42
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 9 43
> [mpeg2video @ 0x55ff855da480] invalid cbp -1 at 1 44
> [mpeg2video @ 0x55ff855da480] Warning MVs not available
>
>
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 76 53bitrate=N/A
> dup=100 drop=0 speed=1.01x
> [mpeg2video @ 0x55ff855da480] Warning MVs not available
> [mpeg2video @ 0x55ff855da480] concealing 693 DC, 693 AC, 693 MV errors
> in I frame
>
> [mpegts @ 0x55ff85593300] Packet corrupt (stream = 0, dts =
> 4179746053). drop=0 speed=1.01x
> [mpeg2video @ 0x55ff855da480] slice below image (69 >= 68)
> Error while decoding stream #0:0: Invalid data found when processing input

just some more details, here is the output just after the first ts is
made.   The errors will up continuously after this command.
root@video1:/var/www/html/2.1# ffmpeg -hwaccel qsv -i
http://10.39.40.173:5004/auto/v2.1 -c:v hevc_qsv -c:a aac -b:a 64k
-profile:v main -global_quality 30 -g 48 -keyint_min 48 -sc_threshold
0 -hls_time 2 -hls_list_size 8 -hls_segment_type mpegts -cc_stream_map
"ccgroup:cc,instreamid:CC1,language:en" -hls_flags delete_segments
-hls_segment_filename 720p_%03d.ts 720p.m3u8
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
  configuration: --prefix=/usr --extra-version=4ubuntu1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librabbitmq
--enable-librsvg --enable-librubberband --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt
--enable-libssh --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2
--enable-omx --enable-openal --enable-opencl --enable-opengl
--enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394
--enable-l

[FFmpeg-user] mpeg2video errors

2021-01-02 Thread dan
Hello all, I'm getting a number of mpeg2 errors
My encode:
ffmpeg -hwaccel qsv -i http://10.39.40.173:5004/auto/v2.1 -c:v
hevc_qsv -c:a aac -b:a 64k -profile:v main -global_quality 30 -g 48
-keyint_min 48 -sc_threshold 0 -hls_time 2 -hls_list_size 8
-hls_segment_type mpegts -hls_flags delete_segments
-hls_segment_filename video_%03d.ts video.m3u8

i've tried w/o -hwaccel and also using vaapi and I get these same
errors.  This same stream plays very happily on VLC and mplayer and no
errors show up in the logs.

Source is an HDHomeRun Quadro.  This manifests by the encode having
more and more errors over time to the point that the output doesn't
play and there are "non-monotonous DTS in output stream 0:1" errors
(sorry, takes 10 hours and I didn't copy that output)

This seems like an ffmpeg issue but I don't know where to look next.

ubuntu
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)


[mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 63
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 64
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 65
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 66
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 67
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 14 46
[mpeg2video @ 0x55ff855da480] slice mismatch
[mpeg2video @ 0x55ff855da480] 00 motion_type at 2 59
[mpeg2video @ 0x55ff855da480] 00 motion_type at 7 37
[mpeg2video @ 0x55ff855da480] 00 motion_type at 27 38
[mpeg2video @ 0x55ff855da480] 00 motion_type at 11 47
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 7 27
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 28
[mpeg2video @ 0x55ff855da480] 00 motion_type at 6 48
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 15 39
[mpeg2video @ 0x55ff855da480] Invalid mb type in P-frame at 5 49
[mpeg2video @ 0x55ff855da480] 00 motion_type at 6 50
[mpeg2video @ 0x55ff855da480] Invalid mb type in P-frame at 3 51
[mpeg2video @ 0x55ff855da480] 00 motion_type at 1 40
[mpeg2video @ 0x55ff855da480] ac-tex damaged at 16 52
[mpeg2video @ 0x55ff855da480] 00 motion_type at 8 41
[mpeg2video @ 0x55ff855da480] 00 motion_type at 4 42
[mpeg2video @ 0x55ff855da480] 00 motion_type at 9 43
[mpeg2video @ 0x55ff855da480] invalid cbp -1 at 1 44
[mpeg2video @ 0x55ff855da480] Warning MVs not available


[mpeg2video @ 0x55ff855da480] ac-tex damaged at 76 53bitrate=N/A
dup=100 drop=0 speed=1.01x
[mpeg2video @ 0x55ff855da480] Warning MVs not available
[mpeg2video @ 0x55ff855da480] concealing 693 DC, 693 AC, 693 MV errors
in I frame

[mpegts @ 0x55ff85593300] Packet corrupt (stream = 0, dts =
4179746053). drop=0 speed=1.01x
[mpeg2video @ 0x55ff855da480] slice below image (69 >= 68)
Error while decoding stream #0:0: Invalid data found when processing input
___
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] ffmpeg qsv performance well below expected

2021-01-01 Thread dan
In running ubuntu with an i3-10100

I'm able to transcode 2 MPEG2 to h.265 using the following command
ffmpeg -hwaccel qsv -i http://hdhomerun:5004/auto/v2.2.ts -c:v
hevc_qsv -c:a copy -profile:v main -global_quality 30 -g 48
-keyint_min 48 -sc_threshold 0 -hls_time 2 -hls_list_size 10
-hls_segment_type mpegts -hls_flags delete_segments
-hls_segment_filename video_%03d.ts video.m3u8

but, the third video causes all 3 to start to throw errors in
encoding.  CPU usage on this quad core CPU is about 35% on 3 different
cores, seems there's no issue with CPU (general purpose) performance.
Am I hitting a wall on hevc_qsv here?

I've switched -hwaccel to vaapi which works but performance is a bit
worse.  I've removed this to push the MPEG2 decode to software, no
real effect.

I've tried to start the 3rd encode with libx265 but that crushes the CPU.

h264_qsv is able to handle this.

It appears, at least on the surface, that this CPU w/ 28 video cores
can only handle 2 h.265 encodes in quicksync but the specs seem to
suggest it should do more.

Am I missing something obvious?

note, the first 2 streams are 1080i MPEG2 from an HDHomeRun.  The
third stream I selected a 720p MPEG2 stream and even that doesn't work
well.  Also, I am not using any deinterlacer, I removed them to try to
get the third stream running.

Thanks for any feedback.
___
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] How to decipher FFMEG version number?

2020-12-25 Thread Dan Bridges
I build FFMPEG under Win10 using media-autobuild_suite
(https://github.com/m-ab-s/media-autobuild_suite)

https://github.com/m-ab-s/media-autobuild_suite

Is it possible to decipher the version number:

ffmpeg version N-100471-g85bd703b3a-g5b48d2af43+1 Copyright (c)
2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)

Dan.



___
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] options of vidstabdetect video filter

2020-08-08 Thread Dan Bridges
On 8/08/2020 8:47 pm, PPRJ01 wrote:
> I am an ffmpeg user since november 2018 and I didn't pay attention to this 
> warning message that was in green color. It's the first time I use vidstab* 
> filters.
>
> I will continue doing tests because the video I received from a friend is a 
> very very shaky one (taken from a high speed boat).
>
If you are a Windows FFmpeg user, check out the 3-part message, starting
from https://forums.whirlpool.net.au/thread/3q68l4j9#r5 , where I post
some links to comparison videos and a "test workbench" to experiment
with vidstab settings.

Dan.

___
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] trouble installing ffmpeg

2020-07-22 Thread Dan Bridges
On 23/07/2020 7:18 am, Jake McGaker wrote:
> "'C:\ffmpeg' is not recognized as an internal or
> external command,"

This means that you are trying to run ffmpeg.exe from the the root
directory i.e. "c:\". What you need to do is put ffmpeg.exe (and any
associated AV utility programs) in a directory that's included in  the
directory list stored in in Windows PATH environmental variable. For
example, when I type path PATH at the cmd prompt to see what directories
are listed in my Windows PATH environmental variable:

PATH=C:\Mingw\media-autobuild_suite-master\local64\bin-video;C:\Mingw\media-autobuild_suite-master\local64\bin-audio;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files
(x86);C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\GNU\GnuPG;C:\Program Files (x86)\WinMerge;C:\Program Files
(x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common
Files\Acronis\VirtualFile\;C:\Program Files (x86)\Common
Files\Acronis\VirtualFile64\;C:\Program Files (x86)\Common
Files\Acronis\SnapAPI\;C:\Program Files\nodejs\;C:\Program
Files\gnuplot\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files
(x86)\Gpg4win\..\GnuPG\bin;C:\Program
Files\dotnet\;C:\Users\Dan\AppData\Local\Microsoft\WindowsApps;d:\YouTube_dl;C:\Users\Dan\AppData\Roaming\npm;C:\Program
Files (x86)\AutoIt3;C:\Program Files
(x86)\AutoIt3\Aut2Exe;c:\utilities;C:\Program
Files\VideoLAN\VLC;C:\Program Files\smartmontools\bin

Because I'm using Autobuild to compile FFMPEG under Windows, I've got
"C:\Mingw\media-autobuild_suite-master\local64\bin-video" in this list
because that's where Autobuild creates ffmpeg.exe. Otherwise I'd have it
stored in "C:\utilities" which is where I place a host of small useful
programs.

Say I type FFMPEG and press Enter, the Windows command processor looks
for ffmpeg.com, ffmpeg.exe, ffmpeg.cmd, ffmpeg.bat, and I think
ffmpeg.vbs (Visual BASIC program). It looks for these programs first in
the current directory, then in my PATH list of directories.

To get instructions on how to alter of add to the list of  in your PATH:

* In Settings, in the search box, type PATH, and click on "Edit the
system environmental variables".
* Click on "Environmental Variables" button.
* In the"System  variables" box, select the "path" entry, and then 
click on the "Edit" button.
* Click on the "New" button and add the directory where ffmpeg.exe is
situated e.g. C:\Utilities

See here for a screengrab: 
https://dll.dropbox.com/s/622mvi71vw798vx/Editing_path_list.jpg

Note: in widows File Explorer you can create a directory ("New folder"
option) and then copy or move ffmpeg.exe to it.  To get to a cmd prompt
in this specific directory, navigate to it so it's showing in the File
Explorer's address bar. Then type in this box "cmd" and  press Enter.

Dan.



___
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] Copying a EIA-608 subtitle stream in an m4v

2020-03-27 Thread Dan Smith via ffmpeg-user
> On Mar 27, 2020, at 1:47 PM, Ted Park  wrote:
> 
>> -map_metadata 0 doesn't help—the metadata is still stripped (some well-known 
>> tags are preserved, but only a few). It appears ffmpeg is not willing to put 
>> unrecognized tags in the output when copying from m4v to mov.
> 
> Several people have reported the creation_time not being copied, but as I can 
> only guess, I think the metadata you are referring to are extensive comments 
> or synopsis type strings? If it reads like the jacket cover of a book, or 
> some library catalog record, they were probably in their own “box” at the 
> same level as other streams in some sense, instead of short strings in the 
> headers for each track which is the default. I’d suggest trying -movflags 
> +use_metadata_tags. The uncut console output would really be helpful in the 
> absence of a sample for its copyright status. Why leave out which tags were 
> omitted?? ._.

"-movflags +use_metadata_tags" seems to do the trick. Thanks!

I excluded the details previously because it's just a lot of noise for the 
other issues I was discussing. But, since you're interested:

Original file:

  Metadata:
major_brand : M4V 
minor_version   : 0
compatible_brands: M4V mp42isom
creation_time   : 2014-03-29T03:43:15.00Z
title   : Pilot, Pt. 1
artist  : LOST
album_artist: LOST
album   : Lost, Season 1
genre   : Drama
track   : 1
disc: 1/1
compilation : 0
gapless_playback: 0
date: 2004-09-22T07:00:00Z
copyright   : © ABC Studios
description : Out of the blackness, the first thing Jack (Matthew Fox) 
senses is pain. Then burning sun. A bamboo forest. Smoke. Screams. 
hd_video: 2
show: Lost
episode_id  : 100A
season_number   : 1
episode_sort: 1
media_type  : 10
purchase_date   : 2009-06-11 01:18:58
iTunEXTC: us-tv|TV-14|500|
synopsis: Out of the blackness, the first thing Jack (Matthew Fox) 
senses is pain. Then burning sun. A bamboo forest. Smoke. Screams. With a rush 
comes the horrible awareness that the plane he was on tore apart in mid-air and 
crashed on a Pacific island. From there
iTunMOVI: 
: http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
: 
: 
:   asset-info
:   
:   closed-captioned
:   
:   file-size
:   1457698388
:   flavor
:   7:720p
:   high-definition
:   
:   screen-format
:   widescreen
:   soundtrack
:   DD,DS
:   
: 
: 
: 

Result of 'ffmpeg -i video.m4v -map 0 -map -0:3 -codec copy test.m4v' (turns 
out this discards some tags, too, but not as many):

  Metadata:
major_brand : M4V 
minor_version   : 512
compatible_brands: isomiso2avc1
title   : Pilot, Pt. 1
artist  : LOST
album_artist: LOST
album   : Lost, Season 1
date: 2004-09-22T07:00:00Z
encoder : Lavf58.29.100
genre   : Drama
copyright   : © ABC Studios
description : Out of the blackness, the first thing Jack (Matthew Fox) 
senses is pain. Then burning sun. A bamboo forest. Smoke. Screams. 
synopsis: Out of the blackness, the first thing Jack (Matthew Fox) 
senses is pain. Then burning sun. A bamboo forest. Smoke. Screams. With a rush 
comes the horrible awareness that the plane he was on tore apart in mid-air and 
crashed on a Pacific island. From there
show: Lost
episode_id  : 100A
episode_sort: 1
season_number   : 1
media_type  : 10
hd_video: 2
gapless_playback: 0
compilation : 0
track   : 1
disc: 1/1

Result of 'ffmpeg -i video.m4v -map 0 -map -0:3 -codec copy test.mov':

  Metadata:
major_brand : qt  
minor_version   : 512
compatible_brands: qt  
artist  : LOST
title   : Pilot, Pt. 1
album   : Lost, Season 1
date: 2004-09-22T07:00:00Z
encoder : Lavf58.29.100
genre   : Drama
copyright   : © ABC Studios

Result of 'ffmpeg -i video.m4v -movflags +use_metadata_tags -map 0 -map -0:3 
-codec copy test.m4v' or 'ffmpeg -i video.m4v -movflags +use_metadata_tags -map 
0 -map -0:3 -codec copy test.mov' (metadata is the same either way):

  Metadata:
minor_version   : 0
major_brand : M4V 
compatible_brands: M4V mp42isom
iTu

Re: [FFmpeg-user] Copying a EIA-608 subtitle stream in an m4v

2020-03-27 Thread Dan Smith via ffmpeg-user
> On Mar 27, 2020, at 11:38 AM, Ted Park  wrote:
> 
>> 2) It strips a number of metadata tags (I counted about 13). I want to 
>> remove the mjpeg stream without perturbing the rest of the file.
> 
> This can be done, add -map_metadata 0 for the global file-level metadata and 
> -map_metadata:s: 0:s: for stream-level metadata. As I’ll explain, you can’t 
> remove the mjpeg stream, but you can copy everything else but the mjpeg 
> stream. Add -map 0 to copy everything and then add -map -0:# (where # is the 
> stream index of the cover image) to not copy it.

-map_metadata 0 doesn't help—the metadata is still stripped (some well-known 
tags are preserved, but only a few). It appears ffmpeg is not willing to put 
unrecognized tags in the output when copying from m4v to mov.

Here's the command line I used, FWIW:

ffmpeg -strict experimental -i video.m4v -map_metadata 0 -map 0 -map -0:4 
-codec copy test.mov

>> 3) Testing on another file (also Apple-encoded and supported), the 'mov' 
>> output chokes on another stream:
>> 
>>  Stream #0:4(eng): Data: bin_data (tx3g / 0x67337874), 0 kb/s
>>  Metadata:
>>creation_time   : 2016-07-15T19:12:05.00Z
>>handler_name: Core Media Text
> 
> This I am curious about, tx3g literally indicates mp4:17 text streams, with 
> decoder name “mov_text”. Do you have a sample you can provide?

It's a copyrighted movie, but here's the relevant command line interaction (the 
problematic stream is #0:4; if I exclude it, the command succeeds):

$ -> ffmpeg -i video.m4v -map 0 -codec copy test.mov
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.16)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared 
--enable-pthreads --enable-version3 --enable-avresample --cc=clang 
--host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include
 
-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin
 -fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl 
--enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus 
--enable-librubberband --enable-libsnappy --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx 
--enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma 
--enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox 
--disable-libjack --disable-indev=jack
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8625000800] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.m4v':
  Metadata:
major_brand : M4V 
minor_version   : 0
compatible_brands: M4V mp42isom

...

Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 126 kb/s (default)
Metadata:
  creation_time   : 2016-07-15T19:12:05.00Z
  handler_name: Core Media Audio
Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), 
yuv420p(tv, smpte170m/smpte170m/bt709, progressive), 640x480 [SAR 4:3 DAR 
16:9], 1432 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 5994 tbc (default)
Metadata:
  creation_time   : 2016-07-15T19:12:05.00Z
  handler_name: Core Media Video
Stream #0:2(eng): Subtitle: mov_text (tx3g / 0x67337874), 853x72, 0 kb/s 
(default)
Metadata:
  rotate  : 0
  creation_time   : 2016-07-15T19:12:05.00Z
  handler_name: Core Media Subtitle
Stream #0:3(eng): Subtitle: eia_608 (c608 / 0x38303663), 853x480, 0 kb/s 
(default)
Metadata:
  creation_time   : 2016-07-15T19:12:05.00Z
  handler_name: Core Media Closed Caption
Stream #0:4(eng): Data: bin_data (tx3g / 0x67337874), 0 kb/s
Metadata:
  creation_time   : 2016-07-15T19:12:05.00Z
  handler_name: Core Media Text
Stream #0:5(und): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj444p(pc, 
bt470bg/unknown/unknown, progressive), 640x360 [SAR 72:72 DAR 16:9], 8 kb/s, 
SAR 65536:62805 DAR 1048576:565245, 0.0042 fps, 1 tbr, 1k tbn, 1k tbc (attached 
pic) (timed thumbnails)
Metadata:
  rotate  : 0
  creation_time   : 2016-07-15T19:12:05.00Z
  handler_name: Core Media Video
Side data:
  displaymatrix: rotation of -0.00 degrees
Stream #0:6(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), 
fltp, 384 kb/s
Metadata:
  creation_time   : 2016-07-15T19:12:05.00Z
   

Re: [FFmpeg-user] Copying a EIA-608 subtitle stream in an m4v

2020-03-27 Thread Dan Smith via ffmpeg-user
> On Mar 27, 2020, at 11:23 AM, Carl Eugen Hoyos  wrote:
> 
> Am Fr., 27. März 2020 um 17:58 Uhr schrieb Dan Smith via ffmpeg-user
> :
> 
>> To restate my goal clearly: I want to process some m4v files,
>> removing an unwanted "cover art" image appearing as mjpeg
>> streams.
> 
> Just to clarify in case it is necessary:
> FFmpeg never "removes" anything from a file, when you
> so stream copy with ffmpeg, a new file is created with
> new (and most likely) different features than the input
> file (except for the media content).

Sure. I don't necessarily require *literal* removal of some data from a file. 
But I'm looking for a process that will *logically* amount to removal of some 
data. This process could look like:

mv filename.m4v filename-bak.m4v
some-command -from filename-bak.m4v -to filename.m4v

The process is successful if the result of the process looks like what you 
would expect from literal removal.

___
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] Copying a EIA-608 subtitle stream in an m4v

2020-03-27 Thread Dan Smith via ffmpeg-user
> On Mar 26, 2020, at 8:49 PM, Ted Park  wrote:
> 
>> If I copy the stream, I get an error:
> 
>> [ipod @ 0x7f8074810600] Could not find tag for codec eia_608 in stream #0, 
>> codec not currently supported in container
>> Could not write header for output file #0 (incorrect codec parameters ?): 
>> Invalid argument
> 
>> (I also tried with extension mp4, behavior is the same.)
> 
> Try with extension mov, and/or -strict -2.

Okay, using 'mov' is progress—it outputs a usable file without error.

(-strict seems to have no effect.)

To restate my goal clearly: I want to process some m4v files, removing an 
unwanted "cover art" image appearing as mjpeg streams.

Some problems with the "output to mov" approach:

1) I'd really like a video in the original file format when I'm done (m4v/mp4), 
not a mov file. I think mov files are less widely compatible, and in any case 
I'm going for in-place modification.

2) It strips a number of metadata tags (I counted about 13). I want to remove 
the mjpeg stream without perturbing the rest of the file.

3) Testing on another file (also Apple-encoded and supported), the 'mov' output 
chokes on another stream:

   Stream #0:4(eng): Data: bin_data (tx3g / 0x67337874), 0 kb/s
   Metadata:
 creation_time   : 2016-07-15T19:12:05.00Z
 handler_name: Core Media Text

It sounds like, at this point, the answer is "ffmpeg is not the tool for you", 
but I'm happy to hear other suggestions.

___
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] Copying a EIA-608 subtitle stream in an m4v

2020-03-26 Thread Dan Smith via ffmpeg-user
I'm trying to process an m4v video with the following subtitle stream:

Stream #0:3(eng): Subtitle: eia_608 (c608 / 0x38303663), 1920x1080, 0 kb/s 
(default)
Metadata:
  creation_time   : 2014-03-29T03:43:15.00Z
  handler_name: Apple Closed Caption Media Handler

When I play the video in QuickTime Player, the subtitles are available for 
selection and display properly.

If I copy the stream, I get an error:

~

$ -> ffmpeg -i video.m4v -map 0:3 -codec copy test.m4v
...
[ipod @ 0x7f8074810600] Could not find tag for codec eia_608 in stream #0, 
codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid argument
Stream mapping:
  Stream #0:3 -> #0:0 (copy)
Last message repeated 1 times

~

(I also tried with extension mp4, behavior is the same.)

If I transcode the stream, I get a number of errors, and the resulting 
subtitles are garbage:

~

$ -> ffmpeg -i video.m4v -map 0:3 -codec mov_text test.m4v
...
Stream mapping:
  Stream #0:3 -> #0:0 (eia_608 (cc_dec) -> mov_text (native))
Press [q] to stop, [?] for help
[Closed caption Decoder @ 0x7fb894079800] Data Ignored since exceeding screen 
width
Last message repeated 1529 times
size=   2kB time=00:07:20.53 bitrate=   0.0kbits/s speed=1.2e+04x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 2963.333252%

~

(To test the output, I used a slightly different invocation, copying the 
video/audio streams, and played the file in QuickTime Player. Subtitles are 
gibberish.)

How can I get ffmpeg to play nicely with these subtitles?

Suggestions:
- Is there an option to override the "codec not currently supported" error? 
Can't ffmpeg just copy the bits and ignore the content?
- Is there another path/tool for transcoding the eia_608 subtitle stream 
correctly?
- All I really want at the moment is to strip a "cover art" image appearing as 
stream 0:4. Is there another way to accomplish that?

___
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] Remove everything but a single color (range)

2020-03-15 Thread Dan Bridges
>Is it possible to "remove" everything in a video except a specific
color (or maybe a range... ie close to a specific color. By "remove" I
mean covert every that is NOT the color(s) I want to black or
transparent. I have a video that contains a yellowish box that moves
about the screen. I want to isolate ONLY the yellowish box. Everything
else should become black or transparent.

Try the colorhold filter:

From http://paulbourke.net/miscellaneous/ffmpeg/FFmpeg_Book.pdf

The 3 parameters are:

"color" is the color to be preserved, can be specified by name or by RGB
values, for example "orange" can be replaced by #FFA500
"similarity" is a percentage, 0.01 means only the specified color is
preserved, 1.0 means all colors are preserved.
"blend" is a percentage, 0.0 makes pixels fully gray, higher values
result in more preserved color


ffmpeg -i input_filename  -vf colorhold="FBED54":0.01:0  output_filename

This produces tight colour discrimination.  If too tight, increase the
2nd parameter from 0.01 until you get what you want.

Note, this filter will only make the discriminated stuff gray, not black
or transparent.  Perhaps someone else will be able to help.

A screenshot from an example using similarity=0.5 (a fairly sloppy
match) and your colour:  
https://dl.dropbox.com/s/isipbbtb2bjj7wy/filtered.jpg

Dan.






___
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] ff* command lines that work

2020-03-09 Thread Dan Bridges
The 3 messages I link to show how you can use FFMPEG to resize and
combine 2 videos to create a L|R side-by-side comparison clip, say of
the effects of a filter.  I also add title overlays to the 2 clips. The
FFMPEG filter I was examining is vid.stab, an image stabilisation
filter.  There are links to a suitable jerky test clip, and two
processed examples.  A batchfile test-bench you can use for side-by-side
filter comparisons is included. This could be used as a template for
comparing the effect of other filters. 

Due to the large number of parameters than can be changed, you edit the
batchfile, rather than specifying them on a CLI.  So I keep the
batchfile open in a text editor (Notepad++) in a separate window as I
run the batchfile in a windowed console session.

https://forums.whirlpool.net.au/thread/3q68l4j9#r5

https://forums.whirlpool.net.au/thread/3q68l4j9#r6

https://forums.whirlpool.net.au/thread/3q68l4j9#r7

Dan.







___
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] What argument(s) does 'ashowinfo' take?

2020-03-01 Thread Dan Bridges
On 2/03/2020 9:12 am, Mark Filipak wrote:
> ffprobe -ashowinfo -i g:\VIDEO_TS\VTS_01_1.VOB 

According to
https://hhsprings.bitbucket.io/docs/programming/examples/ffmpeg/audio_visualization/ashowinfo.html
I used this format  for showinfo and ashowinfo with a clip called
Dancing.MTS:

ffprobe -f lavfi movie=Dancing.MTS,showinfo

ffprobe version N-96726-g018a42790c Copyright (c) 2007-2020 the FFmpeg
developers
  built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-autodetect --enable-libfdk-aac --enable-amf
--enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va
--enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib
--enable-sdl2 --disable-debug --enable-ffnvcodec --enable-nvdec
--enable-libvidstab --enable-libaom --enable-librav1e --enable-libwebp
--enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis
--enable-libx264 --enable-libvidstab --enable-libtls
--extra-libs=-liconv --enable-gpl --enable-version3 --enable-nonfree
  libavutil  56. 40.100 / 56. 40.100
  libavcodec 58. 68.102 / 58. 68.102
  libavformat    58. 38.100 / 58. 38.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter 7. 75.100 /  7. 75.100
  libswscale  5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[Parsed_showinfo_1 @ 012446d14580] config in time_base: 1/9,
frame_rate: 50/1
[Parsed_showinfo_1 @ 012446d14580] config out time_base: 0/0,
frame_rate: 0/0
[Parsed_showinfo_1 @ 012446d14580] n:   0 pts:  8
pts_time:0.89 pos:  768 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:1 type:I checksum:E3888ABD plane_checksum:[0FAECC8C 03DF7F71
63473EB1] mean:[98 120 135] stdev:[50.3 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   1 pts:  81800
pts_time:0.908889 pos:   346560 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:86B433B7 plane_checksum:[9DC7175D 038FFE4B
CB771E00] mean:[98 120 135] stdev:[50.2 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   2 pts:  83600
pts_time:0.928889 pos:   361536 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:FC37B02E plane_checksum:[67BB7113 1B425B3B
0DE1E3D1] mean:[98 120 135] stdev:[50.2 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   3 pts:  85400
pts_time:0.948889 pos:   235008 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:P checksum:42DF2300 plane_checksum:[A8FCA03F 6E49D2C2
A307AFE1] mean:[98 120 135] stdev:[50.2 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   4 pts:  87200
pts_time:0.968889 pos:   493440 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:D6326862 plane_checksum:[ECC2D9E1 2C334AF6
8158437C] mean:[98 120 135] stdev:[50.1 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   5 pts:  89000
pts_time:0.99 pos:   513600 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:49BAE374 plane_checksum:[F61498AB DE7EFB69
83AF4F51] mean:[98 120 135] stdev:[50.1 6.7 8.0]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   6 pts:  90800
pts_time:1.00889 pos:   381696 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:P checksum:7B67A870 plane_checksum:[B90AD98C DEA99D56
205E317F] mean:[98 120 135] stdev:[50.0 6.7 8.1]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   7 pts:  92600
pts_time:1.02889 pos:   645696 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:B8174105 plane_checksum:[11F07654 9F2B11CC
7C96B8D6] mean:[98 120 135] stdev:[49.9 6.7 8.1]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   8 pts:  94400
pts_time:1.04889 pos:   665280 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:B checksum:EA1C85FB plane_checksum:[4690B547 B47F1736
B488B96F] mean:[98 120 135] stdev:[49.9 6.7 8.1]
[Parsed_showinfo_1 @ 012446d14580] color_range:unknown
color_space:unknown color_primaries:unknown color_trc:unknown
[Parsed_showinfo_1 @ 012446d14580] n:   9 pts:  96200
pts_time:1.06889 pos:   533952 fmt:yuv420p sar:1/1 s:1920x1080 i:P
iskey:0 type:P checksum:3DF1CF37 plane_checksum:[10A1F217 DA346E75
4CDC6E9C] mean:[98 119 135] stdev:[49.8 6.7 8.1]

Re: [FFmpeg-user] ffmpeg -layer flag

2020-01-21 Thread Dan Walker
@Gonzalo - Thanks for that feedback! With the channels listed in the
response I sent Carl, do you see any issues with the channel names?  These
image sequences are coming from SideFX Houdini.

When a patch is created, where would I get that?

Thanks again Gonzalo!



On Sun, Jan 19, 2020 at 1:36 PM Gonzalo Garramuño 
wrote:

>
>
> El 17/01/20 a las 23:26, Carl Eugen Hoyos escribió:
> > Am Sa., 18. Jan. 2020 um 02:47 Uhr schrieb Dan Walker <
> walkerd...@gmail.com>:
> >
> >> I'm trying to find info on the -layer flag for ffmpeg which seems to be
> >> undocumented in terms of examples.
> > Seriously:
> > What did you try? You write above that you have "multilayer EXR [R,G,B":
> Did
> > you test ffmpeg -layer G -i input out.jpg?
> The flag seems to be somewhat broken on current head.   It should allow
> you to extract rgb (or xyz) channels from multiview EXRs. However, it
> only allows uppercase channels, like N.X or indirect_diffuse.R.
> I'll submit a patch to fix that.
>
> It does not work with OpenEXRs 2.0 multipart files (known limitation).
>
> ___
> 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] ffmpeg -layer flag

2020-01-21 Thread Dan Walker
title:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)
Conversion failed!

On Fri, Jan 17, 2020 at 6:26 PM Carl Eugen Hoyos  wrote:

> Am Sa., 18. Jan. 2020 um 02:47 Uhr schrieb Dan Walker <
> walkerd...@gmail.com>:
>
> > I'm trying to find info on the -layer flag for ffmpeg which seems to be
> > undocumented in terms of examples.
> >
> > I have a sequence of multilayer EXRs that I'm trying to convert to JPEG
> and
> > from the sounds of it, I would be able to extract channels in the
> > multilayer EXR [e.g. R,G,B or Diffuse, etc] and outtput the JPEGS
> that
> > way due to ffmpeg not being able to straight up convert from mutilayer
> EXR
> > -> JPEG.
> >
> > I've scoured the web, can't find anything in terms of examples on how to
> > use this flag.
> >
> >
> https://gist.github.com/tayvano/6e2d456a9897f55025e25035478a3a50#file-gistfile1-txt-L598
> >
> > EXR AVOptions:
> > -layer .D.V…. Set the decoding layer (default “”)
>
> Seriously:
> What did you try? You write above that you have "multilayer EXR [R,G,B":
> Did
> you test ffmpeg -layer G -i input out.jpg?
>
> 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".

[FFmpeg-user] ffmpeg -layer flag

2020-01-17 Thread Dan Walker
Hello,

I'm trying to find info on the -layer flag for ffmpeg which seems to be
undocumented in terms of examples.

I have a sequence of multilayer EXRs that I'm trying to convert to JPEG and
from the sounds of it, I would be able to extract channels in the
multilayer EXR [e.g. R,G,B or Diffuse, etc] and outtput the JPEGS that
way due to ffmpeg not being able to straight up convert from mutilayer EXR
-> JPEG.

I've scoured the web, can't find anything in terms of examples on how to
use this flag.

https://gist.github.com/tayvano/6e2d456a9897f55025e25035478a3a50#file-gistfile1-txt-L598

EXR AVOptions:
-layer .D.V…. Set the decoding layer (default “”)

Thanks,

Dan
___
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] Converting pictures to video

2019-12-09 Thread Dan Bridges
On 10/12/2019 5:09 am, Anwuli Okwuashi wrote:
> winexec "C:\FFmpeg\bin\ffmpeg.exe" -report -f concat -safe 0 -i
> "C:\Users\analyst\Desktop\STATA\projects\animation3\graph_%d.png" -maxrate
> 3k -y
> "C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg"

When you use the concat demuxer , after "-i", (the input file(s)
option), don't use: *graph_%d.png*

Instead, use the name of the text file you've created that contains
either 1- or 2 entries for every image filename you wish to load. This
way, the group of image filenames does not need to be contiguous in its
numbering or start its numbering within 0-4 of the index value.

https://trac.ffmpeg.org/wiki/Concatenate

If you look at my post you will see that I have presented a batchfile
called *create_list.bat*:

@echo off SETLOCAL EnableDelayedExpansion if exist mylist.txt del
mylist.txt for %%I in ("Sequence Directory\*.png") do (echo file '%%~fI'
>> mylist.txt & echo duration 0.04 >> mylist.txt) start /i mylist.txt

The way it is currently written, it looks a directory-level down from
the current directory for a sub-directory called "Sequence directory".
This is just an example. You could alter it to suit yourself.

In my example, I had create_list.bat and ffmpeg.exe in "C:\test
directory". So, when executing create_list.bat from there, it is looking
for all the .png files I've placed in "C:\test directory\Sequence
directory" and then creating a name-sorted list in the current directory
("C:\test directory") called *mylist.txt*. Finally, it was loading this
text file in the Windows-associated  program, notepad.exe., for
examination and modification*.  *This final step is an optional process.*
*

In my example, the first 4 image files in this sorted list which would
be read by the concat demuxer and loaded into ffmpeg were:

file 'C:\test directory\Sequence directory\Replacement.png' duration
0.04 file 'C:\test directory\Sequence directory\Sequence_0083.png'
duration 0.04 file 'C:\test directory\Sequence
directory\Sequence_0086.png' duration 0.04 file 'C:\test
directory\Sequence directory\Sequence_0089.png' duration 0.04

Once you have created your list of image filenames, you use it this way
(an example):*
*

*ffmpeg.exe -f concat -safe 0 -i "C:\test directory\mylist.txt" -maxrate
3k -y "C:\test directory\Sequence directory"\map_video6.mpg*

In your case your directory structure appears not to be separating your
working directory from your data (image) directory. This is OK if you
only a few image files, but gets messy when you have thousands of images.

Assuming you want create_list.bat to operate from the "animation3"
directory you would alter its contents to:

@echo off SETLOCAL EnableDelayedExpansion if exist mylist.txt del
mylist.txt for %%I in (*.png") do (echo file '%%~fI' >> mylist.txt &
echo duration 0.04 >> mylist.txt) start /i mylist.txt


And then your ffmpeg.exe command line would be:

***winexc "C:\Users\analyst\Desktop\STATA\projects\animation3\mylist.txt"
-maxrate 3k -y
"C:\Users\analyst\Desktop\STATA\projects\animation3\map_video1.mpg"*

Dan.*
*

*
*

**






___
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] Converting pictures to video

2019-12-06 Thread Dan Bridges
On 7/12/2019 11:49 am, Anwuli Okwuashi wrote:
> [image2 @ 01d077c4a440] Could find no file with path
> 'C:\Users\analyst\Desktop\STATA\projects\animation3\graph%02d.png' and
> index in the range 0-4


I created a 1500x1000 1000-image set: Sequence_000.png ->
Sequence_999.png. This loads fine using at the start of the command line:

ffmpeg -i Sequence_%03d.png

This will also work if the sequence numbers are inside the filename:

ffmpeg -i 0191107-154%03d-214.png

But if you rename the first 5 files to:  _Sequence_000.png ... 
_Sequence_004.png it will fail because the first file starting with
Sequence is now Sequence_005.png.

Renaming _Sequence_004.png -> Sequence_004.png  will allow the remaining
995 files in the sequence to load.

If you can not batch rename the sequence to start from 00 or if it is a
non-contiguous list because you deleted some damaged/missing images, you
can tell FFMPEG to load a list of filenames. This has to be in a
particular 1 or 2-line format (if including  image duration).

For example, I've deleted the first 83 images, substituted a
Replacement.png, and the remaining image names jump by 3. Then I created
a list of filenames.

To create such a list in Windows, I use create_list.bat, here designed
to look in the "Sequence Directory", beneath the current directory
("C:\test directory"), where the images files are situated, create a
2-line name-sorted list where the 2nd line is the duration in secs (1
frame at 25fps = 40ms), and then load this list in the associated text
editor so you can delete or move blocks, change durations etc., if required.

@echo off
SETLOCAL EnableDelayedExpansion
if exist mylist.txt del mylist.txt
for %%I in ("Sequence Directory\*.png") do (echo file '%%~fI' >>
mylist.txt & echo duration 0.04 >> mylist.txt)  
start /i mylist.txt

The first 4 files in the list:

file 'C:\test directory\Sequence directory\Replacement.png' 
duration 0.04
file 'C:\test directory\Sequence directory\Sequence_0083.png' 
duration 0.04
file 'C:\test directory\Sequence directory\Sequence_0086.png' 
duration 0.04
file 'C:\test directory\Sequence directory\Sequence_0089.png' 
duration 0.04

If you decrease the duration below 0.04 @25fps FFMPEG will start to drop
frames. Conversely, if you go above 0.04, it will start to replicate frames.

To use this list:

ffmpeg.exe -f concat -safe 0 -i "C:\test directory\mylist.txt" -maxrate
3k -y "C:\test directory\Sequence directory"\map_video6.mpg


Dan.











*
*

___
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] Building under MSVC '17

2019-12-01 Thread Dan Wlodarski
Looking for guidance on building FFMPEG from GitHub source — tag n4.2.1 —
under Microsoft Visual Studio 2017 running on Win10. The following
directions:

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

result in a test of MSVC's linker failing, reporting that the multithread
static library cannot be found.

A redacted version of the generated config.log can be found here:

https://drive.google.com/open?id=1wp6lc8YWG56Jxb_UbABB2cgb82L4lOVu

Any recommendations would be appreciated.

Sincerely,
Dan C. Wlodarski
--
An Irish philosophy: "In life, there are only two things to worry about..."
___
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] Convert EXR image seqs with multiple channels [AOVs] to a Quicktime

2019-07-03 Thread Dan Walker
Hello,

I'm trying to convert a set of EXR image sequences with multiple channels
[AOVs] rendered out of Houdini to a Quicktime.  The flavor of QT doesn't
concern me at the moment.

I'm just looking for a way around this. Below is my current command line
and errors associated with trying to perform the conversion.

Thanks for any help you can provide.

[dwalker@rf04 v002]$ /usr/bin/ffmpeg -y -threads 64 -r 24 -i
"/Volumes/Output/projects/groveAD/locations/ext2/opt2/004-cam09-dsk/fx/work/houdini/renders/micro/micro/v002/groveAD_ext2_opt2_004-cam09-dsk_fx_micro_v002.%04d.exr"
 -c:v prores -profile:v 3 -acodec pcm_s16le -pix_fmt yuv422p10le
"/Volumes/Output/projects/groveAD/locations/ext2/opt2/004-cam09-dsk/fx/wo
rk/houdini/renders/micro/micro/v002/groveAD_ext2_opt2_004-cam09-dsk_fx_micro_v002.mov"

ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/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' --enable-bzlib --disable-crystalhd --enable-gnutls
--enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394
--enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus
--enable-libpulse --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab
--enable-avfilter --enable-avresample --enable-postproc --enable-pthreads
--disable-static --enable-shared --enable-gpl --disable-debug
--disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil  54. 20.100 / 54. 20.100
  libavcodec 56. 26.100 / 56. 26.100
  libavformat56. 25.101 / 56. 25.101
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
[exr @ 0x1e25f60] Unsupported channel N.x.
[exr @ 0x1e25f60] Unsupported channel N.y.
[exr @ 0x1e25f60] Unsupported channel N.z.
[exr @ 0x1e25f60] Unsupported channel P.x.
[exr @ 0x1e25f60] Unsupported channel P.y.
[exr @ 0x1e25f60] Unsupported channel P.z.
[exr @ 0x1e25f60] RGB channels not of the same depth.
[image2 @ 0x1e25140] decoding for stream 0 failed
[image2 @ 0x1e25140] Could not find codec parameters for stream 0 (Video:
exr, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
/Volumes/Output/projects/groveAD/locations/ext2/opt2/004-cam09-dsk/fx/work/houdini/renders/micro/micro/v002/groveAD_ext2_opt2_004-cam09-dsk_fx_micro_v002.%04d.exr:
could not find codec parameters
Input #0, image2, from
'/Volumes/Output/projects/groveAD/locations/ext2/opt2/004-cam09-dsk/fx/work/houdini/renders/micro/micro/v002/groveAD_ext2_opt2_004-cam09-dsk_fx_micro_v002.%04d.exr':
  Duration: 00:00:09.56, start: 0.00, bitrate: N/A
Stream #0:0: Video: exr, none, 25 tbr, 25 tbn, 25 tbc
Codec AVOption profile () specified for output file #0
(/Volumes/Output/projects/groveAD/locations/ext2/opt2/004-cam09-dsk/fx/work/houdini/renders/micro/micro/v002/groveAD_ext2_opt2_004-cam09-dsk_fx_micro_v002.mov)
has not been used for any stream. The most likely reason is either wrong
type (e.g. a video option with no video streams) or that it is a private
option of some encoder which was not actually used for any stream.
Output #0, mov, to
'/Volumes/Output/projects/groveAD/locations/ext2/opt2/004-cam09-dsk/fx/work/houdini/renders/micro/micro/v002/groveAD_ext2_opt2_004-cam09-dsk_fx_micro_v002.mov':
Output file #0 does not contain any stream
___
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] scratch start ffmpeg > mpeg-dash multi encode

2019-04-14 Thread dan
I originally posted a script I was trying to use but I'm just not able
to get it to work.  Some politics on this mailing list that I can't
give any useful input too caused me to delay follow ups

Here's what I need to do :

I have a stream, it's either an http stream from an hdhomerun, or it's
an rtsp stream from a security camera.  I need to transcode that
stream for mpeg-dash, probably into 3 streams.  I have an nvidia
jetson nano on it's way and plan to use nvenc for h264 or h265.   It's
a maxwell gen2 with hardward support for 4 1080p h.264/5 encodes.
Unfortunately no VP9 encoding.

I can't seem to wrap my head around the maps and demuxing audio etc in
a single command and pushing output to a .hdr header file and .chk
chunk files.

Would someone be able to give me a very basic command to take this
input, encode it to 2 video and 1 audio stream?  If I have a
functional version I think I can reverse engineer it and understand
better.

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

Re: [FFmpeg-user] mpeg-dash encoding help

2019-04-12 Thread dan
le:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
Exiting normally, received signal 2.

On Fri, Apr 12, 2019 at 12:02 PM Carl Zwanzig  wrote:
>
> On 4/12/2019 10:55 AM, dan wrote:
> > What I have so far is below.
>
> Please post the entire output of the command, it's needed to know what the
> command is doing. Also, if you aren't using a very recent version of ffmpeg,
> please get one; old ones don't get much support.
>
> 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 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] mpeg-dash encoding help

2019-04-12 Thread dan
I'm trying to encode a stream to mpeg-dash live.

What I have so far is below.  I only have 1 video stream here but
eventually I'd have 3-4.  Also, my testbed is a raspberry pi (see
g264_omx) but I'll be moving this to an nvidia jetson nano w/ a
maxwell gpu and nvenc.

With this, I can use shaka-player to start video only playback but it
only plays 1 chunk and then shows a spinning wait.

Ultimate goal, transcode an http or rtsp video to mpeg-dash and serve
that up via apache.  I want h265 once I get the jetson board w/
hardware encode also, which I why I'm trying to get dash working vs
the HLS streams I'm currently using that work with h.264.

Thanks for any help in advance.

(note, the test source here is an hdhomerun)

ffmpeg \
-y \
-i http://10.39.40.169:5004/auto/v16.1?transcode=mobile \
-vcodec h264_omx \
-keyint_min 0 \
-g 100 \
-map 0:0 \
-b:v 1000k \
-map 0:1 \
-c:a copy \
-f dash \
-min_seg_duration 4000 \
-use_template 1 \
-use_timeline 0 \
-init_seg_name \
init-\$RepresentationID\$.mp4 \
-media_seg_name \
video-\$RepresentationID\$-\$Number\$.mp4 \
-remove_at_exit 1 \
-window_size 20 \
v.mpd
___
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] Can't get -i mylist.txt working under Windows 10

2019-03-29 Thread Dan Bridges
Trying to concatenate some mp4 files. All the same (just copies of the
same test files).

myfile.txt contains:

Sequence_.mp4
Sequence_0001.mp4
Sequence_0002.mp4


As per https://trac.ffmpeg.org/wiki/Concatenate

Test cmd line:

ffmpeg -f concat -safe 0 -i mylist.txt -c copy combined.mp4


Output:

ffmpeg version N-93434-g7366174086 Copyright (c) 2000-2019 the FFmpeg
developers
  built with gcc 8.3.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-autodetect --enable-amf --enable-bzlib
--enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2
--enable-iconv --enable-lzma --enable-nvenc --enable-schannel
--enable-zlib --enable-sdl2 --disable-debug --enable-ffnvcodec
--enable-nvdec --enable-gmp --enable-libmp3lame --enable-libopus
--enable-libvorbis --enable-libx264 --enable-libdav1d
--extra-libs=-liconv --enable-gpl --enable-version3
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 47.105 / 58. 47.105
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter 7. 48.100 /  7. 48.100
  libswscale  5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[concat @ 01f267407b40] Line 1: unknown keyword 'Sequence_.mp4'
mylist.txt: Invalid data found when processing input


Also occurring when there are single  or double inverted commas around
filenames in mylist.txt.  Is this doable under Windows?

Dan.



___
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 use ffprobe with Windows7

2018-11-22 Thread Dan Bridges
On 22/11/2018 7:00 PM, Michael Koch wrote:
>
>> Yes, open CMD,then drag and drop the batch file into the terminal window
>> and press Enter.
>> Or just run ffprobe directly in the terminal.
>
> I was looking for a faster solution, without having to write video's
> name and path into the batch file, or into the CMD window. Just drag
> and drop and then I'd like to see the output of ffprobe.

The fastest solution is to create a shortcut icon on your desktop with
this target line:

C:\Windows\System32\cmd.exe /K ffprobe

This assumes ffprobe.exe is in your executable PATH list. Otherwise,
fully specially the path to it e.g

C:\Windows\System32\cmd.exe /K C:\ffmpeg\ffprobe

You can then drag your MP4 on to this icon Which you could call "Run
ffprobe".

The /K switch will keep the command prompt window open afterwards.
You can type EXIT to close it.

Alternately, change your "Run ffprobe.bat" batchfile to this:

@echo off
c:\ffmpeg\ffprobe %1
pause

The %1 takes the name of the filename you drag-and-drop onto the
batchile icon, if running from the desktop, or type after the batchfile,
if operating from the CLI.
Then, drag your MP4 on to this icon, and press Enter to close the window
when finished.

Dan.
___
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] AAC mpeg2_aac_low profile and ADTS header question

2018-09-20 Thread Dan Lee
Hello ffmpeg users,

I’m having some trouble transcoding audio to mpeg2 aac. I’d like to know if 
someone could help me get the desired result or understand this issue more 
clearly.

After reading the ffmpeg document I thought setting the aac profile to 
mpeg2_aac_low would transcode audio into mpeg2 
aac(https://ffmpeg.org/ffmpeg-all.html#Options-6 
). I expected the id field(first 
bit after 3byte sync word) of the adts headers in the file to have value 1 
instead of 0, which indicates whether it’s mpeg 2 or 
4(https://wiki.multimedia.cx/index.php/ADTS 
 - The bit represented as the letter 
B). And this goes the same with when setting the profile to mpeg2_aac_he.

According to the source code(adtsenc.c) it seems like the bit is always written 
as cleared, so I doubt the possibility of getting the desired result but I want 
to know if

1. My expectation is based on a false assumption
2. My expectation is based on a valid assumption and
  2.a It is a ffmpeg bug or should be fixed one day.
  2.b Since mpeg2 is the superset of mpeg4 it really doesn’t matter these days 
because most decoders support mpeg4.
  2.c There is a way in achieving the desired result with current version of 
ffmpeg
3. I am extracting the adts header incorrectly and everything must be carefully 
evaluated again

Suppose the following is the command for the purpose of demonstrating the 
problem I am having.

ffmpeg -y -i BigBuckBunny_320x180.mp4 -to 00:00:10 \
   -map a:0 -c:a aac -profile:a mpeg2_aac_low -aac_pns 0 -b:a 128k -ar 48k \
   mpeg2_aac_low.aac \
   -map a:0 -c:a aac -profile:a mpeg2_aac_he -aac_pns 0 -b:a 128k -ar 48k \
   mpeg2_aac_he.aac

The attachments are the resulting output files and the following is the output 
that ffmpeg gives me.

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared 
--enable-pthreads --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang 
--host-cflags='-I/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/include
 
-I/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/include/darwin'
 --host-ldflags= --enable-gpl --enable-chromaprint --enable-ffplay 
--enable-frei0r --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --enable-libfdk-aac --enable-libfontconfig 
--enable-libfreetype --enable-libgme --enable-libgsm --enable-libmodplug 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenh264 --enable-libopus --enable-librsvg --enable-librtmp 
--enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtesseract --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-libzimg --enable-libzmq --enable-opencl --enable-videotoolbox 
--enable-openssl --enable-libsrt --enable-lzma --enable-libopenjpeg 
--disable-decoder=jpeg2000 
--extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 
--enable-nonfree
  libavutil  56. 14.100 / 56. 14.100
  libavcodec 58. 18.100 / 58. 18.100
  libavformat58. 12.100 / 58. 12.100
  libavdevice58.  3.100 / 58.  3.100
  libavfilter 7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc55.  1.100 / 55.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BigBuckBunny_320x180.mp4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: mp41
creation_time   : 1970-01-01T00:00:00.00Z
title   : Big Buck Bunny
artist  : Blender Foundation
composer: Blender Foundation
date: 2008
encoder : Lavf52.14.0
  Duration: 00:09:56.46, start: 0.00, bitrate: 867 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), 
yuv420p, 320x180 [SAR 1:1 DAR 16:9], 702 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc 
(default)
Metadata:
  creation_time   : 1970-01-01T00:00:00.00Z
  handler_name: VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 159 kb/s (default)
Metadata:
  creation_time   : 1970-01-01T00:00:00.00Z
  handler_name: SoundHandler
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> aac (native))
  Stream #0:1 -> #1:0 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, adts, to 'mpeg2_aac_low.aac':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: mp41
date: 2008
title   : Big Buck Bunny
artist  : Blender Foundation
  

[FFmpeg-user] Request: Older Android version & automation issue.

2018-06-21 Thread Dan French
For compatibility reasons, I need to get the older version of ffmpeg for 
Android.


Can someone provide me with a location/binary of V 0.97.5 (so I can go through 
the fun of installing it)?



Sincerely,


Dan French




___
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] Big Endian Format

2018-05-23 Thread Dan Shamir
ס

On Wed, May 23, 2018, 3:40 PM Carl Eugen Hoyos  wrote:

> 2018-05-22 19:51 GMT+02:00, JD :
>
> > Have a dvd which turns out to be coded in big endian.
> > I copied it to hard drive for backup (using dd), but
> > it turns out that of all the *nux players, only VLC
> > can play big endian format iso's.
> > So, is there a way to convert the iso file to little endian format?
>
> FFmpeg does not read iso files, only program streams
> as for example made with mplayer -dumpstream dvd://
>
> I don't understand what a "big endian dvd" could be:
> Could you provide a sample?
>
> Carl Eugen
> ___
> 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".

-- 


*
*

*
*

*This email and any files transmitted with it contain

information from Idomoo which may be privileged and confidential and

intended solely for the use of the addressee. If you are not the intended

recipient, be aware that any disclosure, copying, distribution or use of 
the
contents of this information is strictly prohibited; please notify us

immediately by** **an **email reply and delete it from your system. Idomoo

accepts no liability for any personal views or opinions expressed in this

email. Email transmission cannot be guaranteed to be secure or error-free.

Idomoo therefore is not liable for any errors or omissions in the contents 
of
this message, which arise as a result of email transmission.*
___
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] Replacing an audio stream in an MP4

2018-05-06 Thread Dan Bridges
I'm a heavy user of the Vegas 12 video editor. I record junior soccer
matches with 2 cameras and two extra ext. sound recorders. Sometimes I
notice a mixing balance problem in a rendered MP4 and need just to
replace a remixed version of the audio stream in the MP4. Vegas won't
output just a raw AAC file. But it will output a MP4 containing just the
audio.

So what I want to do is create a Windows desktop icon of a batchfile
where I can drag-and-drop an affected MP4. The batchfile will then look
for the presence of "replacement.mp4", the AAC-only MP4,  in the same
directory as the affected MP4. (I'll always use the same name for the
fixed audio file.)  If found, it will then perform the following
sequence of FFMPEG commands (using "test.mp4" as an example of an 
AVC+AAC MP4 which needs to have its audio stream replaced):

ffmpeg -i test.mp4 -an -c:v copy  test.h264
ffmpeg -i replacement.mp4 -vn -c:a copy replacement.aac
ffmpeg -i test.h264 -i replacement.aac -c copy test_replacement.mp4

The compression formats and stream indices will always be the same so I
don't need to do any checking for that.

1. Is this the most efficient way to perform this task?  Could I mux the
AVC stream in test.mp4 with the AAC stream in replacement.mp4 without
first demuxing them. That is, could this all be performed in one FFMPEG
command?

2. I get these warnings during the muxing:

"Timestamps are unset in a packet for stream 0. This is deprecated and
will stop working in the future. Fix your code to set the timestamps
properly" 

and a lot of "pts has no value". The audio appears to be in sync in the
18 minute clip I produced, so I don't think these warning are
significant here. What do you think?

1 minutes versions of test.mp4 (720p50) and replacement.mp4 are
available here:

https://dl.dropboxusercontent.com/s/z7a7dh1dgqohx17/test.mp4
https://dl.dropboxusercontent.com/s/s6cax255fugc3ny/replacement.mp4

Dan.








___
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] Effects of -bufsize

2018-03-25 Thread Dan Norton
During stream copy, if inputs and output are on the same disk, I notice
that although speed starts high, it eventually settles to a much lower
value. Does the value specified for -bufsize have a copying speed
benefit if input and output are on the same disk?

 - Dan
___
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] concat Missing part2.mov

2018-03-25 Thread Dan Norton
On Sat, 24 Mar 2018 18:43:35 -0800
Lou Logan  wrote:

> On Sat, Mar 24, 2018, at 3:10 PM, Dan Norton wrote:
> > I have two .mov files which were made on Debian 9 by running the
> > following:
> > 
> > $ ffmpeg -y -i "Norton 8mm Reel 04.mov" -ss 00:00:00 -to 00:20:00 -c
> > copy -bufsize 2048K part1.mov 
> > $ ffmpeg -y -ss 00:21:12 -i "Norton 8mm Reel 04.mov" -c copy
> > -bufsize 2048K part2.mov
> > 
> > Viewed individually part1 and part2 are OK. When I tried to
> > concatenate them, the output is missing part2. Here's what I did:
> > 
> > $ ffmpeg -i "concat:part1.mov|part2.mov" -c copy
> > out.mov   
> 
> The concat protocol is too simplistic for this format. It can only be
> used with inputs that support file level concatenation.
> 
> Use the concat demuxer instead.
> 
> https://ffmpeg.org/ffmpeg-formats.html#concat-1
> https://trac.ffmpeg.org/wiki/Concatenate#demuxer
> ___

OK, I made "filelist" in the same directory as the videos, containing:
file 'part1.mov'
file 'part2.mov'

...and ran:
$ ffmpeg -y -f concat -i filelist -c copy out.mov

...which produced the desired result, despite two warning messages:

[concat @ 0x5615412aad80] Could not find codec parameters for stream 1
(Unknown: none): unknown codec Consider increasing the value for the
'analyzeduration' and 'probesize' options

[mov @ 0x5612acdcad80] Non-monotonous DTS in output stream 0:0;
previous: 14385600, current: 14385600; changing to 14385601. This may
result in incorrect timestamps in the output file.

Thanks, Lou.
___
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] concat Missing part2.mov

2018-03-24 Thread Dan Norton
I have two .mov files which were made on Debian 9 by running the
following:

$ ffmpeg -y -i "Norton 8mm Reel 04.mov" -ss 00:00:00 -to 00:20:00 -c
copy -bufsize 2048K part1.mov 
$ ffmpeg -y -ss 00:21:12 -i "Norton 8mm Reel 04.mov" -c copy -bufsize
2048K part2.mov

Viewed individually part1 and part2 are OK. When I tried to concatenate
them, the output is missing part2. Here's what I did:

$ ffmpeg -i "concat:part1.mov|part2.mov" -c copy
out.mov 
ffmpeg version 3.2.10-1~deb9u1 Copyright (c) 2000-2018 the
FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libebur128 --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-libopenmpt --enable-libopus
--enable-libpulse --enable-librubberband --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx
--enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394
--enable-libiec61883 --enable-chromaprint --enable-frei0r
--enable-libopencv --enable-libx264 --enable-shared libavutil  55.
34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101
libavformat57. 56.101 / 57. 56.101 libavdevice57.  1.100 / 57.
1.100 libavfilter 6. 65.100 /  6. 65.100 libavresample   3.  1.
0 /  3.  1.  0 libswscale  4.  2.100 /  4.  2.100 libswresample
2.  3.100 /  2.  3.100 libpostproc54.  1.100 / 54.  1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b324506d80] Found duplicated MOOV Atom.
Skipped it Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'concat:part1.mov|part2.mov': Metadata: encoder : Lavf57.56.101
major_brand : qt minor_version   : 512 compatible_brands: qt
Duration: 00:20:00.00, start: 0.00, bitrate: 313526 kb/s Stream
#0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(top coded
first (swapped)), 1920x1080, 205645 kb/s, SAR 1:1 DAR 16:9, 29.97 fps,
29.97 tbr, 11988 tbn, 11988 tbc (default) Metadata: handler_name:
DataHandler encoder : Apple ProRes 422 (HQ) timecode:
00:00:00;00 Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata:
handler_name: DataHandler timecode: 00:00:00;00 File
'out.mov' already exists. Overwrite ? [y/N] y Output #0, mov, to
'out.mov': Metadata: compatible_brands: qt major_brand : qt
minor_version   : 512 encoder : Lavf57.56.101 Stream #0:0(eng):
Video: prores (apch / 0x68637061), yuv422p10le(top coded first
(swapped)), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 205645 kb/s, 29.97
fps, 29.97 tbr, 11988 tbn, 11988 tbc (default) Metadata:
handler_name: DataHandler encoder : Apple ProRes 422 (HQ)
timecode: 00:00:00;00 Stream mapping: Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=35964 fps= 57 q=-1.0 Lsize=30124305kB time=00:19:59.96
bitrate=205654.3kbits/s speed=1.91x video:30123882kB audio:0kB
subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
0.001403%
___
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] mpeg2video encode gop structure

2018-03-14 Thread Dan Bridges
On 14/03/2018 1:37 PM, 冯良怀 wrote:
> ffmpeg.exe -i L:\input.mp4 -vcodec mpeg2video -g 12 -bf 2 -flags +cgop 
> -sc_threshold 10 -y L:\output.m2v

I tried this.  I used the following ffprobe line:

ffprobe -v quiet  -select_streams v  -of csv -show_frames -show_entries
frame=pict_type,coded_picture_number  -read_intervals %+#24 output.m2v >
test.txt

1. Here is the order of frames before sorting. I presume this is how
they're stored in the stream.

I    B    B    P    B    B    P    B    B    P    I    B    B    P   
B    B    P    B    B    P    I    B    B    P


2. Here  is the order of frames after sorting on coded_picture_number. I
presume this is the order the frames need to be decoded in:

I    P    B    B    P    B    B    P    B    B    I    P    B    B   
P    B    B    P    B    B    I    P    B    B


When discussing GOP structure, which order is used?


Dan.

___
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] ffmpeg support for color encoding conversion?

2018-02-02 Thread Dan Edwards
 Hey all,

I am looking for an alternate solution to avconv on a Raspberry Pi setup
running RetroPie.

Have been trying to use it to convert some videos in the color format
yuv444p to yuv420p which is needed for a hardware accelerated video
playback feature in RetroPie.

But avconv will often crash out with

Error in `avconv': realloc(): invalid next size

Does ffmpeg support Linux and if so does it support such a conversion
method?
___
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] MTS to MP4 lossless conversion issues

2017-07-10 Thread Dan Bridges
I too get

*track 1: codec frame size is not set* with 1080p60 .MTS media when
remuxed as .MP4 But VLC shows the converted .MP4 as 60p (59.94Hz).
Tested with Win64 FFMPEG version N-86504-gc557718bea and VLC 2.2.6

Dan.

___
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] How to convert 1 video type to another based on -i

2017-06-30 Thread Dan Violet Sagmiller
I have a video player with poor documentation.  I have one video that works 
(that came with a demo).

Is there any documentation that makes it easy to look at the info from one 
video and convert another video to match it’s codec/audio?

I’m relatively new to using ffmpeg.

This is from the working video (A):
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, 
fltp, 65 kb/s (default)
Metadata:
  creation_time   : 2010-02-09T01:55:39.00Z
  handler_name: Apple Sound Media Handler
Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), 
yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 612 kb/s, 23.96 fps, 24 tbr, 
600 tbn, 1200 tbc (default)


This is from the one that doesn’t work (B):
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 
3840x1920 [SAR 1:1 DAR 2:1], 60520 kb/s, 30.03 fps, 30 tbr, 15360 tbn, 60 tbc 
(default)
Metadata:
  handler_name: VideoHandler
Side data:
  spherical: equirectangular (0.00/0.00/0.00)
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 193 kb/s (default)

I want to figure out the right switches for this case, but also like to figure 
a better way to figure this out.  😊


  *   Thanks.  (I apologize if this is the wrong contact group, but it seemed 
the best I could find after searching a while)
___
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] ffmpeg does plays only one essence in quicktime reference conversion

2017-05-26 Thread Dan Ionescu
60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00

Output #0, mp4, to 'test.mp4':

  Metadata:

major_brand : qt

minor_version   : 537199360

compatible_brands: qt

timecode: 01:00:00:00

comment : Source ID =
060a2b340101010101010f00-13-00-00-00-{59271bed-5179-0018-060e2b347f7f2a80}

comment-eng : Source ID =
060a2b340101010101010f00-13-00-00-00-{59271bed-5179-0018-060e2b347f7f2a80}

encoder : Lavf56.40.101

Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
(default)

Metadata:

  creation_time   : 2017-05-25 19:04:16

  handler_name: Apple Alias Data Handler

  encoder : Lavc56.60.100 libx264

Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo,
fltp, 128 kb/s (default)

Metadata:

  creation_time   : 2017-05-25 19:04:16

  handler_name: Apple Alias Data Handler

  encoder : Lavc56.60.100 aac

Stream mapping:

  Stream #0:1 -> #0:0 (dnxhd (native) -> h264 (libx264))

  Stream #0:0 -> #0:1 (pcm_s16be (native) -> aac (native))

Press [q] to stop, [?] for help

frame=  144 fps= 28 q=-1.0 Lsize=1701kB time=00:00:05.95
bitrate=2340.9kbits/s

video:1602kB audio:94kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.325520%

[libx264 @ 0x1c8b780] frame I:3 Avg QP:20.55  size: 42916

[libx264 @ 0x1c8b780] frame P:75Avg QP:21.30  size: 16263

[libx264 @ 0x1c8b780] frame B:66Avg QP:23.50  size:  4410

[libx264 @ 0x1c8b780] consecutive B-frames: 23.6% 41.7% 12.5% 22.2%

[libx264 @ 0x1c8b780] mb I  I16..4: 41.7% 48.0% 10.2%

[libx264 @ 0x1c8b780] mb P  I16..4:  7.5% 12.9%  0.5%  P16..4: 27.9%  6.1%
2.3%  0.0%  0.0%skip:42.7%

[libx264 @ 0x1c8b780] mb B  I16..4:  0.2%  0.5%  0.0%  B16..8: 27.0%  2.1%
0.3%  direct: 0.7%  skip:69.1%  L0:36.0% L1:59.6% BI: 4.4%

[libx264 @ 0x1c8b780] 8x8 transform intra:59.6% inter:85.6%

[libx264 @ 0x1c8b780] coded y,uvDC,uvAC intra: 37.0% 19.8% 0.6% inter: 9.3%
5.5% 0.0%

[libx264 @ 0x1c8b780] i16 v,h,dc,p: 17% 58%  6% 19%

[libx264 @ 0x1c8b780] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 24% 34%  3%  3%  3%
3%  3%  4%

[libx264 @ 0x1c8b780] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 66%  9%  2%  2%  2%
2%  2%  3%

[libx264 @ 0x1c8b780] i8c dc,h,v,p: 72% 16% 11%  1%

[libx264 @ 0x1c8b780] Weighted P-Frames: Y:2.7% UV:1.3%

[libx264 @ 0x1c8b780] ref P L0: 67.4% 15.4% 12.7%  4.5%  0.0%

[libx264 @ 0x1c8b780] ref B L0: 91.0%  8.4%  0.6%

[libx264 @ 0x1c8b780] ref B L1: 97.8%  2.2%

[libx264 @ 0x1c8b780] kb/s:2277.16

Exiting normally, received signal 2.

 

Thank you so much for reading. Any help will be greatly appreciated.

 

BR++,

Dan

___
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] Optimizing ProRes speed on a MacPro Trashcan

2017-01-12 Thread Dan Elortegui
I've written an applescript to take media files off of XDCam cards, rename
them, process them as ProRes and then send them off to our media management
system.  The problem is that there is a step where I have to drop them in a
ProRes watchfolder for them to be processed by Adobe Media Encoder.  This
requires setting up watchfolder settings on each computer.  I'd love to
handle that encode inside my script via FFmpeg.  The issue I've run into is
that Media encoder is almost twice as fast as FFmpeg when creating a
ProRes.  So I'm wondering, are there any ways to speed up the ProRes encode
with flags?  Does quicksync work for ProRes?  I've got AMD FirePro D500
cards.  Any thoughts are appreciated!
___
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] Optimizing ProRes speed on a MacPro Trashcan

2017-01-12 Thread Dan Elortegui
I've written an applescript to take media files off of XDCam cards, rename
them, process them as ProRes and then send them off to our media management
system.  The problem is that there is a step where I have to drop them in a
ProRes watchfolder for them to be processed by Adobe Media Encoder.  This
requires setting up watchfolder settings on each computer.  I'd love to
handle that encode inside my script via FFmpeg.  The issue I've run into is
that Media encoder is almost twice as fast as FFmpeg when creating a
ProRes.  So I'm wondering, are there any ways to speed up the ProRes encode
with flags?  Does quicksync work for ProRes?  I've got AMD FirePro D500
cards.  Any thoughts are appreciated!
___
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] ffmpeg reading from pipe selecting frames

2016-12-05 Thread Dan Shamir
hi
here is my problem
im reading raw nv12 frames from a pipe with this command:
ffmpeg   -f rawvideo -pixel_format nv12 -s 1280x720  -i ppp  -ss 0 -t 1
-f rawvideo -pixel_format nv12 -s 1280x720   -i ppp  -ss 3 -t 1  -c:v
libx264   -bf 2 -refs 4  -qmin 25 -qmax 25 -movflags +faststart -c:a aac -r
25 -g 25 -f mp4 xxx.mp4

im trying to read 1 sec of frames and then read more from sec 3 to 4
ffmpe seems to close the pipe or stop on the firts input
any way to tell ffmpe to read and use onely selected parts from multiple
inputs or event the same pipe?

example:
writing 100 frames to pipe
first input is frames from 0-10 and then seconde input is 20-30
and get an mp4 with 20 frames total?
any help please?


-- 


Dan shamir
Director of Graphic Technology

*d...@idomoo.com *



[image: idomoo_logo_moving people NEW email signature]
<http://www.idomoo.com/>

-- 




*This email and any files transmitted with it contain information from 
Idomoo which may be privileged and confidential and intended solely for the 
use of the addressee. If you are not the intended recipient, be aware that 
any disclosure, copying, distribution or use of the contents of this 
information is strictly prohibited; please notify us immediately by* *an 
**email 
reply and delete it from your system. Idomoo accepts no liability for any 
personal views or opinions expressed in this email. Email transmission 
cannot be guaranteed to be secure or error-free. Idomoo therefore is not 
liable for any errors or omissions in the contents of this message, which 
arise as a result of email transmission.*
___
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] Filter chain query

2016-11-04 Thread Dan Bridges
Instead of

-vf file1,filter2

can I use

-vf filter1  -vf filter2?  

I'm creating a FFMPEG command line based on EVs, with filtering based on
the values of VOutputFrameSize and VFilter EVs.


Dan.
___
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] [Frei0r] Can't use some frei0r effects on Windows (through FFmpeg)

2016-04-07 Thread Dan Dennedy
Hey Bohdan,
Those 2 filters work for me using the frei0r plugin DLLs that come with
Shotcut.
set FREI0R_PATH=C:\Program Files\Shotcut\lib\frei0r-1

It seems to be a problem with the versions you build/downloaded.

On Wed, Apr 6, 2016 at 2:41 AM Bohdan Prokopovych <
bohdan.prokopov...@teamvoy.com> wrote:

> Hi.
>
> I'm using FFmpeg with frei0r library enabled, and everything works just
> fine except several effects.
> I can't make Cartoon and Edgeglow effects to work. Lot of other works ok,
> except these two. I hit this issue only on Windows, everything is ok on OS
> X.
>
> There is some problem in my cartoon.dll and edgeglow.dll files — FFmpeg
> just don't see them in my FREI0R_PATH variable.
>
> I'll provide FFmpeg output for cartoon effect. As I can see FFmpeg looks
> for cartoon.dll in my FREI0R_PATH and can't see it there (but it's there).
> This problem happenes only with cartoon and edgeglow. All the rest frei0r
> effects which where compiled in the same way and are located in the same
> folder works as expected.
>
> Thanks for help.
>
> ---
>
> My FFmpeg command:
>
>> -v debug -i C:\path\to\input.mp4 -vf frei0r=filter_name=cartoon -pix_fmt 
>> yuva420p -y -codec:v libx264 -strict -2 C:\path\to\output.mp4
>>
>>
> FFmpeg output:
>
>> ffmpeg version N-76262-g2ccc1b3 Copyright (c) 2000-2015 the FFmpeg 
>> developers  built with gcc 5.2.0 (GCC)  configuration: --enable-gpl 
>> --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib 
>> --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv 
>> --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
>> --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm 
>> --enable-libilbc --enable-libmodplug --enable-libmp3lame 
>> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
>> --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr 
>> --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab 
>> --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis 
>> --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
>> --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma 
>> --enable-decklink --enable-zlib  libavutil  55.  4.100 / 55.  4.100  
>> libavcodec 57.  9.100 / 57.  9.100  libavformat57. 11.100 / 57. 
>> 11.100  libavdevice57.  0.100 / 57.  0.100  libavfilter 6. 13.100 /  
>> 6. 13.100  libswscale  4.  0.100 /  4.  0.100  libswresample   2.  0.100 
>> /  2.  0.100  libpostproc54.  0.100 / 54.  0.100Input #0, 
>> mov,mp4,m4a,3gp,3g2,mj2, from 'C:\path\to\input.mp4':  Metadata:
>> major_brand : isomminor_version   : 512compatible_brands: 
>> isomiso2avc1mp41encoder : Lavf56.40.101  Duration: 00:00:10.04, 
>> start: 0.036281, bitrate: 1193 kb/sStream #0:0(und), 1, 1/15360: Video: 
>> h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 
>> [SAR 1:1 DAR 16:9], 1/60, 1061 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc 
>> (default)Metadata:  handler_name: VideoHandlerStream 
>> #0:1(und), 2, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, 
>> stereo, fltp, 128 kb/s (default)Metadata:  handler_name: 
>> SoundHandlerSuccessfully opened the file.Parsing a group of options: output 
>> file C:\path\to\output.mp4.Applying option vf (set video filters) with 
>> argument frei0r=filter_name=cartoon.Applying option pix_fmt (set pixel 
>> format) with argument yuva420p.Applying option codec:v (codec name) with 
>> argument libx264.Successfully parsed a group of options.Opening an output 
>> file: C:\path\to\output.mp4.Successfully opened the file.detected 4 logical 
>> cores[Parsed_frei0r_0 @ 0371dbe0] compat: called with 
>> args=[filter_name=cartoon][Parsed_frei0r_0 @ 0371dbe0] Setting 'filter_name' 
>> to value 'cartoon'[Parsed_frei0r_0 @ 0371dbe0] Looking for frei0r effect in 
>> 'C:\Users\root\resources\frei0r/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] 
>> Looking for frei0r effect in 
>> '/usr/local/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking 
>> for frei0r effect in '/usr/lib/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 
>> 0371dbe0] Looking for frei0r effect in 
>> '/usr/local/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 0371dbe0] Looking 
>> for frei0r effect in '/usr/lib64/frei0r-1/cartoon.dll'.[Parsed_frei0r_0 @ 
>> 0371dbe0] Could not find module 'cartoon'.[AVFilterGraph @ 04cc7080] Error 
>> initializing filter 'frei0r' with args 'filter_name=cartoon'Error opening 
>> filters![AVIOContext @ 04daec60] Statistics: 0 seeks, 0 
>> writeouts[AVIOContext @ 0371e8a0] Statistics: 75284 bytes read, 2 seeks
>>
>>
> ___
> Frei0r mailing list - http://frei0r.dyne.org
> Free video plugins, minimal and cross-platform.
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/frei0r
>
_

[FFmpeg-user] Syncing multiple MKV streams

2015-08-23 Thread Dan Gordon
I have a multi stream MKV container with 4 synced mp4 videos (multi-angle
video). I need to be able to switch between the streams while maintaining
the timecode, i.e. frame by frame switch from one angle to the other one.

When I switch streams using "v" in ffplay, the switch occurs in real time;
however, the video jumps to the next i-frame (at least that is what it
looks like it is doing). Is there a way to switch streams while maintaining
the original stream's clock?

If there isn't a CLI solution to this problem can you point me to the
correct location to inquire about modifying the code for this purpose?

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


Re: [FFmpeg-user] trouble compiling ffmpeg...no yasm

2015-01-27 Thread Dan Mahoney


On 1/27/15 2:52 PM, Dan Mahoney wrote:
Download yasm from http://yasm.tortall.net/Download.html and install 
it. That error will then go away.


On 1/26/15 5:18 PM, Rich Headrick wrote:

Greetings,
I'm trying to install ffmpeg and I keep getting the following error 
at the command line:
[root@rheadric-linux ffmpeg]# ./configure --enable-gpl 
--enable-shared --enable-pthreads

yasm/nasm not found or too old. Use --disable-yasm for a crippled build.

If you think configure made a mistake, make sure you are using the 
latest
version from Git.  If the latest version fails, report the problem to 
the

ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will 
help

solve the problem.
[root@rheadric-linux ffmpeg]#
I have nasm installed, but not yasm.

I have also attached the config.log
Any help/advise is much appreciated,
--Rich



Oops - sorry for top posting.


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


Re: [FFmpeg-user] trouble compiling ffmpeg...no yasm

2015-01-27 Thread Dan Mahoney
Download yasm from http://yasm.tortall.net/Download.html and install it. 
That error will then go away.


On 1/26/15 5:18 PM, Rich Headrick wrote:

Greetings,
I'm trying to install ffmpeg and I keep getting the following error at the 
command line:
[root@rheadric-linux ffmpeg]# ./configure --enable-gpl --enable-shared 
--enable-pthreads
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
[root@rheadric-linux ffmpeg]#
I have nasm installed, but not yasm.

I have also attached the config.log
Any help/advise is much appreciated,
--Rich



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


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