Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th December 2010, 12:10   #61  |  Link
coolalibaba
Registered User
 
Join Date: Feb 2006
Location: China
Posts: 50
can this tool be used to "uncrop" h264 video in any way?
coolalibaba is offline   Reply With Quote
Old 24th December 2010, 17:14   #62  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Quote:
Originally Posted by coolalibaba View Post
can this tool be used to "uncrop" h264 video in any way?
Do you mean to remove crop information? Use -vbsf h264_changesps=crop=0:0.
roozhou is offline   Reply With Quote
Old 24th December 2010, 21:15   #63  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
thanks a lot for the new version...

r25887 can't recognize 1 channel aac-lc adts, so the muxing is failing!!!

here is a bug report:

Code:
ffmpeg24750:

ffmpeg -i 1channel.aac
FFmpeg version SVN-r24750, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 10 2010 00:58:46 with gcc 4.4.4
  configuration:
  libavutil     50.23. 0 / 50.23. 0
  libavcore      0. 3. 0 /  0. 3. 0
  libavcodec    52.84. 3 / 52.84. 3
  libavformat   52.78. 1 / 52.78. 1
  libavdevice   52. 2. 1 / 52. 2. 1
  libswscale     0.11. 0 /  0.11. 0
[aac @ 003eb270] max_analyze_duration reached
[aac @ 003eb270] Estimating duration from bitrate, this may be inaccurate
[COLOR="Blue"]Input #0, aac, from '1channel.aac':
  Duration: 00:01:06.19, bitrate: 65 kb/s
    Stream #0.0: Audio: aac, 48000 Hz, mono, s16, 66kb/s

Code:
ffmpeg25887:

ffmpeg -i 1channel.aac
FFmpeg version SVN-r25887, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec 20 2010 23:16:22 with gcc 4.4.5
  configuration:
  libavutil     50.34. 0 / 50.34. 0
  libavcore      0.15. 0 /  0.15. 0
  libavcodec    52.98. 0 / 52.98. 0
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libswscale     0.12. 0 /  0.12. 0
[aac @ 003ec540] invalid sampling rate index 13
    Last message repeated 3027 times
[aac @ 003eb3b0] Could not find codec parameters (Audio: aac, 0 channels, 37 kb/s)
[aac @ 003eb3b0] Estimating duration from bitrate, this may be inaccurate
Assertion failed: c > 0, file libavutil/mathematics.c, line 79

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

mediainfo on aac:

Code:
General
Complete name                    : 1channel.aac
Format                           : ADTS
Format/Info                      : Audio Data Transport Stream
File size                        : 533 KiB

Audio
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Bit rate mode                    : Variable
Channel(s)                       : 1 channel

best regards...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 26th December 2010, 08:29   #64  |  Link
coolalibaba
Registered User
 
Join Date: Feb 2006
Location: China
Posts: 50
Quote:
Originally Posted by roozhou View Post
Do you mean to remove crop information? Use -vbsf h264_changesps=crop=0:0.
for example, I have a cropped video with size 1280X544. I meant to make it uncropped to original size 1280X720.
coolalibaba is offline   Reply With Quote
Old 26th December 2010, 11:23   #65  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Quote:
Originally Posted by coolalibaba View Post
for example, I have a cropped video with size 1280X544. I meant to make it uncropped to original size 1280X720.
No. And why do you need to pad to 1280x720 in the bitstream. Can't you do this during playback?
roozhou is offline   Reply With Quote
Old 27th December 2010, 06:20   #66  |  Link
coolalibaba
Registered User
 
Join Date: Feb 2006
Location: China
Posts: 50
Quote:
Originally Posted by roozhou View Post
No. And why do you need to pad to 1280x720 in the bitstream. Can't you do this during playback?
no, actually my player is PS3 and it is not able to pad during playback.
coolalibaba is offline   Reply With Quote
Old 27th December 2010, 06:24   #67  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Quote:
Originally Posted by coolalibaba View Post
no, actually my player is PS3 and it is not able to pad during playback.
What a pity. I think you have to reencode.
roozhou is offline   Reply With Quote
Old 28th December 2010, 07:22   #68  |  Link
coolalibaba
Registered User
 
Join Date: Feb 2006
Location: China
Posts: 50
yes, thx. that's what i can find by now...
coolalibaba is offline   Reply With Quote
Old 12th January 2011, 12:30   #69  |  Link
reinen
Registered User
 
Join Date: Jan 2011
Posts: 5
hello to all,

