Re: [FFmpeg-user] Question about merging audio and soundless video files

2019-03-05 Thread JD

OK.
Will do so as soon as I encounter the problem.


On 03/05/2019 02:05 PM, Lou Logan wrote:

On Tue, Mar 5, 2019, at 6:59 AM, JD wrote:

The audio file is recorded at bitrate 320k.
But after combining the audio and the video,
and running ffprobe, it shows that the audio
bitrate is 128k.
So, why would ffmpeg downgrade the audio bitrate?

Sounds like you re-encoded the audio using a default bitrate value instead of 
just re-muxing or re-encoding with your desired bitrate, but that is only a 
guess.

You should always include your actual commands and the complete console output 
from each command. You'll get answers instead of guesses. You'll get answers 
faster. People will be more inclined to reply.
___
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] Question about merging audio and soundless video files

2019-03-05 Thread Lou Logan
On Tue, Mar 5, 2019, at 6:59 AM, JD wrote:
> The audio file is recorded at bitrate 320k.
> But after combining the audio and the video,
> and running ffprobe, it shows that the audio
> bitrate is 128k.
> So, why would ffmpeg downgrade the audio bitrate?

Sounds like you re-encoded the audio using a default bitrate value instead of 
just re-muxing or re-encoding with your desired bitrate, but that is only a 
guess.

You should always include your actual commands and the complete console output 
from each command. You'll get answers instead of guesses. You'll get answers 
faster. People will be more inclined to reply.
___
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] [avi @ 0x9873ba0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1104 >= 1104 [avi @ 0x987d2a0] Application provided invalid, non monotonically

2019-03-05 Thread Carl Eugen Hoyos
2019-03-05 16:45 GMT+01:00, Michael Kohne :
> On Fri, Feb 22, 2019 at 7:31 AM Michael Kohne  wrote:
>
>> On Thu, Feb 21, 2019 at 9:35 AM Carl Eugen Hoyos 
>> wrote:
>>
>>> 2019-02-21 15:24 GMT+01:00, Michael Kohne :
>>> > ./ffmpeg -min_port 62000 -max_port 62004 -i rtsp://
>>> > 192.168.0.113/media/video1 -codec:v msmpeg4v2 -codec:a ac3 -ar 44100
>>> -map 0
>>> > -f tee "[f=avi]/data/vidtmp/one.avi|[f=avi]/data/vidtmp/two.avi" >
>>> > /data/vidtmp/out.txt 2>&1
>>>
>>> You do realize that by separating the command line
>>> from the console output, you make it harder to
>>> understand the issue?
>>>
>> I'll try to not do that in the future.
>>
>>
>>> Does it work with "-re"?
>>>
>>> No, -re has no effect. Here's a run with -re set - same issue as the
>> original run.
>>
>> 
>
> Given that -re didn't work, is there something else I should be doing to
> try to understand this?
> I'd prefer to not double my CPU usage by avoiding the 'tee' muxer.
> I guess the first question is: Is this a bug in some way? Is it supposed to
> do this for some reason that's unclear to me?

The tee muxer is very special, I hoped that somebody
else who has used (or better: implemented) it would comment.

You could test the delay and adelay filter, I don't know the exact options out
of my head but I am curious if they at least can delay the issue you see.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Encode to timestamp on ts with "holes"

2019-03-05 Thread Carl Eugen Hoyos
2019-03-05 12:31 GMT+01:00, Gabriele Greco :

> Actually what I do basically is:
>
> ffmpeg -ss start_ts -i input.ts -to (end_ts - start_ts) out.mp4
>
> this can work only if the input file has no holes...
>
> so after reading ffmpeg documentation and various stackoverflow questions I
> decided that copyts was my friend to achieve my result and I tried:
>
> ffmpeg -ss start_ts -copyts -i input.ts -to end_ts out.mp4
> ffmpeg -ss start_ts -i input.ts -copyts -to end_ts out.mp4

Use "-async 1" instead of copyts imo.

Or do you mean timestamp resets? There is a (big) difference...

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] Question about merging audio and soundless video files

2019-03-05 Thread JD

The audio file is recorded at bitrate 320k.
But after combining the audio and the video,
and running ffprobe, it shows that the audio
bitrate is 128k.
So, why would ffmpeg downgrade the audio bitrate?
___
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] [avi @ 0x9873ba0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1104 >= 1104 [avi @ 0x987d2a0] Application provided invalid, non monotonically

2019-03-05 Thread Michael Kohne
On Fri, Feb 22, 2019 at 7:31 AM Michael Kohne  wrote:

> On Thu, Feb 21, 2019 at 9:35 AM Carl Eugen Hoyos 
> wrote:
>
>> 2019-02-21 15:24 GMT+01:00, Michael Kohne :
>> > ./ffmpeg -min_port 62000 -max_port 62004 -i rtsp://
>> > 192.168.0.113/media/video1 -codec:v msmpeg4v2 -codec:a ac3 -ar 44100
>> -map 0
>> > -f tee "[f=avi]/data/vidtmp/one.avi|[f=avi]/data/vidtmp/two.avi" >
>> > /data/vidtmp/out.txt 2>&1
>>
>> You do realize that by separating the command line
>> from the console output, you make it harder to
>> understand the issue?
>>
> I'll try to not do that in the future.
>
>
>> Does it work with "-re"?
>>
>> No, -re has no effect. Here's a run with -re set - same issue as the
> original run.
>
> 

Given that -re didn't work, is there something else I should be doing to
try to understand this?
I'd prefer to not double my CPU usage by avoiding the 'tee' muxer.
I guess the first question is: Is this a bug in some way? Is it supposed to
do this for some reason that's unclear to me?

Thanks!

-- 






Celebrating 20 Years

Transforming Neurocritical Care

Moberg 
Research, Inc.

224 S Maple Street, Ambler, PA 19002

24/7 Customer 
Support: 888.662.7246

www.moberg.com 


___
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] Concatenating files - dropping audio

