Re: [FFmpeg-user] ffmpeg reported fps different than actual file's

2017-08-02 Thread tasos


On 8/3/2017 2:24 AM, James Girotti wrote:

On Wed, Aug 2, 2017 at 3:09 PM, tasos  wrote:


Hello again.
A lot of information and i'm trying to process them.
I know a few basic things about video processing in general.
Anyway,the specific dvb source channel is quite strange or at least this
is how it looks
to me.


Is this the ffprobe output from the file or your DVB capture device? I
politely request you provide full command lines and output in the future.


That was from the file.


Can you dump directly from the device to file without using ffmpeg? I.E.:
Yes i can.


That should make troubleshooting much easier! Glad you're able to do that.



ffprobe -v error -select_streams v:0 -show_entries  \

stream=r_frame_rate,avg_frame_rate -of default=nw=1 ./foo.ts

[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavai

Re: [FFmpeg-user] ffmpeg reported fps different than actual file's

2017-08-02 Thread James Girotti
On Wed, Aug 2, 2017 at 3:09 PM, tasos  wrote:

> Hello again.
> A lot of information and i'm trying to process them.
> I know a few basic things about video processing in general.
> Anyway,the specific dvb source channel is quite strange or at least this
> is how it looks
> to me.
>
>> Is this the ffprobe output from the file or your DVB capture device? I
>> politely request you provide full command lines and output in the future.
>>
>
> That was from the file.
>
>
> Can you dump directly from the device to file without using ffmpeg? I.E.:
>>
> Yes i can.
>

That should make troubleshooting much easier! Glad you're able to do that.


>
> ffprobe -v error -select_streams v:0 -show_entries  \
>> stream=r_frame_rate,avg_frame_rate -of default=nw=1 ./foo.ts
>>
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] decode_slice_header error
>> [h264 @ 0x4088420] no frame!
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] non-existing PPS 0 referenced
>> [h264 @ 0x4088420] SPS unavailable in decode_picture_timing
>> [h264 @ 0x4088420] no

Re: [FFmpeg-user] ffmpeg reported fps different than actual file's

2017-08-02 Thread tasos

Hello again.
A lot of information and i'm trying to process them.
I know a few basic things about video processing in general.
Anyway,the specific dvb source channel is quite strange or at least this 
is how it looks

to me.

Is this the ffprobe output from the file or your DVB capture device? I
politely request you provide full command lines and output in the future.


That was from the file.



Can you dump directly from the device to file without using ffmpeg? I.E.:

Yes i can.


ffprobe -v error -select_streams v:0 -show_entries  \
stream=r_frame_rate,avg_frame_rate -of default=nw=1 ./foo.ts

