[FFmpeg-user] can't set mpegts metadata

2021-09-03 Thread Alexander Machev
Hi, ffmpeg ignores my settings about these options - "service_name", "service_provider" and "service_type" and sets its default values instead. If I remove the -program option everything works fine, otherwise it won't. ffmpeg -y -i "L:\test.ts" -c copy -map 0 -map_metadata 0 -movflags

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Paul B Mahol
On Fri, Sep 3, 2021 at 8:54 PM Michael Koch wrote: > Am 03.09.2021 um 20:01 schrieb Reino Wijnsma: > > On 2021-09-03T16:25:50+0200, Michael Koch > wrote: > >> But if I write all in the FFmpeg command line, then it doesn't work: > >> > >> ffmpeg -loop 1 -i 1.png -loop 1 -i 2.png -lavfi

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 20:01 schrieb Reino Wijnsma: On 2021-09-03T16:25:50+0200, Michael Koch wrote: But if I write all in the FFmpeg command line, then it doesn't work: ffmpeg -loop 1 -i 1.png -loop 1 -i 2.png -lavfi sendcmd=c="0 [expr] streamselect map 'gte(mod(T,2),1)'",streamselect=map=0 -t 10

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Reino Wijnsma
On 2021-09-03T16:25:50+0200, Michael Koch wrote: > But if I write all in the FFmpeg command line, then it doesn't work: > > ffmpeg -loop 1 -i 1.png -loop 1 -i 2.png -lavfi sendcmd=c="0 [expr] > streamselect map 'gte(mod(T,2),1)'",streamselect=map=0 -t 10 -y out.mp4 > > Unable to parse graph

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Nicolas George
Michael Koch (12021-09-03): > ffmpeg -loop 1 -i 1.png -loop 1 -i 2.png -lavfi sendcmd=c="0 [expr] > streamselect map 'gte(mod(T,2),1)'",streamselect=map=0 -t 10 -y out.mp4 > > Unable to parse graph description... You need to put the proper amount of backslashes to protect the commas. I will

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 15:30 schrieb Paul B Mahol: sendcmd supports expressions. yes, but it's complicated and doesn't always work. rem   make two images for testing ffmpeg -f lavfi -i color=yellow -vf drawtext='text="1":fontcolor=red:fontsize=100:x=140:y=80' -frames 1 -y 1.png ffmpeg -f lavfi -i

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Paul B Mahol
On Fri, Sep 3, 2021 at 3:19 PM Michael Koch wrote: > Am 03.09.2021 um 15:09 schrieb Paul B Mahol: > > On Fri, Sep 3, 2021 at 3:07 PM Michael Koch > > > wrote: > > > >> Am 03.09.2021 um 14:21 schrieb Michael Koch: > >>> I have two video streams and want to toggle between them in 1 second > >>>

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 15:09 schrieb Paul B Mahol: On Fri, Sep 3, 2021 at 3:07 PM Michael Koch wrote: Am 03.09.2021 um 14:21 schrieb Michael Koch: I have two video streams and want to toggle between them in 1 second intervals. I did try this command: ffmpeg -i in1.mp4 -i in2.mp4 -lavfi

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Paul B Mahol
On Fri, Sep 3, 2021 at 3:07 PM Michael Koch wrote: > Am 03.09.2021 um 14:21 schrieb Michael Koch: > > I have two video streams and want to toggle between them in 1 second > > intervals. I did try this command: > > > > ffmpeg -i in1.mp4 -i in2.mp4 -lavfi streamselect=map='mod(t,2)' -t 30 > >

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 14:21 schrieb Michael Koch: I have two video streams and want to toggle between them in 1 second intervals. I did try this command: ffmpeg -i in1.mp4 -i in2.mp4 -lavfi streamselect=map='mod(t,2)' -t 30 out.mp4 This doesn't work because streamselect doesn't accept

[FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
I have two video streams and want to toggle between them in 1 second intervals. I did try this command: ffmpeg -i in1.mp4 -i in2.mp4 -lavfi streamselect=map='mod(t,2)' -t 30 out.mp4 This doesn't work because streamselect doesn't accept expressions. Who has an idea for a workaround? Thanks,

Re: [FFmpeg-user] Problem with console log

2021-09-03 Thread Adam Nielsen via ffmpeg-user
> So there isn’t a way to repair the master file? I know it's a 2008 MiniDV > captured. So it's old. Possibly there was some issue (e.g. dirty tape heads) when the camera recorded it so there's probably not much you can do to fix it. > I need to use the master file with other editing

Re: [FFmpeg-user] Problem with console log

2021-09-03 Thread Pier Mario Selva
Thanks a lot for the fast reply! So there isn’t a way to repair the master file? I know it's a 2008 MiniDV captured. So it's old. I need to use the master file with other editing applications.  Thanks for the advice Pier Mario Il giorno ven 3 set 2021 alle 11:28 Adam Nielsen ha scritto: > >

Re: [FFmpeg-user] Problem with console log

2021-09-03 Thread Adam Nielsen via ffmpeg-user
> I have the following problem: > I recently tested a MOV (codec DV) file that has the following console log > error > How can I fix this? The error means your file has some corruption but ffmpeg is able to cope with the problem. You can fix it by playing a file that isn't corrupted, or by using