2019-03-05 Thread Ron Barnes
Hiya Kieran!

Long time no speak!  You have been a great help to me over many moons.  Thank 
you!

I added the switch you recommended below and I am now generating an enormous 
amount of errors and they are all like the following
It appears there is an issue with the audio streams.  Is there a way to fix 
this?


[mpegts @ 01a6feb8e2c0] Non-monotonous DTS in output stream 0:7; previous: 
12762813, current: 12757094; changing to 12762814. This may result in incorrect 
timestamps in the output file.


Regards,

-Ron



-Original Message-
From: ffmpeg-user  On Behalf Of Kieran O Leary
Sent: Tuesday, March 5, 2019 8:41 AM
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Concatenating files - dropping audio

On Tue, 5 Mar 2019, 13:19 Ron Barnes,  wrote:

> Hello All,
>
> I'm trying to concatenate 49 m2ts files into a single m2ts file.  I 
> listed all the files in a text file and used the following command.
>
> ffmpeg -analyzeduration 10M -probesize 10M -f concat -safe 0 
> -i Concat.TXT -c copy Output_Full_Video.m2ts
>

Add -map 0 to command

ffmpeg -analyzeduration 10M -probesize 10M -f concat -safe 0 -i 
Concat.TXT -map 0 -c copy Output_Full_Video.m2ts

Best,

Kieran
___
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] Concatenating files - dropping audio

2019-03-05 Thread Kieran O Leary
On Tue, 5 Mar 2019, 13:19 Ron Barnes,  wrote:

> Hello All,
>
> I'm trying to concatenate 49 m2ts files into a single m2ts file.  I listed
> all the files in a text file and used the following command.
>
> ffmpeg -analyzeduration 10M -probesize 10M -f concat -safe 0 -i
> Concat.TXT -c copy Output_Full_Video.m2ts
>

Add -map 0 to command

ffmpeg -analyzeduration 10M -probesize 10M -f concat -safe 0 -i
Concat.TXT -map 0 -c copy Output_Full_Video.m2ts

Best,

Kieran
___
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] Concatenating files - dropping audio

2019-03-05 Thread Ron Barnes
Hello All,

I'm trying to concatenate 49 m2ts files into a single m2ts file.  I listed all 
the files in a text file and used the following command.

ffmpeg -analyzeduration 10M -probesize 10M -f concat -safe 0 -i 
Concat.TXT -c copy Output_Full_Video.m2ts

After completion, I verify the video with VLC and Windows Media player.  
Instead of the 8+ audio files from the original file(s) I only get a single 
audio and it only plays in VLC not Windows Media Player.

What is the proper way to concatenate files using ffmpeg?

Thank you in advance!

-Ron

___
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] Encode to timestamp on ts with "holes"

2019-03-05 Thread Gabriele Greco
Hi guys,

I'm trying to encode part of a video in a particular source timestamp
range, from input .ts files got from satellite inputs that can have "holes"
(due to signal issues).

Actually what I do basically is:

ffmpeg -ss start_ts -i input.ts -to (end_ts - start_ts) out.mp4

this can work only if the input file has no holes...

so after reading ffmpeg documentation and various stackoverflow questions I
decided that copyts was my friend to achieve my result and I tried:

ffmpeg -ss start_ts -copyts -i input.ts -to end_ts out.mp4
ffmpeg -ss start_ts -i input.ts -copyts -to end_ts out.mp4

(documentation does not tell if -copyts is an input or output parameter,
anyway the result is the same)

... with copyts the operation fails (full output below), there is a way to
end my encoding process to a given input timestamp also with partially
broken files that do not like -copyts ?


ffmpeg -y -copyts -ss 4837.0 -i "/Users/gabry/Desktop/test.ts"  -to 7723.0
-s 320x200 test.mp4

ffmpeg version N-92313-g4a6d5f3cad Copyright (c) 2000-2018 the FFmpeg
developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --disable-videotoolbox --disable-audiotoolbox
--enable-libx264 --enable-libfdk-aac --enable-nonfree --enable-gpl
  libavutil  56. 21.100 / 56. 21.100
  libavcodec 58. 34.100 / 58. 34.100
  libavformat58. 19.102 / 58. 19.102
  libavdevice58.  4.106 / 58.  4.106
  libavfilter 7. 38.100 /  7. 38.100
  libswscale  5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc55.  2.100 / 55.  2.100
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[mp3float @ 0x7fb72e804c00] Header missing
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] decode_slice_header error
[h264 @ 0x7fb72e804000] no frame!
[h264 @ 0x7fb72e804000] SPS unavailable in decode_picture_timing
[h264 @ 0x7fb72e804000] non-existing PPS 0 referenced
[h264 @ 0x7fb72e804000] SPS unavai

Re: [FFmpeg-user] Non-English (Chinese) file and filepath names in FFmpeg Command Line

2019-03-05 Thread Kirill Gavrilov
>
> On 1/30/2019 10:05 PM, Wayne wrote:
> > Any way to do this in C#?
>
On Windows, FFmpeg API expects file paths in UTF8 encoding, so that if you
are using FFmpeg as libraries, then you can try converting strings into
proper encoding.
When using ffmpeg.exe, encoding conversion should be done implicitly.
___
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".