Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8547 closed defect (invalid)

Cut iTunes movie with mp42isom and eia_608

Reported by: xamarin Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:
Try to cut sample iTunes movie (is not encrypted). Resulting file is 0 bytes:

...
    Stream #0:34: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 667x1000 [SAR 72:72 DAR 667:1000], 90k tbr, 90k tbn, 90k tbc (attached pic)
[mp4 @ 000001a3eaeda0c0] track 2: codec frame size is not set
[mp4 @ 000001a3eaeda0c0] track 4: codec frame size is not set
[mp4 @ 000001a3eaeda0c0] Could not find tag for codec eia_608 in stream #6, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
...
% ffmpeg.exe -y -i 'movie.mp4' -ss 00:08:34 -t 00:00:23 -c copy -map 0  out.mp4
ffmpeg version git-2020-03-01-1281399 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (21)

comment:1 by xamarin, 4 years ago

If I rename the mp4 files to m4v:

 Stream #0:34: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 667x1000 [SAR 72:72 DAR 667:1000], 90k tbr, 90k tbn, 90k tbc (attached pic)
[ipod @ 0000020c65766180] Tag text incompatible with output codec id '100359' ([0][0][0][0])
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input

comment:2 by Balling, 4 years ago

You undertsand that mp4 and m4v are different things, right? Give ffprobe of file and sample file and full output...

comment:3 by xamarin, 4 years ago

File is 10GB, how am I supposed to provide a sample if can't even cut it?

comment:4 by Carl Eugen Hoyos, 4 years ago

To make this a valid ticket, please post the command line you tested together with the complete, uncut console output and provide an input sample that allows to reproduce.

comment:5 by xamarin, 4 years ago

Ok let's see if I can get a way to provide a sample.

in reply to:  5 ; comment:6 by Balling, 4 years ago

Replying to xamarin:

Ok let's see if I can get a way to provide a sample.

You can just edit it in hex editor and cat first 2 mb...

Last edited 4 years ago by Balling (previous) (diff)

in reply to:  6 comment:7 by xamarin, 4 years ago

Replying to Balling:

Replying to xamarin:

Ok let's see if I can get a way to provide a sample.

You can just edit it in hex editor and cat first 2 mb...

2 megabits or 2 megabytes?

comment:8 by Balling, 4 years ago

2.5 Megabytes is max.

comment:9 by Carl Eugen Hoyos, 4 years ago

There is a maximum file size on this bug tracker, there is of course no maximum file size for bug reports, we already had samples > 10G, use a file hoster of your choice.

comment:10 by Carl Eugen Hoyos, 4 years ago

But please provide the command line you tested together with the complete, uncut console output first.

comment:11 by xamarin, 4 years ago

Ok here's the log. DON'T post personal data because I can't edit other's posts. Where (removed) irrelevant data was deleted which you can get from files anyway:

ffmpeg.exe -y -i .\fresh.m4v -ss 00:00:34 -t 00:00:23 -c copy -map 0  out.mp4
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001f28ae9a300] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\fresh.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 0
    compatible_brands: M4V mp42isom
    creation_time   : (removed)
    title           : (removed)
    artist          : (removed)
    genre           : (removed)
    compilation     : 0
    date            : 2013-02-01T08:00:00Z
    description     : (removed)
    hd_video        : 2
    media_type      : 9
    purchase_date   : (removed)
    sort_name       : (removed)
    sort_artist     : (removed)
    iTunEXTC        : (removed)
    synopsis        : (removed)
    iTunMOVI        : <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                    : <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                    : <plist version="1.0">
                    : <dict>
                    :   <key>studio</key><string>SHORTSÔäó</string>
                    :   <key>cast</key>
                    :   <array>
                    :   </array>
                    :   <key>directors</key>
                    :   <array>
                    :     <dict>
                    :       <key>name</key><string>PES</string>
                    :       <key>adamId</key><integer>(removed)</integer>
                    :     </dict>
                    :   </array>
                    :   <key>codirectors</key>
                    :   <array>
                    :   </array>
                    :   <key>producers</key>
                    :   <array>
                    :     <dict>
                    :       <key>name</key><string>(removed)</string>
                    :       <key>adamId</key><integer>(removed)</integer>
                    :     </dict>
                    :   </array>
                    :   <key>screenwriters</key>
                    :   <array>
                    :   </array>
                    : </dict>
                    : </plist>
                    :
  Duration: 00:02:23.98, start: 0.000000, bitrate: 5091 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 126 kb/s (default)
    Metadata:
      creation_time   : 2020-03-06T01:56:23.000000Z
    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1880x1054 [SAR 1:1 DAR 940:527], 4950 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 5994 tbc (default)
    Metadata:
      creation_time   : 2020-03-06T01:56:23.000000Z
      encoder         : JVT/AVC Coding
    Stream #0:2(eng): Subtitle: eia_608 (c608 / 0x38303663), 1880x1054, 0 kb/s (default)
    Metadata:
      creation_time   : 2020-03-06T01:56:23.000000Z
    Stream #0:3: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 667x1000 [SAR 72:72 DAR 667:1000], 90k tbr, 90k tbn, 90k tbc (attached pic)
[mp4 @ 000001f28aed8180] Could not find tag for codec eia_608 in stream #2, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
    Last message repeated 1 times
Last edited 4 years ago by xamarin (previous) (diff)

comment:12 by xamarin, 4 years ago

Here are the two samples. Please don't share:

https://mega.nz/#F!OcdUwACb!hWoSvRKRXltNZnV7Ajl-5A

comment:13 by Steve Kamerman, 4 years ago

FYI: this is a public bug tracker and everyone can see what you are posting.

comment:14 by Carl Eugen Hoyos, 4 years ago

Resolution: invalid
Status: newclosed

For future tickets: Always test current FFmpeg git head and please avoid posting excerpts of the console output, always post the complete, uncut console output (that in this case would have made the input sample unneeded).

You cannot put eia_608 into isom, I believe this is not a limitation of FFmpeg.

in reply to:  14 comment:15 by xamarin, 4 years ago

Replying to cehoyos:

You cannot put eia_608 into isom, I believe this is not a limitation of FFmpeg.

I don't understand that part, the file comes like that and plays with SMPlayer and VLC perfectly fine.

comment:16 by Carl Eugen Hoyos, 4 years ago

The file also plays and transcodes fine with FFmpeg afaict.

in reply to:  16 comment:17 by xamarin, 4 years ago

Replying to cehoyos:

The file also plays and transcodes fine with FFmpeg afaict.

Why I can't cut it then? Would like to add a feature request so I can do this.

comment:18 by xamarin, 4 years ago

Resolution: invalid
Status: closedreopened
Summary: Can't cut iTunes movieCut iTunes movie with mp42isom and eia_608
Type: defectenhancement

comment:19 by xamarin, 4 years ago

Modified it as feature request. i don't know if it's "standard" or not, however I would like to get it working.

comment:20 by Carl Eugen Hoyos, 4 years ago

Resolution: invalid
Status: reopenedclosed
Type: enhancementdefect

We don't want to support c608 in isom because it is not "standard".

in reply to:  20 comment:21 by xamarin, 4 years ago

Replying to cehoyos:

We don't want to support c608 in isom because it is not "standard".

One thing is that you don't want to and another that is technically impossible to do it.

Last edited 4 years ago by xamarin (previous) (diff)
Note: See TracTickets for help on using tickets.