drwowe | 1 Nov 06:32
Picon
Favicon

Re: [Ffmpeg-user] transcoding AVHCD


Phil Rhodes wrote:
> 
> read it. Unfortunately, details on exactly what AVCHD comprises, other
> than 
> it's I-frame h.264, are scanty. Often AVCHD is in MXF, which opens up a 
> massive can of worms with regard to which one of the literally dozens of 
> sub-formats and sub-sub-formats of MXF it is. 
Well there seem to be a lot of instructions for converting from AVCHD to
other formats, so something must be known about it?  I'm not concerned with
standards compliance, as long as it plays on my blu-ray player from DVDR
media that's all I care about.

Phil Rhodes wrote:
> 
> Some versions of ffmpeg claim 
> to support MXF but I've never seen it documented anywhere. It strikes me
> as 
> likely, though, that your domestic (rather than broadcast) application 
> doesn't do it this way; in which case, all you can do (saving other
> replies 
> on this list) is examine a known-good file and try to figure out what 
> options you need to use.
I'm not sure what you mean by broadcast vs domestic?  But trying to find a
known good file is a good idea.  I'm downloading some sample files now that
people have posted, if any of them work with my player then I can try to
figure out how they are organized.
--

-- 
View this message in context: http://old.nabble.com/transcoding-AVHCD-tp26105062p26148393.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
(Continue reading)

Richard Hughes | 1 Nov 22:15
Gravatar

Re: Extracting AC3 from a DVD

Hi Justin,

Thanks for your reply. I do get one warning:

"Seems stream 0 codec frame rate differs from container frame rate: 50.00
(50/1) -> 25.00 (25/1)"

...but that appears to apply to the video stream, which extracts OK.

Full output below. Is there anything obvious wrong here? If not, I'll upload
a sample.

> Maybe it starts with an incomplete frame?

How would I check this?

Thanks,

Richard

# /small/bin/ffmpeg -i test.mpg  -acodec copy -vn test.ac3
FFmpeg version SVN-r20330, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 31 2009 21:23:30 with gcc 4.2.1 (Apple Inc. build 5646)
  configuration: --enable-libmp3lame --enable-libfaac --enable-libfaad
--enable-gpl --extra-cflags=-I/small/include --extra-ldflags=-L/small/lib
--prefix=/small --enable-nonfree
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.37. 0 / 52.37. 0
  libavformat   52.39. 2 / 52.39. 2
  libavdevice   52. 2. 0 / 52. 2. 0
(Continue reading)

Richard Hughes | 1 Nov 22:38
Gravatar

Re: Extracting AC3 from a DVD

Example file at: http://www.smallsoftware.co.uk/files/ac3test.mpg

It's the first 10 seconds of chapter 2 of Indiana Jones and the Kingdom of
the Crystal Skull, about 8Mb.

I can extract AC3 with both the old and new ffmpegs, but mplex will only
recognise the file extract with the old version.

Thanks again,

Richard

2009/11/1 Richard Hughes <richard <at> laughingshrews.net>

> Hi Justin,
>
> Thanks for your reply. I do get one warning:
>
> "Seems stream 0 codec frame rate differs from container frame rate: 50.00
> (50/1) -> 25.00 (25/1)"
>
> ...but that appears to apply to the video stream, which extracts OK.
>
> Full output below. Is there anything obvious wrong here? If not, I'll
> upload a sample.
>
> > Maybe it starts with an incomplete frame?
>
> How would I check this?
>
(Continue reading)

Justin Ruggles | 2 Nov 00:23
Picon
Gravatar

Re: Extracting AC3 from a DVD

Richard Hughes wrote:

> Example file at: http://www.smallsoftware.co.uk/files/ac3test.mpg
> 
> It's the first 10 seconds of chapter 2 of Indiana Jones and the Kingdom of
> the Crystal Skull, about 8Mb.
> 
> I can extract AC3 with both the old and new ffmpegs, but mplex will only
> recognise the file extract with the old version.

It starts and ends with incomplete AC-3 frames.  If you decode or play
the mpg file, you will get a frame sync error.  After extracting the
AC-3 stream, the first full frame starts at offset 0x463.

For that specific file:
    to skip first partial frame:
        dd if=ac3test.ac3 of=ac3test01.ac3 bs=1123 skip=1
    to remove the last partial frame:
        dd if=ac3test01.ac3 of=ac3test02.ac3 bs=1792 count=296

Maybe the raw AC-3 muxer should be changed to not output partial frames.
 I don't like that we create invalid files.

> 
> 2009/11/1 Richard Hughes <richard <at> laughingshrews.net>
> 
>> Hi Justin,
>>
>> Thanks for your reply. I do get one warning:
>>
(Continue reading)

Mansi Shah | 2 Nov 06:39

Re: Converting Casio exilim camcorders videos to.flv

Hi,

I need to play Casio exilim videos in flash player, but I am not able to
convert these .mov files to .flv using ffpmpeg.

Here is a code I am using to convert another video files to .flv, but it
creates problem with Casio exilim videos.
----------------------------------------------------------------------------
-------------------------------
Public Shared Sub ConvertToMedia(ByVal strConvertType As String, ByVal
absPath As String, _
     ByVal videoFilePath As String, ByVal videoFileName As String, Optional
ByVal vidSize As String = vbNullString, _
          Optional ByRef strExLog As StringBuilder = Nothing)
        Dim videoFileNameNoExt As String
        Dim outputFormat As String = vbNullString
        Dim thumbImageCommnad As String = vbNullString
        Dim strCommand As String = vbNullString
        Dim vidsizeCommand As String
        If Not vidSize Is vbNullString Then
            vidsizeCommand = " -s " & vidSize & " "
        Else
            vidsizeCommand = " "
        End If
        ' Call command to convert video to FLV format

        If videoFileName.LastIndexOf(".") > 0 Then
            videoFileNameNoExt = videoFileName.Substring(0,
videoFileName.LastIndexOf("."))
        Else