I've already tried to compile the patched ffmpeg/x264 sources on my linux machine (ubuntu lucid lynx 10.04) for a few times.
./configure of ffmpeg goes through without any problems, but the 'make'-process stops at libavcodec: ac3enc.c with an error (sorry, I can't remember the exact message).
I have no problem with compiling the unpatched ffmpeg sources (with x264), so I think the dependencies are o.k.
I've used the recent patch of roozhous svn (r25887) to patch the latest ffmpeg sources downloaded from 'svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg' with the following command: patch -p0 < ffmpeg_svn_r25887.patch
Could it be possible that this is only working if I patch the r25887-subversion of the ffmpeg sources with the ffmpeg_svn_r25887.patch? If this is true, where can I get the ffmpeg-svn-r25887 sources from?
If not, perhaps there is someone, who can help me anyway.

Thanks,
reinen
reinen is offline   Reply With Quote
Old 12th January 2011, 13:08   #70  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
In my configuration all encoders are disabled. Add --disable-encoders after your ./configure and try again.
roozhou is offline   Reply With Quote
Old 12th January 2011, 13:21   #71  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Quote:
Originally Posted by coolalibaba View Post
can this tool be used to "uncrop" h264 video in any way?
Quote:
Originally Posted by coolalibaba View Post
for example, I have a cropped video with size 1280X544. I meant to make it uncropped to original size 1280X720.
There's no legal source for 1280x544 files, use the originals you have, they must be PS3 compatible (apart from format/container - use a remuxer to make them compatible to PS3).
Ghitulescu is offline   Reply With Quote
Old 12th January 2011, 15:23   #72  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
Quote:
Originally Posted by Ghitulescu View Post
There's no legal source for 1280x544 files.
You can find 1280x544 Diablo 3 trailers on Blizzard's website, though they are not H.264 but MPEG4 ASP. You can also download sintel 1280x544 H.264 movie. All of them are legal.
roozhou is offline   Reply With Quote
Old 12th January 2011, 17:55   #73  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Sorry I'm not into games and I don't watch movies on my PC. But I still wonder why they put trailers in this non-standard resolution since the game is not 1280x544 and no other game trailer in this resolution exists (according to google, except those in metacafe, youtube and co.).

However the internet is full of "BRRip x264-HDLiTE | 1.77 GB | 1h 43mins | 1280 x 544 | H264 - 2017kbps | AC3" because this resolution is the best compromise for both the uploader and the downloader, reported to video quality and used player.

PS: pay attention to the words original size of 1280x720 vs. I have a cropped source of 1280x544.
Ghitulescu is offline   Reply With Quote
Old 12th January 2011, 21:06   #74  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
please, lets keep this topic clean...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 12th January 2011, 22:30   #75  |  Link
reinen
Registered User
 
Join Date: Jan 2011
Posts: 5
Quote:
Originally Posted by roozhou View Post
In my configuration all encoders are disabled. Add --disable-encoders after your ./configure and try again.
thanks roozhou, your advice helped me to complete the compilation of the patched ffmpeg.
But unfortunately i'm still not able to change the level of an .mkv file with the following command:

Quote:
ffmpeg -i infile -vcodec copy -acodec copy -vbsf h264_changesps=level=41 outfile.mkv
ffmpeg is giving me the following error message:

Quote:
FFmpeg version SVN-r26322, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 12 2011 20:12:12 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --disable-encoders
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.73. 0 / 1.73. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x92123d0] max_analyze_duration reached
[matroska,webm @ 0x92123d0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (5000000/208542)
Input #0, matroska,webm, from 'input.mkv':
Duration: 00:49:56.80, start: 0.000000, bitrate: 448 kb/s
Stream #0.0: Video: h264, yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Metadata:
title : English (AC3)
Stream #0.2(eng): Subtitle: ass
Output #0, matroska, to 'output.mkv':
Stream #0.0: Video: [0][0][0][0] / 0x0000, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=0-0, 90k tbn, 23.98 tbc
Stream #0.1(eng): Audio: [0][0][0][0] / 0x0000, 48000 Hz, 5.1, 448 kb/s
Metadata:
title : English (AC3)
Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #0.2 -> #0.2
Encoder (codec id 94210) not found for output stream #0.2
does anybody have an idea, what i'm doing wrong?

Last edited by reinen; 12th January 2011 at 22:44.
reinen is offline   Reply With Quote
Old 12th January 2011, 23:42   #76  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
add:
Code:
-scodec copy
or if the error remains:
Code:
-sn
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 13th January 2011, 22:58   #77  |  Link
reinen
Registered User
 
Join Date: Jan 2011
Posts: 5
Quote:
Originally Posted by b66pak View Post
add:
Code:
-scodec copy
or if the error remains:
Code:
-sn
_
thanks a lot b66pak, you were right the subtitle stream was the problem. now the re-encoding of my mkv files is working.
I'm sorry to say, but the whole procedure didn't solve my problem of playing mkv's from external device via the media player of my samsung led tv.
I thought changing the h264-level from 5.1 to 4.1 would fix it. I also tried to lower the reference frames from 16 to 4, but without any success.
Is there anybody facing a similar problem?

cheers
reinen
reinen is offline   Reply With Quote
Old 14th January 2011, 00:20   #78  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
do you search the producer site for the latest firmware?...did you contact the support for detalied info on what the firmware can play?...this is going offtopic...i suggest to make a topic in hardware players category...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 18th January 2011, 12:50   #79  |  Link
roozhou
Registered User
 
Join Date: Apr 2008
Posts: 1,181
New build available.
ADTS parsing is fixed.
roozhou is offline   Reply With Quote
Old 18th January 2011, 13:49   #80  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
thanks a lot...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.