News:

--

Main Menu

Error encoding video with x264

Started by Trepak, July 06, 2013, 05:44:29 PM

Previous topic - Next topic

Trepak

I encoded a video. ts with avidemux and I have this error...


General
ID                                       : 1 (0x1)
Complete name                            :Davinci-Demons-Final.ts
Format                                   : MPEG-TS
File size                                : 2.11 GiB
Duration                                 : 55mn 48s
Overall bit rate                         : 5 407 Kbps

Video
ID                                       : 101 (0x65)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 55mn 48s
Bit rate                                 : 4 946 Kbps
Width                                    : 1 440 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : MBAFF
Bits/(Pixel*Frame)                       : 0.127
Stream size                              : 1.93 GiB (91%)
Color primaries                          : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                                       : 201 (0xC9)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 55mn 48s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 76.6 MiB (4%)
Language                                 : English




If I do the same with ffmpeg no problem.Is a bug?

Jan Gruuthuse

Can you describe error: I see only 2 abstract images?

Trepak

The second image is so with ffmpeg and in the original vídeo



I put a txt with terminal output

bernd_b

Just a wild guess:
Maybe switching on/off vdpau/opengl under preferences/video changes  something?

Trepak

#4
Quote from: bernd_b on July 07, 2013, 08:07:47 AM
Just a wild guess:
Maybe switching on/off vdpau/opengl under preferences/video changes  something?

Not, being equal, I can think of two different PC  :(

bernd_b

Quoting my whole post when it is directly above your answer?  ::) Hhmm....  ::)

Anyway, I am sorry to say that I don't understand you:
- "not being equal" = you have tried but no success, you have another point of view?
- "think of two different PC"(s?!) = ?




Trepak

Yes,the error occurs on two PCs.

Sorry for my English  :-[

Jan Gruuthuse

#7
Upload a 20 MB size or 5 seconds recording source/original, not the end result, sample to mega, rapidshare, ... and provide a publicly available download link to it.
When loaded in avidemux, does it shows the same image mistake? or just when re-encoding?
Please what re-encoding settings do you use: video codec and output format?
So it can be determined if it is on all computers like this or not. And if developer needs a look at it?

Trepak

#8
When loaded in avidemux,shows the same image.
Re-encoding settings (x264 CRF18 custom profile 720p mp3lame file mkv)

I had to cut the video with VideoRedo,the source is record with TVHeadend

Source Framerate is 25.000 fps Avidemus show 50.000 fps source 16:9 Avidemux show 4:3


General
ID                                       : 1 (0x1)
Complete name                            :FOX-HD-Davinci-Demons-Final.2013-06-27.21-40.ts
Format                                   : MPEG-TS
File size                                : 2.77 GiB
Duration                                 : 1h 12mn
Overall bit rate                         : 5 471 Kbps

Video
ID                                       : 101 (0x65)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 1h 12mn
Bit rate                                 : 4 877 Kbps
Width                                    : 1 440 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : MBAFF
Bits/(Pixel*Frame)                       : 0.125
Stream size                              : 2.47 GiB (89%)
Color primaries                          : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio #1
ID                                       : 201 (0xC9)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 4
Duration                                 : 1h 12mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -496ms
Stream size                              : 99.6 MiB (4%)

Audio #2
ID                                       : 202 (0xCA)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Joint stereo
Codec ID                                 : 4
Duration                                 : 1h 12mn
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -472ms
Stream size                              : 66.4 MiB (2%)


Download: test.ts

Jan Gruuthuse

Best you make a 5 second recording with tvheadend and provide that original recording.
This one has problems and causes problems while re-encoding.
The recording is this dvb-c, dvb-t or dvb-s?
[DecodeNextPicture]  Decoding error for frame 247, not necessarily a problem
  [adm_lavLogCallback]  [lavc] reference picture missing during reorder
  [adm_lavLogCallback]  [lavc] reference count overflow
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] reference picture missing during reorder
  [adm_lavLogCallback]  [lavc] reference count overflow
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] reference picture missing during reorder
  [adm_lavLogCallback]  [lavc] reference count overflow
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] reference picture missing during reorder
  [adm_lavLogCallback]  [lavc] reference count overflow
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] reference picture missing during reorder
  [adm_lavLogCallback]  [lavc] reference count overflow
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] reference picture missing during reorder
  [adm_lavLogCallback]  [lavc] reference count overflow
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal short term buffer state detected
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 248, not necessarily a problem
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 249, not necessarily a problem
  [adm_lavLogCallback]  [lavc] illegal reordering_of_pic_nums_idc
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal reordering_of_pic_nums_idc
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal reordering_of_pic_nums_idc
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal reordering_of_pic_nums_idc
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal reordering_of_pic_nums_idc
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal reordering_of_pic_nums_idc
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] illegal short term buffer state detected
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 250, not necessarily a problem
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 251, not necessarily a problem
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 253, not necessarily a problem
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 255, not necessarily a problem
  [adm_lavLogCallback]  [lavc] deblocking_filter_idc 3 out of range
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] deblocking_filter_idc 3 out of range
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] deblocking_filter_idc 3 out of range
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] deblocking_filter_idc 3 out of range
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] deblocking_filter_idc 3 out of range
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] deblocking_filter_idc 3 out of range
  [adm_lavLogCallback]  [lavc] decode_slice_header error
  [adm_lavLogCallback]  [lavc] mmco: unref short failure
[decompressImage] uncompress failed
[DecodeNextPicture]  Decoding error for frame 256, not necessarily a problem

Trepak

#10
This is IPTV TVHeadend + XBMC

ffmpeg (Linux) and Videoredo (windows) not have that problem

test2 test3

Jan Gruuthuse

#11
These 2 .ts seems to be in order.
In attachment the 2 mkv's and saved Tinypy Project: 1440to720VdpauDeintIptv.py. (rename so it makes sense to you)
The save job uses vdpauDeint (is doing resize to)
Once you have this fitted to your needs you can save this in the ~/.avidemux6/custom
load video and from: Main menu: Custom you could apply 1440to720VdpauDeintIptv.

The audio part is deleted: your iptv TV streams have different audio track layout. If you want to included audio changes, you would need to create a project for each group with the same audio layout.

http://rapidshare.com/files/1537081203/IptvVdpauDeint.7z (5.2 MB in size)

Creating these Tinypy project files is easy:
- load video
- set codecs
- set filters
- set output format
from main menu: File: Tinypy Project: Save As Project.
Edit the saved tiny project and remove references to loaded video:
adm.loadVideo("/media/0ToProcess/1TestCurrent/test2.ts")
adm.clearSegments()
adm.addSegment(0, 0, 7760000)
adm.markerA = 0
adm.markerB = 7760000

do the same for audio, unless you're creating a same group audio tracks:
adm.audioClearTracks()
adm.audioAddTrack(0)
adm.audioCodec(0, "copy");
adm.audioSetDrc(0, 0)
adm.audioSetShift(0, 0,0)
adm.audioAddTrack(1)
adm.audioCodec(1, "copy");
adm.audioSetDrc(1, 0)
adm.audioSetShift(1, 0,0)


Trepak

If you you play the file test.ts with vlc no error ,and avidemux it shows the error.

If encode with ffmpeg no error avidemux yes, what is the problem?

Only on the part of the video where there is more movement.

Jan Gruuthuse

Beyond me. If time permits, developer could have a look at it. I'm not making any promises!

Trepak

Quote from: Jan Gruuthuse on July 08, 2013, 06:09:14 PM
Beyond me. If time permits, developer could have a look at it. I'm not making any promises!

Thank you very much!!  :D