[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] SPS unavailable in decode_picture_timing
[h264 @ 0x4088420] non-existing PPS 0 referenced
[h264 @ 0x4088420] decode_slice_header error
[h264 @ 0x4088420] no frame!
[h264 @ 0x4088

Re: [FFmpeg-user] ffmpeg reported fps different than actual file's

2017-08-02 Thread James Girotti
On Tue, Aug 1, 2017 at 3:22 PM, tasos  wrote:

> Hello and thanks for replying.
> This is what ffprobe gives me(i should have mentioned it earlier)
>
> Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(tv,
>> bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 5593 kb/s, 50 fps, 25 tbr,
>> 50 tbn, 50 tbc
>>
>
>
Is this the ffprobe output from the file or your DVB capture device? I
politely request you provide full command lines and output in the future.


>
> On 8/2/2017 1:01 AM, Simon Brown wrote:
>
>> On 1 August 2017 at 22:59, tasos  wrote:
>>
>> Hello.
>>> I get a video file with
>>>
>>> ffmpeg -y   -i /dev/dvb/adapter0/dvr0 -c:v copy -c:a copy   foo.avi
>>> This file is displayed  on vlc  as a 50fps video file.
>>>
>>> Input #0, mpegts, from '/dev/dvb/adapter0/dvr0':
>>>
Duration: N/A, start: 7972.129344, bitrate: N/A
Program 1
  Stream #0:0[0x6e]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25
 tbr, 90k tbn, 50 tbc
  Stream #0:1[0x78]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, s16p, 128 kb/s
  Stream #0:2[0x82]: Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels,
 s16p
>>>
>>>
Can you dump directly from the device to file without using ffmpeg? I.E.:

dd if=/dev/dvb/adapter0/dvr0 of=./foo.ts bs=1M count=100

Then analyze that file with ffprobe and VLC to see what the reported
frame-rate is.

If you can't dump directly from the device node to file, then try keeping
the same container/format (I add "-t 30" so that we only get 30 seconds of
video):

ffmpeg -i /dev/dvb/adapter0/dvr0 -t 30 -c copy -f mpegts ./foo.ts

Example FFPROBE output from a random interlaced video on my computer:

ffprobe -v error -select_streams v:0 -show_entries
stream=r_frame_rate,avg_frame_rate -of default=nw=1 ./JG-FOO.ts

r_frame_rate=6/1001
avg_frame_rate=3/1001

VLC reports a frame-rate of 3/1001 for JG-FOO.ts


>>> My guess is that VLC is misreporting it, and it's 50 fields per second,
>>>
>> interlaced, and so FFMpeg is reporting it as 25 frames per second
>> correctly.
>>
>
Let's do an experiment; my hypothesis is that when it is muxed to AVI the
frame-rate is changed for some reason. Are half-frames/fields counted as
full-fields/frames???

Take JG-FOO.ts from above and mux to AVI:

ffmpeg -v info -ss 5:00 -i ./JG-FOO.ts -c copy -t 10 ./JG-FOO.avi
Input #0, mpegts, from 'JG-FOO.ts':
  Duration: 01:05:01.45, start: 1.40, bitrate: 16261 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions,
29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
5.1(side), fltp, 384 kb/s
Output #0, avi, to './JG-FOO.avi':
  Metadata:
ISFT: Lavf57.56.101
Stream #0:0: Video: mpeg2video (Main) (mpg2 / 0x3267706D), yuv420p(tv,
top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 59.94 tbr,
59.94 tbn, 59.94 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 384
kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[avi @ 0xbf2690] Non-monotonous DTS in output stream 0:0; previous: 127,
current: 127; changing to 128. This may result in incorrect timestamps in
the output file.
[avi @ 0xbf2690] Non-monotonous DTS in output stream 0:0; previous: 277,
current: 277; changing to 278. This may result in incorrect timestamps in
the output file.
[avi @ 0xbf2690] Non-monotonous DTS in output stream 0:0; previous: 427,
current: 427; changing to 428. This may result in incorrect timestamps in
the output file.
frame=  242 fps=0.0 q=-1.0 Lsize=7660kB time=00:00:10.01
bitrate=6268.5kbits/s speed= 406x
video:7154kB audio:481kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.316611%

Now take a look at the frame-rates:

ffprobe -v error -select_streams v:0 -show_entries
stream=r_frame_rate,avg_frame_rate -of default=nw=1 ./JG-FOO.avi

r_frame_rate=6/1001
avg_frame_rate=6/1001

So my results show the frame rates have been doubled. Also, it shows
6/1001 FPS using VLC. I think that's basically what you're seeing also

Try setting rate:

ffmpeg -v info -ss 5:00 -i ./JG-FOO.ts -c copy -t 10 -r 3/1001
./JG-FOO-r30.avi
Input #0, mpegts, from 'JG-FOO.ts':
  Duration: 01:05:01.45, start: 1.40, bitrate: 16261 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions,
29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
5.1(side), fltp, 384 kb/s
Output #0, avi, to './JG-FOO-r30.avi'

Re: [FFmpeg-user] ffmpeg reported fps different than actual file's

2017-08-01 Thread tasos

Hello and thanks for replying.
This is what ffprobe gives me(i should have mentioned it earlier)

Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, 
bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 5593 kb/s, 50 fps, 25 
tbr, 50 tbn, 50 tbc



On 8/2/2017 1:01 AM, Simon Brown wrote:

On 1 August 2017 at 22:59, tasos  wrote:


Hello.
I get a video file with

ffmpeg -y   -i /dev/dvb/adapter0/dvr0 -c:v copy -c:a copy   foo.avi
This file is displayed  on vlc  as a 50fps video file.

Input #0, mpegts, from '/dev/dvb/adapter0/dvr0':

   Duration: N/A, start: 7972.129344, bitrate: N/A
   Program 1
 Stream #0:0[0x6e]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25
tbr, 90k tbn, 50 tbc
 Stream #0:1[0x78]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 128 kb/s
 Stream #0:2[0x82]: Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels,
s16p


25 fps,25 tbr.
So my question is,is this correct?
Thanks!

My guess is that VLC is misreporting it, and it's 50 fields per second,

interlaced, and so FFMpeg is reporting it as 25 frames per second correctly.

I have seen something similar myself between the two.
Regards,
Simon
___
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 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] ffmpeg reported fps different than actual file's

2017-08-01 Thread Simon Brown
On 1 August 2017 at 22:59, tasos  wrote:

> Hello.
> I get a video file with
>
> ffmpeg -y   -i /dev/dvb/adapter0/dvr0 -c:v copy -c:a copy   foo.avi
>>
> This file is displayed  on vlc  as a 50fps video file.
>
> Input #0, mpegts, from '/dev/dvb/adapter0/dvr0':
>>   Duration: N/A, start: 7972.129344, bitrate: N/A
>>   Program 1
>> Stream #0:0[0x6e]: Video: h264 (High) ([27][0][0][0] / 0x001B),
>> yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25
>> tbr, 90k tbn, 50 tbc
>> Stream #0:1[0x78]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
>> stereo, s16p, 128 kb/s
>> Stream #0:2[0x82]: Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels,
>> s16p
>>
> 25 fps,25 tbr.
> So my question is,is this correct?
> Thanks!
>
> My guess is that VLC is misreporting it, and it's 50 fields per second,
interlaced, and so FFMpeg is reporting it as 25 frames per second correctly.

I have seen something similar myself between the two.
Regards,
Simon
___
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 reported fps different than actual file's

2017-08-01 Thread tasos

Hello.
I get a video file with

ffmpeg -y   -i /dev/dvb/adapter0/dvr0 -c:v copy -c:a copy   foo.avi 

This file is displayed  on vlc  as a 50fps video file.


Input #0, mpegts, from '/dev/dvb/adapter0/dvr0':
  Duration: N/A, start: 7972.129344, bitrate: N/A
  Program 1
Stream #0:0[0x6e]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 
25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x78]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, s16p, 128 kb/s
Stream #0:2[0x82]: Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, 
s16p

25 fps,25 tbr.
So my question is,is this correct?
Thanks!
___
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".