Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging isuue putting together f4m files #5917

Closed
2011 opened this issue Jun 7, 2015 · 4 comments
Closed

packaging isuue putting together f4m files #5917

2011 opened this issue Jun 7, 2015 · 4 comments
Labels
f4m

Comments

@2011
Copy link

@2011 2011 commented Jun 7, 2015

Making some assumptions about that. :)

Have seen this with all f4ms.

[ThePlatform] xxxxxxxxxxxx: Downloading config
[ThePlatform] xxxxxxxxxxxx: Downloading XML
[ThePlatform] xxxxxxxxxxxx: Downloading webpage
[ThePlatform] xxxxxxxxxxxx: Downloading f4m manifest
[download] Downloading f4m manifest
[download] Destination: file-NA.flv
[download] 100% of 100.00MiB in 10:00

It plays fine, but spits out lots of errors:

$ mpv file-NA.flv
Playing: file-NA.flv
 (+) Video --vid=1 (h264)
 (+) Audio --aid=1 (aac)
AO: [alsa] 48000Hz stereo 2ch float
VO: [opengl] 1280x720 yuv420p
AV: 00:00:05 / 00:02:37 (3%) A-V:  0.000
[ffmpeg] NULL: AVC: nal size 21839903
[ffmpeg] NULL: missing picture in access unit with size 37
AV: 00:00:05 / 00:02:37 (3%) A-V:  0.000
[ffmpeg/video] h264: AVC: nal size 21839903
[ffmpeg/video] h264: AVC: nal size 21839903
[ffmpeg/video] h264: no frame!
AV: 00:00:05 / 00:02:37 (3%) A-V: -0.000
Error while decoding frame!
AV: 00:00:11 / 00:02:37 (7%) A-V:  0.000 Dropped: 0/1
[ffmpeg] NULL: AVC: nal size 21839903
[ffmpeg] NULL: missing picture in access unit with size 37
AV: 00:00:11 / 00:02:37 (7%) A-V:  0.000 Dropped: 0/1
[ffmpeg/video] h264: AVC: nal size 21839903
[ffmpeg/video] h264: AVC: nal size 21839903
[ffmpeg/video] h264: no frame!
AV: 00:00:11 / 00:02:37 (7%) A-V:  0.000 Dropped: 0/1
Error while decoding frame!
AV: 00:00:17 / 00:02:37 (11%) A-V: -0.000 Dropped: 0/2
[ffmpeg] NULL: AVC: nal size 21839903
[ffmpeg] NULL: missing picture in access unit with size 37
AV: 00:00:17 / 00:02:37 (11%) A-V:  0.000 Dropped: 0/2
[ffmpeg/video] h264: AVC: nal size 21839903
[ffmpeg/video] h264: AVC: nal size 21839903
[ffmpeg/video] h264: no frame!
AV: 00:00:17 / 00:02:37 (11%) A-V:  0.000 Dropped: 0/2
Error while decoding frame!
AV: 00:00:22 / 00:02:37 (14%) A-V: -0.000 Dropped: 0/3

And ffmpeg (a fairly recent version) complains a lot (and produces an output file with the same problem):

$ time nice -n 20 ffmpeg -i file-NA.flv -c copy file-NA.mkv
[...]
Input #0, flv, from 'file-NA.flv:
  Duration: 00:02:37.39, start: 0.000000, bitrate: 3592 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 3569 kb/s, 30.33 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 98 kb/s
Output #0, matroska, to 'file-NA.mkv:
  Metadata:
    encoder         : Lavf55.33.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 3569 kb/s, 30.33 fps, 1k tbn, 1k tbc
    Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 44100 Hz, stereo, 98 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
[NULL @ 0x14e5750] AVC: nal size 21839903
[NULL @ 0x14e5750] missing picture in access unit with size 37
frame= 4742 fps=0.0 q=-1.0 Lsize=   68903kB time=00:02:37.36 bitrate=3587.0kbits/s    
video:66974kB audio:1844kB subtitle:0 data:0 global headers:0kB muxing overhead 0.122515%

BUT, mkvmerge has no problem with this:

$ /usr/bin/mkvmerge -o file-NA.mkv file-NA.flv
mkvmerge v6.6.0 ('The Edge Of The In Between')
'file-NA.flv' track 0: Using the output module for the format 'AVC/h.264'.
'file-NA.flv' track 1: Using the output module for the format 'AAC'.
The file 'file-NA.mkv' has been opened for writing.
'file-NA.flv' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1280/720.
Progress: 100%
The cue entries (the index) are being written...
Muxing took 2 seconds.

The mkvmerge output file not only plays without any warnings or errors, but ALSO ffmpeg can handle the output file (converting, copying into other containers) without any warnings or errors.

I don't know where this comes from (maybe ffmpeg is putting the segments together and it is an ffmpeg bug?), but (even though this isn't something critical, it seems worth pointing out. Thanks.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 7, 2015

Which video are you trying to download? Please paste the video link.

@2011
Copy link
Author

@2011 2011 commented Jun 7, 2015

Happens with every f4m video I have ever downloaded, but in the spirit of the day, I will offer this link:

http://www.nbcsports.com//horse-racing/american-pharoah-ends-37-year-triple-crown-drought

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 7, 2015

I guess the problem is from ffmpeg rather than youtube-dl. Here's a relevant bug report: https://trac.ffmpeg.org/ticket/4011. Could you update ffmpeg to the latest version (2.6.3) and try again?

@jaimeMF jaimeMF added the f4m label Jun 7, 2015
@2011
Copy link
Author

@2011 2011 commented Jun 9, 2015

Sorry that took so long (I had to recompile half of my system when I upgraded ffmpeg :) ).

It works flawlessly with ffmpeg 2.6.3.

Thanks (and sorry for wasting your time).

@2011 2011 closed this Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.