(Continue reading)

Tim Nicholson | 2 Nov 09:08
Picon
Picon
Favicon

Re: [Ffmpeg-user] transcoding AVHCD

Phil Rhodes wrote:
>> My question is how to convert a
>> 1080P x264 mkv video to AVHCD, using either ffmpeg or mencoder?
> 
> Spent quite a lot of time on this, trying to make various nonlinear
> editors read it. Unfortunately, details on exactly what AVCHD comprises,
> other than it's I-frame h.264, are scanty. Often AVCHD is in MXF, which
> opens up a massive can of worms with regard to which one of the
> literally dozens of sub-formats and sub-sub-formats of MXF it is. Some
> versions of ffmpeg claim to support MXF but I've never seen it
> documented anywhere. It strikes me as likely, though, that your domestic
> (rather than broadcast) application doesn't do it this way; in which
> case, all you can do (saving other replies on this list) is examine a
> known-good file and try to figure out what options you need to use.
> 
> If you do figure it out please post your results back here!

You are confusing AVCHD, as used in domestic HD camcorders, and AVCI.
AVCHD is supported by ffmpeg and I regularly convert from this format to
NLE friendly versions. (Although many NLE's now support it)

AVCI is a different matter. It is a 10bit 4:2:2 I frame codec and afaik
is not currently supported by any of the usual open source offerings.

As for mxf, yes ffmpeg supports it, to a limited extent. It seems to be
able to pull most things out but will only wrap mpeg op1a.

I have never seen AVCHD in mxf, but often AVCI.

--

-- 
(Continue reading)

Stefano Masneri | 2 Nov 10:13
Picon
Favicon

Unable to convert video - Could not find codec parameter

Hi everybody,

I am trying to convert a huge database of videos.
The container is .avi, the codec is dvvideo for all of the files.
I need a simple file conversion, to mpeg2 format and discarding the audio.

On most of the video the conversion run smoothly, but for some of them
ffmpeg gives a strange error and doesn't even start converting the video.

Below you can find information about 2 video files: in the first one the
file was converted without problems, in the second one ffmpeg failed.

I'm using windows xp sp2, and I downloaded ffmpeg and libav* from
ffmpeg.arrozcru.org/

Other infos: If I try to play the videos I can't convert with VLC (I think
it uses
ffmpeg libraries) the video plays with terrible audio, and I cannot skip to
a desired time.
If I play it with windows media player instead everything is fine.

Any help would be really appreciated, thanks in advance 

This is OK:
FFmpeg version SVN-r20114, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct  1 2009 04:01:11 with gcc 4.2.4
  configuration: --enable-shared --disable-static --enable-memalign-hack
--prefix=/mingw --cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc
--target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth --enable-gpl
--enable-zlib --enable-bzlib --enable-libgsm --enable-libfaad
(Continue reading)

Phil Rhodes | 2 Nov 11:32
Picon
Favicon

Re: [Ffmpeg-user] transcoding AVHCD

> You are confusing AVCHD, as used in domestic HD camcorders,

I was when I was talking anout I-frame, yes. I have seen stuff I was -told- 
was AVCHD in MXF, but thinking about it, it may just have been h.264 in MXF; 
the lack of detail on exactly what AVCHD is doesn't help.

MXF is a completely cluster!#$% in any case and I'm sure we'd be pleased to 
avoid it.

> As for mxf, yes ffmpeg supports it, to a limited extent. It seems to be
> able to pull most things out but will only wrap mpeg op1a.

Shame.

P 
Kim Bak | 2 Nov 11:33
Picon

Re: libfaac unable to encode 192kb/s and more?

Kim Bak wrote:
> When trying to encode acc in 192kb/s, but the result is a real bad 
> 135~155 kb/s.
> This happens at all bitrates over 128k
> 
> These settings worked fine with older ffmpeg builds, but after upgrading 
> something broke.
> 
> Now im unable to encode mp4 (ACC/H264) with reasonable sound.
> 
> ffmpeg -t 10 -i /share/encode/old_files/NOVEMBER_PREVIEW.avi -acodec 
> libfaac -ab 192kb -ar 44100  -vn sound.m4a

Has the '-ab' parameter changed name?
No matter how i set -ab "audio bitrate", the outcome is allways around 
140kbps, and there is errors (digital "tic" sounds).
Is there any fix for this?
Alec Baker | 2 Nov 13:15

Re: Problems getting Aspect ratio to work

"Phil Rhodes" <phil_rhodes <at> rocketmail.com> wrote:

(my original question)
>> Has anyone had any success using the aspect setting, such that when
you
>> use FFMPEG to interrogate your output file, there is still a DAR
value
>> visible? Or is it just something that's completely broken?

>Seems to work OK here, but then I tend to rescale things to square
pixels 
>anyway. Vimeo is quite sensitive to this - in circumstances where the
DAR is 
>very "wrong" with respect to the pixel dimensions, it has a nasty habit
of 
>trying to make its own mind up about whether things should be wide or
flat. 
>Setting -aspect in the ffmpeg commandline seems to sort this out.

>But as I say, just go for square pixels (and set -aspect as a 
>belt-and-braces solution). Any other approach will eventually find
someone 
>who hasn't updated their Quicktime Player for ages and you will get 
>problems.

That is sage advice - I was hoping for an ideal solution, but probably
it's best to be pragmatic and end up with something that works.

Thanks very much! 
(Continue reading)


Gmane